/* ============================================================
   LATIN HEART LIVERPOOL — Peruvian heart. Liverpool soul.
   Palette: warm cream light theme, sunset hero, ember/red/gold accents
   Type: Anton (display) · Fraunces (accent italic) · Barlow (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Fraunces:ital,opsz,wght@1,9..144,400;1,9..144,600&family=Barlow:wght@400;500;600;700&display=swap');

:root {
  /* light warm surfaces */
  --bg: #fdf9f4;
  --bg-2: #f7eee2;
  --surface: #ffffff;
  --surface-2: #fdf6ed;
  /* ink */
  --ink: #2b1a11;
  --muted: #6d5647;
  --cream: #fdf6ee;          /* light text — used on the sunset bands */
  /* brand */
  --ember: #d94f1a;
  --ember-bright: #b8400f;   /* text-safe on light surfaces */
  --red: #b3202c;
  --gold: #a9711a;           /* text-safe gold on light */
  --gold-bright: #e0a53c;    /* decorative only (stars, glows) */
  --gold-soft: #d99a44;
  --line: rgba(43, 26, 17, 0.13);
  --line-on-dark: rgba(253, 246, 238, 0.22);
  /* sunset band (hero, CTA) */
  --dusk-top: #4a1d2e;
  --dusk-mid: #9c3f1c;
  --dusk-low: #e8983a;
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-accent: 'Fraunces', Georgia, serif;
  --font-body: 'Barlow', 'Helvetica Neue', sans-serif;
  --container: 1140px;
  --radius: 14px;
  --shadow: 0 16px 44px rgba(90, 45, 20, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ember); color: #fff; }

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

a { color: var(--ember-bright); text-decoration: none; }
a:hover { color: var(--red); }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

/* skip-to-content: hidden until keyboard-focused */
.skip {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 300;
  background: linear-gradient(120deg, var(--red), var(--ember));
  color: #fff;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 0 0 12px 12px;
  transition: top 0.25s var(--ease);
}
.skip:focus { top: 0; color: #fff; }

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.04;
}

.accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gold);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ember-bright);
  margin-bottom: 18px;
}
.kicker::before {
  content: '';
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.lead { font-size: 20px; color: var(--muted); max-width: 62ch; }

/* ---------- Layout ---------- */

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

section { position: relative; }

.section {
  padding: 110px 0;
}

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(38px, 5.2vw, 60px); margin-bottom: 16px; }

/* Andean textile divider strip */
.textile {
  height: 10px;
  background:
    repeating-linear-gradient(135deg,
      var(--red) 0 14px,
      var(--gold-bright) 14px 28px,
      var(--ember) 28px 42px,
      var(--bg-2) 42px 56px);
  opacity: 0.85;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn-primary {
  background: linear-gradient(120deg, var(--red), var(--ember));
  color: #fff;
  box-shadow: 0 10px 30px rgba(241, 87, 30, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 14px 38px rgba(241, 87, 30, 0.5);
}
.btn-ghost {
  border-color: rgba(43, 26, 17, 0.22);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}
.btn-ghost:hover { border-color: var(--ember); color: var(--ember-bright); transform: translateY(-2px); }
/* ghost buttons sitting on a sunset band */
.hero-beat .btn-ghost, .cta-band .btn-ghost, .page-hero .btn-ghost {
  border-color: var(--line-on-dark);
  color: var(--cream);
  background: rgba(253, 246, 238, 0.1);
}
.hero-beat .btn-ghost:hover, .cta-band .btn-ghost:hover, .page-hero .btn-ghost:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  background: rgba(253, 246, 238, 0.16);
}
.btn:active { transform: translateY(0) scale(0.98); }

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

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.nav.scrolled {
  background: rgba(253, 249, 244, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(90, 45, 20, 0.07);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}
.brand:hover { color: var(--cream); }
.nav.scrolled .brand, .nav.scrolled .brand:hover { color: var(--ink); }
.nav.scrolled .brand small { color: var(--gold); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.42em;
  color: var(--gold-bright);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 10px 16px;
  color: var(--cream);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--gold-bright); background: rgba(253, 246, 238, 0.12); }
.nav-links a.active { color: var(--gold-bright); }
.nav.scrolled .nav-links a { color: var(--ink); }
.nav.scrolled .nav-links a:hover { color: var(--ember-bright); background: rgba(43, 26, 17, 0.06); }
.nav.scrolled .nav-links a.active { color: var(--ember-bright); }
.nav.scrolled .nav-links .btn-primary { color: #fff; }
.nav-links .btn { padding: 12px 24px; font-size: 13px; margin-left: 10px; }
.nav-links { margin-left: auto; }

/* EN | ES switch — after the menu on desktop, beside the menu button on phones */
.lang-toggle {
  order: 3;
  position: relative;
  z-index: 130; /* stays usable above the open phone menu */
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(253, 246, 238, 0.4);
  background: none;
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.3s;
}
.lang-toggle[hidden] { display: none; }
.lang-toggle span { padding: 9px 10px; border-radius: 999px; opacity: 0.75; transition: background 0.2s, color 0.2s, opacity 0.2s; }
.lang-toggle span.on { background: var(--cream); color: var(--ink); opacity: 1; }
.lang-toggle:hover { border-color: rgba(253, 246, 238, 0.75); }
.nav.scrolled .lang-toggle,
.nav:has(.nav-links.open) .lang-toggle { color: var(--ink); border-color: rgba(43, 26, 17, 0.25); }
.nav.scrolled .lang-toggle span.on,
.nav:has(.nav-links.open) .lang-toggle span.on { background: var(--ink); color: var(--cream); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 48px;
  height: 48px;
  cursor: pointer;
  position: relative;
  z-index: 130;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cream);
  margin: 6px auto;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s, background 0.3s;
}
.nav.scrolled .nav-toggle span,
.nav-toggle[aria-expanded="true"] span { background: var(--ink); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero (autoplays; click or tap for the next line) ---------- */

.hero-sticky {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
  background:
    radial-gradient(115% 78% at 50% 104%, rgba(255, 214, 130, 0.95) 0%, rgba(240, 150, 55, 0.85) 26%, rgba(198, 82, 32, 0.55) 48%, rgba(120, 45, 40, 0) 74%),
    linear-gradient(180deg, var(--dusk-top) 0%, #7a2f24 42%, var(--dusk-mid) 68%, #c96b28 100%);
}

/* glowing sun disc */
.hero-sun {
  position: absolute;
  left: 50%;
  bottom: -14vh;
  width: 58vh;
  height: 58vh;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 214, 0.95) 0%, rgba(255, 201, 105, 0.7) 34%, rgba(245, 150, 60, 0.3) 58%, transparent 72%);
  filter: blur(6px);
  /* own GPU layer: the blur is drawn once, then just moved as it sinks */
  will-change: transform, opacity;
  transition: opacity 0.5s ease;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.5s ease;
}
/* scene change: dancers fade into the sky and back (the sun only when it
   returns to the first line, so its jump back up is hidden) */
.dip .hero-canvas, .dip-sun .hero-sun { opacity: 0 !important; }

/* film grain */
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 105% at 50% 42%, transparent 52%, rgba(74, 29, 46, 0.45) 100%);
}

.hero-beat {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 24px;
  opacity: 0;
  transform: translateY(26px);
  pointer-events: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.hero-beat.on { opacity: 1; transform: none; pointer-events: auto; }
.hero-beat.interactive { pointer-events: auto; }
.auto .hero-sticky { cursor: pointer; }
.auto .hero-beat { -webkit-user-select: none; user-select: none; }

/* the kickers are <p>s, so undo the hero paragraph width cap that was
   wrapping "Peruvian heart · Liverpool soul" with one word left over */
.hero-beat .kicker { justify-content: center; max-width: none; text-wrap: balance; }
.hero-beat .kicker::after {
  content: '';
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-bright), transparent);
}

/* kickers on the sunset bands need to be light, not ink-dark */
.hero-beat .kicker, .page-hero .kicker, .cta-band .kicker { color: var(--gold-bright); }
.hero-beat .kicker::before, .page-hero .kicker::before, .cta-band .kicker::before {
  background: linear-gradient(90deg, transparent, var(--gold-bright));
}
.page-hero .lead, .cta-band p { color: rgba(253, 246, 238, 0.86); }
.page-hero h1, .cta-band h2 { color: var(--cream); }
.page-hero .accent, .cta-band .accent, .hero-beat .accent { color: var(--gold-bright); }

.hero-title {
  font-size: clamp(64px, 13vw, 190px);
  color: var(--cream);
  text-shadow: 0 6px 60px rgba(0, 0, 0, 0.55);
}
.hero-title .accent { font-size: 0.42em; display: block; margin-top: 10px; }

.hero-beat h2 {
  font-size: clamp(40px, 7vw, 96px);
  color: var(--cream);
  text-shadow: 0 6px 50px rgba(0, 0, 0, 0.6);
}
.hero-beat p {
  margin-top: 18px;
  font-size: clamp(17px, 2vw, 22px);
  color: var(--cream);
  opacity: 0.85;
  max-width: 46ch;
  margin-inline: auto;
}
.hero-beat .btn-row { margin-top: 34px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-cue {
  position: absolute;
  left: 50%;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(253, 246, 238, 0.8);
  transition: opacity 0.5s;
}

/* line-by-line progress bars + pause, bottom centre */
.hero-controls {
  position: absolute;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-controls[hidden] { display: none; }
.hero-steps { display: flex; gap: 6px; }
.hero-step {
  width: 38px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  align-items: center;
}
.hero-step-bar {
  display: block;
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(253, 246, 238, 0.3);
}
.hero-step-fill {
  display: block;
  height: 100%;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-step:hover .hero-step-bar { background: rgba(253, 246, 238, 0.5); }
.hero-pause {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(253, 246, 238, 0.45);
  background: rgba(42, 25, 19, 0.25);
  color: var(--cream);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.hero-pause:hover { background: rgba(42, 25, 19, 0.45); }
.hero-pause svg { width: 12px; height: 12px; fill: currentColor; }
.hero-pause .icon-play, .hero-pause.paused .icon-pause { display: none; }
.hero-pause.paused .icon-play { display: block; }

/* Static hero fallback (reduced motion / no AVIF) */
.hero-static {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

/* ---------- Sub-page hero ---------- */

.page-hero {
  position: relative;
  padding: 190px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(100% 88% at 68% 118%, rgba(255, 206, 120, 0.9) 0%, rgba(233, 138, 52, 0.7) 30%, rgba(180, 70, 35, 0.35) 55%, transparent 78%),
    linear-gradient(180deg, var(--dusk-top) 0%, #82311f 55%, var(--dusk-mid) 100%);
}
/* scrim keeps headline crisp over the sunset + silhouette */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(52, 20, 30, 0.72) 0%, rgba(52, 20, 30, 0.42) 38%, transparent 68%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(48px, 7vw, 92px);
  max-width: 900px;
  text-shadow: 0 4px 26px rgba(48, 16, 24, 0.5);
}
.page-hero .lead { margin-top: 20px; }
.page-hero-art {
  position: absolute;
  right: -10%;
  bottom: 0;
  height: 92%;
  opacity: 0.28;
  pointer-events: none;
  filter: drop-shadow(0 0 60px rgba(120, 40, 20, 0.3));
}

/* ---------- Cards & grids ---------- */

.grid { display: grid; gap: 26px; }
.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(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: 0 2px 10px rgba(90, 45, 20, 0.05);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 79, 26, 0.35);
  box-shadow: var(--shadow);
}
.card h3 { font-size: 24px; margin: 18px 0 10px; }
.card p { color: var(--muted); font-size: 16px; }
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* 45px-tall tap area for thumbs; the margins cancel the padding so the
     link sits exactly where it did */
  padding: 11px 0;
  margin: 7px 0 -11px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card .card-link svg { transition: transform 0.25s var(--ease); }
.card:hover .card-link svg { transform: translateX(5px); }

.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(179, 32, 44, 0.1), rgba(224, 165, 60, 0.18));
  border: 1px solid rgba(169, 113, 26, 0.24);
  color: var(--ember-bright);
}
.icon-badge svg { width: 26px; height: 26px; }

/* ---------- Photo slots (placeholders until real photos arrive) ---------- */

.photo-slot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(150deg, rgba(179, 32, 44, 0.14), rgba(217, 79, 26, 0.12) 55%, rgba(224, 165, 60, 0.2)),
    var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
  color: var(--muted);
}
.photo-slot::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 26px, rgba(43, 26, 17, 0.035) 26px 52px);
}
.photo-slot svg { width: 34px; height: 34px; margin-inline: auto; opacity: 0.8; }
.photo-slot span { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; }
.photo-slot.wide { aspect-ratio: 16 / 9; }
.photo-slot.tall { aspect-ratio: 3 / 4; }

/* ---------- Real photos ---------- */

.photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface-2);
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.square { aspect-ratio: 1 / 1; }
.photo.tall { aspect-ratio: 3 / 4; }
.photo.wide { aspect-ratio: 16 / 10; }
.photo.portrait-4x3 { aspect-ratio: 4 / 3; }

/* photo not supplied yet — tidy placeholder instead of a broken image */
.photo.awaiting, .dish-img.awaiting {
  background:
    linear-gradient(150deg, rgba(179, 32, 44, 0.14), rgba(217, 79, 26, 0.12) 55%, rgba(224, 165, 60, 0.2)),
    var(--surface-2);
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
}
.photo.awaiting img, .dish-img.awaiting img { display: none; }
.photo.awaiting::after, .dish-img.awaiting::after {
  content: 'Photo coming soon';
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* dish grid — food photos with captions */
.dishes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dish {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(90, 45, 20, 0.05);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.dish:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.dish-img { aspect-ratio: 4 / 3; overflow: hidden; }
.dish-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s var(--ease);
}
.dish:hover .dish-img img { transform: scale(1.05); }
.dish figcaption { padding: 18px 20px 20px; }
.dish figcaption b {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.dish figcaption span { display: block; margin-top: 5px; font-size: 15px; color: var(--muted); }

@media (max-width: 900px) { .dishes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dishes { grid-template-columns: 1fr; } }

/* ---------- Stats / trust ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  color: var(--gold);
  line-height: 1;
}
.stat span { color: var(--muted); font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }

/* ---------- Schedule table ---------- */

.schedule {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.schedule-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  transition: background 0.25s;
}
.schedule-row:last-child { border-bottom: 0; }
.schedule-row:hover { background: var(--surface-2); }
.schedule-row .day {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ember-bright);
  text-transform: uppercase;
}
.schedule-row .what b { display: block; font-size: 18px; }
.schedule-row .what span { color: var(--muted); font-size: 15px; }

/* ---------- Split sections ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.split .content h2 { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 18px; }
.split .content p + p { margin-top: 16px; }
.split .content p { color: var(--muted); }
.split .content .btn { margin-top: 30px; }

/* ---------- Checklist ---------- */

.ticks { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink); }
.ticks li svg { flex: none; width: 22px; height: 22px; color: var(--ember); margin-top: 3px; }
.ticks li span b { color: var(--ink); }
.ticks li span { color: var(--muted); }

/* ---------- Quote band ---------- */

.quote-band {
  padding: 90px 0;
  text-align: center;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(224, 165, 60, 0.16), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.quote-band blockquote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.35;
  color: var(--ink);
  max-width: 21ch;
  margin-inline: auto;
}
.quote-band cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Testimonials ---------- */

.testimonial { display: flex; flex-direction: column; }
.testimonial .stars {
  color: var(--gold-bright);
  font-size: 18px;
  letter-spacing: 5px;
  margin-bottom: 14px;
}
.testimonial blockquote {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  flex: 1;
}
.testimonial figcaption {
  margin-top: 18px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.testimonial figcaption span {
  display: block;
  margin-top: 2px;
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- FAQ accordion ---------- */

.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  padding: 22px 26px;
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  list-style: none;
  transition: background 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex: none;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { background: var(--surface-2); }
.faq details p { padding: 0 26px 22px; color: var(--muted); max-width: 70ch; }

/* ---------- WhatsApp floating button ---------- */

.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 95;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6);
}
.whatsapp-fab svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 130px 0;
  background:
    radial-gradient(100% 88% at 50% 118%, rgba(255, 208, 124, 0.92) 0%, rgba(235, 142, 54, 0.72) 28%, rgba(180, 70, 35, 0.4) 52%, transparent 76%),
    linear-gradient(180deg, var(--dusk-top) 0%, #82311f 55%, var(--dusk-mid) 100%);
}
.cta-band h2 { font-size: clamp(44px, 6.5vw, 84px); }
.cta-band p { margin: 18px auto 36px; max-width: 52ch; }
.cta-band .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-band .silhouette {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 105%;
  opacity: 0.22;
  pointer-events: none;
}

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; }

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item b { display: block; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-item a, .contact-item p { font-size: 19px; font-weight: 600; color: var(--ink); }
.contact-item a { display: inline-block; padding: 11px 0; margin: -11px 0; } /* bigger tap area, same layout */
.contact-item a:hover { color: var(--ember-bright); }

.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 15px 18px;
  border-radius: 10px;
  border: 1px solid rgba(43, 26, 17, 0.2);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(217, 79, 26, 0.14);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 14px; color: var(--muted); }
.form-note[data-tone="error"] { color: var(--red); font-weight: 600; }
.form-note[data-tone="ok"] { color: #2e6b3f; font-weight: 600; }
.field [aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(179, 32, 44, 0.12); }
.form .btn:disabled { opacity: 0.75; cursor: default; transform: none; }
/* spam trap: invisible to people, bots fill it in and Netlify discards them */
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

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

footer {
  padding: 70px 0 40px;
  background: #2a1913;
  color: var(--cream);
}
footer .brand, footer .brand:hover { color: var(--cream); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 50px;
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a, .footer-grid p { color: rgba(253, 246, 238, 0.74); font-size: 15px; }
.footer-grid a:hover { color: var(--gold-bright); }
.footer-tag { margin-top: 16px; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid var(--line-on-dark);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: rgba(253, 246, 238, 0.6);
  font-size: 13.5px;
}
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 10px 0; margin: -10px 0; }
.footer-bottom a:hover { color: var(--gold-bright); }

/* ---------- Privacy page ---------- */

.legal { max-width: 72ch; }
.legal h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 52px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); }
.legal p + p, .legal ul + p { margin-top: 14px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 10px; }
.legal b { color: var(--ink); font-weight: 600; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal-date { margin-top: 52px; font-size: 14px; }
.form-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

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

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Menu collapses to the ☰ button below 1100px: the full menu (plus the
   EN | ES switch) needs about that much room before it squeezes */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .lang-toggle { order: 0; margin-left: auto; }
  .nav-inner { gap: 12px; }
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 120;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    background: rgba(253, 249, 244, 0.98);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a,
  .nav.scrolled .nav-links a { font-size: 24px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); }
  .nav-links a.active,
  .nav.scrolled .nav-links a.active { color: var(--ember-bright); }
  .nav-links .btn-primary,
  .nav.scrolled .nav-links .btn-primary { color: #fff; }
  .nav-links .btn { margin: 18px 0 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 78px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .schedule-row { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  /* lift the hero's step bars clear of the WhatsApp button */
  .hero-controls { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  .hero-cue { bottom: calc(148px + env(safe-area-inset-bottom, 0px)); }
  .hero-step { width: 34px; }
  .page-hero { padding: 150px 0 80px; }
  .page-hero-art { opacity: 0.16; right: -30%; }

}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-beat { transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
