/* ============================================================
   USPP — US Precision Peptides
   Mobile-first. Dark. Cinematic.
   Fonts: Syne (display) + Figtree (body)
   ============================================================ */

@font-face {
  font-family: 'CaeciliaSans';
  src: url('../pmncaeciliasans-head-heavyita.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ── Variables ────────────────────────────────────────────── */
:root {
  --black:  #000000;
  --navy:   #0B2A5A;
  --blue:   #1E73BE;
  --cyan:   #4FA3E3;
  --red:    #D62828;
  --white:  #FFFFFF;
  --gray:   #E9EEF3;
  --muted:  #6B7A8D;
  --border: rgba(78,163,227,0.18);

  --font-display: 'Syne', sans-serif;
  --font-body:    'Figtree', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea {
  font-family: var(--font-body);
  font-size: inherit;
}

/* ── Grain overlay ────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

/* ── Intro Loader ─────────────────────────────────────────── */
#intro {
  position: fixed;
  inset: 0;
  background: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  gap: 22px;
  z-index: 9000;
  transition: opacity 0.2s ease;
  overflow: hidden;
}
#intro.fade-out { opacity: 0; pointer-events: none; }

#intro-video {
  width: min(300px, 80vw);
  height: auto;
  display: block;
  flex-shrink: 0;
}

#intro-loader {
  width: min(300px, 80vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* ── Loading bar ──────────────────────────────────────────── */
#intro-bar-track {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
}

#intro-bar-fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  /* Full red→white→blue gradient revealed left-to-right */
  background: linear-gradient(
    to right,
    #D62828 0%,
    #c0392b 12%,
    #e8e8e8 42%,
    #ffffff 50%,
    #4FA3E3 72%,
    #1E73BE 100%
  );
  clip-path: inset(0 100% 0 0);
  animation: barReveal 5s linear forwards;
  /* Metallic glow — drop-shadow works through clip-path */
  filter:
    drop-shadow(0 0 3px rgba(255,255,255,0.95))
    drop-shadow(0 0 8px rgba(78,163,227,0.7))
    drop-shadow(0 0 16px rgba(30,115,190,0.45));
}
@keyframes barReveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0%   0 0); }
}

/* ── Loading text ─────────────────────────────────────────── */
#intro-loading-text {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  animation: loadingPulse 1.5s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes loadingPulse {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 1;    }
}

/* ── Skip Intro ──────────────────────────────────────────── */
.skip-intro {
  background: transparent;
  border: 1px solid rgba(78, 163, 227, 0.3);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 22px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-top: 24px;
  flex-shrink: 0;
}
.skip-intro:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ── Mobile adjustments ───────────────────────────────────── */
@media (max-width: 767px) {
  #intro-video  { width: min(300px, 88vw); }
  #intro-loader { width: min(300px, 88vw); }
}

/* ── Main (hidden until intro done) ──────────────────────── */
#main {
  opacity: 0;
  transition: opacity 0.9s var(--ease-out) 0.2s;
}
#main.visible { opacity: 1; }

/* ── Nav ──────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
#nav.visible { opacity: 1; transform: translateY(0); }
#nav-logo { height: 32px; width: auto; }

/* Hamburger button — mobile only */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 810;
  margin-right: auto;
}
.hamburger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Cart icon button */
@keyframes nav-cart-pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.nav-cart--pulse { animation: nav-cart-pulse 280ms ease both; }
.nav-cart {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--cyan);
  position: relative;
  flex-shrink: 0;
}
.nav-cart__icon {
  width: 24px;
  height: 32px;
  display: block;
  stroke: var(--cyan);
}
.nav-cart__count {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cyan);
  position: absolute;
  top: 54%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  line-height: 1;
}

/* Nav links — mobile: fullscreen overlay */
#nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 805;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}
#nav-links.mobile-open {
  opacity: 1;
  pointer-events: auto;
}
#nav-links a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
  padding: 8px 16px;
}
#nav-links a:hover { color: var(--cyan); }
#nav-links a.active { color: var(--cyan); }

@media (min-width: 768px) {
  #nav { padding: 24px 48px; justify-content: space-between; }
  #nav-logo { height: 38px; }
  .nav-hamburger { display: none; }
  #nav-links {
    position: static;
    flex-direction: row;
    gap: 32px;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    pointer-events: auto;
  }
  #nav-links a {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.7);
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
  }
  #nav-links a:hover { color: var(--cyan); }
  #nav-links a.active {
    color: var(--cyan);
    border-bottom-color: var(--cyan);
  }
  /* hairline separator before cart icon on desktop */
  .nav-cart {
    border-left: 1px solid rgba(255,255,255,0.15);
    margin-left: 8px;
    padding-left: 16px;
  }
}
@media (min-width: 1024px) {
  #nav { padding: 28px 80px; }
}

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  position: relative;
  width: 100%;
  height: 100vh; /* fallback */
  height: 100dvh; /* D-V3-18: iOS Safari URL-bar safe */
  overflow: hidden;
  background: #000;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  filter: brightness(0.75) contrast(1.3);
  display: none;
}
/* Mobile: autoplay video fallback — shifted down to match canvas offset */
#hero-video-mobile {
  position: absolute;
  top: 43vh;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 57vh;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.75) contrast(1.3);
  display: block;
}
@media (min-width: 1024px) {
  #hero-video-mobile { display: none; }
  #hero-canvas { display: block; }
}

/* fade at bottom so hero bleeds into next section */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent, var(--black));
  pointer-events: none;
}

/* Overlay — headline/sub centered */
#hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 8vh 24px 0;
  z-index: 10;
}
#hero-logo {
  width: auto;
  max-width: min(570px, 60vw);
  max-height: 210px;
  object-fit: contain;
  background: #000;
  margin-bottom: 20px;
  opacity: 0; /* GSAP owns initial state */
}
.hero-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(12px);
}
.hero-headline {
  font-family: 'CaeciliaSans', var(--font-display);
  font-size: clamp(2.8rem, 9vw, 7rem);
  font-weight: 900;
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 2px 40px rgba(0,0,0,0.8);
  margin-bottom: 24px;
  /* GSAP owns initial state */
}
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2.2vw, 1.05rem);
  font-weight: 400;
  color: rgba(233,238,243,0.75);
  max-width: 480px;
  line-height: 1.7;
  /* GSAP owns initial state */
}
.scroll-hint {
  position: absolute;
  bottom: 36px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 20px;
  background: rgba(6, 13, 26, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(78, 163, 227, 0.28);
  border-radius: 999px;
  z-index: 20;
  cursor: default;
  opacity: 0;
}
@media (min-width: 768px) {
  .scroll-hint { bottom: 48px; right: 48px; }
}
.scroll-hint-label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
}
.scroll-hint-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(78,163,227,0.5);
  background: rgba(78,163,227,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  animation: arrowBounce 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0);   opacity: 0.8; }
  50%       { transform: translateY(3px); opacity: 1;   }
}

/* ── Section Shared ───────────────────────────────────────── */
.section {
  padding: 80px 24px;
  position: relative;
}
.section-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  display: block;
}
.section-heading {
  font-family: 'CaeciliaSans', var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--white);
}

@media (min-width: 768px) { .section { padding: 100px 48px; } }
@media (min-width: 1024px) { .section { padding: 120px 80px; } }
@media (min-width: 1280px) { .section { padding: 140px 120px; } }

/* ── Centered section headers ─────────────────────────────── */
#pillars .pillars-header,
#products .products-header,
#special-order .products-header,
#contact .section-heading,
#contact .contact-sub {
  text-align: center;
}
#contact .contact-inner {
  max-width: 760px;
  margin: 0 auto;
}

/* ── Pillars ──────────────────────────────────────────────── */
#pillars {
  border-top: 1px solid var(--navy);
}
.pillars-header {
  margin-bottom: 60px;
}
@media (min-width: 768px) {
  #pillars-heading br { display: none; }
  .hero-headline br { display: none; }
}
.pillars-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.pillar {
  text-align: center;
}
.pillar-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.pillar-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.pillar-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 280px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 32px;
  }
}
@media (min-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0 24px;
  }
  .pillar + .pillar {
    border-left: 1px solid var(--border);
    padding-left: 24px;
  }
}

/* ── In-Stock Products ────────────────────────────────────── */
#products {
  border-top: 1px solid var(--navy);
}
.products-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 48px;
}
.products-heading-sub {
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.5em;
}
.products-sub {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.06em;
  font-family: var(--font-display);
  text-transform: uppercase;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

/* Featured tile — L-Carnitine */
.product-tile.featured {
  grid-column: 1 / -1;
  background: var(--blue);
  padding: 28px 24px;
  position: relative;
  cursor: pointer;
  transition: background 0.25s;
}
.product-tile.featured::before {
  content: 'FEATURED';
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}
.product-tile.featured:hover,
.product-tile.featured:focus { background: #1a65a8; }
.product-tile.featured .tile-name {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 800;
}
.product-tile.featured .tile-dose { color: rgba(255,255,255,0.7); }

/* Standard tiles */
.product-tile {
  background: #080808;
  border: 1px solid #111;
  padding: 22px 18px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, background 0.2s, z-index 0s;
}
.product-tile:hover,
.product-tile:focus-within { z-index: 20; }
.product-tile::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.product-tile:hover,
.product-tile:focus { border-color: var(--blue); background: #0a0f18; }
.product-tile:hover::after,
.product-tile:focus::after { transform: scaleX(1); }

.tile-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 6px;
}
.tile-dose {
  font-size: 0.78rem;
  color: var(--cyan);
  font-weight: 500;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}
.tile-info-icon {
  position: absolute;
  bottom: 14px; right: 14px;
  width: 22px; height: 22px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s;
}
.product-tile:hover .tile-info-icon { border-color: var(--cyan); color: var(--cyan); }
.tile-price {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cyan, #4FA3E3);
  pointer-events: none;
}

@media (max-width: 1023px) {
  .tile-info-icon {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(79, 163, 227, 0.08);
    animation: iconPulse 2.5s ease-in-out infinite;
  }
}
@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 163, 227, 0); }
  50% { box-shadow: 0 0 0 4px rgba(79, 163, 227, 0.15); }
}

@media (min-width: 768px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 2px; }
  .product-tile.featured { grid-column: span 2; }
}
@media (min-width: 1200px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  /* Featured tiles span 2 of 4 columns each so the two featured tiles
     (L-Carnitine + Bacteriostatic Water) sit side-by-side on the first row. */
  .product-tile.featured { grid-column: span 2; }
}

/* ── Product Filters ──────────────────────────────────────── */
.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  justify-content: center;
}
.filter-pill {
  background: transparent;
  border: 1px solid rgba(78,163,227,0.2);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-pill:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.filter-pill.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* ── Tile Category Label ─────────────────────────────────── */
.tile-category {
  position: absolute;
  top: 10px; left: 14px;
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.6;
}
.product-tile.featured .tile-category { color: rgba(255,255,255,0.45); }

/* ── Tile filter hide/show ───────────────────────────────── */
.product-tile.filter-hidden {
  display: none;
}

/* ── Desktop Info Card (hover) ────────────────────────────── */
@media (max-width: 1023px) {
  .info-card { display: none !important; }
}
.info-card {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 420px;
  background: #060d1a;
  border: 1px solid var(--border);
  border-top: 2px solid var(--cyan);
  padding: 20px;
  z-index: 500;
  pointer-events: none;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  /* clip-path entrance — D-V3 sheet-off-document motion */
  clip-path: inset(0 0 100% 0);
  transition: clip-path 220ms ease-out;
}
.info-card.visible {
  clip-path: inset(0);
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .info-card { transition: none; }
}
.product-tile:hover .info-card,
.product-tile:focus-within .info-card {
  clip-path: inset(0);
  pointer-events: auto;
}
/* Request Info buttons (desktop cards + mobile sheet) */
.info-card-inquire,
.sheet-inquire {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-bottom: 1px solid rgba(78,163,227,0.35);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.info-card-inquire:hover,
.sheet-inquire:hover {
  border-color: var(--cyan);
  background: rgba(79, 163, 227, 0.06);
}
.sheet-inquire {
  margin-top: 20px;
  padding: 14px 16px;
  min-height: 44px;
}

.info-card-name {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}
.info-card-text {
  font-size: 0.82rem;
  line-height: 1.68;
  color: rgba(233,238,243,0.8);
}

/* ── Mobile Info Sheet ────────────────────────────────────── */
#info-sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s;
}
#info-sheet-overlay.active { opacity: 1; }

#info-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #060d1a;
  border-top: 2px solid var(--cyan);
  border-radius: 16px 16px 0 0;
  padding: 28px 24px 40px;
  max-height: 65vh;
  overflow-y: auto;
  z-index: 1001;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease-out);
}
#info-sheet.active { transform: translateY(0); }

#info-sheet-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}
#info-sheet-close:hover { color: var(--white); }
#info-sheet-handle {
  width: 36px; height: 3px;
  background: var(--muted);
  border-radius: 2px;
  margin: 0 auto 20px;
  opacity: 0.4;
}
#info-sheet-product-name {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 14px;
}
#info-sheet-text {
  font-size: 0.9rem;
  line-height: 1.72;
  color: rgba(233,238,243,0.82);
}
#info-sheet-text ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0;
}
#info-sheet-text li {
  margin-bottom: 0.45rem;
}
#info-sheet-text li:last-child {
  margin-bottom: 0;
}

/* ── Reveal renderer (C3: spec strip + body + Add-to-Vial) ── */

/* Spec strip — 4-column, hairline above/below */
.reveal-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(78,163,227,0.18);
  border-bottom: 1px solid rgba(78,163,227,0.18);
}
.reveal-specs > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.reveal-specs span {
  font-family: 'Syne', sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.reveal-specs strong {
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #FFFFFF;
}

/* Body — image + text side by side */
.reveal-body {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
}
.reveal-img {
  background: #0a0f18;
  border: 1px solid rgba(78,163,227,0.18);
  height: 120px;
  display: grid;
  place-items: center;
  padding: 12px;
}
.reveal-img img {
  max-width: 100%;
  max-height: 100%;
}
.reveal-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  margin-bottom: 4px;
}
.reveal-price {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--cyan, #4FA3E3);
  margin-bottom: 8px;
}
.reveal-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
}
.reveal-bullets li {
  padding: 2px 0;
}

/* Actions row */
.reveal-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.reveal-add {
  flex: 1;
  min-height: 44px;
  padding: 10px 16px;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid var(--cyan, #4FA3E3);
  background: var(--cyan, #4FA3E3);
  color: #060d1a;
  transition: background 200ms;
}
.reveal-add.is-flashed {
  background: #1f7a3e;
  border-color: #1f7a3e;
  color: #FFFFFF;
}

/* Mobile sheet overrides */
#info-sheet {
  max-height: 78dvh;
  overscroll-behavior: contain;
}
#info-sheet .reveal-actions {
  position: sticky;
  bottom: 0;
  padding: 12px 0 max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, #060d1a 70%, transparent);
}
#info-sheet .reveal-add {
  min-height: 52px;
}

/* ── Special Order ────────────────────────────────────────── */
#special-order {
  border-top: 1px solid var(--navy);
}
.so-heading-block {
  text-align: center;
  margin-bottom: 36px;
}
/* Search */
.so-search-wrap {
  max-width: 420px;
  margin: 0 auto 32px;
  padding-top: 40px;
}
.so-search {
  width: 100%;
  background: #080808;
  border: 1px solid #1a1a1a;
  border-bottom: 1px solid rgba(78,163,227,0.25);
  color: var(--white);
  padding: 14px 18px;
  font-size: 0.88rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}
.so-search::placeholder { color: rgba(107,122,141,0.7); }
.so-search:focus { border-color: var(--cyan); background: #060d1a; }
.so-search-count {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
  min-height: 1.2em;
}
.so-collapse-wrap {
  text-align: center;
  padding: 32px 0 8px;
}
.so-collapse-btn {
  background: transparent;
  border: 1px solid rgba(78,163,227,0.25);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 32px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.so-collapse-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* The pill toggle button */
.so-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 16px 40px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 28px;
  box-shadow: 0 4px 24px rgba(30,115,190,0.35), 0 1px 4px rgba(0,0,0,0.4);
  transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
}
.so-toggle-btn:hover {
  background: #1a65a8;
  box-shadow: 0 6px 32px rgba(30,115,190,0.5), 0 1px 4px rgba(0,0,0,0.5);
  transform: translateY(-1px);
}
.so-toggle-btn:active { transform: translateY(0); }
.so-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.35s var(--ease-out);
  flex-shrink: 0;
}
.so-toggle-btn.open .so-toggle-icon { transform: rotate(45deg); }

.so-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease-out);
}
.so-body.open { max-height: 4000px; }
.so-inner { padding-top: 40px; }

.so-category {
  margin-bottom: 36px;
}
.so-category-title {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 0;
  text-align: left;
  transition: color 0.2s;
}
.so-category-title:hover { color: var(--cyan); }
.so-category-title > span:first-child::after {
  content: '';
  display: inline-block;
  width: 0;
}
.so-category-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.so-cat-chevron {
  font-size: 1rem;
  color: var(--muted);
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
  line-height: 1;
}
.so-category-title.open .so-cat-chevron {
  transform: rotate(45deg);
}
.so-products-list {
  font-size: 0.85rem;
  color: rgba(233,238,243,0.65);
  font-family: var(--font-body);
  font-weight: 400;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.so-products-list.open {
  max-height: 2000px;
}
.so-product.hidden { display: none; }
.so-category.hidden { display: none; }

/* Mobile: one product per line */
.so-product {
  display: block;
  padding: 4px 0;
  line-height: 1.5;
}
.so-product strong {
  color: rgba(233,238,243,0.9);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
}
.so-product strong:hover {
  color: var(--cyan);
}
.so-product em {
  font-style: italic;
  color: var(--cyan);
  opacity: 0.85;
}
.so-dose {
  cursor: pointer;
  transition: opacity 0.15s, color 0.15s;
  border-bottom: 1px solid transparent;
}
.so-dose:hover {
  opacity: 1;
  color: var(--white);
  border-bottom-color: var(--cyan);
}

/* Desktop: inline with dot separators */
@media (min-width: 768px) {
  .so-product {
    display: inline;
    padding: 0;
  }
  .so-product::after {
    content: ' · ';
    color: var(--muted);
    font-style: normal;
    font-weight: 400;
  }
  .so-product:last-child::after {
    content: '';
  }
}

/* ── Contact ──────────────────────────────────────────────── */
#contact {
  border-top: 1px solid var(--navy);
}
.contact-inner {
  max-width: 640px;
}
.contact-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 16px;
  margin-bottom: 48px;
  line-height: 1.6;
}

/* Contact form grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.form-field {
  width: 100%;
  background: #080808;
  border: 1px solid #1a1a1a;
  border-bottom: 1px solid rgba(78,163,227,0.25);
  color: var(--white);
  padding: 16px 18px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}
.form-field::placeholder { color: rgba(107,122,141,0.7); }
.form-field:focus {
  border-color: var(--cyan);
  background: #060d1a;
}
select.form-field {
  cursor: pointer;
  color: rgba(107,122,141,0.7);
}
select.form-field.has-value { color: var(--white); }
select.form-field option { background: #0a0a0a; color: var(--white); }
textarea.form-field {
  resize: vertical;
  min-height: 140px;
}
/* ── Inquiry product selections ──────────────────────────── */
.inquiry-selections {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.inquiry-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79, 163, 227, 0.08);
  border: 1px solid rgba(78,163,227,0.25);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.inquiry-chip-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}
.inquiry-chip-remove:hover { color: var(--red); }

.form-field-other { margin-top: 8px; }
.form-field.field-error {
  border-color: var(--red);
  border-bottom-color: var(--red);
}
.form-error-msg {
  display: block;
  font-size: 0.75rem;
  color: var(--red);
  margin-top: 6px;
  font-family: var(--font-body);
}
.form-row-span { grid-column: 1 / -1; }

.form-submit-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 4px;
}
.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 18px 44px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(30,115,190,0.35), 0 1px 4px rgba(0,0,0,0.4);
  transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
}
.form-submit:hover {
  background: #1a65a8;
  box-shadow: 0 6px 32px rgba(30,115,190,0.5);
  transform: translateY(-1px);
}
.form-submit:active { transform: translateY(0); }
.form-submit-arrow { font-size: 1.1rem; transition: transform 0.2s; }
.form-submit:hover .form-submit-arrow { transform: translateX(4px); }

/* Contact success confirmation */
.contact-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.contact-success.visible {
  display: flex;
  opacity: 1;
}

.success-checkmark { margin-bottom: 28px; }
.success-svg { width: 72px; height: 72px; }
.success-circle {
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: circle-draw 0.6s ease-out 0.1s forwards;
}
.success-check {
  stroke: var(--cyan);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: check-draw 0.4s ease-out 0.5s forwards;
}
@keyframes circle-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes check-draw {
  to { stroke-dashoffset: 0; }
}

.success-heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 10px;
}
.success-sub {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.6;
}
.success-reset {
  background: none;
  border: 1px solid var(--navy);
  border-bottom: 1px solid rgba(78,163,227,0.25);
  color: var(--cyan);
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.success-reset:hover {
  border-color: var(--cyan);
  color: var(--white);
}

@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Footer ───────────────────────────────────────────────── */
#footer {
  background: #000;
  border-top: 1px solid var(--navy);
  padding: 60px 24px 40px;
  text-align: center;
}
#footer-logo {
  height: 100px;
  width: auto;
  max-width: 85vw;
  margin: 0 auto 36px;
  opacity: 0.85;
  background: #000;
}
.footer-compliance {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 24px;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
}
.footer-nav a {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--cyan); }

.footer-research-badge {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 6px 16px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.footer-copy {
  font-size: 0.72rem;
  color: rgba(107,122,141,0.5);
  letter-spacing: 0.06em;
}

@media (min-width: 768px) { #footer { padding: 80px 48px 48px; } }

/* ── Marquee ──────────────────────────────────────────────── */
.marquee-section {
  overflow: hidden;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.marquee-track {
  display: flex;
  gap: 0;
  animation: marqueeScroll 28s linear infinite;
  white-space: nowrap;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(78,163,227,0.25);
  padding-right: 60px;
  flex-shrink: 0;
  line-height: 1;
}
.marquee-item.accent {
  color: var(--blue);
  -webkit-text-stroke: 0;
  opacity: 0.15;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Back to Top ─────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(6, 13, 26, 0.7);
  border: 1px solid rgba(78, 163, 227, 0.3);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, border-color 0.2s, background 0.2s;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--cyan);
  background: rgba(79, 163, 227, 0.1);
}

/* ── Trust Metrics ───────────────────────────────────────── */
.trust-metrics {
  padding: 60px 24px;
  border-bottom: 1px solid var(--border);
}
.trust-metrics-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 16px;
  max-width: 1000px;
  margin: 0 auto;
}
.trust-metric {
  text-align: center;
}
.trust-metric-number {
  display: block;
  font-family: 'CaeciliaSans', var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 900;
  font-style: italic;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.trust-metric-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 768px) {
  .trust-metrics { padding: 80px 48px; }
  .trust-metrics-inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .trust-metric {
    position: relative;
  }
  .trust-metric + .trust-metric::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: var(--border);
  }
}

/* ── Utility ──────────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Print Styles ────────────────────────────────────────── */
@media print {
  body { background: #fff; color: #000; }
  body::after { display: none; } /* grain overlay */
  #intro, #nav, #hero, .marquee-section, .trust-metrics,
  #pillars, #info-sheet-overlay,
  .back-to-top, .scroll-hint, .product-filters,
  .so-search-wrap, .so-collapse-wrap, .so-toggle-btn,
  .tile-info-icon, .info-card, .tile-category,
  #contact, #footer { display: none !important; }

  #products, #special-order { display: block !important; padding: 20px 0; border: none; }
  .products-header { text-align: left; }
  .section-heading { color: #000; font-size: 1.4rem; }
  .products-heading-sub { color: #333; }
  .products-sub { color: #666; }

  .products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .product-tile {
    background: #fff !important;
    border: 1px solid #ddd !important;
    padding: 12px !important;
    break-inside: avoid;
  }
  .product-tile.featured { background: #f0f4f8 !important; grid-column: span 3 !important; }
  .tile-name { color: #000; font-size: 0.85rem; }
  .tile-dose { color: #333; }
  .product-tile::after { display: none; }
  .product-tile.featured::before { color: #666; }

  .so-body { max-height: none !important; overflow: visible !important; display: block !important; }
  .so-body .so-inner { padding-top: 0; }
  .so-products-list { max-height: none !important; overflow: visible !important; display: block !important; }
  .so-category-title { color: #000; font-size: 0.7rem; pointer-events: none; }
  .so-category-title::after { background: #ccc; }
  .so-cat-chevron { display: none; }
  .so-product { display: block; color: #333; }
  .so-product strong { color: #000; }
  .so-product em { color: #555; }
  .so-product::after { display: none; }

  .so-heading-block { text-align: left; }
}

/* ── Reduced Motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  #intro-bar-fill { animation: none; clip-path: inset(0 0 0 0); }
  #intro-loading-text { animation: none; opacity: 1; }
  .scroll-hint-arrow { animation: none; }
  .tile-info-icon { animation: none !important; }
  #hero-logo,
  .hero-label,
  .hero-headline,
  .hero-sub,
  .scroll-hint,
  .contact-inner,
  #footer {
    opacity: 1 !important;
    transform: none !important;
  }
  *, *::before, *::after {
    transition-duration: 0.01s !important;
  }
}

/* ── Local Offer Card (geo-gated, Kyle/Buda residents) ──────
   Slides in bottom-right 2s after the JS confirms a local visitor.
   Reuses brand blue/cyan + Syne display font + Figtree body font
   for typographic consistency with the rest of the site.
   Left-edge cyan accent bar is a premium signifier — replaces the
   map-pin icon which read as coupon-y. */
.local-offer {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;                     /* above nav(800), below intro(9000) */
  width: min(92vw, 360px);
  padding: 26px 26px 22px 30px;     /* extra left padding clears the accent bar */
  background: linear-gradient(180deg, rgba(8, 17, 33, 0.94) 0%, rgba(4, 10, 22, 0.94) 100%);
  border: 1px solid rgba(78, 163, 227, 0.18);
  border-radius: 10px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(78, 163, 227, 0.06),
    inset 0 1px 0 rgba(78, 163, 227, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--white);
  transform: translateX(140%);      /* start off-screen to the right */
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.6s var(--ease-out),
    opacity 0.45s var(--ease-out);
  overflow: hidden;                 /* contains the accent bar */
}
.local-offer[aria-hidden="false"] {
  transform: translateX(0);         /* slide in from right → left */
  opacity: 1;
  pointer-events: auto;
}

/* Left-edge cyan accent bar — premium cue */
.local-offer::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--cyan) 25%,
    var(--cyan) 75%,
    transparent 100%
  );
  opacity: 0.7;
}

.local-offer__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.4rem;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  transition: color 0.2s;
}
.local-offer__close:hover { color: rgba(255, 255, 255, 0.9); }

.local-offer__eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.local-offer__headline {
  font-family: var(--font-body);      /* Figtree — far more readable at this size than Syne */
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--white);
  text-align: center;
  margin-bottom: 16px;
}

.local-offer__body {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(233, 238, 243, 0.82);
  margin-bottom: 20px;
}

.local-offer__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--blue);
  color: var(--white);
  padding: 12px 26px;
  border-radius: 14px;
  min-height: 56px;                 /* generous mobile tap target (>44px HIG min) */
  box-shadow: 0 4px 18px rgba(30, 115, 190, 0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.local-offer__cta-label {
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.local-offer__cta-number {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.local-offer__cta:hover {
  background: #1a65a8;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(30, 115, 190, 0.5);
}
.local-offer__cta:active { transform: translateY(0); }

.local-offer__sig {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-style: italic;
  color: rgba(107, 122, 141, 0.7);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(78, 163, 227, 0.1);
  letter-spacing: 0.01em;
}

/* Mobile — full-width card, larger tap targets, breathing room */
@media (max-width: 520px) {
  .local-offer {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-width: 440px;
    padding: 24px 22px 20px 26px;
  }
  .local-offer__headline { font-size: 1.4rem; line-height: 1.2; }
  .local-offer__body {
    font-size: 0.9rem;
    line-height: 1.55;
  }
  .local-offer__cta {
    padding: 14px 26px;             /* taller tap target on touch */
    min-height: 60px;
  }
  .local-offer__cta-number { font-size: 1.25rem; }
  .local-offer__close {
    top: 6px;
    right: 6px;
    padding: 10px 12px;             /* 44x44 tap target */
    font-size: 1.5rem;
  }
}

/* Respect user motion preferences — skip the slide, just fade */
@media (prefers-reduced-motion: reduce) {
  .local-offer {
    transition: opacity 0.3s linear;
    transform: none;
  }
  .local-offer[aria-hidden="false"] { transform: none; }
}

/* ── Local Offer Section (inline, persistent, geo-gated) ────
   Sits between #special-order and #contact. Styled as a premium
   card-on-panel inside a standard .section shell so it inherits
   the site's section padding/spacing. Revealed by JS (removes the
   [hidden] attr) only when /api/geo says isLocal. */
.local-offer-section__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 44px 40px 40px;
  position: relative;
  text-align: center;
  background: linear-gradient(180deg, rgba(8, 17, 33, 0.92) 0%, rgba(4, 10, 22, 0.92) 100%);
  border: 1px solid rgba(78, 163, 227, 0.22);
  border-radius: 14px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(78, 163, 227, 0.1);
  overflow: hidden;
}
/* Cyan accent bar along the top edge (mirrors the corner card's left-edge bar) */
.local-offer-section__inner::before {
  content: '';
  position: absolute;
  left: 20%;
  right: 20%;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 30%, var(--cyan) 70%, transparent);
  opacity: 0.7;
}
.local-offer-section .section-label {
  color: var(--cyan);
  margin-bottom: 18px;
}
.local-offer-section__heading {
  font-family: var(--font-body);
  font-size: clamp(1.65rem, 4.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: 18px;
}
.local-offer-section__body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(233, 238, 243, 0.82);
  max-width: 520px;
  margin: 0 auto 28px;
}
.local-offer-section__cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--blue);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 16px;
  min-height: 64px;
  box-shadow: 0 6px 24px rgba(30, 115, 190, 0.4);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.local-offer-section__cta:hover {
  background: #1a65a8;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(30, 115, 190, 0.55);
}
.local-offer-section__cta:active { transform: translateY(0); }
.local-offer-section__cta-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.local-offer-section__cta-number {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.local-offer-section__sig {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(107, 122, 141, 0.75);
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(78, 163, 227, 0.1);
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile — tighter padding, full-width CTA */
@media (max-width: 520px) {
  .local-offer-section__inner {
    padding: 34px 22px 30px;
    border-radius: 10px;
  }
  .local-offer-section__heading {
    font-size: 1.5rem;
    line-height: 1.25;
  }
  .local-offer-section__body {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }
  .local-offer-section__cta {
    display: flex;                    /* full-width tap target */
    width: 100%;
    padding: 18px 24px;
    min-height: 68px;
  }
  .local-offer-section__cta-number { font-size: 1.25rem; }
}

/* ── Age Gate ─────────────────────────────────────────────── */
#age-gate {
  position: fixed; inset: 0; z-index: 1000;
  background: #060d1a;
  display: grid; place-items: center;
  height: 100dvh; /* D-V3-18: dvh over vh for iOS Safari URL bar */
  overscroll-behavior: contain;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}
.age-gate__inner {
  max-width: 480px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.age-gate__logo {
  width: 96px;
  height: auto;
  margin: 0 auto;
}
.age-gate__title {
  font-family: 'CaeciliaSans', sans-serif;
  font-style: italic;
  font-size: 32px;
  color: var(--white, #FFFFFF);
  margin: 0;
}
.age-gate__body {
  font-family: 'Figtree', sans-serif;
  font-size: 16px; /* D-V3-18: never below 16 on body text */
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
  margin: 0;
}
.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.age-gate__actions .btn {
  min-width: 44px; min-height: 48px; padding: 12px 20px; /* D-V3-18 tap target */
}
.age-gate__ruo {
  font-family: 'Figtree', sans-serif;
  font-size: 12px;
  font-style: italic;
  color: rgba(255,255,255,0.5);
  margin: 8px 0 0;
}
body.age-gate-locked { overflow: hidden; }
