/* Econo-Mart Pharmacy. Colors and type follow the Econo-Mart brand guide:
   Heritage Blue #2E4A66, Sage #5F8A6F, Pale Sage #A9C4B2, Cream #F3ECDC, Work Sans. */
:root {
  --blue: #2E4A66;
  --blue-dark: #223a52;
  --blue-deep: #1b2f43;
  --sage: #5F8A6F;
  --sage-dark: #4a7259;
  --sage-pale: #A9C4B2;
  --sage-wash: #e6efe8;
  --cream: #F3ECDC;
  --paper: #faf8f3;
  --line: #e4dfd4;
  --ink: #1f2a25;
  --ink-soft: #5b625e;
  --accent: #b35a3d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31,42,37,.06), 0 8px 24px rgba(31,42,37,.07);
  --serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --sans: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--sage-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; color: var(--blue-deep); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sage-dark); margin-bottom: 14px; display: block; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 13px 22px; border-radius: 10px; font: 600 1rem/1.2 var(--sans);
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-sage { background: var(--sage); color: #fff; }
.btn-sage:hover { background: var(--sage-dark); color: #fff; }
.btn-ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--blue-deep); }
.btn-light:hover { background: var(--cream); color: var(--blue-deep); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar */
.topbar { background: var(--blue-deep); color: #dfe7ee; font-size: .88rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar-links { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-phone { font-weight: 600; }
.today b { color: var(--sage-pale); font-weight: 600; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 0; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:not(.btn):hover { background: var(--cream); color: var(--blue-deep); }
.nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--sage); border-radius: 0; }
.nav-cta { margin-left: 10px; padding: 11px 18px; }
.menu-btn { display: none; align-items: center; gap: 10px; background: none; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 14px; font: 600 .95rem var(--sans); color: var(--blue-deep); cursor: pointer; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
.menu-bars::before { position: absolute; top: -6px; }
.menu-bars::after { position: absolute; top: 6px; }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--sage); padding-left: 14px; }
  .nav-cta { margin: 12px 0 0; }
  .brand img { width: 128px; }
  .topbar-links a:first-child { display: none; }
}

/* Sections */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.band-cream { background: var(--cream); }
.band-blue { background: var(--blue); color: #e9eef3; }
.band-blue h2, .band-blue h3 { color: #fff; }
.band-blue .eyebrow { color: var(--sage-pale); }

/* Hero */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); background:
  radial-gradient(1200px 400px at 85% -10%, rgba(169,196,178,.35), transparent 60%), var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--sage-dark); }
.hero .lead { margin-bottom: 28px; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: 22px; box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero-card {
  position: absolute; left: -28px; bottom: -28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 20px; display: flex; gap: 14px; align-items: center; max-width: 290px; border: 1px solid var(--line);
}
.hero-card .dot { width: 44px; height: 44px; border-radius: 50%; background: var(--sage-wash); display: grid; place-items: center; flex: none; color: var(--sage-dark); }
.hero-card .dot svg { width: 22px; height: 22px; }
.hero-card strong { display: block; color: var(--blue-deep); }
.hero-card span { font-size: .9rem; color: var(--ink-soft); }
.hero-facts { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.hero-facts div { border-left: 3px solid var(--sage-pale); padding-left: 14px; }
.hero-facts strong { display: block; font: 400 1.6rem/1.1 var(--serif); color: var(--blue); }
.hero-facts span { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { position: relative; left: auto; bottom: auto; margin: -36px 16px 0; max-width: none; }
}

/* Quick actions */
.quick { margin-top: -40px; position: relative; z-index: 2; padding: 0; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick a {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; transition: transform .15s, border-color .15s;
}
.quick a:hover { transform: translateY(-2px); border-color: var(--sage-pale); color: var(--ink); }
.quick strong { font-size: 1.05rem; color: var(--blue-deep); }
.quick span { font-size: .93rem; color: var(--ink-soft); }
.quick .ico { color: var(--sage-dark); margin-bottom: 6px; }
@media (max-width: 860px) { .quick { margin-top: 32px; } .quick-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .quick-grid { grid-template-columns: 1fr; } }

.ico { width: 34px; height: 34px; display: inline-block; }
.ico svg { width: 100%; height: 100%; }

/* Cards / services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-top: 12px; }
.card p:last-child { margin-bottom: 0; }
.card .ico { color: var(--sage-dark); width: 40px; height: 40px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.service-list { display: grid; gap: 0; }
.service { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.service:last-child { border-bottom: 1px solid var(--line); }
.service .ico-wrap { width: 64px; height: 64px; border-radius: 16px; background: var(--sage-wash); color: var(--sage-dark); display: grid; place-items: center; }
.service .ico-wrap svg { width: 32px; height: 32px; }
.service h2 { font-size: 1.6rem; }
.service p { max-width: 70ch; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1em; }
.pills li { background: var(--cream); border-radius: 999px; padding: 5px 14px; font-size: .92rem; color: var(--blue-deep); }
@media (max-width: 560px) { .service { grid-template-columns: 1fr; gap: 12px; } }

.service-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.service-jump a { font-size: .92rem; text-decoration: none; border: 1px solid var(--line); background: #fff; padding: 6px 14px; border-radius: 999px; color: var(--blue-deep); }
.service-jump a:hover { border-color: var(--sage); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split img { border-radius: 20px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

blockquote { margin: 0 0 1.2em; font: 400 clamp(1.3rem, 2.4vw, 1.75rem)/1.4 var(--serif); color: var(--blue-deep); }
blockquote::before { content: "\201C"; display: block; font-size: 3.2rem; line-height: .6; color: var(--sage); margin-bottom: 8px; }
.quote-by { font-weight: 600; color: var(--sage-dark); }

/* Steps (refill ways) */
.ways { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; counter-reset: way; }
.way { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.way::before { counter-increment: way; content: counter(way); position: absolute; top: 24px; right: 26px; font: 400 2.4rem/1 var(--serif); color: var(--sage-pale); }
.way h3 { padding-right: 40px; }
.way .btn-row { margin-top: 14px; }
.way.featured { border: 2px solid var(--blue); }
@media (max-width: 760px) { .ways { grid-template-columns: 1fr; } }

/* App band */
.app-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.store-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; background: #101820; color: #fff; text-decoration: none; padding: 10px 18px; border-radius: 10px; line-height: 1.15; }
.store-btn:hover { background: #000; color: #fff; }
.store-btn small { display: block; font-size: .72rem; opacity: .8; }
.store-btn b { font-size: 1.05rem; font-weight: 600; }
.store-btn svg { width: 24px; height: 24px; }
.phone-art { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: 28px; }
.phone-art ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.phone-art li { display: flex; gap: 12px; align-items: flex-start; }
.phone-art li svg { width: 22px; height: 22px; flex: none; color: var(--sage-pale); margin-top: 3px; }
@media (max-width: 860px) { .app-band { grid-template-columns: 1fr; } }

/* Visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: stretch; }
.visit-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.hours { width: 100%; border-collapse: collapse; margin: 6px 0 18px; }
.hours th, .hours td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--blue); }
.map { border: 0; width: 100%; height: 100%; min-height: 360px; border-radius: var(--radius); background: var(--cream); }
.storefront { border-radius: 12px; margin-bottom: 18px; }
@media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; } }

/* Page header */
.page-head { padding: clamp(44px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); background:
  radial-gradient(900px 300px at 90% -20%, rgba(169,196,178,.35), transparent 60%), var(--paper); border-bottom: 1px solid var(--line); }
.page-head .lead { margin-bottom: 0; }
.crumbs { font-size: .9rem; color: var(--ink-soft); margin-bottom: 14px; }
.crumbs a { color: var(--ink-soft); }

/* Prose (policies) */
.prose > * { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

.notice { background: var(--sage-wash); border-left: 4px solid var(--sage); padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 0 0 24px; }
.callout { background: var(--blue); color: #fff; border-radius: 20px; padding: clamp(28px, 4vw, 44px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.callout h2 { color: #fff; margin: 0 0 6px; }
.callout p { margin: 0; color: #dbe4ec; }

/* Footer */
.site-footer { background: var(--blue-deep); color: #c9d4de; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h2 { font: 600 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sage-pale); margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { width: 170px; margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 24px; display: grid; gap: 10px; }
.member { color: var(--sage-pale); font: 400 1.05rem var(--serif); margin: 0; }
.member small { display: block; font: 600 .7rem/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #d08a70; }
.fine { font-size: .84rem; color: #9fb0c0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .site-header nav, .menu-btn, .site-footer { display: none; } }

.mt { margin-top: 26px; }
.split img.plain { box-shadow: none; border-radius: 0; }
.way .ico { color: var(--sage-dark); }

.npp h3 { font-size: 1.3rem; margin-top: 1.8em; }
.npp-banner { font-size: .95rem; letter-spacing: .02em; background: var(--cream); padding: 16px 20px; border-radius: 10px; }
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
.data { border-collapse: collapse; width: 100%; font-size: .95rem; background: #fff; border: 1px solid var(--line); }
.data caption { text-align: left; font-weight: 600; padding: 0 0 8px; color: var(--blue-deep); }
.data th, .data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data th { background: var(--cream); font-weight: 600; }
.streetview { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; margin-bottom: 18px; background: var(--cream); }
.member a { color: var(--sage-pale); text-decoration: none; }
.member a:hover { text-decoration: underline; color: #fff; }

/* Services dropdown */
.has-sub { position: relative; }
.sub-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; font: 500 17px/1.65 var(--sans); color: var(--ink); padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.sub-btn:hover { background: var(--cream); color: var(--blue-deep); }
.sub-btn[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--sage); border-radius: 0; }
.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.sub-btn[aria-expanded="true"] .caret { transform: rotate(-135deg) translateY(-1px); }
.sub { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; z-index: 60; }
.sub a { display: block; }
.nav .sub a:not(.btn) { padding: 9px 12px; }
.nav .sub a.sub-all { border-top: 1px solid var(--line); border-radius: 0; margin-top: 6px; padding-top: 12px; color: var(--blue); font-weight: 600; }
.sub.open { display: block; }
@media (min-width: 961px) { .has-sub:hover .sub { display: block; } .has-sub:hover .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; } }
@media (max-width: 960px) {
  .sub-btn { width: 100%; justify-content: space-between; padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .sub-btn[aria-current="page"] { box-shadow: inset 3px 0 0 var(--sage); padding-left: 14px; }
  .sub { position: static; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 0 14px; min-width: 0; background: transparent; }
}

/* Home: service chips in the hero */
.svc-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.svc-chips a { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px 8px 12px; text-decoration: none; color: var(--blue-deep); font-weight: 500; font-size: .95rem; box-shadow: 0 1px 2px rgba(31,42,37,.05); }
.svc-chips a:hover { border-color: var(--sage); color: var(--blue-deep); background: var(--sage-wash); }
.svc-chips svg { width: 20px; height: 20px; color: var(--sage-dark); flex: none; }

/* Home: featured services */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.feature { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3vw, 36px); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; border-top: 5px solid var(--sage); }
.feature:nth-child(2), .feature:nth-child(3) { border-top-color: var(--blue); }
.feature:hover { transform: translateY(-3px); border-color: var(--sage-pale); color: var(--ink); }
.feature h3 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); margin: 18px 0 10px; }
.feature p { color: var(--ink-soft); flex: 1; }
.feature-ico { width: 64px; height: 64px; border-radius: 16px; background: var(--sage-wash); color: var(--sage-dark); display: grid; place-items: center; flex: none; }
.feature-ico svg { width: 34px; height: 34px; }
.more { font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 8px; }
.more::after { content: "\2192"; transition: transform .15s; }
.feature:hover .more::after { transform: translateX(4px); }
.feature-wide { flex-direction: row; align-items: center; gap: 24px; margin-top: 22px; border-top: 1px solid var(--line); border-left: 5px solid var(--sage); }
.feature-wide h3 { margin-top: 0; }
.feature-wide p { margin: 0; }
.feature-wide div { flex: 1; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } .feature-wide { flex-direction: column; align-items: flex-start; } }

/* Service detail pages */
.page-head .btn-row { margin-top: 24px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--sage-dark); margin-top: 3px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; max-width: 820px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--blue-deep); }
.faq details p { margin: 12px 0 0; }
.related { display: flex; flex-wrap: wrap; gap: 10px; }
.service .learn { font-weight: 600; }
