/* =====================================================================
   GM Pharmacy — styles.css
   Brand palette taken from the business card: deep navy + sage green.
   Plain CSS, no build step.
   ===================================================================== */

:root {
  /* Brand — navy (from the card's wordmark and mortar) */
  --navy-900: #141c2e;
  --navy-800: #1a2438;
  --navy:     #1e2a44;
  --navy-700: #2c3a57;

  /* Brand — sage green (from the card's "M", leaves and cross) */
  --sage:      #7f9e5c;
  --sage-400:  #93b071;
  --sage-600:  #6b8a4a;
  --sage-700:  #5c7742;   /* darkened for text on white — passes AA */
  --sage-100:  #eef3e7;
  --sage-050:  #f6f9f2;

  /* Neutrals (slightly navy-tinted so they sit with the brand) */
  --ink:      #1a2334;
  --ink-70:   #4a5568;
  --ink-50:   #78849a;
  --line:     #e2e6ee;
  --bg:       #ffffff;
  --bg-soft:  #f7f8fb;

  --radius:   14px;
  --radius-lg:22px;
  --shadow-sm: 0 1px 2px rgba(20, 28, 46, .06), 0 2px 8px rgba(20, 28, 46, .05);
  --shadow-md: 0 4px 12px rgba(20, 28, 46, .07), 0 12px 32px rgba(20, 28, 46, .08);
  --shadow-lg: 0 8px 24px rgba(20, 28, 46, .10), 0 24px 60px rgba(20, 28, 46, .14);

  --wrap: 1160px;
  --header-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
h1, h2, h3 { font-family: Fraunces, Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.18rem; font-family: Inter, sans-serif; font-weight: 700; letter-spacing: -.005em; }
p  { margin: 0 0 1em; }
a  { color: var(--sage-700); text-decoration-color: rgba(92,119,66,.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
em { font-style: italic; }

:focus-visible { outline: 3px solid var(--sage-600); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  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: 999;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.wrap--narrow { max-width: 800px; }
.section { padding: clamp(64px, 8vw, 108px) 0; }
.section--tint { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__sub { color: var(--ink-70); font-size: 1.06rem; margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(255,255,255,.8); margin: 0 0 18px;
}
.eyebrow--dark { color: var(--sage-700); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage-400); box-shadow: 0 0 0 4px rgba(147,176,113,.25); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: Inter, sans-serif; font-weight: 600; font-size: .97rem;
  padding: 12px 20px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .14s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--navy-900); box-shadow: var(--shadow-md); }
/* Sage button carries navy text — white on sage is too low-contrast to read */
.btn--accent { background: var(--sage); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--sage-400); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--navy); border-color: rgba(30,42,68,.25); }
.btn--ghost:hover { background: var(--sage-100); border-color: var(--navy); }
.btn--lg { padding: 15px 26px; font-size: 1.03rem; }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn--block { display: flex; width: 100%; }

/* On the dark hero, the ghost button needs light treatment */
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.42); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-900); color: rgba(255,255,255,.78); font-size: .84rem; }
.topbar__inner { display: flex; justify-content: center; align-items: center; gap: 12px; padding-block: 8px; flex-wrap: wrap; }
.topbar__sep { color: var(--sage-400); opacity: .8; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 12px rgba(20,28,46,.06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__name {
  display: block; font-family: Fraunces, serif; font-weight: 700; font-size: 1.3rem;
  line-height: 1.1; color: var(--navy);
}
.brand__name span { color: var(--sage-600); }
.brand__tag { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-50); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav > a:not(.btn) {
  font-size: .95rem; font-weight: 500; color: var(--ink-70); text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .16s, border-color .16s;
}
.nav > a:not(.btn):hover { color: var(--navy); border-bottom-color: var(--sage); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; padding: 0; place-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 19px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .22s, opacity .18s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  padding: clamp(60px, 8vw, 100px) 0 clamp(140px, 15vw, 190px);   /* room for the wave */
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 520px at 86% -12%, rgba(127,158,92,.34), transparent 62%),
    radial-gradient(720px 460px at 2% 106%, rgba(20,28,46,.9), transparent 60%),
    linear-gradient(158deg, var(--navy) 0%, var(--navy-900) 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background-image:
    linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.55) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(700px 380px at 70% 18%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(700px 380px at 70% 18%, #000, transparent 75%);
}
/* Wave motif echoing the business card */
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(70px, 9vw, 120px); z-index: 1; }

.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.35fr .85fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { color: var(--sage-400); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.19rem); color: rgba(255,255,255,.85); max-width: 56ch; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; font-size: .95rem; color: rgba(255,255,255,.78); }
.status__pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .88rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #fff;
}
.status__pill.is-open   { background: rgba(147,176,113,.2); border-color: rgba(147,176,113,.6); color: #cfe3b4; }
.status__pill.is-closed { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.85); }
.status__pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* Hero card */
.hero__card {
  background: rgba(255,255,255,.97); color: var(--ink);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--sage);
}
.card__title { font-family: Inter, sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-50); margin-bottom: 16px; }
.quickinfo { list-style: none; margin: 0 0 20px; padding: 0; }
.quickinfo li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.quickinfo li:first-child { border-top: 0; padding-top: 0; }
.quickinfo__k { font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-50); padding-top: 2px; }
.quickinfo__v { font-weight: 500; font-size: .98rem; line-height: 1.45; color: var(--ink); text-decoration: none; min-width: 0; }
.quickinfo__v--email { overflow-wrap: anywhere; font-size: .93rem; }
a.quickinfo__v:hover { color: var(--sage-700); text-decoration: underline; }
.fineprint { font-size: .8rem; color: var(--ink-50); margin: 12px 0 0; text-align: center; }

/* ---------- Trust strip ---------- */
.strip { background: var(--sage-050); border-bottom: 1px solid var(--line); }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__item { padding: 26px 16px; text-align: center; border-left: 1px solid var(--line); }
.strip__item:first-child { border-left: 0; }
.strip__item strong { display: block; font-family: Fraunces, serif; font-size: 1.5rem; color: var(--sage-700); line-height: 1.2; }
.strip__item span { display: block; font-size: .9rem; color: var(--ink-70); }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
/* 7 services = a lone card on the last row; centre it rather than leaving it hanging left */
.grid--3 > :last-child:nth-child(3n+1) { grid-column: 2; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(127,158,92,.5); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--sage-100); color: var(--sage-700); margin-bottom: 16px;
}
.card p { margin: 0; color: var(--ink-70); font-size: .97rem; }
.note { margin: 34px 0 0; text-align: center; color: var(--ink-70); font-size: .97rem; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.why__copy p { color: var(--ink-70); }
.checks { list-style: none; margin: 24px 0 30px; padding: 0; }
.checks li { position: relative; padding: 7px 0 7px 34px; color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--sage-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c7742' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 13px; background-position: center; background-repeat: no-repeat;
}
.why__figure { margin: 0; }
.why__figure figcaption { font-size: .86rem; color: var(--ink-50); margin-top: 12px; text-align: center; }
.why__figure img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 58%;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.photo-placeholder {
  display: grid; place-items: center; gap: 12px; text-align: center;
  aspect-ratio: 4 / 3; border: 2px dashed rgba(127,158,92,.5); border-radius: var(--radius-lg);
  background: var(--sage-050); color: var(--sage-700); padding: 24px;
}
.photo-placeholder p { margin: 0; font-size: .9rem; color: var(--ink-70); }
.photo-placeholder code { background: #fff; padding: 2px 6px; border-radius: 5px; font-size: .84em; border: 1px solid var(--line); }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0 0 48px; padding: 0; }
.steps li { position: relative; padding: 30px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.steps__num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 14px;
}
.steps p { margin: 0; color: var(--ink-70); font-size: .97rem; }

/* ---------- CTA ---------- */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: clamp(28px, 4vw, 42px); border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-900));
  box-shadow: var(--shadow-md);
}
.cta h3 { color: #fff; font-family: Fraunces, serif; font-size: 1.6rem; font-weight: 600; margin-bottom: 6px; }
.cta p { margin: 0; color: rgba(255,255,255,.82); }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.cta .btn--ghost:hover { background: rgba(255,255,255,.14); }

/* ---------- Hours + location ---------- */
.hours { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 60px); align-items: start; }
.hours__panel { min-width: 0; }
.hours__table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; }
.hours__table th, .hours__table td { padding: 13px 4px; border-bottom: 1px solid var(--line); text-align: left; font-size: 1rem; }
.hours__table th { font-weight: 500; color: var(--ink-70); }
.hours__table td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.hours__table .is-closed { color: var(--ink-50); }
.hours__table tr.is-today th, .hours__table tr.is-today td { color: var(--sage-700); font-weight: 700; }
.hours__table tr.is-today th::after { content: "  ·  today"; font-weight: 500; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sage-600); }

.address { font-size: 1.05rem; line-height: 1.7; margin-bottom: 18px; }
.muted { color: var(--ink-50); font-size: .92rem; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.map iframe { width: 100%; height: 320px; border: 0; }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 4px 22px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.faq summary { cursor: pointer; list-style: none; padding: 18px 34px 18px 0; position: relative; font-weight: 600; font-size: 1.03rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--sage-600); border-bottom: 2px solid var(--sage-600);
  transform: translateY(-70%) rotate(45deg); transition: transform .22s;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-70); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.75); padding: 62px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__brand { display: flex; gap: 14px; align-items: flex-start; }
.footer__logo { width: 52px; height: 52px; flex: none; background: #fff; border-radius: 12px; padding: 5px; }
.footer__name { font-family: Fraunces, serif; font-size: 1.2rem; font-weight: 700; color: #fff; margin: 0 0 1px; }
.footer__slogan { color: var(--sage-400); font-size: .9rem; font-weight: 500; margin: 0 0 4px; }
.footer__muted { color: rgba(255,255,255,.5); font-size: .88rem; margin: 0; }
.footer__col h3 { font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.footer__col p { margin: 0 0 8px; font-size: .95rem; overflow-wrap: anywhere; }
.footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer a:hover { color: var(--sage-400); text-decoration: underline; }
.footer__legal { padding-top: 24px; display: grid; gap: 8px; }
.footer__legal p { margin: 0; font-size: .82rem; color: rgba(255,255,255,.5); }

/* ---------- Sticky mobile call bar ---------- */
.callbar {
  display: none;
  position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 70;
  align-items: center; justify-content: center; gap: 10px;
  padding: 15px; border-radius: 999px;
  background: var(--navy); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 26px rgba(20,28,46,.4);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { max-width: 460px; }
  .why, .hours { grid-template-columns: 1fr; }
  .grid--3, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid--3 > :last-child:nth-child(3n+1) { grid-column: auto; }
  .strip__inner { grid-template-columns: repeat(2, 1fr); }
  .strip__item:nth-child(3) { border-left: 0; }
  .strip__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); padding: 8px 22px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav > a:not(.btn):hover { border-bottom-color: var(--line); }
  .nav__cta { margin-top: 16px; justify-content: center; }

  body { padding-bottom: 78px; }        /* room for the call bar */
  .callbar { display: flex; }

  .grid--3, .steps { grid-template-columns: 1fr; }
  .topbar__sep { display: none; }
  .topbar__inner { flex-direction: column; gap: 2px; text-align: center; }
  .cta { flex-direction: column; align-items: flex-start; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 1.15rem; }
}

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

/* ---------- Print ---------- */
@media print {
  .site-header, .callbar, .map, .nav-toggle, .hero__bg, .hero__wave { display: none !important; }
  body { color: #000; }
  .hero { color: #000; padding: 20px 0; }
  .hero h1, .hero h1 em, .lede, .status { color: #000; }
}
