/* ==========================================================================
   Egyéni vállalkozó – PC szerviz weboldal
   Design: "diagnosztika" téma – szerviz-munkalap / alaplap-felirat hangulat
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   Színtokenek – világos / sötét téma
   -------------------------------------------------------------------------- */
:root,
[data-bs-theme="light"] {
  --bg: #f4f1ea;
  --bg-raised: #ffffff;
  --surface: #ffffff;
  --text: #1b1d1f;
  --text-muted: #5b5e63;
  --border: #ddd7c9;
  --accent: #a8571d;
  --accent-strong: #8a4517;
  --accent-2: #2f6f75;
  --led: #2f9e44;
  --hero-overlay: rgba(20, 18, 14, 0.62);
  --shadow: 0 1px 2px rgba(27, 24, 18, 0.06), 0 8px 24px rgba(27, 24, 18, 0.08);
  color-scheme: light;
}

[data-bs-theme="dark"] {
  --bg: #14171a;
  --bg-raised: #1b1f23;
  --surface: #1c2024;
  --text: #eae7e0;
  --text-muted: #a3a29c;
  --border: #2b3035;
  --accent: #e0923f;
  --accent-strong: #f0a856;
  --accent-2: #6fb3b8;
  --led: #3fd66b;
  --hero-overlay: rgba(10, 10, 10, 0.68);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Alapok
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  transition: background-color 0.2s ease, color 0.2s ease;
}

h1, h2, h3, h4,
.font-mono {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  letter-spacing: -0.01em;
}

h1 { font-weight: 800; }
h2, h3 { font-weight: 700; }

a { color: var(--accent-2); }
a:hover { color: var(--accent); }

.text-muted-custom { color: var(--text-muted) !important; }

.section {
  padding: 6rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

@media (max-width: 767.98px) {
  .section { padding: 4rem 0; }
}

/* --------------------------------------------------------------------------
   Navigáció
   -------------------------------------------------------------------------- */
.navbar {
  background-color: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border) !important;
}

.navbar-brand {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand .led-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  box-shadow: none;
  display: inline-block;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.navbar-brand .led-dot.is-open {
  background: var(--led);
  box-shadow: 0 0 8px var(--led);
}

.navbar-brand .led-dot.is-closed {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.navbar-brand .led-dot.is-appointment {
  background: var(--accent-2);
  box-shadow: 0 0 6px var(--accent-2);
}

.nav-item {
  margin-left: 0.5rem;
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  padding: 0.5rem 0.9rem !important;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
  color: var(--text) !important;
  background-color: color-mix(in srgb, var(--accent) 12%, transparent);
}

.nav-link.active {
  color: var(--text) !important;
  background-color: color-mix(in srgb, var(--accent) 18%, transparent);
}

/* Theme toggle button */
.theme-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  background-color: color-mix(in srgb, var(--accent) 12%, transparent);
}

.theme-toggle svg { width: 18px; height: 18px; }
[data-bs-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-bs-theme="dark"] .theme-toggle .icon-sun { display: none; }

/* --------------------------------------------------------------------------
   Eyebrow / státusz-címke – az alaplap-szitanyomás hangulata
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 6px var(--led);
}

@media (prefers-reduced-motion: no-preference) {
  .eyebrow::before {
    animation: blink 2.4s ease-in-out infinite;
  }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Élő elérhetőség-jelző eyebrow (pl. a hero "[ Szerviz · elérhető ]" sora) —
   csak azokon az eyebrow-kon jelenik meg, amelyeket a site-status.js
   ténylegesen kezel; a többi eyebrow változatlanul zöld marad. */
.eyebrow.is-open::before {
  background: var(--led);
  box-shadow: 0 0 6px var(--led);
}

.eyebrow.is-closed::before {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: none;
}

.eyebrow.is-appointment::before {
  background: var(--accent-2);
  box-shadow: 0 0 6px var(--accent-2);
  animation: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 76px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--hero-overlay) 0%, var(--hero-overlay) 55%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #f4f1ea;
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  line-height: 1.05;
}

.hero .lead {
  color: #d7d3c9;
  font-size: 1.15rem;
  max-width: 46ch;
}

.hero .eyebrow { color: #f0a856; }

.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff8ef;
  font-weight: 600;
}

.btn-accent:hover {
  background-color: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff8ef;
}

.btn-outline-accent {
  border: 1px solid rgba(244, 241, 234, 0.55);
  color: #f4f1ea;
  font-weight: 600;
}

.btn-outline-accent:hover {
  background-color: rgba(244, 241, 234, 0.12);
  border-color: #f4f1ea;
  color: #fff;
}

/* --------------------------------------------------------------------------
   "Diagnosztikai" kártyák – sarok-jelölésekkel, mint egy mérőműszeren
   -------------------------------------------------------------------------- */
.diag-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.diag-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-2);
}

.diag-card::before,
.diag-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent-2);
  opacity: 0.7;
}

.diag-card::before {
  top: 8px; left: 8px;
  border-top: 2px solid var(--accent-2);
  border-left: 2px solid var(--accent-2);
}

.diag-card::after {
  bottom: 8px; right: 8px;
  border-bottom: 2px solid var(--accent-2);
  border-right: 2px solid var(--accent-2);
}

.diag-card .diag-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.diag-card .diag-icon {
  width: 42px;
  height: 42px;
  color: var(--accent);
  margin-bottom: 1rem;
}

.diag-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.diag-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Folyamat lépések
   -------------------------------------------------------------------------- */
.step {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  min-width: 2.5rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.step p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Árkártyák (prices.html)
   -------------------------------------------------------------------------- */
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.price-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-2);
}

.price-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.price-card .price-body {
  padding: 1.5rem;
  flex: 1;
}

.price-card .price-body h3 {
  font-size: 1.1rem;
}

.price-card .price-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.price-card .price-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-tag {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
}

.price-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Nyitvatartás táblázat
   -------------------------------------------------------------------------- */
.hours-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
}

.hours-row:last-child { border-bottom: none; }

.hours-row .day { color: var(--text); font-weight: 500; }
.hours-row .time { color: var(--text-muted); }
.hours-row.today { background-color: color-mix(in srgb, var(--accent) 10%, transparent); }
.hours-row.today .day,
.hours-row.today .time { color: var(--accent); font-weight: 700; }

/* Élő nyitva/zárva jelző */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
}

.status-badge .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.status-badge.is-open {
  color: var(--led);
  border-color: color-mix(in srgb, var(--led) 40%, var(--border));
}

.status-badge.is-open .status-dot {
  background: var(--led);
  box-shadow: 0 0 6px var(--led);
}

@media (prefers-reduced-motion: no-preference) {
  .status-badge.is-open .status-dot {
    animation: blink 2.4s ease-in-out infinite;
  }
}

.status-badge.is-closed {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.status-badge.is-closed .status-dot {
  background: var(--accent);
}

.status-badge.is-appointment {
  color: var(--accent-2);
  border-color: color-mix(in srgb, var(--accent-2) 35%, var(--border));
}

.status-badge.is-appointment .status-dot {
  background: var(--accent-2);
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.contact-item:last-child { margin-bottom: 0; }

.contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item .call-icon, .contact-item .mail-icon {
  width: 16px;
  height: 16px;
}

.contact-item .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.15rem;
}

/* --------------------------------------------------------------------------
   CTA szalag
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  border-radius: 14px;
  padding: 3rem;
  color: #fff8ef;
}

.cta-banner .btn-light {
  font-weight: 700;
  color: var(--accent-strong);
}

/* --------------------------------------------------------------------------
   Lábléc
   -------------------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

footer .footer-brand {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  font-weight: 700;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
}

footer a:hover { color: var(--accent); }

footer .legal {
  font-size: 0.78rem;
  opacity: 0.75;
  line-height: 1.6;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
