/* ============================================================
   APEX STRENGTH CLUB — design tokens + site styles
   Palette/type per client brief. No hardcoded colors below —
   everything reaches for the tokens in :root.
   ============================================================ */

:root {
  /* Brand colors (from build brief) */
  --bg: #050505;
  --surface: #111111;
  --panel: #1a1a1a;
  --accent: #c89a3a;
  --accent-glow: #e0b65a;
  --text: #f5f2ea;
  --muted: #a7a7a7;

  /* Derived */
  --border: rgba(200, 154, 58, 0.15);
  --border-s: rgba(200, 154, 58, 0.35);
  --shadow-glow: 0 0 40px rgba(200, 154, 58, 0.18);
  --overlay-strong: rgba(5, 5, 5, 0.78);
  --overlay-soft: rgba(5, 5, 5, 0.45);

  /* Radii */
  --r: 6px;
  --rl: 12px;
  --rxl: 20px;

  /* Type */
  --fd: 'Oswald', sans-serif;
  --fb: 'Inter', sans-serif;

  /* Layout */
  --container: 1240px;
  --nav-h: 88px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* scroll-reveal transforms shouldn't introduce a horizontal scrollbar */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* Visible focus state everywhere, never silently removed */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-glow);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--accent); color: #14100a;
  padding: 12px 20px; border-radius: 0 0 var(--r) 0;
  font-family: var(--fd); text-transform: uppercase; letter-spacing: 0.05em;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--fd);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 700; letter-spacing: 0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
p { margin: 0 0 1em; color: var(--muted); }
p.lead { font-size: 1.2rem; color: var(--text); }
strong { color: var(--text); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fd);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 1.1em;
}
.kicker::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--accent);
  display: inline-block;
}

.text-gold { color: var(--accent); }
.text-muted { color: var(--muted); }

/* Understated secondary/exploratory link — reserve solid buttons for the one
   primary action per section, this for "learn more"-weight links. */
.link-minimal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fd);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  color: var(--accent);
  border-bottom: 1px solid var(--border-s);
  padding-bottom: 5px;
  transition: gap 0.25s ease, border-color 0.25s ease;
}
.link-minimal:hover { gap: 13px; border-color: var(--accent); }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: 100px 0; }
.section-alt { background: var(--surface); }
.section-header { max-width: 680px; margin-bottom: 56px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-s), transparent);
  border: none;
  margin: 0;
}

/* Peak motif divider — nods to the logo's mountain mark without repeating it literally */
.peak-divider {
  display: flex;
  justify-content: center;
  padding: 0;
  background: var(--bg);
}
.peak-divider svg { display: block; width: 64px; height: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--fd);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 17px 34px;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-glow), var(--accent));
  color: #14100a;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-s);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.btn-sm { padding: 12px 22px; font-size: 0.75rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 32px;
  background: linear-gradient(to bottom, rgba(5,5,5,0.9), rgba(5,5,5,0));
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-nav.is-scrolled {
  background: rgba(5, 5, 5, 0.94);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(8px);
}
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo img { height: 46px; width: 46px; object-fit: contain; }
.nav-logo-text {
  font-family: var(--fd);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1rem;
  line-height: 1.1;
}
.nav-logo-text span { display: block; font-size: 0.6rem; color: var(--accent); letter-spacing: 0.3em; margin-top: 2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0 auto;
}
.nav-links a {
  font-family: var(--fd);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--accent);
  transition: right 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }
.nav-links a.is-active { color: var(--accent); }

.nav-dropdown { position: relative; list-style: none; }
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 6px;
  background: transparent; border: none; color: var(--text);
  font-family: var(--fd);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  padding: 6px 0;
}
.nav-dropdown-toggle .caret { font-size: 0.6rem; color: var(--accent); transition: transform 0.2s ease; }
.nav-dropdown-toggle.is-active { color: var(--accent); }
.nav-dropdown:hover .nav-dropdown-toggle .caret,
.nav-dropdown.is-open .nav-dropdown-toggle .caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 160px;
  background: rgba(5, 5, 5, 0.98);
  border: 1px solid var(--border-s);
  border-radius: var(--r);
  padding: 8px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 20;
}
/* Invisible hover bridge: without this, moving the cursor straight down from
   "More" into the gap above the menu leaves both elements and closes it
   before the click ever lands. */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px; left: 0; right: 0; height: 14px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  white-space: nowrap;
  font-family: var(--fd);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--text);
  border-radius: var(--r);
}
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover, .nav-dropdown-menu a.is-active { color: var(--accent); background: rgba(200, 154, 58, 0.08); }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border-s);
  border-radius: var(--r);
}
.nav-toggle span {
  display: block; height: 2px; width: 20px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg) center/cover no-repeat;
}
.hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none; /* purely decorative background video — never intercept taps or show as "interactive" */
}
/* Belt-and-suspenders: some mobile browsers overlay a native play button on
   any <video>, autoplaying or not. These are background decoration, not a
   media player, so suppress every vendor's version of that control. */
.hero-media::-webkit-media-controls,
.hero-media::-webkit-media-controls-start-playback-button,
.hero-media::-webkit-media-controls-play-button {
  display: none !important;
  -webkit-appearance: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--overlay-strong) 10%, rgba(5,5,5,0.35) 55%, rgba(5,5,5,0.55) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 180px 0 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-s);
  background: rgba(5,5,5,0.5);
  color: var(--accent);
  font-family: var(--fd);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  padding: 9px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero-badge::before { content: '●'; font-size: 0.5rem; color: var(--accent-glow); }
.hero h1 { max-width: 900px; }
.hero .lead { max-width: 560px; font-size: 1.15rem; }
.hero-trustbar {
  display: flex; flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.hero-trustbar li {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--fd);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--text);
}
.hero-trustbar li::before { content: '◆'; color: var(--accent); font-size: 0.6rem; }

.page-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg) center/cover no-repeat;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--overlay-strong) 10%, rgba(5,5,5,0.45) 70%, rgba(5,5,5,0.65) 100%);
  z-index: 1;
}
.page-hero-media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.page-hero-content { position: relative; z-index: 2; padding: 170px 0 64px; }
.breadcrumb {
  font-family: var(--fd); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.75rem; color: var(--muted); margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Founding 50 offer band ---------- */
.offer-band {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.offer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.offer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 34px 0;
}
.offer-stat {
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 22px 16px;
  text-align: center;
  background: rgba(200,154,58,0.03);
}
.offer-stat .num {
  font-family: var(--fd);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}
.offer-stat .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.offer-card {
  background: linear-gradient(160deg, var(--surface), var(--bg));
  border: 1px solid var(--border-s);
  border-radius: var(--rxl);
  padding: 44px 38px;
  box-shadow: var(--shadow-glow);
}
.offer-price {
  font-family: var(--fd);
  font-size: clamp(3rem, 7vw, 4.4rem);
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.offer-price span { font-size: 1.2rem; color: var(--muted); text-transform: none; letter-spacing: 0; }
.offer-note { font-size: 0.85rem; color: var(--muted); margin: 18px 0 28px; }
.offer-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.offer-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--text); }
.offer-list li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ---------- Membership pricing cards ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
  padding-top: 14px; /* room for the badge to float above a card without clipping */
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--surface), var(--bg));
  border: 1px solid var(--border-s);
  border-radius: var(--rxl);
  padding: 40px 30px;
  text-align: center;
  transform: scale(1);
  transition: transform 0.35s cubic-bezier(0.16, 0.8, 0.24, 1),
              opacity 0.35s ease, border-color 0.25s ease, box-shadow 0.35s ease;
}
/* Hovering one card grows it and gently recedes its siblings — a focus effect,
   not just a flat hover state. */
.pricing-grid:hover .pricing-card { transform: scale(0.96); opacity: 0.7; }
.pricing-grid .pricing-card:hover {
  transform: scale(1.06);
  opacity: 1;
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  z-index: 2;
}
.pricing-card-badge {
  position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-glow), var(--accent));
  color: #14100a;
  font-family: var(--fd);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.pricing-card-price {
  font-family: var(--fd);
  font-size: clamp(2.2rem, 4vw, 2.6rem);
  color: var(--accent);
  line-height: 1;
  margin: 14px 0 2px;
}
.pricing-card-price span { font-size: 0.9rem; color: var(--muted); text-transform: none; letter-spacing: 0; }
.pricing-card-note { font-size: 0.8rem; color: var(--muted); margin-bottom: 22px; }
.pricing-card .offer-list { flex: 1; text-align: left; }
.pricing-card .btn { width: 100%; margin-top: 24px; }

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .pricing-grid:hover .pricing-card { transform: scale(1); opacity: 1; }
  .pricing-grid .pricing-card:hover { transform: scale(1); }
}

/* ---------- Amenities / feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 32px 26px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: var(--border-s); transform: translateY(-4px); }
.icon-badge {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border-s);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.icon-badge svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.card p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Merchandise / product cards ---------- */
.product-card { text-align: center; }
.product-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
  border: 1px dashed var(--border-s);
  background: linear-gradient(160deg, var(--panel), var(--surface));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.35s ease;
}
.product-card:hover .product-visual { border-color: var(--accent); box-shadow: var(--shadow-glow); }
.product-visual .icon-badge {
  margin-bottom: 0;
  transition: transform 0.35s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.product-card:hover .product-visual .icon-badge { transform: scale(1.1); }
.product-visual-label {
  font-family: var(--fd);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--muted);
}
.product-tag { font-size: 0.82rem; color: var(--muted); margin-top: 6px; margin-bottom: 0; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--rl);
  cursor: pointer;
  grid-column: span 2;
}
button.gallery-item {
  display: block; width: 100%; margin: 0; padding: 0; border: 0;
  background: none; text-align: left; font: inherit; color: inherit;
}
.gallery-item.wide { grid-column: span 3; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,5,5,0.75), transparent 55%);
}
.gallery-caption {
  position: absolute; left: 18px; bottom: 14px; z-index: 2;
  font-family: var(--fd); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.82rem; color: var(--text);
}

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(5,5,5,0.94);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: var(--r); }
.lightbox-close {
  position: absolute; top: 26px; right: 32px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-s); background: rgba(5,5,5,0.6); color: var(--text);
  font-size: 1.3rem; display: flex; align-items: center; justify-content: center;
}
.lightbox-caption {
  position: absolute; bottom: 30px; left: 0; right: 0; text-align: center;
  color: var(--muted); font-size: 0.85rem;
}

/* ---------- Timeline ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; max-width: 720px; }
.timeline-item {
  position: relative;
  padding: 0 0 44px 44px;
  border-left: 1px solid var(--border-s);
}
.timeline-item:last-child { border-color: transparent; padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -7px; top: 0;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.timeline-item.is-active .timeline-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(200,154,58,0.2); }
.timeline-date {
  font-family: var(--fd); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.78rem; color: var(--accent); margin-bottom: 6px; display: block;
}
.timeline-item h3 { margin-bottom: 8px; }
.timeline-item p { margin-bottom: 0; }

/* ---------- About split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split img { border-radius: var(--rxl); }
.split.reverse .split-media { order: 2; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: transparent; border: none; color: var(--text);
  text-align: left;
  padding: 26px 4px;
  font-family: var(--fd); text-transform: uppercase; letter-spacing: 0.03em;
  font-size: 1rem;
}
.faq-question .icon {
  flex-shrink: 0; width: 24px; height: 24px;
  border: 1px solid var(--border-s); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 0.9rem;
  transition: transform 0.25s ease;
}
.faq-item.is-open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner { padding: 0 4px 26px; max-width: 680px; }
.faq-item.is-open .faq-answer { max-height: 240px; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ff {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 15px 16px;
  color: var(--text);
  font-size: 1rem; /* keep >=16px so iOS Safari doesn't zoom on focus */
}
.ff::placeholder { color: var(--muted); }
.ff:focus { border-color: var(--accent); }
textarea.ff { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.8rem; color: var(--muted); }

/* ---------- Map ---------- */
.map-section { border-radius: var(--rxl); overflow: hidden; border: 1px solid var(--border); }
.map-section iframe { display: block; filter: grayscale(0.3) invert(0.92) contrast(0.9); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 80px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.footer-brand img { height: 44px; width: 44px; object-fit: contain; margin-bottom: 18px; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; }
.footer-map {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  max-width: 280px;
}
.footer-map iframe { display: block; filter: grayscale(0.3) invert(0.92) contrast(0.9); }
.footer-col h4 {
  font-size: 0.8rem; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 18px;
}
.footer-col p, .footer-col a { font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; display: block; }
.footer-col a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 12px; margin-top: 6px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-s);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 24px 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-credit a { color: var(--muted); }
.footer-credit a:hover { color: var(--accent); }

.footer-disclaimers {
  padding: 22px 0 32px;
  border-top: 1px solid var(--border);
  font-size: 0.74rem;
  color: var(--muted);
  display: flex; flex-direction: column; gap: 8px;
}

/* ---------- Mobile sticky CTA ---------- */
.mobile-sticky-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
  background: rgba(5,5,5,0.96);
  border-top: 1px solid var(--border-s);
  backdrop-filter: blur(10px);
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  gap: 10px;
}
.mobile-sticky-cta .msc-claim {
  flex: 1;
  text-align: center;
  background: linear-gradient(135deg, var(--accent-glow), var(--accent));
  color: #14100a;
  font-family: var(--fd); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.82rem; font-weight: 600;
  padding: 14px 10px;
  border-radius: var(--r);
}
.mobile-sticky-cta .msc-secondary {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 48px;
  border: 1px solid var(--border-s);
  border-radius: var(--r);
  color: var(--text);
}

/* ---------- Prose pages (privacy / 404) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1.2em; }
.prose li { color: var(--muted); margin-bottom: 0.4em; }

.error-page {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
}
.error-page .code {
  font-family: var(--fd); color: var(--accent);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
  margin-bottom: 10px;
}

/* Badge (used for "coming soon" / status chips) */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-s);
  border-radius: 999px;
  padding: 6px 16px;
  font-family: var(--fd); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.7rem; color: var(--accent);
}

/* ============================================================
   Responsive — 1024 / 768 / 480 breakpoints, used consistently
   ============================================================ */
@media (max-width: 1024px) {
  .section { padding: 72px 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .offer-grid { grid-template-columns: 1fr; gap: 40px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
  .gallery-item.wide { grid-column: span 2; }
}

@media (max-width: 768px) {
  .container { padding: 0 22px; }
  .site-nav { padding: 0 16px; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(5,5,5,0.98);
    border-top: 1px solid var(--border);
    padding: 0 22px;
    gap: 4px;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .nav-links.is-open { max-height: 640px; padding: 10px 22px 26px; }
  .nav-links a { display: block; width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }
  /* .nav-links is position:fixed on mobile (out of flex flow), so with the CTA
     hidden, an empty .nav-actions box was still claiming the flex-end slot and
     stranding the toggle away from the true right edge. Drop it from flow too. */
  .nav-actions { display: none; }

  .nav-dropdown-toggle {
    width: 100%; justify-content: space-between;
    padding: 14px 0; border-bottom: 1px solid var(--border);
  }
  .nav-dropdown-menu {
    /* Plain display toggle on mobile — animating max-height here fights the
       outer nav-links flex column's own max-height transition and under-reports
       the container's height, clipping these links out of view. */
    display: none;
    position: static; transform: none;
    opacity: 1; visibility: visible; pointer-events: auto;
    background: transparent; border: none; z-index: auto;
    padding: 0 0 0 16px;
  }
  .nav-dropdown.is-open .nav-dropdown-menu { display: block; }
  /* Same specificity as the desktop :hover/.is-open transform rule, so it must be
     restated here (not just in the base .nav-dropdown-menu reset above) to win. */
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown.is-open .nav-dropdown-menu { transform: none; }
  .nav-dropdown-menu a { padding: 12px 0; border-bottom: 1px solid var(--border); }

  .section { padding: 56px 0; }
  .grid, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .offer-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item, .gallery-item.wide { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .mobile-sticky-cta { display: flex; }
  body { padding-bottom: 74px; } /* clear the sticky bar */
  .hero-content, .page-hero-content { padding-top: 150px; }
}

@media (max-width: 480px) {
  .section { padding: 40px 0; }
  .hero-trustbar { gap: 10px 18px; }
  .offer-card { padding: 32px 24px; }
  .btn { width: 100%; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-item img, .card, .nav-links, .faq-answer, .product-visual, .product-visual .icon-badge { transition: none; }
}

/* ============================================================
   Scroll-reveal — elements pop in from the sides as they enter
   the viewport (see initScrollReveal in script.js). Purely a
   presentation layer: markup/content is unaffected either way.
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.16, 0.8, 0.24, 1),
              transform 0.75s cubic-bezier(0.16, 0.8, 0.24, 1);
  will-change: transform, opacity;
}
[data-reveal="left"] { transform: translateX(-64px); }
[data-reveal="right"] { transform: translateX(64px); }
[data-reveal="up"] { transform: translateY(40px); }
[data-reveal].is-revealed { opacity: 1; transform: translateX(0) translateY(0); }

[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.4s; }
[data-reveal-delay="6"] { transition-delay: 0.48s; }

@media (max-width: 768px) {
  /* Shorter throw on mobile — narrower viewports make a 64px slide feel closer to a shove. */
  [data-reveal="left"] { transform: translateX(-32px); }
  [data-reveal="right"] { transform: translateX(32px); }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
