/* ===============================================
   Aurafil — Shared components (dark ground)
   Used across index / treatment / weight-loss / etc.
   =============================================== */

/* ---------- Page frame + glow ---------- */
body {
  background: var(--bg);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 800px at 15% 0%, rgba(10, 180, 239, 0.08), transparent 60%),
    radial-gradient(900px 600px at 100% 20%, rgba(56, 197, 246, 0.05), transparent 55%);
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* ---------- Site nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in oklab, var(--ground-900) 78%, transparent);
  border-bottom: 1px solid var(--hairline-color);
  padding-block: var(--space-4);
}
.site-nav .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}
.site-nav .wordmark { height: 22px; display: block; }
.site-nav .wordmark img { height: 100%; width: auto; display: block; }

.nav-links {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  letter-spacing: var(--track-tight);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }

.nav-cta {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--ground-950);
  background: var(--brand-500);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--brand-400);
  box-shadow: 0 0 20px rgba(10, 180, 239, 0.35);
}

.hamburger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text);
}
.hamburger svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: inline-flex; }
}

/* ---------- Utility: eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
  color: var(--text-brand);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--brand-500);
}
.eyebrow--center { justify-content: center; }
.eyebrow--plain::before { display: none; }

/* Chevron gradient text */
.accent {
  background: var(--brand-gradient-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  letter-spacing: var(--track-tight);
  transition: all var(--dur-fast) var(--ease-out);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand-500);
  color: var(--ground-950);
}
.btn--primary:hover {
  background: var(--brand-400);
  box-shadow: 0 0 24px rgba(10, 180, 239, 0.35);
}
.btn--gradient {
  background: var(--brand-gradient-h);
  color: var(--ground-950);
  font-weight: var(--fw-semibold);
}
.btn--gradient:hover {
  box-shadow: 0 0 32px rgba(56, 197, 246, 0.45);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--brand-500);
  background: rgba(10,180,239, 0.06);
  color: var(--brand-300);
}
.btn--lg { padding: 16px 28px; font-size: var(--text-lg); }
.btn .arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Section frame ---------- */
.section {
  padding-block: var(--section-y);
  position: relative;
}
.section + .section { border-top: 1px solid var(--hairline-color); }
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-12);
  gap: var(--space-6);
  flex-wrap: wrap;
}
.section-heading h2 {
  font-size: var(--text-4xl);
  font-weight: var(--fw-medium);
  letter-spacing: var(--track-tight);
  max-width: 24ch;
  text-wrap: balance;
}
.section-heading .caption {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: var(--space-16);
  border-top: 1px solid var(--hairline-color);
  background: var(--ground-950);
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
@media (max-width: 780px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}
.site-footer .footer-brand .wordmark { height: 26px; margin-bottom: var(--space-4); display: block; }
.site-footer .footer-brand .wordmark img { height: 100%; width: auto; display: block; opacity: 0.9; }
.site-footer .footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 32ch;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
  color: var(--text-subtle);
  margin-bottom: var(--space-4);
}
.footer-col ul { display: grid; gap: var(--space-2); }
.footer-col a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-col a:hover { color: var(--brand-300); }

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--hairline-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
}
.footer-bottom .legal { display: flex; gap: var(--space-6); }
.footer-bottom .legal a { color: var(--text-subtle); }
.footer-bottom .legal a:hover { color: var(--text-muted); }

/* ---------- The Line (SVG signature — reused) ---------- */
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; r: 5; filter: drop-shadow(0 0 8px rgba(10,180,239,0.8)); }
  50%      { opacity: 0.7; r: 7; filter: drop-shadow(0 0 14px rgba(10,180,239,1)); }
}
@media (prefers-reduced-motion: no-preference) {
  .line-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: draw-line 2400ms var(--ease-out) 300ms forwards;
  }
  .line-dot { transform-origin: center; animation: pulse-dot 2000ms ease-in-out infinite; }
}

/* ===================================================================
   Shared page utilities (promoted from index.html for all pages)
   =================================================================== */

/* Brand gradient text — used for accent words in H1s and H2s */
.brand-gradient {
  background: var(--brand-gradient-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Ghost chevron behind page heroes */
.hero-bg-chevron {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  pointer-events: none;
  opacity: 0.04;
  z-index: -1;
}
@media (max-width: 900px) { .hero-bg-chevron { display: none; } }

/* Scroll progress hairline at very top of every page */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--brand-gradient-h);
  z-index: 100;
  transition: width 0.1s linear;
}
@supports (animation-timeline: scroll(root)) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-progress {
      animation: scroll-grow linear;
      animation-timeline: scroll(root);
    }
    @keyframes scroll-grow { to { width: 100%; } }
  }
}

/* Active nav link */
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--brand-500);
  margin: 3px auto 0;
}

/* ---------- Shared FAQ styles ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--hairline-color);
  padding-block: var(--space-6);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--fw-medium);
  color: var(--text);
  letter-spacing: var(--track-tight);
  position: relative;
  padding-right: var(--space-8);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: var(--fw-regular);
  color: var(--text-subtle);
  transition: transform var(--dur-med) var(--ease-out);
  line-height: 1;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  margin-top: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-base);
  max-width: 68ch;
}

/* ===================================================================
   Mobile nav drawer
   =================================================================== */
.hamburger[aria-expanded="true"] svg { transform: rotate(90deg); transition: transform .2s ease; }

.mobile-drawer {
  position: fixed;
  inset: 0;
  top: 64px; /* below sticky header */
  background: rgba(6, 10, 14, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  display: none;
}
@media (max-width: 900px) {
  .mobile-drawer { display: block; }
}
.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-8) var(--space-6);
  max-width: 480px;
  margin: 0 auto;
}
.mobile-drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-medium);
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-color);
  letter-spacing: var(--track-tight);
}
.mobile-drawer a::after {
  content: '→';
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: var(--text-base);
}
.mobile-drawer a:hover { color: var(--brand-400); }
.mobile-drawer .drawer-cta {
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6);
  background: var(--brand-400);
  color: var(--ground-900);
  border-radius: 999px;
  border: none;
  justify-content: center;
  font-weight: var(--fw-semibold);
}
.mobile-drawer .drawer-cta::after { color: var(--ground-900); }
.mobile-drawer .drawer-cta:hover { color: var(--ground-900); background: var(--brand-300); }

/* ---------- Vial lineup + spec list (branded compounded meds) ---------- */
.vial-lineup {
  margin: 0 0 var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a0d10;
  border: 1px solid var(--border);
}
.vial-lineup img {
  display: block;
  width: 100%;
  height: auto;
}
.vial-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
.vial-list li {
  display: grid;
  grid-template-columns: 2fr 3fr 1fr;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}
.vial-list .vial-name {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--text-lg);
  color: var(--text);
}
.vial-list .vial-cat {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
}
.vial-list .vial-price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--brand-400);
  font-weight: var(--fw-semibold);
  text-align: right;
}
.vial-list .vial-price sup {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--fw-regular);
}
@media (max-width: 640px) {
  .vial-list li {
    grid-template-columns: 1fr auto;
    grid-template-areas: "name price" "cat cat";
    row-gap: var(--space-1);
  }
  .vial-list .vial-name { grid-area: name; }
  .vial-list .vial-price { grid-area: price; }
  .vial-list .vial-cat { grid-area: cat; }
}
