/* Harrison Pharmacy — site stylesheet
   Brand: primary green #00A637 (accents), secondary blue #086BB4.
   Body text uses dark neutral for WCAG 2.2 AA (>= 4.5:1); green is
   auto-darkened to #007A28 wherever it must carry text/border contrast. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --brand: #00A637;          /* canonical brand green (accents, fills w/ white text >= 3:1 at large sizes) */
  --brand-dark: #007A28;     /* darkened green: >= 4.5:1 on white, used for text & focus */
  --brand-tint: #E8F7EE;
  --blue: #086BB4;           /* secondary brand */
  --blue-dark: #075E9E;
  --blue-tint: #EAF3FA;
  --ink: #16241B;            /* body text */
  --ink-soft: #43554A;
  --paper: #FFFFFF;
  --mist: #F5F8F6;
  --line: #DCE5DF;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22,36,27,.06), 0 8px 24px rgba(22,36,27,.08);
  --shadow-lift: 0 2px 4px rgba(22,36,27,.08), 0 16px 40px rgba(22,36,27,.14);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--blue); }

/* Visible focus — WCAG 2.2 focus appearance */
:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #E8EFE9; font-size: .84rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; min-height: 38px; padding-top: 4px; padding-bottom: 4px; }
.topbar a { color: #E8EFE9; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .spacer { flex: 1; }
.open-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #9AA8A0; margin-right: 6px; vertical-align: 1px; }
.open-now.is-open .open-dot { background: #37D871; }
.open-now.is-closed .open-dot { background: #FF9B8A; }
.topbar-hours { color: #C4D2C9; }
@media (max-width: 767px) { .topbar-hours, .topbar-fax { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 26px; min-height: 92px; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-link img { height: 68px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a, .nav-drop > button {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 .95rem/1 var(--font-body); color: var(--ink);
  text-decoration: none; padding: 12px 14px; border: 0; background: none;
  border-radius: 8px; cursor: pointer; transition: background .15s ease, color .15s ease;
}
.main-nav > a:hover, .nav-drop > button:hover { background: var(--brand-tint); color: var(--brand-dark); }
.nav-drop { position: relative; }
.nav-drop svg { transition: transform .15s ease; }
.nav-drop.open svg { transform: rotate(180deg); }
.drop-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); padding: 8px; margin: 0; list-style: none; display: none;
}
.nav-drop.open .drop-menu { display: block; }
.drop-menu a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .93rem;
  transition: background .15s ease;
}
.drop-menu a:hover { background: var(--brand-tint); color: var(--brand-dark); }
.drop-menu .svc-ic { color: var(--brand-dark); flex: none; display: inline-flex; }
.drop-menu .drop-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; color: var(--blue-dark); }
.header-ctas { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .93rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border-radius: 999px; padding: 12px 20px; min-height: 44px; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand-dark); color: #fff; }
.btn-primary:hover { background: var(--brand); color: #fff; }
.btn-blue { background: var(--blue-dark); color: #fff; }
.btn-blue:hover { background: var(--blue); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand-dark); color: var(--brand-dark); }
.btn-lg { padding: 16px 28px; font-size: 1rem; }

/* Tighten header at tablet-adjacent widths so the larger logo + 3 CTAs never wrap */
@media (min-width: 1024px) and (max-width: 1220px) {
  .brand-link img { height: 56px; }
  .site-header .wrap { gap: 14px; }
  .header-ctas { gap: 6px; }
  .header-ctas .btn { padding: 10px 12px; font-size: .85rem; }
  .main-nav > a, .nav-drop > button { padding: 8px 8px; }
}

.hamburger, .header-call { display: none; }

@media (max-width: 1023.98px) {
  .main-nav, .header-ctas { display: none; }
  .site-header .wrap { min-height: 72px; gap: 12px; }
  .brand-link img { height: 52px; }
  .header-call {
    display: inline-flex; margin-left: auto; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; color: var(--brand-dark);
    border: 1px solid var(--line); text-decoration: none;
  }
  .hamburger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); background: #fff;
    border-radius: 10px; cursor: pointer; color: var(--ink);
  }
}

/* ---------- Mobile drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(15,25,19,.5); z-index: 140;
  opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150;
  width: min(100%, 400px); background: #fff; overflow-y: auto;
  transform: translateX(100%); transition: transform .2s ease-out;
  padding: 18px 20px 32px; box-shadow: var(--shadow-lift);
}
.drawer.show { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-backdrop { transition: none; } }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer-close {
  width: 44px; height: 44px; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
}
.drawer-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.drawer-brand img { height: 40px; width: auto; }
.drawer nav a, .drawer .drawer-svc-btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 48px; padding: 12px 8px; font: 500 1rem var(--font-body);
  color: var(--ink); text-decoration: none; background: none; border: 0;
  border-bottom: 1px solid var(--line); cursor: pointer; text-align: left;
}
.drawer .svc-sub { list-style: none; margin: 0; padding: 0 0 6px; display: none; }
.drawer .svc-sub.open { display: block; }
.drawer .svc-sub a { padding-left: 22px; font-weight: 400; }
.drawer-ctas { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.drawer-ctas .btn { width: 100%; }
.drawer-hours { background: var(--mist); border-radius: var(--radius); padding: 14px 16px; font-size: .92rem; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--mist) 0%, #fff 55%, var(--brand-tint) 100%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 .8rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); background: var(--brand-tint); border: 1px solid #BFE8CE; padding: 8px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { margin-bottom: .4em; }
.hero-sub { font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .93rem; color: var(--ink-soft); align-items: center; }
.hero-meta a { color: var(--ink); font-weight: 600; }
.hero-figure { position: relative; margin: 0; }
.hero-figure img { width: 100%; border-radius: 20px; box-shadow: var(--shadow-lift); display: block; object-fit: cover; }
.hero-card {
  position: absolute; left: -18px; bottom: -22px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 18px; font-size: .88rem;
}
.hero-card strong { display: block; font-size: 1.05rem; color: var(--brand-dark); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; padding-top: 36px; padding-bottom: 48px; }
  .hero-figure { max-width: 520px; }
  .hero-card { left: 12px; bottom: -16px; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .eyebrow { font: 600 .78rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--blue-dark); display: block; margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); }
@media (max-width: 767px) { .section { padding: 52px 0; } }

/* Services grid */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1023px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #BFE8CE; }
.svc-card .svc-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-dark); display: inline-flex; align-items: center; justify-content: center; }
.svc-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.svc-card .svc-more { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--brand-dark); display: inline-flex; align-items: center; gap: 6px; }
.svc-card .svc-more:hover { color: var(--brand); }

/* Hours table */
.hours-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hours-table caption { text-align: left; padding-bottom: 12px; font-weight: 600; }
.hours-table th, .hours-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: .96rem; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table th { font-weight: 600; width: 40%; }
.hours-table .closed { color: var(--ink-soft); }
.hours-table .today th, .hours-table .today td { background: var(--brand-tint); }

/* Trust callouts */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1023px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .svc-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-tint); color: var(--blue-dark); display: inline-flex; align-items: center; justify-content: center; }
.trust-item strong { display: block; margin-bottom: 2px; }
.trust-item span { color: var(--ink-soft); font-size: .92rem; }

/* Two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 30px; } }
.split figure { margin: 0; }
.split img { border-radius: 18px; box-shadow: var(--shadow); display: block; width: 100%; object-fit: cover; }
figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: 10px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--brand-dark), #045F20); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-top: 52px; padding-bottom: 52px; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: #D7F2E1; margin: 6px 0 0; }
.cta-band .band-actions { margin-left: auto; display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: var(--brand-dark); }
.cta-band .btn-primary:hover { background: var(--brand-tint); color: var(--brand-dark); }
.cta-band .btn-outline { border-color: rgba(255,255,255,.75); color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--brand-dark); }
@media (max-width: 767px) { .cta-band .band-actions { margin-left: 0; } }

/* Page hero (interior pages) */
.page-hero { background: linear-gradient(150deg, var(--blue-tint), #fff 70%); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 46px; padding-bottom: 46px; }
.breadcrumbs { font-size: .85rem; margin-bottom: 14px; color: var(--ink-soft); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumbs a { color: var(--blue-dark); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.page-hero p.lede { color: var(--ink-soft); font-size: 1.06rem; max-width: 62ch; margin: 0; }

/* Service detail */
.svc-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); display: block; }
.prose { max-width: 72ch; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* Contact cards */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.info-card dl { margin: 0; }
.info-card dt { font-weight: 600; margin-top: 14px; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.info-card dt:first-child { margin-top: 0; }
.info-card dd { margin: 2px 0 0; font-size: 1.02rem; }
.map-frame { width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 720px; }
.steps li { counter-increment: step; display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.steps li::before {
  content: counter(step); flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand-dark); font: 700 1rem/38px var(--font-body); text-align: center;
}

/* Footer */
.site-footer { background: var(--ink); color: #C9D6CD; margin-top: 0; }
.site-footer a { color: #E8EFE9; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding: 56px 0 36px; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { font: 600 .82rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #93A79A; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .94rem; }
.footer-logo { background: #fff; border-radius: 12px; padding: 8px 12px; display: inline-block; margin-bottom: 14px; }
.footer-logo img { height: 44px; width: auto; display: block; }
.footer-about { font-size: .92rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid #2C3B31; padding: 20px 0 26px; font-size: .84rem; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.footer-bottom .spacer { flex: 1; }

/* Sticky bottom CTA bar (mobile) */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; display: none;
  gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .2s ease;
}
.bottom-bar.show { transform: translateY(0); }
@media (max-width: 1023.98px) { .bottom-bar { display: flex; } body { padding-bottom: 0; } }
.bottom-bar .btn { flex: 1; min-height: 48px; }

/* Reviews / testimonials */
blockquote { margin: 0; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 22px 24px; font-size: .98rem; }
blockquote cite { display: block; margin-top: 12px; font-style: normal; font-weight: 600; color: var(--ink-soft); }

/* Utility */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; color: var(--ink-soft); font-size: .9rem; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 44px; }
.text-soft { color: var(--ink-soft); }

/* ---- Portal / app promo ---- */
.eyebrow { font: 600 .78rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--blue-dark); display: block; margin-bottom: 10px; }
.section-tint { background: var(--brand-tint); }
.check-list { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; }
.check-list li { padding-left: 28px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: var(--brand, #007A28); -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="4"><path d="M20 6 9 17l-5-5"/></svg>') center/contain no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="4"><path d="M20 6 9 17l-5-5"/></svg>') center/contain no-repeat; }
.app-promo { background: linear-gradient(135deg, #F2F9F4, #EAF3FA); }
@media (max-width: 900px) { .portal-phones { order: -1; } }

.portal-phones { display: flex; justify-content: center; align-items: center; }
.portal-phones img { border-radius: 0; box-shadow: none; width: 100%; max-width: 520px; height: auto; filter: drop-shadow(0 26px 44px rgba(0,0,18,.18)); }
@media (max-width: 900px) { .portal-phones img { max-width: 440px; } }
.portal-install { margin-top: 56px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; background: var(--brand-tint); border-radius: var(--radius); padding: 34px 38px; }
.portal-install h3 { margin-top: 0; }
.portal-install-media img { width: 170px; height: auto; display: block; border-radius: 24px; box-shadow: var(--shadow); }
@media (max-width: 700px) { .portal-install { grid-template-columns: 1fr; } .portal-install-media { justify-self: center; } }

/* Footer Facebook icon */
.fb-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); color: inherit; }
.fb-link:hover { background: rgba(255,255,255,.24); }
.fb-link svg { display: block; }

/* ---- Print ---- */
@media print {
  .skip-link, .main-nav, .drawer, .drawer-toggle, .bottom-bar,
  .hero-actions, .btn, .cta-band, iframe { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  a[href^="tel:"]::after, a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-size: 0.9em; }
  a[href^="tel:"]::after { content: ""; }
}
