@import url("./fonts.css");

:root {
  --bg: #0b1c16;
  --surface: #10261e;
  --surface-alt: #163329;
  --ink: #f3f0e6;
  --muted: #b8c7bf;
  --accent: #d9b86c;
  --accent-ink: #0c1914;
  --accent-hover: #e5ca88;
  --band-bg: #10261e;
  --band-ink: #f3f0e6;
  --band-muted: #b8c7bf;
  --line: rgba(217, 184, 108, 0.2);
  --nav-bg: rgba(11, 28, 22, 0.88);
  --nav-solid: #0b1c16;
  --dock-bg: rgba(11, 28, 22, 0.95);
  --scrim-start: rgba(11, 28, 22, 0.35);
  --scrim-mid: rgba(11, 28, 22, 0.52);
  --scrim-end: rgba(11, 28, 22, 0.92);
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 2px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 100%;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
}

h1, h2, h3, p, blockquote, dl, dd, ul, aside { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.25em; touch-action: manipulation; }
button, [role="button"] { touch-action: manipulation; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
section[id], div[id] { scroll-margin-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 16px); }

.tnum { font-variant-numeric: tabular-nums; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -120px;
  z-index: 300;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: calc(0.75rem + env(safe-area-inset-top, 0px)); }

/* Fixed top navigation — OUTSIDE #smooth-wrapper */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  width: min(92%, 78rem);
  min-height: var(--nav-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  min-width: 0;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius);
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav__link {
  display: none;
  min-height: 44px;
  padding: 0 0.65rem;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  user-select: none;
  -webkit-user-select: none;
  transition: color 160ms var(--ease-out);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 0.95rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius);
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: transform 130ms var(--ease-out), background-color 180ms var(--ease-out);
}

.nav__cta:active,
.btn:active,
.dock__btn:active {
  transform: scale(0.97);
}

/* Container */
.container {
  width: min(92%, 78rem);
  margin: 0 auto;
  min-width: 0;
}

/* Hero — mobile-first 100svh with 4-layer WebP parallax */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 2rem) 0 3.25rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__layer--04 { z-index: 1; }
.hero__layer--03 { z-index: 2; }
.hero__layer--02 { z-index: 3; }
.hero__layer--01 { z-index: 4; }

/* Eased multi-stop scrim so text stays >= WCAG AA on 320px without harsh band edge */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--scrim-start) 0%,
    var(--scrim-mid) 42%,
    var(--scrim-end) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 6;
  width: min(92%, 78rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.hero__title {
  margin-top: 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 11.5vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
  font-weight: inherit;
}

.hero__lede {
  margin-top: 1rem;
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

.hero__proof {
  margin-top: 1.15rem;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.6rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.hero__stars {
  color: var(--accent);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.hero__actions {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.8rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: transform 130ms var(--ease-out), background-color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--band {
  background: var(--band-ink);
  color: var(--band-bg);
}

.hero__note {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}

/* Entrance choreography — non-blocking, GPU-only transform + opacity */
@media (prefers-reduced-motion: no-preference) {
  @keyframes enterUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .hero__title { animation: enterUp 520ms var(--ease-out) both; }
  .hero__proof { animation: enterUp 440ms var(--ease-out) 75ms both; }
  .hero__actions { animation: enterUp 400ms var(--ease-out) 135ms both; }
}

/* Sections */
.section {
  padding: 3.75rem 0;
  border-top: 1px solid var(--line);
}

.section--surface {
  background: var(--surface);
}

.section--band {
  background: var(--band-bg);
  color: var(--band-ink);
  border-top-color: transparent;
}

.section--band .kicker { color: var(--accent); }
.section--band .section__sub { color: var(--band-muted); }
.section--band .card {
  background: rgba(255, 255, 255, 0.05);
  color: var(--band-ink);
  border-color: rgba(255, 255, 255, 0.16);
}
.section--band .schedule,
.section--band .schedule__row {
  border-color: rgba(255, 255, 255, 0.16);
}
.section--band .phone-link { color: var(--band-ink); text-decoration: underline; }
.section--band .disclosure {
  background: rgba(255, 255, 255, 0.05);
  color: var(--band-muted);
  border-color: rgba(255, 255, 255, 0.22);
}
.section--band .disclosure strong { color: var(--band-ink); }
.section--band .btn--ghost {
  color: var(--band-ink);
  border-color: rgba(255, 255, 255, 0.28);
}

.kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section__title {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 7.5vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.section__sub {
  margin-top: 0.75rem;
  max-width: 62ch;
  font-size: 0.98rem;
  color: var(--muted);
}

/* Cards & grids — always minmax(0, 1fr) for break-ui safety */
.grid-2 {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.grid-3 {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.card {
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.card--alt {
  background: var(--surface-alt);
}

.stat-giant {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 15vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.quote-card {
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.quote-card blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 4.4vw, 1.48rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.quote-card__meta {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Hours schedule list */
.schedule {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.schedule__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  min-width: 0;
}

.schedule__row dt {
  font-weight: 600;
  min-width: 0;
}

.schedule__row dd {
  font-variant-numeric: tabular-nums;
  text-align: right;
  flex-shrink: 0;
}

.address-block {
  margin-top: 0.85rem;
  font-style: normal;
  font-size: 0.98rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  text-decoration: none;
}

.disclosure {
  margin-top: 1.5rem;
  padding: 1.2rem 1.35rem;
  background: var(--surface-alt);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 65ch;
}

.disclosure strong { color: var(--ink); }

.peak-end {
  padding: 4rem 0;
  background: var(--accent);
  color: var(--accent-ink);
}

.peak-end .kicker {
  color: var(--accent-ink);
  opacity: 0.85;
}

.peak-end .section__title {
  color: var(--accent-ink);
}

.peak-end .section__sub {
  color: var(--accent-ink);
  opacity: 0.9;
}

.peak-end .btn--contrast {
  margin-top: 1.5rem;
  background: var(--accent-ink);
  color: var(--accent);
}

/* Footer — generous bottom clearance for fixed mobile WhatsApp dock */
.footer {
  padding: 2rem 0 calc(6rem + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Thumb-zone mobile WhatsApp dock — OUTSIDE #smooth-wrapper */
.mobile-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 130;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: var(--dock-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}

.dock__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: transform 130ms var(--ease-out), background-color 180ms var(--ease-out);
}

/* Layout specialization helpers */
.hero--centered .hero__inner {
  text-align: center;
  justify-items: center;
}
.hero--centered .hero__actions {
  width: 100%;
  max-width: 24rem;
}
.hero--poster .hero__title {
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.9;
}

/* Hover strictly gated to fine pointer devices (mobile-native rule) */
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--ink); }
  .nav__cta:hover,
  .btn--primary:hover,
  .dock__btn:hover { background: var(--accent-hover); }
  .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
}

/* Tablet (>= 768px) */
@media (min-width: 768px) {
  :root { --nav-h: 72px; }
  .nav__link { display: inline-flex; }
  .hero {
    align-items: center;
    padding: calc(var(--nav-h) + 3rem) 0 4rem;
  }
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .hero--centered .hero__actions {
    max-width: none;
    justify-content: center;
  }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .section { padding: 5rem 0; }
  .footer { padding-bottom: 2.5rem; }
  .footer__inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .mobile-dock { display: none; }
}

/* Desktop (>= 1024px) */
@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
  }
  .hero--centered .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    max-width: 52rem;
  }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .section { padding: 6rem 0; }
}

/* Accessibility media overrides (mobile-native + apple-design) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar, .mobile-dock {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--nav-solid);
  }
}

@media (prefers-contrast: more) {
  .topbar, .mobile-dock {
    background: var(--nav-solid);
    border-color: var(--ink);
  }
  .card, .quote-card, .hero__proof {
    border-color: var(--ink);
  }
}
