/* =========================================================
   Qd Pharmacy & Compounding — site styles
   Display: Bricolage Grotesque · Body: Atkinson Hyperlegible
   (Atkinson was designed for low-vision readers — a deliberate
   choice for a pharmacy whose patients skew older.)
   ========================================================= */

:root {
  --ink: #142B52;          /* logo navy */
  --ink-2: #2B4470;
  --leaf: #2F9E52;         /* logo leaf green */
  --leaf-deep: #1F7A3C;
  --mint: #E6F3EA;
  --paper: #F5F8FA;        /* cool clinical white */
  --white: #FFFFFF;
  --amber: #B9781A;        /* apothecary bottle glass — compounding accent */
  --amber-soft: #FBF1DF;
  --line: #D8E1EA;
  --text: #1A2638;
  --muted: #4E5D72;
  --bg: var(--paper);
  --surface: var(--white);
  --surface-2: var(--mint);
  --header-bg: rgba(255,255,255,.92);
  --focus: #F2B705;
  --shadow: 0 1px 2px rgba(20,43,82,.06), 0 8px 24px -12px rgba(20,43,82,.18);

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --step--1: clamp(.88rem, .85rem + .1vw, .94rem);
  --step-0: clamp(1.05rem, 1rem + .2vw, 1.15rem);
  --step-1: clamp(1.25rem, 1.15rem + .45vw, 1.45rem);
  --step-2: clamp(1.55rem, 1.35rem + .9vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.2vw, 4.4rem);

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 28px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1628; --surface: #112241; --surface-2: #14304A;
    --text: #E8EEF6; --muted: #A9B7CA; --line: #24395C;
    --ink: #E8EEF6; --ink-2: #C7D4E6; --leaf: #4CC274; --leaf-deep: #3DB061;
    --mint: #14304A; --amber: #E3A84A; --amber-soft: #2A2416;
    --header-bg: rgba(11,22,40,.9);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --bg: #0B1628; --surface: #112241; --surface-2: #14304A;
  --text: #E8EEF6; --muted: #A9B7CA; --line: #24395C;
  --ink: #E8EEF6; --ink-2: #C7D4E6; --leaf: #4CC274; --leaf-deep: #3DB061;
  --mint: #14304A; --amber: #E3A84A; --amber-soft: #2A2416;
  --header-bg: rgba(11,22,40,.9);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
}

/* Larger-text mode (accessibility toggle) */
:root[data-textsize="large"] { font-size: 118%; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-deep); text-underline-offset: 3px; }
:root[data-theme="dark"] a, :root:not([data-theme="light"]) a { }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: var(--step-1); color: var(--muted); line-height: 1.5; max-width: 58ch; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section--tint { background: var(--surface-2); }
.section--ink { background: #142B52; color: #E8EEF6; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .muted, .section--ink .lead { color: #B9C7DB; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--focus); color: #000; padding: 10px 16px; border-radius: 8px; z-index: 1000; font-weight: 700; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .82em 1.35em; border-radius: 999px; font: 700 var(--step-0)/1 var(--f-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--leaf-deep); color: #fff; }
.btn--primary:hover { background: #18672F; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: #142B52; }
.btn--light:hover { background: var(--mint); color: #142B52; }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Utility bar ---------- */
.utility { background: #142B52; color: #D5DFEC; font-size: var(--step--1); }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; flex-wrap: wrap; }
.utility a { color: #fff; text-decoration: none; font-weight: 700; }
.utility a:hover { text-decoration: underline; color: #fff; }
.utility-left { display: flex; gap: 18px; flex-wrap: wrap; }
.utility-tools { display: flex; gap: 6px; align-items: center; }
.tool-btn { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 4px 11px; font: 700 .82rem/1.4 var(--f-body); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tool-btn:hover { background: rgba(255,255,255,.18); }
.tool-btn[aria-pressed="true"] { background: #fff; color: #142B52; }
.lang-select { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 4px 8px; font: 700 .82rem var(--f-body); }
.lang-select option { color: #000; }
#google_translate_element { display: none; }
body { top: 0 !important; }
.goog-te-banner-frame, .skiptranslate iframe { display: none !important; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 56px; width: auto; }
.brand-name { font-family: var(--f-display); font-weight: 800; color: var(--ink); font-size: 1.15rem; line-height: 1.05; }
.brand-name small { display: block; white-space: nowrap; font-family: var(--f-body); font-weight: 700; color: var(--leaf-deep); font-size: .78rem; letter-spacing: .02em; }
:root[data-theme="dark"] .brand img { background: #fff; border-radius: 50%/60%; padding: 2px 4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img { background: #fff; border-radius: 50%/60%; padding: 2px 4px; } }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a { display: block; white-space: nowrap; padding: 10px 13px; border-radius: 999px; color: var(--ink); font-weight: 700; text-decoration: none; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--surface-2); color: var(--leaf-deep); }
.nav .btn { padding: .7em 1.15em; margin-left: 8px; }
.nav .btn--primary { color: #fff; }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); color: var(--ink); border-radius: 12px; width: 48px; height: 48px; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 1140px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav { position: fixed; inset: 118px 0 0 0; background: var(--bg); padding: 20px var(--gutter); transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; overflow-y: auto; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav a { font-size: 1.2rem; padding: 14px 16px; }
  .nav .btn { margin: 12px 0 0; justify-content: center; }
  .brand img { height: 46px; }
}
@media (max-width: 1140px) { .utility-left .hide-sm:last-child { display: none; } }
@media (max-width: 560px) { .utility-left .hide-sm { display: none; } .brand-name { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(1100px 600px at 85% 30%, color-mix(in srgb, var(--leaf) 14%, transparent), transparent 60%),
  var(--bg); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(20px, 4vw, 60px); min-height: min(86vh, 760px); padding-block: clamp(40px, 6vw, 72px); }
.hero h1 { max-width: 13ch; }
.hero .lead { margin-bottom: 1.6em; }
.hero-stage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 620px; justify-self: end; }
.hero-stage canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; }
.hero-stage canvas:active { cursor: grabbing; }
.hero-fallback { position: absolute; inset: 8%; border-radius: var(--radius-l); object-fit: cover; width: 84%; height: 84%; box-shadow: var(--shadow); }
.hero-stage.has-3d .hero-fallback { display: none; }
.hero-caption { position: absolute; left: 6%; bottom: 4%; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: var(--step--1); font-weight: 700; color: var(--ink); box-shadow: var(--shadow); display: flex; gap: 8px; align-items: center; }
.hero-caption i { width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); display: inline-block; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 32px; padding: 0; list-style: none; color: var(--muted); font-weight: 700; font-size: var(--step--1); }
.hero-facts li { display: flex; gap: 8px; align-items: center; }
.hero-facts svg { width: 18px; height: 18px; color: var(--leaf); flex: none; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .hero-stage { max-width: 460px; justify-self: center; order: -1; margin-top: -10px; }
  .hero h1 { max-width: 16ch; }
}

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(36px, 5vw, 64px); background: var(--surface-2); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.page-hero h1 { font-size: var(--step-4); max-width: 16ch; }
.page-hero img { border-radius: var(--radius-l); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.crumbs { font-size: var(--step--1); color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
@media (max-width: 860px) { .page-hero .wrap { grid-template-columns: 1fr; } }

/* Blister-well divider — the site's recurring motif */
.wells { display: flex; gap: 10px; margin: 0 0 22px; }
.wells span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); }
.wells span.on { background: var(--leaf); border-color: var(--leaf); }
.wells span.amber { background: var(--amber); border-color: var(--amber); }

/* ---------- Three doors (audiences) ---------- */
.doors { display: grid; gap: 18px; }
.door { display: grid; grid-template-columns: 300px 1fr auto; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 16px 28px 16px 16px; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.door:hover { border-color: var(--leaf); box-shadow: var(--shadow); color: inherit; }
.door img { border-radius: 18px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.door h3 { font-size: var(--step-2); margin-bottom: .3em; }
.door p { color: var(--muted); margin: 0; }
.door .for { font-weight: 700; color: var(--leaf-deep); font-size: var(--step--1); margin-bottom: 6px; display: block; }
.door .go { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); transition: background .2s, color .2s; }
.door:hover .go { background: var(--leaf-deep); color: #fff; }
.door .go svg { width: 22px; height: 22px; }
.door--amber .for { color: var(--amber); }
@media (max-width: 820px) { .door { grid-template-columns: 1fr; padding: 14px 14px 22px; } .door .go { display: none; } .door > div { padding-inline: 8px; } }

/* ---------- Feature list grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.photo { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.checks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.checks--two { grid-template-columns: 1fr 1fr; column-gap: 28px; }
@media (max-width: 640px) { .checks--two { grid-template-columns: 1fr; } }

/* Service tiles: each one has a different role, so sizing varies */
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tile h3 { margin-bottom: .35em; }
.tile p { color: var(--muted); margin: 0; font-size: var(--step--1); line-height: 1.55; }
.tile .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--leaf-deep); margin-bottom: 16px; }
.tile .ico svg { width: 24px; height: 24px; }
.tile--amber .ico { background: var(--amber-soft); color: var(--amber); }

/* Compounding formula index — a numbered-free "apothecary shelf" list */
.shelf { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.shelf-item { padding: 22px 6px 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 54px 1fr; gap: 16px; }
.shelf-item:nth-child(odd) { padding-right: 28px; border-right: 1px solid var(--line); }
.shelf-item:nth-child(even) { padding-left: 28px; }
.shelf-item .jar { width: 46px; height: 54px; border-radius: 10px 10px 12px 12px; background: var(--amber-soft); border: 2px solid var(--amber); position: relative; }
.shelf-item .jar::before { content: ""; position: absolute; left: 6px; right: 6px; top: -9px; height: 9px; border-radius: 4px 4px 0 0; background: var(--ink); }
.shelf-item .jar::after { content: ""; position: absolute; left: 7px; right: 7px; top: 16px; height: 16px; border-radius: 3px; background: var(--surface); }
.shelf-item.green .jar { background: var(--mint); border-color: var(--leaf); }
.shelf-item h3 { margin-bottom: .25em; font-size: 1.2rem; }
.shelf-item p { margin: 0; color: var(--muted); font-size: var(--step--1); }
@media (max-width: 760px) { .shelf { grid-template-columns: 1fr; } .shelf-item:nth-child(odd) { border-right: 0; padding-right: 0; } .shelf-item:nth-child(even) { padding-left: 0; } }

.forms-cloud { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.forms-cloud li { border: 1.5px solid var(--line); background: var(--surface); padding: 8px 16px; border-radius: 999px; font-weight: 700; color: var(--ink); }

/* Steps — a real sequence, so it gets numbers */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps li { counter-increment: s; padding: 0 22px 0 0; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--leaf); color: #fff; font: 800 1.2rem var(--f-display); margin-bottom: 18px; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--bg); }
.section--tint .steps li::before { box-shadow: 0 0 0 6px var(--surface-2); }
.section--ink .steps li::before { box-shadow: 0 0 0 6px #142B52; }
.steps li::after { content: ""; position: absolute; top: 24px; left: 48px; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.section--ink .steps li::after { background: repeating-linear-gradient(90deg, #3A5582 0 8px, transparent 8px 14px); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--muted); font-size: var(--step--1); }
.section--ink .steps p { color: #B9C7DB; }

.steps--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .steps, .steps--3 { grid-template-columns: 1fr; gap: 26px; } .steps li { padding: 0 0 0 66px; } .steps li::before { position: absolute; left: 0; top: 0; } .steps li::after { top: 48px; left: 23px; right: auto; width: 2px; height: calc(100% - 22px); background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); } }

/* Stats band (facilities) */
.band { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-l); overflow: hidden; }
.band div { padding: 28px; border-right: 1px solid rgba(255,255,255,.16); }
.band div:last-child { border-right: 0; }
.band strong { display: block; font: 800 var(--step-3)/1 var(--f-display); color: #fff; margin-bottom: 8px; }
.band span { color: #B9C7DB; font-size: var(--step--1); }
@media (max-width: 860px) { .band { grid-template-columns: 1fr 1fr; } .band div:nth-child(2) { border-right: 0; } .band div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.16); } }

/* Integration chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 10px 16px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-weight: 700; color: #fff; }

/* Callout */
.callout { border-radius: var(--radius-l); padding: clamp(28px, 5vw, 56px); background: #142B52; color: #E8EEF6; display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.callout h2 { color: #fff; font-size: var(--step-3); margin-bottom: .3em; }
.callout p { color: #B9C7DB; margin: 0; }
.callout::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(76,194,116,.35), transparent 70%); pointer-events: none; }
@media (max-width: 760px) { .callout { grid-template-columns: 1fr; } }

/* Notice */
.notice { border-left: 4px solid var(--amber); background: var(--amber-soft); padding: 16px 20px; border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: var(--step--1); color: var(--text); max-width: 80ch; }
.notice p { margin: 0; }

/* Reviews */
.reviews-empty { border: 2px dashed var(--line); border-radius: var(--radius-l); padding: 36px; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--surface); }
.stars { color: #F2B705; font-size: 1.5rem; letter-spacing: 3px; }
.review-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.review blockquote { margin: 10px 0 14px; font-size: 1.05rem; }
.review cite { font-style: normal; font-weight: 700; color: var(--muted); font-size: var(--step--1); }
@media (max-width: 760px) { .reviews-empty, .review-list { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; font: 700 var(--step-1)/1.3 var(--f-display); color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F9E52' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--muted); }

/* ---------- Forms ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tabs button { background: var(--surface); border: 2px solid var(--line); border-radius: 999px; padding: 10px 18px; font: 700 1rem var(--f-body); color: var(--ink); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form-card h2 { font-size: var(--step-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ink); font-size: .98rem; }
label .req { color: #C0392B; }
input, select, textarea { width: 100%; font: 1rem/1.4 var(--f-body); padding: 13px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: var(--leaf); outline: 3px solid color-mix(in srgb, var(--leaf) 30%, transparent); outline-offset: 0; }
textarea { min-height: 120px; resize: vertical; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check-row input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--leaf-deep); }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-weight: 700; display: none; }
.form-status.ok { display: block; background: var(--mint); color: var(--leaf-deep); }
.form-status.err { display: block; background: #FDECEA; color: #A93226; }
.hp { position: absolute; left: -9999px; }

/* Contact info */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-list .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--leaf-deep); display: grid; place-items: center; }
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--ink); }
.map { border: 0; width: 100%; height: 360px; border-radius: var(--radius-l); filter: saturate(.9); }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: #0E1F3D; color: #B9C7DB; padding-block: 64px 28px; font-size: var(--step--1); }
.site-footer h2 { color: #fff; font-size: 1.05rem; font-family: var(--f-body); letter-spacing: 0; margin-bottom: 14px; }
.site-footer a { color: #E8EEF6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-brand img { background: #fff; border-radius: 50%/60%; padding: 4px 8px; height: 76px; width: auto; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid #24395C; margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #1A3260; }
.social svg { width: 18px; height: 18px; fill: #fff; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating quick actions (mobile) ---------- */
.quickbar { display: none; }
@media (max-width: 760px) {
  .quickbar { display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; background: #142B52; border-radius: 18px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); overflow: hidden; }
  .quickbar a { color: #fff; text-decoration: none; display: grid; justify-items: center; gap: 2px; padding: 10px 4px; font-weight: 700; font-size: .8rem; }
  .quickbar a + a { border-left: 1px solid #2B4470; }
  .quickbar svg { width: 20px; height: 20px; }
  body { padding-bottom: 76px; }
}

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 80; max-width: 420px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.45); display: none; }
.cookie.show { display: block; }
.cookie p { font-size: var(--step--1); margin-bottom: 14px; }
.cookie .btn { padding: .6em 1.1em; font-size: .95rem; }
@media (max-width: 760px) { .cookie { left: 10px; right: 10px; bottom: 86px; max-width: none; } }

/* Single orchestrated entrance on the home hero only */
.hero-copy > * { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; } .hero-copy > *:nth-child(3) { animation-delay: .16s; } .hero-copy > *:nth-child(4) { animation-delay: .24s; } .hero-copy > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* Print */
@media print { .utility, .site-header, .quickbar, .cookie, .site-footer, .hero-stage { display: none !important; } body { background: #fff; color: #000; } }

/* =========================================================
   v2 — "Apothecary night": dark glass header, 3D story,
   Compounding Lab, 3D page heroes
   ========================================================= */
:root {
  --night: #07142A;            /* story / hero ground */
  --night-2: #0D2144;
  --glow-amber: #F0A43A;
  --glow-green: #4CC274;
  --on-night: #EAF1FA;
  --on-night-muted: #A9B9D0;
  --glass: rgba(255,255,255,.06);
  --glass-line: rgba(255,255,255,.14);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header: dark glass on every page */
.utility { background: #040C1C; }
.site-header { background: rgba(7,20,42,.82); border-bottom: 1px solid var(--glass-line); }
.site-header .nav a { color: var(--on-night); }
.site-header .nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.site-header .nav a[aria-current="page"] { background: rgba(76,194,116,.16); color: #8BE3A9; }
.site-header .brand-name { color: #fff; }
.site-header .brand-name small { color: #8BE3A9; }
.site-header .brand img { background: #fff; border-radius: 50%/60%; padding: 2px 4px; }
.nav-toggle { color: #fff; border-color: var(--glass-line); }
@media (max-width: 1140px) { .nav { background: var(--night); } }

/* Buttons for dark grounds */
.btn--amber { background: var(--glow-amber); color: #2A1600; }
.btn--amber:hover { background: #FFB955; color: #2A1600; }
.btn--glass { background: var(--glass); color: var(--on-night); border-color: var(--glass-line); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.section .btn--glass, .section--tint .btn--glass { color: var(--ink); border-color: var(--line); background: transparent; }
.section--ink .btn--glass, .callout .btn--glass, .lab .btn--glass { color: var(--on-night); border-color: var(--glass-line); background: var(--glass); }

/* ---------- Story ---------- */
.story { position: relative; background:
  radial-gradient(900px 700px at 78% 30%, rgba(76,194,116,.18), transparent 60%),
  radial-gradient(800px 700px at 15% 85%, rgba(240,164,58,.16), transparent 60%),
  var(--night); color: var(--on-night); isolation: isolate; }
.story::after { content: ""; position: absolute; inset: 0; background: var(--grain); pointer-events: none; z-index: 3; }
.story-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; z-index: 0; }
.story-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.stage-fallback { position: absolute; right: 6%; top: 18%; width: min(42vw, 560px); height: auto; border-radius: 28px; opacity: .85; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.has-3d > .stage-fallback { display: none; }
.story-panels { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; }
.panel { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; pointer-events: none; }
.panel-inner { pointer-events: auto; width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.panel-inner > * { max-width: 560px; }
.panel h2 { color: #fff; font-size: var(--step-3); text-wrap: balance; }
.panel p { color: var(--on-night-muted); }
.glass { background: linear-gradient(180deg, rgba(13,33,68,.72), rgba(7,20,42,.6)); border: 1px solid var(--glass-line); border-radius: var(--radius-l); padding: clamp(24px, 3vw, 40px); backdrop-filter: blur(12px); max-width: 560px; margin-left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
.panel .glass { width: auto; }
.kicker { font-weight: 700; color: #8BE3A9; font-size: var(--step--1); margin-bottom: 18px; }
.mega { font-size: clamp(3.2rem, 1.4rem + 7.4vw, 8.6rem); line-height: .9; letter-spacing: -.045em; color: #fff; margin-bottom: .32em; font-weight: 800; }
.panel--hero .lead { color: var(--on-night-muted); max-width: 48ch; }
.chapter { font-weight: 700; color: var(--glow-amber); font-size: var(--step--1); margin-bottom: 10px; }
.mini-list { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.mini-list li { border: 1px solid rgba(240,164,58,.4); color: #FFD9A0; padding: 6px 12px; border-radius: 999px; font-size: .92rem; font-weight: 700; }
.text-link { color: #8BE3A9; font-weight: 700; }
.text-link:hover { color: #fff; }
.scroll-cue { margin-top: 40px; font-size: var(--step--1); color: var(--on-night-muted); display: flex; gap: 10px; align-items: center; }
.scroll-cue::before { content: ""; width: 22px; height: 34px; border: 2px solid var(--glass-line); border-radius: 12px; background: linear-gradient(#8BE3A9, #8BE3A9) center 7px / 3px 7px no-repeat; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 50% { background-position: center 16px; } }

.story-rail { position: absolute; left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); bottom: 28px; z-index: 4; list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; font: 700 .95rem var(--f-body); }
.story-rail li { color: rgba(255,255,255,.35); display: flex; align-items: center; gap: 10px; transition: color .4s; }
.story-rail li::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: currentColor; transition: width .4s; }
.story-rail li.on { color: #fff; }
.story-rail li.on::before { width: 44px; background: var(--glow-amber); }

@media (max-width: 860px) {
  .panel { align-items: flex-end; padding-bottom: 76px; }
  .panel--hero { align-items: flex-end; }
  .glass { margin-inline: var(--gutter); }
  .panel--hero .panel-inner { background: linear-gradient(180deg, transparent, rgba(7,20,42,.85) 30%); padding-top: 40px; }
  .mega { font-size: clamp(3rem, 15vw, 4.6rem); }
  .story-rail { bottom: 16px; gap: 14px; font-size: .82rem; }
  .story-rail li::before { width: 14px; } .story-rail li.on::before { width: 24px; }
  .scroll-cue { display: none; }
  .stage-fallback { width: 78vw; left: 11vw; top: 10%; }
}

/* ---------- Compounding Lab ---------- */
.lab { position: relative; overflow: hidden; color: var(--on-night); padding-block: clamp(64px, 9vw, 128px) 0;
  background: radial-gradient(700px 500px at var(--mx, 30%) var(--my, 40%), rgba(240,164,58,.22), transparent 65%),
              linear-gradient(180deg, #1A0F04, #241505 60%, #160C03); }
.lab::after { content: ""; position: absolute; inset: 0; background: var(--grain); pointer-events: none; }
.lab h2 { color: #FFE7C2; font-size: var(--step-4); letter-spacing: -.035em; }
.lab .lead { color: #E2C9A2; }
.lab-head { max-width: 760px; margin-bottom: 44px; }
.lab-grid { display: grid; grid-template-columns: 240px 1fr 1.1fr; gap: clamp(20px, 3vw, 48px); align-items: center; position: relative; z-index: 1; }
.lab-tabs { display: grid; gap: 6px; }
.lab-tabs button { text-align: left; background: transparent; border: 1px solid transparent; color: #E2C9A2; font: 700 1.02rem var(--f-body); padding: 12px 16px; border-radius: 12px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.lab-tabs button:hover { background: rgba(240,164,58,.08); color: #FFE7C2; }
.lab-tabs button[aria-selected="true"] { background: rgba(240,164,58,.16); border-color: rgba(240,164,58,.45); color: #fff; }
.lab-detail h3 { color: #fff; font-size: var(--step-2); }
.lab-detail p { color: #E2C9A2; }
.lab-detail h4 { color: #FFC46B; font: 700 .95rem var(--f-body); margin: 20px 0 10px; }
.chips-amber, .chips-line { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-amber li { background: rgba(240,164,58,.16); color: #FFE7C2; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.chips-line li { border: 1px solid rgba(255,231,194,.3); color: #FFE7C2; padding: 6px 14px; border-radius: 999px; font-size: .95rem; }

/* CSS Rx bottle */
.rx-wrap { display: grid; justify-items: center; perspective: 900px; }
.rx-bottle { position: relative; width: 230px; height: 330px; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.7,.2,1); transform: rotateY(-14deg) rotateX(4deg); }
.rx-bottle.flip { transform: rotateY(-194deg) rotateX(4deg); }
.rx-cap { position: absolute; left: 34px; right: 34px; top: 0; height: 58px; border-radius: 12px 12px 6px 6px; background: linear-gradient(90deg, #0D2144, #24467E 45%, #0D2144); box-shadow: inset 0 -6px 0 rgba(0,0,0,.25); }
.rx-cap::after { content: ""; position: absolute; inset: 10px 0 auto; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 3px, transparent 3px 7px); }
.rx-body { position: absolute; left: 0; right: 0; top: 52px; bottom: 0; border-radius: 26px 26px 30px 30px; background: linear-gradient(90deg, #4A2504 0%, #9A5A12 22%, #C98A2B 38%, #8A4A0C 60%, #3A1C03 100%); box-shadow: inset 0 0 40px rgba(0,0,0,.45), 0 40px 70px -30px rgba(0,0,0,.8); overflow: hidden; }
.rx-body::before { content: ""; position: absolute; left: 22%; top: 8px; bottom: 16px; width: 16px; border-radius: 10px; background: linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,.05)); filter: blur(1px); }
.rx-label { position: absolute; left: 10px; right: 10px; top: 54px; bottom: 52px; background: #FBF7EE; border-radius: 6px; padding: 0; color: #142B52; display: grid; grid-template-rows: auto 1fr auto auto; overflow: hidden; box-shadow: inset 12px 0 18px -12px rgba(0,0,0,.4), inset -12px 0 18px -12px rgba(0,0,0,.4); }
.rx-top { background: #142B52; color: #fff; font: 800 .74rem/1 var(--f-display); padding: 10px 12px; display: flex; gap: 6px; align-items: center; }
.rx-leaf { width: 9px; height: 14px; border-radius: 50% 0; background: #3DB061; transform: rotate(20deg); }
.rx-name { font: 800 1.45rem/1.05 var(--f-display); padding: 14px 12px 4px; align-self: end; }
.rx-form { font-size: .84rem; color: #7A4F12; font-weight: 700; padding: 0 12px 10px; }
.rx-foot { display: flex; justify-content: space-between; border-top: 1px dashed #D7CBB3; padding: 8px 12px; font-size: .7rem; font-weight: 700; color: #4E5D72; }
.rx-note { margin: 18px 0 0; font-size: .82rem; color: #B89A6E; }
@media (max-width: 1000px) { .lab-grid { grid-template-columns: 1fr; } .lab-tabs { grid-template-columns: repeat(2, 1fr); } .rx-wrap { order: -1; } }
@media (max-width: 460px) { .lab-tabs button { font-size: .92rem; padding: 10px 12px; } .rx-bottle { transform: scale(.85) rotateY(-14deg); } }

.marquee { position: relative; z-index: 1; margin-top: clamp(56px, 8vw, 100px); border-block: 1px solid rgba(240,164,58,.25); overflow: hidden; padding-block: 22px; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font: 800 clamp(1.6rem, 1rem + 2.4vw, 3rem)/1 var(--f-display); color: transparent; -webkit-text-stroke: 1.5px rgba(255,196,107,.7); white-space: nowrap; letter-spacing: -.02em; }
.marquee span:nth-child(3n+1) { color: #FFC46B; -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; padding-inline: var(--gutter); } .marquee span[aria-hidden] { display: none; } }

/* Tiles as links */
.tile--link { text-decoration: none; color: inherit; transition: border-color .2s, transform .2s, box-shadow .2s; display: block; }
.tile--link:hover { border-color: var(--leaf); transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }

/* ---------- Inner page heroes: dark, with a 3D stage ---------- */
.page-hero { background:
  radial-gradient(800px 500px at 80% 40%, rgba(76,194,116,.2), transparent 60%),
  radial-gradient(600px 500px at 10% 100%, rgba(240,164,58,.12), transparent 60%),
  var(--night); color: var(--on-night); border-bottom: 0; isolation: isolate; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: var(--grain); pointer-events: none; z-index: -1; }
.page-hero--amber { background:
  radial-gradient(800px 520px at 75% 45%, rgba(240,164,58,.3), transparent 62%),
  linear-gradient(180deg, #1A0F04, #241505); }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: var(--on-night-muted); }
.page-hero--amber .lead { color: #E2C9A2; }
.page-hero .crumbs, .page-hero .crumbs a { color: var(--on-night-muted); }
.page-hero .wrap { grid-template-columns: 1.05fr 1fr; min-height: 440px; }
.hero-3d { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 520px; max-width: 100%; }
.hero-3d--short { aspect-ratio: 16 / 9; max-height: 300px; }
.hero-3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.hero-3d .stage-fallback { position: static; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-l); opacity: 1; aspect-ratio: auto; }
.page-hero .wells span { background: transparent; border-color: var(--glass-line); }
@media (max-width: 860px) { .page-hero .wrap { min-height: 0; } .hero-3d { order: -1; max-height: 320px; aspect-ratio: 4 / 3; } .hero-3d--short { display: none; } }

/* Contact grid lived in an inline style; keep it here */
#contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { #contact-grid { grid-template-columns: 1fr; } }
.form-status:focus { outline: none; }
.btn[disabled] { opacity: .65; cursor: progress; }
.story-stage > .stage-fallback { top: auto; bottom: 12%; right: 4%; width: min(38vw, 520px); opacity: .55; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
@media (max-width: 860px) { .story-stage > .stage-fallback { top: 14%; bottom: auto; right: 0; left: auto; width: 90vw; opacity: .45; } }

/* Legibility scrim over the 3D stage on wide screens */
.story-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(7,20,42,.78) 0%, rgba(7,20,42,.35) 42%, transparent 62%); }
@media (max-width: 860px) { .story-stage::before { background: linear-gradient(180deg, transparent 35%, rgba(7,20,42,.7) 70%); } }

/* =========================================================
   v3 — light home page that matches the rest of the site
   ========================================================= */
.story { background:
  radial-gradient(900px 700px at 78% 35%, rgba(47,158,82,.16), transparent 62%),
  radial-gradient(800px 650px at 12% 90%, rgba(240,164,58,.14), transparent 62%),
  linear-gradient(180deg, #F7FBF9 0%, #EAF4EE 100%); color: var(--text); }
.story::after { opacity: .5; }
.story-stage::before { background: linear-gradient(90deg, rgba(247,251,249,.92) 0%, rgba(247,251,249,.55) 40%, transparent 62%); }
@media (max-width: 860px) { .story-stage::before { background: linear-gradient(180deg, transparent 35%, rgba(247,251,249,.85) 68%); } }
.mega { color: #142B52; }
.kicker { color: var(--leaf-deep); }
.panel--hero .lead, .panel p { color: #3E4E66; }
.panel h2 { color: #142B52; }
.glass { background: rgba(255,255,255,.78); border-color: #D8E1EA; box-shadow: 0 20px 50px -28px rgba(20,43,82,.35); }
.chapter { color: #A8650F; }
.mini-list li { border-color: rgba(185,120,26,.4); color: #8A5310; background: #FFF6E8; }
.text-link { color: var(--leaf-deep); }
.text-link:hover { color: #142B52; }
.scroll-cue { color: #4E5D72; }
.scroll-cue::before { border-color: #C9D4DF; background-image: linear-gradient(#2F9E52, #2F9E52); }
.story-rail li { color: rgba(20,43,82,.35); }
.story-rail li.on { color: #142B52; }
.story .btn--glass { background: rgba(255,255,255,.7); color: #142B52; border-color: #C9D4DF; }
.story .btn--glass:hover { background: #fff; border-color: #142B52; }
@media (max-width: 860px) { .panel--hero .panel-inner { background: linear-gradient(180deg, transparent, rgba(247,251,249,.92) 30%); } }

.lab { color: var(--text); background:
  radial-gradient(700px 500px at var(--mx, 30%) var(--my, 40%), rgba(240,164,58,.22), transparent 65%),
  linear-gradient(180deg, #FFF8EC, #FBEBD2); }
.lab::after { opacity: .4; }
.lab h2 { color: #142B52; }
.lab .lead { color: #5A4A33; }
.lab-tabs button { color: #6B4A1A; }
.lab-tabs button:hover { background: rgba(185,120,26,.1); color: #142B52; }
.lab-tabs button[aria-selected="true"] { background: #fff; border-color: rgba(185,120,26,.5); color: #142B52; box-shadow: 0 8px 20px -14px rgba(120,70,10,.5); }
.lab-detail h3 { color: #142B52; }
.lab-detail p { color: #4E4130; }
.lab-detail h4 { color: #A8650F; }
.chips-amber li { background: rgba(185,120,26,.14); color: #6B3F08; }
.chips-line li { border-color: rgba(107,63,8,.3); color: #6B3F08; }
.rx-note { color: #8A6A3E; }
.lab .btn--glass { background: #fff; color: #142B52; border-color: rgba(107,63,8,.25); }
.marquee { border-color: rgba(185,120,26,.3); }
.marquee span { -webkit-text-stroke-color: rgba(168,101,15,.6); }
.marquee span:nth-child(3n+1) { color: #B9781A; }

/* ---------- Masthead: contact strip + menu stay pinned ---------- */
.masthead { position: sticky; top: 0; z-index: 60; }
.masthead .site-header { position: relative; top: auto; }
.brand-3d { perspective: 700px; display: inline-block; }
.brand-3d img { height: 82px; width: auto; background: #fff; border-radius: 50%/60%; padding: 3px 6px;
  transform: rotateY(-16deg) rotateX(8deg); transform-style: preserve-3d;
  box-shadow: 0 1px 0 #d9e3ee, 0 2px 0 #c3d1e0, 0 3px 0 #aebfd2, 0 4px 0 #99adc4, 0 5px 0 #8299b4, 0 14px 22px -6px rgba(0,0,0,.55), inset 0 -6px 12px rgba(20,43,82,.12);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), height .3s ease; animation: coin 7s ease-in-out infinite; }
.brand-3d::after { content: ""; position: absolute; }
.brand:hover .brand-3d img { animation-play-state: paused; transform: rotateY(0) rotateX(0) scale(1.04); }
@keyframes coin { 0%, 100% { transform: rotateY(-16deg) rotateX(8deg); } 50% { transform: rotateY(14deg) rotateX(4deg); } }
.site-header .wrap { min-height: 96px; transition: min-height .3s ease; }
.masthead.is-scrolled .site-header .wrap { min-height: 74px; }
.masthead.is-scrolled .brand-3d img { height: 62px; }
.site-header .brand img { background: #fff; }
@media (max-width: 1140px) { .nav { inset: 0; top: var(--mast-h, 136px); } }
@media (max-width: 560px) { .brand-3d img { height: 64px; } .masthead.is-scrolled .brand-3d img { height: 52px; } .site-header .wrap { min-height: 80px; } }
@media (prefers-reduced-motion: reduce) { .brand-3d img { animation: none; } }
.site-header { background: #0B1A33; backdrop-filter: none; }

/* ---------- 3D logo medallion (WebGL) ---------- */
.brand-3d { position: relative; display: block; width: 136px; height: 88px; perspective: none; transition: width .3s ease, height .3s ease; }
.brand-3d img { width: 100%; height: 100%; object-fit: contain; animation: none; transform: none; box-shadow: none; padding: 3px 6px; }
.brand-3d.has-3d img { visibility: hidden; }
.brand-3d canvas { position: absolute; inset: -6px -10px; width: calc(100% + 20px) !important; height: calc(100% + 12px) !important; filter: drop-shadow(0 8px 10px rgba(0,0,0,.45)); }
.brand:hover .brand-3d img { transform: none; }
.masthead.is-scrolled .brand-3d { width: 104px; height: 66px; }
.masthead.is-scrolled .brand-3d img { height: 100%; }
@media (max-width: 560px) { .brand-3d { width: 100px; height: 64px; } .masthead.is-scrolled .brand-3d { width: 86px; height: 54px; } }
@media (max-width: 1320px) { .site-header .brand-name { display: none; } }

/* ---------- Bigger logo + pharmacy name ---------- */
.brand { gap: 16px; }
.brand-3d { width: 184px; height: 118px; }
.masthead.is-scrolled .brand-3d { width: 136px; height: 87px; }
.site-header .wrap { min-height: 132px; }
.masthead.is-scrolled .site-header .wrap { min-height: 96px; }
.site-header .brand-name { display: block; font: 800 1.7rem/1 var(--f-display); letter-spacing: -.02em; color: #fff; }
.site-header .brand-name small { font: 800 1.05rem/1.1 var(--f-display); color: #8BE3A9; margin-top: 4px; letter-spacing: 0; }
.site-header .brand-name em { display: block; font: 700 .8rem/1.2 var(--f-body); font-style: normal; color: #A9B9D0; margin-top: 4px; }
.masthead.is-scrolled .site-header .brand-name { font-size: 1.4rem; }
.masthead.is-scrolled .site-header .brand-name small { font-size: .92rem; }
.masthead.is-scrolled .site-header .brand-name em { display: none; }
.site-header .brand-name, .site-header .brand-name small { transition: font-size .3s ease; }
.nav a { padding: 10px 11px; }
.cta-short { display: none; }
@media (max-width: 1440px) { .cta-long { display: none; } .cta-short { display: inline; } }
@media (max-width: 1320px) { .site-header .brand-name { display: block; } }
@media (max-width: 1240px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav { position: fixed; inset: 0; top: var(--mast-h, 170px); background: var(--night); padding: 20px var(--gutter); transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; overflow-y: auto; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav a { font-size: 1.2rem; padding: 14px 16px; }
  .nav .btn { margin: 12px 0 0; justify-content: center; }
  .cta-long { display: inline; } .cta-short { display: none; }
}
@media (max-width: 560px) {
  .brand-3d { width: 116px; height: 74px; } .masthead.is-scrolled .brand-3d { width: 94px; height: 60px; }
  .site-header .wrap { min-height: 92px; } .masthead.is-scrolled .site-header .wrap { min-height: 76px; }
  .site-header .brand-name { font-size: 1.2rem; } .site-header .brand-name small { font-size: .82rem; } .site-header .brand-name em { display: none; }
  .masthead.is-scrolled .site-header .brand-name { font-size: 1.05rem; }
  .brand { gap: 10px; }
}
@media (max-width: 380px) { .site-header .brand-name { display: none; } }
