:root {
  --ink: #17372c;
  --muted: #4c6057;
  --green: #205c43;
  --line: #dbe4dc;
  --paper: #fbfaf6;
  --serif: "Instrument Serif", Georgia, serif;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
figure, p, h1, h2, h3, address { margin: 0; }
p, address { line-height: 1.65; }
address { font-style: normal; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b63336; outline-offset: 5px; }
.wrap { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; z-index: 4; background: white; padding: 12px; transform: translateY(-140%); }
.skip:focus { transform: none; }
.header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { flex: none; }
.brand img { object-fit: contain; }
nav { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 39px); }
nav a, .footer a { text-decoration: none; font-weight: 600; }
nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 10px 18px; border: 1px solid var(--green); border-radius: 7px; background: var(--green); color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none; }
.button:hover { background: #153f2f; border-color: #153f2f; }
.secondary { color: var(--ink); background: transparent; border-color: #aabbb0; }
.secondary:hover { background: #e7efe8; border-color: #aabbb0; }
.header-call { white-space: nowrap; }
.hero { display: grid; grid-template-columns: 1.04fr 1fr; align-items: center; gap: clamp(32px, 6vw, 92px); padding-block: 58px 52px; }
.eyebrow { display: flex; gap: 9px; align-items: center; color: var(--green); font-size: .82rem; font-weight: 700; }
.eyebrow span { background: #2b8c61; width: 8px; height: 8px; border-radius: 50%; }
h1, h2 { font: 400 clamp(3.6rem, 7.4vw, 7rem)/.92 var(--serif); letter-spacing: -.035em; }
h1 { margin: 16px 0 20px; }
h1 em { color: var(--green); font-weight: 400; }
h2 { font-size: clamp(2.55rem, 5vw, 4.2rem); line-height: 1; }
h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.hero-copy > p:not(.eyebrow), .about p { max-width: 45ch; color: var(--muted); font-size: 1.05rem; }
.actions { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 24px; }
.hero-photo img, .about img { border-radius: 14px; width: 100%; object-fit: cover; background: #e8ebe1; }
.hero-photo img { aspect-ratio: 1.29; object-position: center 42%; }
figcaption { margin-top: 7px; color: var(--muted); font-size: .72rem; }
.prescriptions { border-top: 1px solid var(--line); padding-block: 42px 62px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 23px; }
.section-heading p { color: var(--muted); }
.rx-grid, .service-grid { display: grid; gap: 16px; }
.rx-grid { grid-template-columns: repeat(2, 1fr); }
.rx-card, .service-grid article { padding: 25px; border: 1px solid var(--line); background: #fff; border-radius: 12px; }
.symbol { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; background: #e8f1e8; font-size: 1.55rem; line-height: 1; margin-bottom: 16px; }
.rx-card p, .service-grid p { margin-block: 8px 14px; color: var(--muted); }
.inline-link { color: var(--green); font-weight: 700; text-underline-offset: 4px; }
.inline-link span { display: inline-block; margin-left: 4px; }
.services { background: #edf2e9; padding-block: 60px; }
.service-grid { grid-template-columns: repeat(3, 1fr); }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 7vw, 100px); align-items: center; padding-block: 70px; }
.about img { aspect-ratio: 1.65; object-position: center 42%; }
.about p { margin-block: 18px; }
.visit { background: #173b2e; color: #fff; padding-block: 60px; }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.visit address { margin-top: 16px; }
.visit-details { display: grid; gap: 15px; border-left: 1px solid #779487; padding-left: 28px; }
.visit-details h3 { font-size: .84rem; color: #c5d9cb; margin-bottom: 3px; }
.light { background: #fff; color: var(--ink); border-color: #fff; }
.light:hover { color: #fff; border-color: #fff; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding-block: 25px; font-size: .84rem; }
.menu-toggle { background: #fff; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font: inherit; padding: 9px 15px; }
@media (max-width: 850px) {
  .header-call { display: none; }
  .wrap { width: calc(100% - 44px); }
  .hero { gap: 24px; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { flex-wrap: wrap; gap: 0; min-height: 68px; }
  .brand img { width: 64px; height: 54px; }
  nav { width: 100%; flex-wrap: wrap; justify-content: start; padding-block: 12px; gap: 12px 17px; }
  .hero, .about, .visit-grid, .rx-grid, .service-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 36px 30px; }
  h1 { font-size: clamp(3.6rem, 14vw, 5.4rem); }
  .section-heading { align-items: start; flex-direction: column; gap: 6px; }
  .services, .about, .visit { padding-block: 39px; }
  .prescriptions { padding-block: 30px 39px; }
  .visit-details { border-left: 0; border-top: 1px solid #779487; padding: 20px 0 0; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }

nav a[aria-current="page"] { color: var(--green); text-decoration: underline; text-underline-offset: 6px; }
.service-grid { grid-template-columns: repeat(2, 1fr); }
.detail { padding-block: 30px 68px; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--muted); font-size: .9rem; }
.breadcrumbs a { text-underline-offset: 3px; }
.detail-intro { padding-block: 36px; border-bottom: 1px solid var(--line); }
.detail-intro h1 { font-size: clamp(3.2rem, 7vw, 5.8rem); }
.detail-intro > p:last-child { max-width: 65ch; color: var(--muted); font-size: 1.1rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); gap: clamp(28px, 7vw, 95px); align-items: start; margin-top: 32px; }
.detail-copy section { padding-block: 18px; border-bottom: 1px solid var(--line); }
.detail-copy section:first-child { padding-top: 0; }
.detail-copy h2, .detail-aside h2 { font-size: clamp(1.85rem, 3vw, 2.65rem); margin-bottom: 10px; }
.detail-copy p { color: var(--muted); }
.detail-aside { background: #edf2e9; border: 1px solid var(--line); padding: 23px; border-radius: 12px; }
.detail-aside .button { margin-block: 16px 22px; }
.detail-aside ul { padding-left: 1.2rem; line-height: 1.7; }
.detail a:not(.button) { text-underline-offset: 4px; }
@media (max-width: 650px) {
  .detail-grid, .service-grid { grid-template-columns: 1fr; }
  .detail { padding-bottom: 40px; }
}

.detail-copy .refill-option {
  background: #edf2e9;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 20px;
  padding: 20px;
}
.refill-option .button { margin-top: 12px; }

.refill-preview fieldset { border: 0; margin: 20px 0 0; padding: 0; min-width: 0; }
.refill-preview legend { font-weight: 700; margin-bottom: 8px; }
.refill-preview fieldset > p { margin-bottom: 10px; font-size: .9rem; }
.refill-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.refill-preview label { display: block; font-size: .92rem; font-weight: 600; }
.refill-preview label span { color: var(--muted); font-size: .78rem; font-weight: 400; }
.refill-preview input, .refill-preview textarea { display: block; width: 100%; min-height: 42px; margin-top: 5px; padding: 8px 10px; border: 1px solid #aabbb0; border-radius: 6px; background: #fbfcfa; color: var(--ink); font: inherit; opacity: 1; }
.refill-comments { margin-top: 12px; }
.refill-preview .button:disabled { background: #dce5dc; border-color: #aabbb0; color: #365447; cursor: not-allowed; }
@media (max-width: 480px) { .refill-fields { grid-template-columns: 1fr; } }
