/* ==========================================================================
   Comcare Pharmacy - stylesheet
   ========================================================================== */

:root {
  --red: #E1121C;
  --red-dark: #B60D16;
  --blue: #1479E0;
  --blue-link: #1268C3;      /* darker blue for text links: 5.5:1 on white */
  --blue-deep: #0A2E5C;
  --blue-tint: #EAF3FD;
  --red-tint: #FDEDEE;
  --ink: #13202E;
  --muted: #5A6878;
  --line: #E2E8EF;
  --grey: #F5F8FB;
  --white: #FFFFFF;

  --font-head: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1200px;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 22px;
  --shadow: 0 1px 2px rgba(19, 32, 46, .06), 0 4px 14px rgba(19, 32, 46, .05);
  --shadow-lift: 0 2px 4px rgba(19,32,46,.05), 0 12px 28px rgba(19,32,46,.09);
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--blue-deep); margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--blue-link); }
ul { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: .4rem; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--blue-deep); color: #fff; padding: 10px 16px;
  border-radius: var(--radius); font-weight: 600; text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .9375rem;
  padding: .78rem 1.5rem; border-radius: 100px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-blue { background: var(--blue-deep); color: #fff; border-color: var(--blue-deep); }
.btn-blue:hover { background: #06203f; border-color: #06203f; }
.btn-outline { background: transparent; color: var(--blue-deep); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue-deep); background: var(--grey); }
.btn-light { background: #fff; color: var(--blue-deep); border-color: #fff; }
.btn-light:hover { background: var(--blue-tint); border-color: var(--blue-tint); }
.btn-sm { padding: .58rem 1.15rem; font-size: .875rem; }

/* --- Promo bar ------------------------------------------------------------ */
.promo {
  background: var(--red); color: #fff; font-size: .875rem;
  padding: 9px 0 26px;   /* extra bottom padding shows behind the masthead's rounded corners */
}
.promo .wrap { display: flex; align-items: center; justify-content: center; gap: .7rem; flex-wrap: wrap; text-align: center; }
.promo p { margin: 0; font-weight: 500; }
.promo a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.promo a:hover { text-decoration-thickness: 2px; }

/* --- Masthead (sticky, rounded over the promo bar) ------------------------ */
.masthead { position: sticky; top: 0; z-index: 100; margin-top: -18px; }
.masthead-inner {
  background: #fff; border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border-bottom: 1px solid var(--line); transition: border-radius .18s ease, box-shadow .18s ease;
}
.masthead.is-stuck .masthead-inner { border-radius: 0; box-shadow: 0 2px 14px rgba(19, 32, 46, .10); }

.masthead-top .wrap { display: flex; align-items: center; gap: 22px; min-height: 102px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 56px; width: auto; }   /* wordmark logo: reads larger than the old cross lockup */

.locator {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
  color: var(--ink); padding: .5rem .8rem; border-radius: 100px; border: 1px solid var(--line);
}
.locator:hover { border-color: var(--blue-deep); background: var(--grey); }
.locator > svg { width: 19px; height: 19px; flex: none; color: var(--red); }
.locator b { display: block; font-family: var(--font-head); font-size: .875rem; font-weight: 700; color: var(--blue-deep); line-height: 1.25; }
.locator .loc-hours { display: block; font-size: .75rem; color: var(--muted); }

.masthead-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.mast-link {
  display: inline-flex; align-items: center; gap: .45rem; text-decoration: none;
  font-family: var(--font-head); font-size: .875rem; font-weight: 600; color: var(--ink);
  padding: .55rem .8rem; border-radius: 100px;
}
.mast-link:hover { color: var(--red); background: var(--grey); }
.mast-link svg { width: 18px; height: 18px; flex: none; }

.nav-toggle {
  display: none; margin-left: auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); width: 46px; height: 46px; cursor: pointer;
  align-items: center; justify-content: center; color: var(--blue-deep);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

.masthead-nav { border-top: 1px solid var(--line); }
.nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a {
  display: block; padding: .85rem .9rem; font-family: var(--font-head);
  font-size: .9375rem; font-weight: 600; color: var(--ink); text-decoration: none;
  white-space: nowrap; border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }
.nav .nav-cta, .nav .nav-extra { display: none; }
/* .nav a's color rule otherwise outranks .btn-primary's white text on this button */
.nav .nav-cta .btn { color: #fff; }

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; background: var(--blue-deep); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
/* Targeted scrim: the photo stays at full opacity across the right and top. */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(3,17,33,.90) 0%, rgba(3,17,33,.84) 26%, rgba(3,17,33,.58) 46%, rgba(3,17,33,.16) 60%, rgba(3,17,33,0) 72%),
    linear-gradient(to top, rgba(3,17,33,.42) 0%, rgba(3,17,33,0) 45%);
}
.hero-inner { position: relative; padding: 100px 24px 92px; min-height: 540px; display: flex; align-items: flex-end; }
.hero-copy { max-width: 470px; }   /* keeps the headline clear of the Rx bag branding in the hero photo */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-head); font-size: .8125rem; font-weight: 700;
  color: #fff; background: rgba(225,18,28,.95); padding: .42rem .85rem;
  border-radius: 100px; margin-bottom: 1.15rem;
}
.hero-eyebrow svg { width: 15px; height: 15px; }
.hero h1 { color: #fff; margin-bottom: 1.35rem; text-shadow: 0 2px 18px rgba(3,17,33,.45); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Trust strip (below the hero) ----------------------------------------- */
/* Compact service bar: one row of icon-over-label items, no dividers.
   Reads as a retail category strip rather than a stack of feature rows. */
.trust-strip { background: #fff; border-bottom: 1px solid var(--line); }
.trust-strip ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
}
.trust-strip li {
  margin: 0; padding: 18px 8px 20px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 9px;
}
.trust-ill { width: 32px; height: 32px; flex: none; }
.trust-ill svg { width: 100%; height: 100%; }
.trust-strip b {
  display: block; font-family: var(--font-head); font-size: .78rem;
  font-weight: 700; color: var(--blue-deep); line-height: 1.32; letter-spacing: -.005em;
}

/* --- Store facts bar ------------------------------------------------------ */
.facts { border-bottom: 1px solid var(--line); background: var(--grey); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact {
  display: flex; gap: 14px; padding: 26px 28px 26px 0;
  border-right: 1px solid var(--line); text-decoration: none; color: inherit;
}
.fact:last-child { border-right: 0; }
.fact + .fact { padding-left: 28px; }
.fact-icon {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: var(--red-tint); color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.fact-icon svg { width: 20px; height: 20px; }
.fact-label {
  display: block; font-family: var(--font-head); font-size: .6875rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--red); margin-bottom: .3rem;
}
.fact-value {
  display: block; font-family: var(--font-head); font-size: .9375rem; font-weight: 700;
  color: var(--blue-deep); line-height: 1.35; overflow-wrap: break-word;
}
.fact-value.is-long { font-size: .8125rem; letter-spacing: -.01em; }
a.fact:hover .fact-value { color: var(--red); }
.fact-help { display: block; font-size: .8125rem; color: var(--muted); margin-top: .2rem; }

/* --- Sections ------------------------------------------------------------- */
.section { padding: 76px 0; }
.section-grey { background: var(--grey); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 660px; margin-bottom: 38px; }
/* card-row sections read centred, matching retail pharmacy layouts */
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: block; font-family: var(--font-head); font-size: .75rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--red); margin-bottom: .6rem;
}
.lede { color: var(--muted); font-size: 1.0625rem; margin-bottom: 0; }

/* --- Illustration badge --------------------------------------------------- */
.ill-badge {
  width: 76px; height: 76px; border-radius: 50%; background: var(--grey);
  display: flex; align-items: center; justify-content: center; flex: none; margin-bottom: 18px;
}
.ill-badge svg { width: 48px; height: 48px; }
.ill-badge.on-tint { background: var(--blue-tint); }
.ill-badge.sm { width: 60px; height: 60px; margin-bottom: 14px; }
.ill-badge.sm svg { width: 38px; height: 38px; }

/* --- Photo feature cards -------------------------------------------------- */
.feature-grid {
  display: grid; gap: 20px; justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(228px, 272px));
}
.feature-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; transition: border-color .15s ease;
}
.feature-card:hover { border-color: #C2CBD8; }
.feature-media { position: relative; aspect-ratio: 16 / 9; background: var(--grey); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-tag {
  position: absolute; left: 14px; top: 14px; z-index: 1;
  font-family: var(--font-head); font-size: .6875rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: #fff;
  background: var(--red); padding: .35rem .7rem; border-radius: 100px;
}
.feature-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.feature-body h3 { font-size: 1.125rem; line-height: 1.3; margin-bottom: .45rem; }
.feature-body p { font-size: .875rem; font-weight: 300; color: var(--ink); line-height: 1.5; margin-bottom: 1.25rem; }
.feature-body .btn { align-self: flex-start; margin-top: auto; }
/* card CTAs sit quiet: small outline pill, visible-but-light border */
.feature-body .btn-outline {
  background: #fff; border-color: #9AA6B8; color: var(--blue-deep);
  padding: .4rem .95rem; font-size: .8125rem; line-height: 1.45; white-space: nowrap;
}
.feature-body .btn-outline:hover { border-color: var(--blue-deep); background: var(--grey); }
.feature-body .btn-outline svg { width: 14px; height: 14px; }

/* --- Category cards ------------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cat-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px 22px 22px; text-decoration: none;
  color: inherit; transition: border-color .15s ease, box-shadow .18s ease, transform .18s ease;
}
.cat-card:hover { border-color: #C2CBD8; }
.cat-card h3 { margin-bottom: .35rem; font-size: 1.0625rem; }
.cat-card p { font-size: .875rem; color: var(--muted); margin: 0; }
.cat-count { display: block; margin-top: auto; padding-top: .9rem; font-size: .8125rem; font-weight: 700; color: var(--red); font-family: var(--font-head); }

/* --- Service tiles -------------------------------------------------------- */
.svc-grid {
  display: grid; gap: 20px; justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(228px, 272px));
}
.svc-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 26px;
  transition: box-shadow .18s ease, transform .18s ease;
}
.svc-card:hover { border-color: #C2CBD8; }
.svc-card h3 { margin-bottom: .45rem; }
.svc-card p { font-size: .9375rem; color: var(--muted); margin-bottom: 1.2rem; }
.svc-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-head); font-weight: 700; font-size: .875rem;
  color: var(--blue-link); text-decoration: none;
}
.svc-link:hover { color: var(--red); text-decoration: underline; }
.svc-link svg { width: 14px; height: 14px; }

/* --- Promo panels (Rexall-style wide callouts) ---------------------------- */
.panel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.wide-panel {
  display: flex; align-items: center; gap: 20px; padding: 26px 28px;
  border-radius: var(--radius-lg); text-decoration: none;
}
.wide-panel .ill-badge { margin-bottom: 0; background: #fff; }
.wide-panel h3 { margin-bottom: .35rem; font-size: 1.125rem; }
.wide-panel p { margin: 0; font-size: .9375rem; }
.wide-panel.deep { background: var(--blue-deep); }
.wide-panel.deep h3 { color: #fff; }
.wide-panel.deep p { color: #C9D9EA; }
.wide-panel.tint { background: var(--blue-tint); border: 1px solid #CFE3F8; }
.wide-panel.tint p { color: var(--muted); }
.wide-panel .arrow { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-weight: 700; font-size: .875rem; margin-top: .5rem; }
.wide-panel.deep .arrow { color: #fff; }
.wide-panel.tint .arrow { color: var(--blue-link); }
.wide-panel .arrow svg { width: 14px; height: 14px; }
.wide-panel:hover .arrow { text-decoration: underline; }

/* --- Split panel ---------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-narrow { gap: 48px; grid-template-columns: 1.05fr .95fr; }
.split img { width: 100%; height: auto; display: block; }
.figure-frame { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--grey); }
.figure-frame img { max-height: 560px; object-fit: cover; object-position: center 22%; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .7rem; font-size: .9375rem; }
.check-list svg { width: 19px; height: 19px; flex: none; color: var(--red); margin-top: 2px; }

.cta-band { background: var(--blue-deep); color: #fff; }
.cta-band h2, .cta-band h3 { color: #fff; }
.cta-band p { color: #C9D9EA; }
.cta-band .eyebrow { color: #FF8A90; }
.cta-band .check-list svg { color: #6FD6A0; }
.cta-band .check-list li { color: #E4EDF7; }
.cta-panel {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg); padding: 30px;
}
.cta-panel dl { margin: 0; }
.cta-panel dt {
  font-family: var(--font-head); font-size: .6875rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: #7FB4EE; margin-bottom: .25rem;
}
.cta-panel dd { margin: 0 0 1.1rem; font-family: var(--font-head); font-size: 1.0625rem; font-weight: 700; color: #fff; }
.cta-panel dd a { color: #fff; text-decoration: none; }
.cta-panel dd a:hover { text-decoration: underline; }

/* --- Info cards ----------------------------------------------------------- */
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.info-grid-2 { grid-template-columns: repeat(2, 1fr); }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; display: flex; flex-direction: column;
}
.info-card h3 { font-size: 1rem; margin-bottom: .35rem; }
.info-card p { font-size: .9375rem; color: var(--muted); margin-bottom: .75rem; }
.info-card a.info-link {
  margin-top: auto; font-family: var(--font-head); font-weight: 700;
  font-size: .9375rem; color: var(--blue-link); text-decoration: none; overflow-wrap: break-word;
}
.info-card a.info-link:hover { color: var(--red); text-decoration: underline; }

/* --- Contact list (in-panel) ---------------------------------------------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .85rem; font-size: .9375rem; }
.contact-list li:last-child { margin-bottom: 0; }
.contact-list svg { width: 18px; height: 18px; flex: none; color: var(--red); margin-top: 2px; }
.contact-list a { font-family: var(--font-head); font-weight: 700; color: var(--blue-deep); text-decoration: none; overflow-wrap: break-word; }
.contact-list a:hover { color: var(--red); text-decoration: underline; }
.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li {
  display: flex; justify-content: space-between; gap: 1rem; font-size: .9375rem;
  border-bottom: 1px solid var(--line); padding-bottom: .5rem; margin-bottom: .5rem;
}
.hours-list li:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.hours-list span:last-child { font-family: var(--font-head); font-weight: 700; color: var(--blue-deep); white-space: nowrap; }

/* --- Hours table ---------------------------------------------------------- */
.hours-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.hours-card h3 { margin: 0; padding: 18px 24px; background: var(--grey); border-bottom: 1px solid var(--line); font-size: 1rem; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { padding: 13px 24px; text-align: left; font-size: .9375rem; border-bottom: 1px solid var(--line); }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table th { font-family: var(--font-head); font-weight: 600; color: var(--ink); width: 45%; }
.hours-table td { color: var(--blue-deep); font-weight: 600; font-family: var(--font-head); text-align: right; }
.hours-table tr.is-today { background: var(--blue-tint); }
.hours-table tr.is-today th::after {
  content: "Today"; margin-left: .6rem; font-size: .6875rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--blue-link);
  background: #fff; border: 1px solid #C5DDF7; padding: .1rem .4rem; border-radius: 3px;
}

/* --- Page header ---------------------------------------------------------- */
.page-head { background: var(--grey); border-bottom: 1px solid var(--line); padding: 54px 0 48px; }
.page-head p { max-width: 62ch; color: var(--muted); font-size: 1.0625rem; margin-bottom: 0; }
.page-head p + p { margin-top: .75rem; }
.page-head .page-tagline { color: var(--ink); font-weight: 600; }
.crumbs { font-size: .8125rem; color: var(--muted); margin-bottom: .9rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); text-decoration: underline; }
.crumbs span { margin: 0 .4rem; color: #A9B4C0; }

/* --- Forms ---------------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-size: .875rem; font-weight: 700; color: var(--blue-deep); margin-bottom: .4rem; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: .9375rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .7rem .85rem; background: #fff; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline-offset: 0; }
.field-hint { font-size: .8125rem; color: var(--muted); margin-top: .35rem; }
.phi-notice {
  display: flex; gap: 12px; background: var(--red-tint); border: 1px solid #F6C9CC;
  border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 24px;
}
.phi-notice svg { width: 20px; height: 20px; flex: none; color: var(--red); margin-top: 2px; }
.phi-notice p { margin: 0; font-size: .875rem; color: #6B2126; }
.form-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-note { font-size: .8125rem; color: var(--muted); margin: 0; }
.form-status {
  margin-top: 18px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--blue-tint); border: 1px solid #C5DDF7; color: var(--blue-deep);
  font-size: .9375rem; font-weight: 600;
}
.form-status[hidden] { display: none; }
/* failure state reuses the notice red already used by the PHI warning */
.form-status.is-error { background: var(--red-tint); border-color: #F6C9CC; color: #6B2126; }

/* --- Map ------------------------------------------------------------------ */
.map-frame { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--grey); line-height: 0; }
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

/* --- Misc content --------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.75rem; }
.panel { background: var(--grey); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; }
.panel h3 { margin-bottom: .5rem; }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }
.panel-links { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { position: relative; padding-left: 52px; margin-bottom: 22px; counter-increment: step; }
.steps li:last-child { margin-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%; background: var(--blue-deep); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: .9375rem;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin-bottom: .25rem; }
.steps p { font-size: .9375rem; color: var(--muted); margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.two-col-wide { grid-template-columns: 1.2fr .8fr; }
.stack-lg > * + * { margin-top: 20px; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--blue-deep); color: #C3D5E8; padding: 60px 0 0; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer-logo img { height: 54px; width: auto; margin-bottom: 20px; }
.site-footer h3 {
  font-family: var(--font-head); font-size: .75rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: #fff; margin: 0 0 1rem;
}
.site-footer p { color: #B6CBE0; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: #C3D5E8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; flex: none; color: #6FA9EA; margin-top: 3px; }
.footer-hours { list-style: none; padding: 0; margin: 0; }
.footer-hours li {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .2rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.09); padding-bottom: .5rem;
}
.footer-hours li:last-child { border-bottom: 0; }
.footer-hours span:last-child { color: #fff; font-weight: 600; white-space: nowrap; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0 28px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: .8125rem; color: #90A9C4;
}
.footer-bottom p { margin: 0; color: #90A9C4; }
.footer-credit a { color: #C3D5E8; text-decoration: none; font-weight: 600; }
.footer-credit a:hover { color: #fff; text-decoration: underline; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .info-grid, .info-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0; }
  .fact + .fact { padding-left: 0; }
  .facts-grid > .fact:nth-child(odd) { padding-right: 22px; border-right: 1px solid var(--line); }
  .facts-grid > .fact:nth-child(even) { padding-left: 22px; }
  .facts-grid > .fact:nth-last-child(-n+2) { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .locator .loc-hours { display: none; }
}

@media (max-width: 980px) {
  .masthead-top .wrap { min-height: 74px; gap: 14px; }
  .brand img { height: 42px; }
  .locator, .masthead-actions { display: none; }
  .nav-toggle { display: flex; }
  .masthead-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 26px rgba(19,32,46,.12); padding: 10px 0 20px;
  }
  .masthead-nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: .85rem .25rem; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); border-left-color: var(--red); background: var(--grey); padding-left: .75rem; }
  .nav .nav-extra { display: block; }
  .nav .nav-extra a { color: var(--muted); font-size: .875rem; }
  .nav .nav-cta { display: block; margin-top: 16px; }
  .nav .nav-cta .btn { width: 100%; }
  .split, .split-narrow, .two-col, .two-col-wide { grid-template-columns: 1fr; gap: 32px; }
  .split .figure-frame { order: -1; }
  .panel-row { grid-template-columns: 1fr; }
  .hero-inner { padding: 64px 24px 56px; min-height: 400px; }
  /* narrow viewports crop the hero horizontally: shift the frame so the headline
     sits over the shelves rather than across the Rx bag branding */
  .hero-media img { object-position: 28% center; }
  .hero-media::after {
    background: linear-gradient(to top, rgba(3,17,33,.88) 0%, rgba(3,17,33,.62) 48%, rgba(3,17,33,.34) 100%);
  }
  .form-grid { grid-template-columns: 1fr; }
  .trust-strip ul { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 720px) {
  .promo { font-size: .8125rem; padding: 8px 0 24px; }
  .section { padding: 54px 0; }
  .cat-grid, .info-grid, .info-grid-2, .facts-grid { grid-template-columns: 1fr; }
  /* let cards fill the width once only one fits per row */
  .svc-grid, .feature-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .fact, .facts-grid > .fact:nth-child(odd), .facts-grid > .fact:nth-child(even) { border-right: 0; padding-left: 0; padding-right: 0; }
  .facts-grid > .fact:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .facts-grid > .fact:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-card, .cta-panel, .panel { padding: 22px; }
  .wide-panel { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; }
  .hero-actions .btn { width: 100%; }
  .hours-table th, .hours-table td { padding: 12px 16px; }
  .map-frame iframe { height: 320px; }
}

@media (max-width: 720px) {
  .trust-strip ul { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .trust-strip ul { grid-template-columns: repeat(2, 1fr); }
  .trust-strip li { padding: 16px 6px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
  .feature-card:hover, .cat-card:hover, .svc-card:hover { transform: none; }
}
