/* =========================================================
   INFRAFITNESS — Design System
   Luxus / letisztult / Apple x Volvo x Rituals x Tesla érzés
   ========================================================= */

:root {
  /* Color palette */
  --c-black: #15110f;
  --c-charcoal: #2a2522;
  --c-white: #ffffff;
  --c-ivory: #faf6f2;
  --c-beige: #efe4d8;
  --c-blush: #f3d9d6;
  --c-blush-deep: #e3b3ae;
  --c-rosegold: #c79a7b;
  --c-rosegold-light: #d9b797;
  --c-rosegold-deep: #a97a5c;
  --c-text: #221d1a;
  --c-text-soft: #6b6058;
  --c-border: #e4d9cd;

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-h1: clamp(2.6rem, 5vw, 4.6rem);
  --fs-h2: clamp(2rem, 3.4vw, 3.1rem);
  --fs-h3: clamp(1.4rem, 2.2vw, 1.9rem);
  --fs-lead: clamp(1.1rem, 1.6vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8rem;

  /* Spacing (8px rhythm) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --sp-8: 8rem;

  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;

  --shadow-soft: 0 20px 60px -25px rgba(20, 15, 10, 0.35);
  --shadow-card: 0 12px 30px -16px rgba(20, 15, 10, 0.25);

  --ease: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--c-ivory);
  color: var(--c-text);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 var(--sp-2);
  letter-spacing: 0.2px;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--sp-2); color: var(--c-text-soft); }
.lead { font-size: var(--fs-lead); color: var(--c-text); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-rosegold-deep);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--c-rosegold-deep);
  display: inline-block;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--sp-3);
}
.section { padding: var(--sp-7) 0; }
.section-tight { padding: var(--sp-5) 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 2.1em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-rosegold-light), var(--c-rosegold-deep));
  color: var(--c-black);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--c-white);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-dark {
  background: var(--c-black);
  color: var(--c-ivory);
}
.btn-dark:hover { background: var(--c-charcoal); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: var(--c-rosegold-deep);
  color: var(--c-rosegold-deep);
}
.btn-outline:hover { background: var(--c-rosegold-deep); color: var(--c-white); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--c-rosegold-deep);
  outline-offset: 3px;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 242, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--c-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) var(--sp-3);
  max-width: 1180px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--c-text);
}
.brand img { height: 34px; width: auto; }
.nav-links {
  display: flex;
  gap: var(--sp-4);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-links a {
  position: relative;
  padding: 0.3em 0;
  color: var(--c-text);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--c-rosegold-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-actions { display: flex; align-items: center; gap: var(--sp-2); }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--c-text);
  position: relative; transition: all .25s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -7px; width: 22px; height: 2px; background: var(--c-text); }
.nav-toggle span::after { position: absolute; top: 7px; width: 22px; height: 2px; background: var(--c-text); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--c-white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,17,15,0.15) 0%, rgba(21,17,15,0.35) 55%, rgba(21,17,15,0.92) 100%);
}
.hero-content { position: relative; z-index: 2; padding: var(--sp-7) 0 var(--sp-6); width: 100%; }
.hero-content .eyebrow { color: var(--c-blush); }
.hero-content .eyebrow::before { background: var(--c-blush); }
.hero h1 { max-width: 780px; }
.hero .lead { color: rgba(255,255,255,0.86); max-width: 560px; }
.hero-cta { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); flex-wrap: wrap; }

/* ===== Cards / grids ===== */
.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--c-white);
  border-radius: var(--radius-m);
  padding: var(--sp-4);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-border);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-blush), var(--c-rosegold-light));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-2);
  font-size: 1.4rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
}
.split img { border-radius: var(--radius-l); box-shadow: var(--shadow-soft); }
.split.reverse .split-media { order: 2; }

/* Story section */
.story-step {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--sp-6);
  align-items: center;
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--c-border);
}
.story-step:last-child { border-bottom: none; }
.story-step.reverse { grid-template-columns: 1.1fr 0.9fr; }
.story-step.reverse .story-media { order: 2; }
.story-num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--c-rosegold-deep);
  font-weight: 700;
  letter-spacing: 0.1em;
}
.story-media img { border-radius: var(--radius-l); box-shadow: var(--shadow-card); }

/* Pricing cards */
.price-card {
  background: var(--c-white);
  border-radius: var(--radius-m);
  border: 1px solid var(--c-border);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  position: relative;
}
.price-card.featured {
  border-color: var(--c-rosegold-deep);
  box-shadow: var(--shadow-soft);
}
.price-tier-label {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-rosegold-deep);
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.55em 0;
  border-bottom: 1px dashed var(--c-border);
  font-size: 0.95rem;
}
.price-row:last-child { border-bottom: none; }
.price-amount { font-weight: 800; color: var(--c-text); font-family: var(--font-display); font-size: 1.1rem; }
.badge {
  position: absolute;
  top: -12px; right: 20px;
  background: var(--c-rosegold-deep);
  color: var(--c-white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

/* Voucher / bérlet kártyák (image showcase) */
.voucher-card {
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.voucher-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.voucher-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.voucher-card .voucher-body { padding: var(--sp-3); }
.voucher-card h4 { margin: 0 0 0.2em; }

/* Booking */
.booking-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-6);
  align-items: start;
}
.calendar {
  background: var(--c-white);
  border-radius: var(--radius-m);
  border: 1px solid var(--c-border);
  padding: var(--sp-3);
  box-shadow: var(--shadow-card);
}
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-2); }
.calendar-head button {
  background: var(--c-ivory); border: 1px solid var(--c-border); border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer; font-size: 1rem;
}
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.calendar-grid .dow { font-size: 0.72rem; color: var(--c-text-soft); font-weight: 700; padding: 0.4em 0; }
.calendar-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--c-text);
}
.calendar-day:disabled { color: #d8cfc6; cursor: not-allowed; }
.calendar-day.is-selected { background: var(--c-rosegold-deep); color: var(--c-white); font-weight: 700; }
.calendar-day:not(:disabled):hover { border-color: var(--c-rosegold-deep); }
.calendar-day.is-empty { visibility: hidden; }

.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-1); margin-top: var(--sp-2); }
.slot-btn {
  padding: 0.7em 0.5em;
  border-radius: var(--radius-s);
  border: 1px solid var(--c-border);
  background: var(--c-ivory);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.slot-btn.is-selected { background: var(--c-rosegold-deep); color: var(--c-white); border-color: var(--c-rosegold-deep); }
.slot-btn:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.form-field { margin-bottom: var(--sp-2); }
.form-field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.4em; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 0.85em 1em;
  border-radius: var(--radius-s);
  border: 1px solid var(--c-border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--c-white);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--c-rosegold-deep); }
.form-note { font-size: 0.8rem; color: var(--c-text-soft); }
#booking-status { margin-top: var(--sp-2); font-weight: 700; }
#booking-status.success { color: #3f7a4f; }
#booking-status.error { color: #b3413a; }

/* CTA band */
.cta-band {
  background: var(--c-black);
  color: var(--c-ivory);
  border-radius: var(--radius-l);
  padding: var(--sp-6);
  text-align: center;
  background-image: radial-gradient(circle at 20% 20%, rgba(199,154,123,0.25), transparent 55%);
}
.cta-band h2 { color: var(--c-white); }
.cta-band p { color: rgba(255,255,255,0.7); }

/* Footer */
.site-footer {
  background: var(--c-charcoal);
  color: rgba(255,255,255,0.78);
  padding: var(--sp-6) 0 var(--sp-3);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-5); margin-bottom: var(--sp-5); }
.footer-grid h4 { color: var(--c-white); font-size: 1rem; margin-bottom: var(--sp-2); }
.footer-grid a { color: rgba(255,255,255,0.78); display: block; margin-bottom: 0.6em; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--c-rosegold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--sp-3);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2);
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
}
.social-row { display: flex; gap: var(--sp-2); }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: var(--sp-7) 0 var(--sp-5);
  color: var(--c-white);
  overflow: hidden;
}
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,17,15,0.55), rgba(21,17,15,0.85));
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--c-blush); }
.page-hero .eyebrow::before { background: var(--c-blush); }

/* Section helpers */
.section-head { max-width: 640px; margin: 0 auto var(--sp-5); text-align: center; }
.center { text-align: center; }
.tag-row { display: flex; flex-wrap: wrap; gap: var(--sp-1); justify-content: center; margin: var(--sp-2) 0; }
.tag {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 0.5em 1em; border-radius: 999px;
  background: var(--c-beige); color: var(--c-text);
}

/* Quote */
.quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--c-text);
  border-left: 3px solid var(--c-rosegold-deep);
  padding-left: var(--sp-3);
  margin: var(--sp-3) 0;
}

.beige-section { background: var(--c-beige); }

/* Responsive */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .booking-wrap { grid-template-columns: 1fr; gap: var(--sp-4); }
  .split.reverse .split-media { order: 0; }
  .story-step, .story-step.reverse { grid-template-columns: 1fr; }
  .story-step.reverse .story-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 86vh; }
  .section { padding: var(--sp-6) 0; }
  body.nav-open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--c-ivory); padding: var(--sp-3); border-bottom: 1px solid var(--c-border);
    gap: var(--sp-2);
  }
}
