/* ============================================================
   Amethyst Nexalune — Foglalási rendszer
   Design tokens — karakteres, egyedi hangvételű display betűtípus
   (Fraunces) párosítva Inter-rel, ne tűnjön sablon-SaaS oldalnak.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500..700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Color — krémszínű, meleg alap + kék akcentus */
  --bg: #FAF6EC;
  --surface: #FFFFFF;
  --surface-raised: #F1E9D8;
  --surface-dark: #121022;
  --surface-dark-raised: #1C1934;
  --line: #E4D9C2;
  --text: #211D14;
  --text-muted: #6B6250;
  --text-on-dark: #F4F3FA;
  --text-on-dark-muted: #B3AFC9;
  --accent: #2E5DA8;
  --accent-deep: #1F4480;
  --accent-bright: #4E85D9;
  --accent-soft: #E3ECF8;
  --danger: #C0392B;

  /* Type — Fraunces a címekhez (egyedi karakter), Inter a felülethez */
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --max-width: 1120px;
  --radius: 10px;
  --radius-lg: 18px;
  --gap: 24px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(18, 16, 24, 0.05), 0 1px 4px rgba(18, 16, 24, 0.06);
  --shadow-md: 0 10px 28px rgba(18, 16, 24, 0.12);
  --shadow-lg: 0 24px 64px rgba(18, 16, 24, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, p, span, a { overflow-wrap: break-word; }

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.4em;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.015em; }

p { margin: 0 0 1em; color: var(--text-muted); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
}

/* ---------- Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface-raised);
  border-radius: 999px;
  padding: 3px;
}

.lang-toggle button {
  background: transparent;
  border: none;
  padding: 5px 13px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.lang-toggle button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.lang-toggle button:hover:not(.active) { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #FFFFFF;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease, filter 0.15s ease;
}

.nav-cta:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); filter: brightness(1.06); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Buttons & form elements ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); filter: brightness(1.06); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }

.btn-ghost {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-block { width: 100%; }

.btn-small {
  padding: 6px 14px;
  font-size: 0.68rem;
}

.btn-danger {
  background: transparent;
  border-color: #c0392b;
  color: #c0392b;
}
.btn-danger:hover { background: #c0392b; color: #FFFFFF; }

label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 18px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B596A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

input[type="date"], input[type="tel"], input[type="email"], input[type="text"], input[type="password"] {
  color-scheme: light;
}

::placeholder { color: var(--text-muted); opacity: 0.7; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

textarea { resize: vertical; min-height: 100px; }

.field-group { margin-bottom: 4px; }

/* ---------- Egyedi dátumválasztó (booking.html) ---------- */

.date-field { position: relative; }

.date-trigger {
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
}
.date-trigger:disabled { color: var(--text-muted); cursor: not-allowed; background: var(--surface-raised); }
.date-trigger:hover:not(:disabled) { border-color: var(--accent); }

.date-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  width: 300px;
}

.cal-popover-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-weight: 600;
  font-size: 0.88rem;
}

.cal-popover-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.cal-popover-grid .cal-popover-head {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  padding-bottom: 6px;
}

.cal-popover-day {
  aspect-ratio: 1;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text);
}
.cal-popover-day:hover:not(:disabled) { background: var(--accent-soft); }
.cal-popover-day.is-selected { background: var(--accent); color: #FFFFFF; }
.cal-popover-day.is-blocked {
  color: var(--text-muted);
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 0.5;
}
.cal-popover-day.is-empty { visibility: hidden; cursor: default; }

.cal-popover-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 14px 0 0;
}
.cal-popover-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
  display: inline-block;
}

/* ---------- Hero ---------- */

.hero {
  padding: 40px 0 64px;
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 90px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-wave svg {
  width: 130%;
  height: 100%;
  display: block;
  animation: hero-wave-drift 12s ease-in-out infinite alternate;
}

.hero-wave path { fill: var(--accent-soft); }

@keyframes hero-wave-drift {
  from { transform: translateX(-8%); }
  to { transform: translateX(-18%); }
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 56px;
  justify-content: space-between;
}

.hero-inner {
  max-width: 560px;
  flex: 1 1 480px;
  position: relative;
}

.hero-photo {
  flex: 0 1 420px;
  position: relative;
}

.hero-photo::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 3px solid var(--accent);
  border-radius: 4px var(--radius-lg) 4px var(--radius-lg);
  z-index: 0;
  animation: hero-photo-float 6s ease-in-out infinite;
}

.hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg) 4px var(--radius-lg) 4px;
  display: block;
  animation: hero-photo-float 6s ease-in-out infinite;
}

@keyframes hero-photo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-inner::before {
  content: '“';
  position: absolute;
  top: -0.5em;
  left: -0.36em;
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 500;
  font-style: italic;
  color: var(--accent-soft);
  z-index: 0;
  line-height: 1;
  pointer-events: none;
}

.hero-inner > * { position: relative; z-index: 1; }

.hero-inner h1 em {
  font-style: italic;
  color: var(--accent);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* ---------- Day-rhythm strip (signature element) ---------- */

.rhythm-strip {
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}

.rhythm-strip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.rhythm-strip-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rhythm-strip-doctor {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
}

.rhythm-track {
  display: flex;
  gap: 6px;
  align-items: center;
  transition: opacity 0.25s ease;
}

.rhythm-slot {
  flex: 1;
  height: 2px;
  background: var(--line);
  position: relative;
}

.rhythm-slot.open::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 9px; height: 9px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.rhythm-times {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ---------- Sections ---------- */

section { padding: 60px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.section-head p { margin: 0; max-width: 480px; }

/* ---------- Specialist cards ---------- */

.specialists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}

.specialist-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.specialist-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.specialist-photo {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.specialist-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.specialist-card:hover .specialist-photo img { transform: scale(1.05); }

.specialist-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.specialist-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.team-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.specialty-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  display: inline-block;
  width: fit-content;
}

.specialist-card h3 { margin-bottom: 8px; }
.specialist-card p { flex: 1; }

.specialist-card .btn {
  margin-top: 18px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-deep);
  font-size: 0.88rem;
}

.specialist-card .btn:hover {
  background: var(--accent);
  border-color: transparent;
  color: #FFFFFF;
}

/* ---------- Benefits / értékek ---------- */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
}

.benefit-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.benefit-icon svg { width: 24px; height: 24px; }

.benefit-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.benefit-card p { margin: 0; font-size: 0.92rem; }

/* ---------- Stat sáv ---------- */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--gap);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}

.stat-item { text-align: center; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 6px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- GYIK ---------- */

.faq-list { max-width: 760px; }

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item:first-child { border-top: 1px solid var(--line); }

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p { margin: 14px 0 0; max-width: 640px; }

/* ---------- Booking page ---------- */

.booking-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 800px) {
  .booking-layout { grid-template-columns: 1fr; }
}

.booking-summary {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 110px;
  box-shadow: var(--shadow-sm);
}

#selected-doctor-info h3 { margin-bottom: 4px; }

.summary-empty { color: var(--text-muted); font-size: 0.9rem; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.slot-btn {
  padding: 11px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.slot-btn:hover { border-color: var(--accent); color: var(--accent); }
.slot-btn.selected { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }
.slot-btn.unavailable { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }
.slot-btn.unavailable:hover { border-color: var(--line); color: var(--text); }

.form-status {
  font-size: 0.88rem;
  margin-top: 6px;
  min-height: 1.2em;
}

.form-status.error { color: var(--danger); }
.form-status.success { color: var(--accent); }

/* ---------- Modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 16, 24, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-overlay[hidden] { display: none; }

.modal-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.modal-box h3 { margin-bottom: 18px; }
.modal-box p:not(.form-status) { color: var(--text); margin-bottom: 0; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

#thank-you,
.info-box {
  display: none;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Login / Dashboard ---------- */

.auth-shell {
  max-width: 400px;
  margin: 96px auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--gap);
  align-items: start;
}

@media (max-width: 800px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: var(--gap);
  box-shadow: var(--shadow-sm);
}

.booking-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

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

.booking-row .b-time {
  font-family: var(--font-mono);
  color: var(--accent);
  text-align: right;
}

.booking-row .b-actions,
.timeoff-row .t-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.timeoff-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.dash-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}

.empty-state {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* ---------- Naptár (dashboard) ---------- */

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.calendar-view-toggle {
  display: flex;
  gap: 8px;
}

.calendar-view-toggle .btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.calendar-label {
  font-weight: 500;
  font-size: 0.9rem;
}

.cal-day-list .cal-slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.cal-day-list .cal-slot:last-child { border-bottom: none; }
.cal-day-list .cal-slot-time { font-family: var(--font-mono); color: var(--accent); }
.cal-day-list .cal-slot.is-free { color: var(--text-muted); }
.cal-day-list .cal-slot.is-off { color: var(--text-muted); font-style: italic; }

.cal-week-grid {
  display: grid;
  grid-template-columns: 56px repeat(7, minmax(70px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  overflow-x: auto;
}

.cal-week-grid > div {
  background: var(--surface);
  padding: 8px 6px;
  min-width: 0;
}

.cal-week-grid .cal-col-head {
  text-align: center;
  font-weight: 500;
  padding: 10px 6px;
}
.cal-week-grid .cal-col-head.is-off { color: var(--text-muted); }

.cal-week-grid .cal-row-time {
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.cal-week-grid .cal-cell {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  word-break: break-word;
}
.cal-week-grid .cal-cell.is-booked { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); font-weight: 500; }
.cal-week-grid .cal-cell.is-off { background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 6px, var(--line) 6px, var(--line) 7px); }

.cal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cal-month-grid > div {
  background: var(--surface);
  min-height: 0;
}

.cal-month-grid .cal-col-head {
  text-align: center;
  font-weight: 500;
  font-size: 0.78rem;
  padding: 8px 4px;
}

.cal-month-grid .cal-day-cell {
  min-height: 74px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cal-month-grid .cal-day-cell:hover { background: var(--bg); }
.cal-month-grid .cal-day-cell.is-empty { cursor: default; }
.cal-month-grid .cal-day-cell.is-empty:hover { background: var(--surface); }
.cal-month-grid .cal-day-cell.is-off { background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 6px, var(--line) 6px, var(--line) 7px); }
.cal-month-grid .cal-day-num { color: var(--text-muted); }
.cal-month-grid .cal-day-count {
  align-self: flex-start;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 0.72rem;
}

@media (max-width: 800px) {
  .cal-week-grid { font-size: 0.7rem; }
  .cal-month-grid .cal-day-cell { min-height: 56px; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  background: var(--surface-raised);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--gap);
  padding: 56px 32px 40px;
}

.footer-brand .logo { display: inline-block; margin-bottom: 4px; }

.footer-brand p {
  max-width: 320px;
  margin-top: 12px;
  font-size: 0.88rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 14px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Responsive nav ---------- */

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 24px 32px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .hero { padding: 72px 0 48px; }
  .hero::before, .hero::after { display: none; }
  .hero-top { flex-direction: column-reverse; gap: 32px; }
  .hero-photo { flex: none; width: 100%; }
  .hero-photo::before { top: -12px; left: 0; right: 12px; bottom: 12px; }
  section { padding: 56px 0; }

  .rhythm-strip { padding: 20px 16px; margin-top: 48px; }
  .rhythm-times {
    font-size: 0.58rem;
    letter-spacing: -0.02em;
  }
  .rhythm-times span { flex: 1; text-align: center; }
  .rhythm-times span:first-child { text-align: left; }
  .rhythm-times span:last-child { text-align: right; }
  .dash-topbar { flex-wrap: wrap; gap: 16px; }
  .booking-summary { position: static; }

  .panel { padding: 20px; }

  .booking-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .booking-row .b-actions { width: 100%; justify-content: space-between; }
  .booking-row .b-time { text-align: left; }

  .timeoff-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .timeoff-row .t-actions { width: 100%; justify-content: space-between; }

  .calendar-header { flex-wrap: wrap; gap: 10px; }
  .calendar-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .calendar-nav .btn-small { padding: 6px 10px; font-size: 0.65rem; }
  .calendar-label { order: -1; }

  .modal-box { padding: 22px; }
}

/* ---------- Görgetésre feltűnő elemek ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal-group].is-visible > * {
  opacity: 1;
  transform: none;
}
[data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 0.15s; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 0.25s; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  [data-reveal], [data-reveal-group] > * { opacity: 1; transform: none; }
}
