/* Annandale Village Pharmacy: tokens taken directly from the live site. */

:root {
  --ink: #1B2452;
  --ink-muted: #565E82;
  --ink-soft: #8A90AE;
  --nav-link: #3A4170;
  --orange: #F2682A;
  --orange-600: #DC5618;
  --orange-tint: #FDEEE6;
  --blue: #283C98;
  --blue-700: #232C6E;
  --tint: #EDEFF9;
  --bg: #FBFAFB;
  --border: #EAEBF3;
  --border-strong: #D6D9EC;
  --divider: #E1E2EE;
  --on-navy: #AEB4D8;
  --on-navy-soft: #8088B0;
  --green: #34C759;
  --shadow-card: 0 1px 2px rgba(27,36,82,.04);
  --shadow-hover: 0 18px 40px rgba(27,36,82,.14);
  --shadow-photo: 0 24px 60px rgba(27,36,82,.16);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; line-height: 1.06; letter-spacing: -.025em; margin: 0 0 16px; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 62px); }
h2 { font-size: clamp(27px, 3.6vw, 40px); letter-spacing: -.022em; }
h3 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 14px; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); text-decoration: underline; }
img, svg { max-width: 100%; }
::selection { background: var(--orange-tint); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.text-muted { color: var(--ink-soft); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 32px; top: 8px; z-index: 200; background: #fff; padding: 10px 16px; border-radius: 12px; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: background .16s, border-color .16s, transform .16s, box-shadow .16s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(242,104,42,.28); }
.btn-primary:hover { background: var(--orange-600); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--tint); color: var(--ink); }
.btn-block { display: flex; width: 100%; margin-top: 10px; }

/* ── Utility bar, header, notice ────────────────────────────────── */
.utilbar { background: var(--ink); color: var(--on-navy); font-size: 13px; font-weight: 500; }
.utilbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 22px; padding-block: 9px; }
.utilbar a { color: #fff; font-weight: 600; }
.openmark { display: inline-flex; align-items: center; gap: 9px; }
.openmark::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(52,199,89,.24); }
.utilnap { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }

.sitehead {
  position: sticky; top: 0; z-index: 100;
  /* Frosted glass: heavy blur plus saturation so colour bleeds through the panel. */
  background: rgba(251,250,251,.62);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid rgba(27,36,82,.08);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
}
/* Browsers without backdrop-filter get an opaque bar rather than unreadable text. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sitehead { background: rgba(251,250,251,.97); }
}
.sitehead .nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 20px; padding-block: 13px; }
.nav-brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-brand:hover { text-decoration: none; }
.nav-brand img { height: 46px; width: auto; display: block; }
.brandname {
  border-left: 1px solid var(--divider); padding-left: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .15em; line-height: 1.35;
  color: var(--blue); text-transform: uppercase;
}
.navlinks { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; margin-left: auto; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; }
.navlinks::-webkit-scrollbar { display: none; }
.navlinks a {
  color: var(--nav-link);
  padding: 7px 9px;
  border-radius: 8px;
  transition: background .18s ease, box-shadow .18s ease, color .18s ease;
}
.navlinks a:hover, .navlinks a:focus-visible {
  color: var(--orange);
  text-decoration: none;
  background: rgba(255,255,255,.75);
  box-shadow: 0 2px 10px rgba(27,36,82,.10), 0 0 0 1px rgba(27,36,82,.05);
}
.navlinks a[aria-current="page"] {
  color: var(--orange);
  text-decoration: none;
  background: rgba(240,90,40,.09);
  box-shadow: 0 1px 6px rgba(240,90,40,.14);
}
.headcall { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; flex-shrink: 0; }
.headcall:hover { color: var(--ink); text-decoration: none; }
.headcall span { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: var(--tint); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; }
.sitehead .btn { padding: 12px 22px; font-size: 14.5px; white-space: nowrap; flex-shrink: 0; }

.notice { background: var(--blue); color: #fff; }
.notice .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; padding-block: 11px; text-align: center; font-size: 14.5px; font-weight: 600; }
.notice a { color: #fff; text-decoration: underline; }
.flag { background: var(--orange); border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--tint); color: var(--blue);
  font-size: 13px; font-weight: 700; letter-spacing: .01em;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.crumbs { font-size: 13px; padding: 20px 0 0; color: var(--ink-soft); font-weight: 500; }
.crumbs a { color: var(--ink-soft); }
.crumbs span { color: var(--ink); font-weight: 700; }

/* ── Sections ───────────────────────────────────────────────────── */
.kicker { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin: 0 0 14px; }
.hero { padding: 80px 0 56px; }
.herogrid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.lede { font-size: 19px; line-height: 1.6; color: var(--ink-muted); max-width: 520px; }
.ctarow { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.heroshot { border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-photo); aspect-ratio: 4/5; max-width: 400px; }
.heroshot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sect { padding: 96px 0; }
.sect-tint { background: var(--tint); }
.cols { display: grid; grid-template-columns: 1fr; gap: 40px; }
.prose { max-width: 40em; }
.prose p, .prose li { font-size: 16.5px; line-height: 1.72; color: var(--ink-muted); text-wrap: pretty; }
.prose h2 { margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 30px; font-size: 19px; }
.prose ul { padding-left: 1.15em; margin: 0 0 20px; }
.prose li { margin-bottom: 8px; }

.panel { background: #fff; border: 1px solid var(--border); border-radius: 26px; padding: 30px; box-shadow: var(--shadow-card); }
.panel h2 { font-size: 19px; }
.hourslist { width: 100%; border-collapse: collapse; font-size: 15px; }
.hourslist caption { text-align: left; }
.hourslist th { text-align: left; font-weight: 500; color: var(--ink-muted); padding: 12px 0; border-bottom: 1px solid var(--border); }
.hourslist td { text-align: right; font-weight: 800; padding: 12px 0; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.hourslist tr:last-child th, .hourslist tr:last-child td { border-bottom: 0; }

.cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 22px; }
.cardgrid a {
  display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 26px;
  padding: 30px; color: var(--ink); box-shadow: var(--shadow-card);
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.cardgrid a:hover { text-decoration: none; box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: var(--border-strong); }
.cardgrid h3 { margin: 0; }
.cardgrid p { font-size: 14.5px; margin: 0; color: var(--ink-soft); line-height: 1.55; }
.cardgrid .more { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 700; color: var(--orange); }

.faq { display: grid; gap: 16px; max-width: 46em; margin-inline: auto; }
.faqitem { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 30px 34px; box-shadow: var(--shadow-card); }
.faqitem h3 { margin: 0 0 10px; font-size: 19.5px; line-height: 1.25; }
.faqitem p { margin: 0 0 14px; font-size: 16.5px; color: #3D4770; line-height: 1.78; max-width: 40em; }
.faqitem p:last-child { margin-bottom: 0; }

.quotes { display: grid; grid-template-columns: 1fr; gap: 20px; }
.quotes blockquote { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 26px; padding: 30px; box-shadow: var(--shadow-card); }
.quotes .stars { color: var(--orange); font-size: 14px; letter-spacing: 3px; margin: 0 0 12px; }
.quotes p { font-size: 15.5px; line-height: 1.66; color: var(--ink-muted); }
.quotes cite { font-style: normal; font-size: 13px; font-weight: 700; color: var(--ink-soft); }

.poster { padding: 32px 0 72px; }
.poster .wrap { max-width: 1240px; }
.postercard {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(155deg, #2E43AD 0%, var(--blue) 42%, #1D2A6E 100%);
  border-radius: 34px; padding: 88px 40px; text-align: center; color: #fff;
}
/* Translucent orange glow, top right, echoing the brand accent. */
.postercard::before {
  content: ""; position: absolute; z-index: -1;
  top: -18%; right: -8%; width: 46%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(242,104,42,.55) 0%, rgba(242,104,42,.18) 45%, rgba(242,104,42,0) 72%);
  filter: blur(10px);
}
.postercard::after {
  content: ""; position: absolute; z-index: -1;
  bottom: -30%; left: -10%; width: 42%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(242,104,42,.24) 0%, rgba(242,104,42,0) 68%);
}
.postercard > * { position: relative; }
.postercard .kicker { color: var(--orange); opacity: 1; }
.postercard h2 { color: #fff; max-width: 22em; margin-inline: auto; }
.postercard p { color: rgba(255,255,255,.82); font-size: 18px; max-width: 34em; margin-inline: auto; }
.postercard .ctarow { justify-content: center; }
.btn-invert { background: rgba(255,255,255,.1); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; border-color: rgba(255,255,255,.32); }
.btn-invert:hover { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.5); }

/* ── Footer ─────────────────────────────────────────────────────── */
.sitefoot { background: var(--ink); color: var(--on-navy); padding: 56px 0 0; }
.sitefoot a { color: var(--on-navy); }
.sitefoot a:hover { color: #fff; text-decoration: underline; }
.footgrid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.footgrid h2 { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 0; margin-bottom: 16px; }
.footgrid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footgrid li, .footgrid a { font-size: 14.5px; }
.footgrid .text-muted { color: var(--on-navy-soft); }
.footname { display: block; color: #fff; font-size: 15px; font-weight: 700; margin: 20px 0 10px; }
.footlogo { background: #fff; padding: 12px 16px; border-radius: 14px; display: inline-block; }
.footlogo img { height: 38px; width: auto; display: block; }
.nap { font-style: normal; font-size: 14.5px; line-height: 1.7; }
.nap { max-width: 290px; }
.grouplock { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; }
.grouplock .wrap { padding-block: 20px; }
.legal { font-size: 13px; line-height: 1.7; color: var(--on-navy-soft); margin: 0; }

@media (min-width: 900px) {
  .herogrid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .cols { grid-template-columns: 1.6fr 1fr; gap: 56px; }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .footgrid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (max-width: 899px) {
  .heroshot { margin-inline: auto; }
}
/* Five links, the brand lockup and the CTA fit one 1176px line with room to
   spare. Below that, shed the tag, then the phone, then give the links a row. */
@media (max-width: 1150px) { .brandname { display: none; } }
@media (max-width: 1040px) { .headcall { display: none; } .navlinks { gap: 20px; font-size: 14.5px; } }
@media (max-width: 880px) {
  .sitehead .nav { flex-wrap: wrap; row-gap: 12px; }
  .navlinks { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; white-space: normal; gap: 10px 22px; }
  .sitehead .btn { margin-left: auto; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .postercard { padding: 48px 24px; border-radius: 22px; }
  .sect { padding: 64px 0; }
}

/* Problem framing: three named pain points before the solution. */
.problems { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 40px; }
.problem { border-top: 3px solid var(--orange); padding-top: 22px; }
.problem h3 { font-size: 21px; margin: 0 0 10px; }
.problem p { font-size: 16px; line-height: 1.66; color: var(--ink-muted); margin: 0; }
.quotes cite strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
@media (min-width: 860px) { .problems { grid-template-columns: repeat(3, 1fr); gap: 34px; } }

/* Government schedule tables and disease reference lists. */
.dtable { width: 100%; border-collapse: collapse; background: #fff; font-size: 15.5px; }
.dtable caption { caption-side: top; text-align: left; background: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); padding: 20px 22px 14px; }
.dtable th, .dtable td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--border); vertical-align: top; }
.dtable thead th { background: var(--tint); color: var(--ink); font-weight: 700; font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; }
.dtable tbody th { font-weight: 800; white-space: nowrap; width: 1%; }
.dtable tbody td { color: var(--ink-muted); }
.dtable tr:last-child th, .dtable tr:last-child td { border-bottom: 0; }
.tablescroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 24px; background: #fff; border: 1px solid var(--border); border-radius: 26px; }
.tablescroll .dtable { min-width: 560px; }
.free { display: inline-block; background: #E4F7EA; color: #17703C; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.paid { display: inline-block; background: var(--tint); color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.source { background: var(--tint); border-radius: 26px; padding: 26px 30px; margin-top: 40px; }
.source h2 { font-size: 17px; margin-bottom: 10px; }
.source p, .source li { font-size: 14.5px; color: var(--ink-muted); line-height: 1.65; }
.source ul { margin: 0; padding-left: 1.15em; }
.callout { border-left: 4px solid var(--orange); background: #fff; border-radius: 0 20px 20px 0; padding: 20px 24px; margin: 28px 0; }
.callout p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-muted); }
.callout strong { color: var(--ink); }

/* Card icons: Lucide line glyphs in a tinted chip, matching the site's chip treatment. */
.cardicon { width: 52px; height: 52px; border-radius: 16px; background: var(--tint); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-bottom: 6px; }
.cardicon-o { background: var(--orange-tint); color: #C4501A; }
.cardicon svg { width: 25px; height: 25px; display: block; }
.cardgrid a:hover .cardicon { background: var(--blue); color: #fff; }
.cardgrid a:hover .cardicon-o { background: var(--orange); color: #fff; }

/* FAQ sections: centred column, answers stay left-aligned for readability. */
.faqsect { text-align: center; }
.faqsect .faq { text-align: left; }
.faqsect > .wrap > h2 { max-width: 24em; margin-inline: auto; }
@media (max-width: 720px) { .faqitem { padding: 24px 22px; } }

/* Frosted notice bar, declared after the base rule so it wins. */
.notice {
  background: rgba(40,60,152,.88);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .notice { background: var(--blue); }
}

/* Header width budget: tighten the nav before it can collide with the CTA. */
@media (max-width: 1180px) {
  .navlinks { font-size: 14px; }
  .navlinks a { padding: 7px 7px; }
  .sitehead .nav { gap: 14px; }
}
@media (max-width: 1040px) {
  .navlinks { font-size: 13px; }
  .navlinks a { padding: 6px 5px; }
  .nav-brand img { height: 38px; }
  .brandname { display: none; }
}

/* ── Mobile ──────────────────────────────────────────────────────────
   Grid tracks default to min-width:auto, so a wide child (the 560px
   schedule tables) props the whole column open and the page scrolls
   sideways. minmax(0,1fr) lets tracks actually shrink. */
.cols, .herogrid, .footgrid, .problems, .quotes { grid-template-columns: minmax(0, 1fr); }
/* auto-fill already collapses to one column on narrow screens - leave it alone. */
.cardgrid { grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); }
.cols > *, .herogrid > *, .footgrid > *, .cardgrid > *, .prose, .panel, .tablescroll { min-width: 0; }
.prose img, .heroshot img, .postercard img { max-width: 100%; height: auto; }
.prose { max-width: 40em; }

@media (min-width: 900px) {
  .cols { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .herogrid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .footgrid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 860px) { .problems { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 32px; }
  .sect { padding: 48px 0; }
  h1 { font-size: 32px; line-height: 1.12; }
  h2 { font-size: 25px; line-height: 1.18; }
  .lede { font-size: 17px; }
  /* Full-width tap targets: 48px minimum, one action per row. */
  .ctarow { flex-direction: column; align-items: stretch; gap: 10px; }
  .ctarow .btn { width: 100%; min-height: 48px; justify-content: center; }
  .navlinks a { min-height: 44px; display: inline-flex; align-items: center; }
  .postercard { padding: 36px 20px; border-radius: 18px; }
  .panel { padding: 22px 18px; }
  .faqitem { padding: 20px 18px; }
  /* Tables stay swipeable rather than squashed, but no longer widen the page. */
  .tablescroll { border-radius: 16px; }
  .tablescroll .dtable { min-width: 480px; }
  .dtable th, .dtable td { padding: 12px 14px; font-size: 14.5px; }
  .hourslist th, .hourslist td { font-size: 14.5px; }
  .footgrid { gap: 32px; }
  .nap { max-width: none; }
}
@media (max-width: 380px) {
  h1 { font-size: 28px; }
  .wrap { padding: 0 14px; }
}

@media (max-width: 400px) {
  /* Address row wraps rather than forcing the panel wider than the screen. */
  .hourslist { table-layout: fixed; }
  .hourslist th, .hourslist td { word-break: break-word; hyphens: auto; }
  .hourslist td { font-variant-numeric: tabular-nums; }
}

/* A wrapped 3-row nav pinned to the top eats a third of a phone screen.
   Below 880px the header scrolls away with the page instead. */
@media (max-width: 880px) {
  .sitehead { position: static; }
  .sitehead .nav { padding-block: 10px; }
  .navlinks { gap: 6px 10px; }
}
/* Touch floor across the whole touch range, added as HEIGHT only —
   extra horizontal padding would re-collide with the CTA at 881-1040px. */
@media (max-width: 1040px) {
  .navlinks a { min-height: 46px; display: inline-flex; align-items: center; }
}
