/* --------- Theme (easy to tweak) --------- */
:root{
  --brand: #17a34a;      /* primary green */
  --brand-ink: #0a5a2a;  /* darker shade */
  --bg: #ffffff;
  --ink: #122023;
  --ink-muted: #5b6a6e;
  --surface: #f6f7f8;
  --radius: 14px;
}

/* --------- Reset / base --------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
.container { width: min(1100px, 92%); margin-inline: auto; }
.section { padding: 3rem 0; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6rem; }
p { margin: 0 0 1rem; }
.btn {
  display: inline-block; padding: .75rem 1rem; border-radius: var(--radius);
  background: var(--brand); color: white; font-weight: 600;
}
.btn:hover { filter: brightness(0.95); }
.skip-link {
  position: absolute; left: -9999px; top: auto;
}
.skip-link:focus {
  left: 1rem; top: 1rem; background: #000; color: #fff; padding: .5rem .75rem; z-index: 999;
}

/* --------- Header / Nav --------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid #e7ecef;
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.5rem ;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; }
.brand-logo { width: 160px; height: auto; }
.brand-name { color: var(--ink); }

.nav-toggle {
  margin-left: auto; display: none; border: 1px solid #dce3e6;
  background: var(--surface); padding: .5rem .75rem; border-radius: .5rem;
}

.site-nav ul { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { padding: .4rem .6rem; border-radius: .4rem; }
.site-nav a:hover { background: var(--surface); }

/* Mobile nav */
@media (max-width: 760px){
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: .75rem 0; }
}

/* --------- Hero --------- */
.hero {
  background: linear-gradient(180deg, #e9f7ef, #ffffff);
  padding: 3.5rem 0;
}
.hero h1 { font-size: clamp(1.6rem, 2.6vw + 1rem, 2.4rem); }
.hero p { color: var(--ink-muted); max-width: 55ch; }

/* --------- Cards / grids --------- */
.card-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: #fff; border: 1px solid #e7ecef; border-radius: var(--radius);
  padding: 1rem;
}

/* --------- News list --------- */
.news-list { display: grid; gap: .75rem; }
.news-item {
  background: #fff; border: 1px solid #e7ecef; border-radius: var(--radius);
  padding: .85rem 1rem;
}
.news-item time { color: var(--ink-muted); font-size: .9rem; display: block; }

/* --------- Footer --------- */
.site-footer { background: var(--surface); padding-top: 2rem; margin-top: 2rem; }
.footer-grid {
  display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.hours, .social { list-style: none; margin: 0; padding: 0; }
.footer-bottom { border-top: 1px solid #e0e7ea; padding: 1rem 0; margin-top: 1rem; }
/* --- Enhanced Outro Banner --- */
/* --- Outro (no wave) --- */
.outro{
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: 2.25rem 0 3rem;          /* balanced spacing without wave */
  background: linear-gradient(90deg, var(--brand-ink), var(--brand));
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.12); /* subtle finish */
}
.outro::before{
  content: "";
  position: absolute;
  inset: -20% -20% auto -20%;
  height: 200%;
  background:
    radial-gradient(60% 60% at 0% 0%, rgba(255,255,255,.09), transparent 60%),
    radial-gradient(50% 50% at 100% 20%, rgba(255,255,255,.07), transparent 60%);
  pointer-events: none;
}
.outro-inner{ max-width: 760px; margin-inline: auto; }

.outro-badge{
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .6rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  margin-bottom: .9rem;
}
.outro-badge img{ width: 24px; height: 24px; border-radius: 4px; background: #fff; }
.outro-badge span{ font-weight: 600; }

.outro h2{ font-size: clamp(1.8rem, 2.2vw + 1rem, 2.6rem); margin: .25rem 0 .35rem; }
.outro .lead{ color: rgba(255,255,255,.9); margin: 0 auto 1.2rem; }

.outro-points{
  display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  list-style: none; padding: 0; margin: 0 0 1.2rem;
  justify-items: center;           /* centered bullets */
}
.outro-points li{
  display: inline-flex; align-items: center; gap: .4rem;
}
.outro-points li::before{
  content: "✓"; font-weight: 700; color: #fff;
}

.outro-actions{ display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: .5rem; }
.btn--light{ background: #fff; color: var(--brand-ink); }
.btn--light:hover{ filter: brightness(.96); }
.btn--ghost{
  background: transparent; border: 2px solid rgba(255,255,255,.85);
  color: #fff; padding: .65rem 1rem;
}
.btn--ghost:hover{ background: rgba(255,255,255,.08); }

/* ensure no extra gap before footer */
.outro + .site-footer{ margin-top: 0; }

@media (max-width: 520px){
  .btn--light, .btn--ghost{ width: 100%; }
}
/* Contact-page variant (leans a bit more compact) */
.outro--contact { padding: 2rem 0 2.5rem; }
.outro--contact .outro-badge span { font-weight: 700; }
.outro--contact .outro-actions { margin-top: .75rem; }

/* Optional: on very small screens make all three buttons full width */
@media (max-width: 520px){
  .outro--contact .btn { width: 100%; }
}


/* --- Contact form (carded, tidy grid) --- */
.contact-form .form-grid{
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, 1fr);
}

.contact-form .field{
  grid-column: span 4;          /* 3 fields across on desktop */
  display: grid;
  gap: .4rem;
}

.contact-form .field--full{
  grid-column: 1 / -1;          /* full width (message) */
}

@media (max-width: 900px){
  .contact-form .field{ grid-column: 1 / -1; }  /* stack on mobile */
}

.contact-form label{ font-weight: 600; }
.contact-form .req{ color: #d11; font-weight: 700; margin-left: .15rem; }

.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid #dce3e6;
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder{ color: var(--ink-muted); }

.contact-form input:focus-visible,
.contact-form textarea:focus-visible{
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}

.contact-form .actions{
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.form-status{ margin: 0; font-size: .95rem; }
.form-status.ok{ color: #176f2c; }
.form-status.error{ color: #a61b1b; }

/* Pharmacy First blocks */
.pf-block h2 { margin-bottom: .25rem; }
.pf-elig { color: var(--ink-muted); margin-top: .25rem; }

/* Limit Services grid to max 3 columns */
#services .card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);   /* 3 across on desktop */
}

@media (max-width: 1024px){
  #services .card-grid { grid-template-columns: repeat(2, 1fr); } /* 2 across */
}
@media (max-width: 640px){
  #services .card-grid { grid-template-columns: 1fr; }            /* stack */
}

/* Make all cards the same height and keep the button aligned at the bottom */
#services .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
#services .card p:last-child {  /* the <p> that wraps "Learn more" */
  margin-top: auto;
}
.findus-grid { display: grid; gap: 1rem; grid-template-columns: 1.2fr 1fr; }
@media (max-width: 900px){ .findus-grid { grid-template-columns: 1fr; } }
.map-embed { width: 100%; height: 360px; border: 0; border-radius: var(--radius); }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { margin: .25rem 0; }


/* --------- weight management --------- */
.container.narrow { max-width: 900px; }
.stack-md > * + * { margin-top: 0.75rem; }
.center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-6 { margin-top: 2rem; }
.alt { background: #f7f9fb; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gap-lg { gap: 1.25rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border-radius: 14px; padding: 1.25rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

.partner-pill {
  display: inline-block; padding: .375rem .75rem; border-radius: 999px;
  background: #e8f5ee; font-weight: 600;
}
.partner-pill a { text-decoration: none; }

.lede { font-size: 1.125rem; color: #2b2b2b; }

.checklist, .dashlist { margin: .75rem 0 0 1.2rem; }
.checklist li { list-style: "✓  "; margin: .25rem 0; }
.dashlist li { list-style: "–  "; margin: .25rem 0; }

.steps { counter-reset: step; margin-left: 1.25rem; }
.steps li { margin: .35rem 0; }

.pilllist { display:flex; flex-wrap:wrap; gap:.5rem; margin:.75rem 0 0; padding:0; list-style:none; }
.pill {
  padding:.35rem .6rem; border-radius:999px; background:#f0f6ff; border:1px solid #d9e8ff;
  font-weight:600; white-space:nowrap;
}

.cta-panel {
  display:flex; gap:1rem; align-items:center; justify-content:space-between; flex-wrap:wrap;
  background: linear-gradient(135deg, #e8fff3, #f3fff8); border:1px solid #d7f4e3;
  border-radius: 16px; padding: 1rem 1.25rem;
}
.cta-actions .btn { margin-right:.5rem; }

.btn {
  display:inline-block; padding:.6rem 1rem; border-radius:999px;
  background:#16803c; color:#fff; text-decoration:none; font-weight:600;
}
.btn:hover { filter:brightness(0.95); }
.btn-outline { background:transparent; color:#16803c; border:2px solid #16803c; }

.faq { margin:.5rem 0; background:#fff; border-radius:12px; padding:.75rem 1rem; }
.faq summary { cursor:pointer; font-weight:600; }
.faq[open] summary { margin-bottom:.5rem; }

.partner-note {
  margin-top:1rem; font-size:.95rem; color:#444;
  background:#fff; border-left: 4px solid #16803c; padding:.75rem 1rem; border-radius:8px;
}

.bmi-img { max-width: 680px; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.08); }

.muted { color:#586069; }
.small { font-size:.95rem; }
.micro { font-size:.85rem; }
