:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --ink: #1f2a2e;
  --muted: #5b676b;
  --line: #e6e0d6;
  --brand: #1f6f6b;
  --brand-dark: #154f4c;
  --brand-soft: #e3f0ee;
  --accent: #c8783a;
  --ok: #2e7d4f;
  --closed: #a33b2b;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 19px;            /* larger base size for older patients */
  line-height: 1.6;
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.topbar { background: var(--brand-dark); color: #fff; font-size: .9rem; }
.topbar .wrap { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }

header.site { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.brand .name { font-family: "Fraunces", Georgia, serif; font-size: 1.6rem; font-weight: 700; color: var(--brand-dark); line-height: 1; }
.brand .est { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-top: 4px; }
nav.main { display: flex; gap: 22px; }
nav.main a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1rem; }
nav.main a:hover { color: var(--brand); }
.btn {
  display: inline-block; background: var(--brand); color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; border: 2px solid var(--brand);
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }

@media (max-width: 760px) {
  nav.main { display: none; }
  header.site .btn { padding: 10px 16px; }
}

/* Hero */
.hero { padding: 64px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero .kicker { color: var(--accent); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.status-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 10px 30px rgba(31,42,46,.06); }
.status { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.status .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); }
.status.open .dot { background: var(--ok); box-shadow: 0 0 0 5px rgba(46,125,79,.15); }
.status.open { color: var(--ok); }
.status.closed .dot { background: var(--closed); }
.status.closed { color: var(--closed); }
.status-card .detail { color: var(--muted); font-size: .95rem; margin: 6px 0 16px; }
.status-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .95rem; }
.status-card dt { font-weight: 700; }
.status-card dd { margin: 0; color: var(--muted); }

@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

/* Notice band */
.notice { background: var(--brand-soft); border-top: 1px solid #cfe3e0; border-bottom: 1px solid #cfe3e0; }
.notice .wrap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.badge { background: var(--brand); color: #fff; font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; }
.notice p { margin: 0; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 32px; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
section.alt .card { background: var(--bg); }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }

/* Hours table */
table.hours { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
table.hours th, table.hours td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.hours tr:last-child th, table.hours tr:last-child td { border-bottom: 0; }
table.hours th { font-weight: 700; width: 45%; }
table.hours tr.today { background: var(--brand-soft); }
table.hours td.closed { color: var(--closed); font-weight: 600; }
.hours-note { color: var(--muted); font-size: .95rem; margin-top: 16px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* About */
.timeline-stat { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 24px; }
.timeline-stat div { border-left: 3px solid var(--accent); padding-left: 14px; }
.timeline-stat strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: 2rem; color: var(--brand-dark); line-height: 1.1; }
.timeline-stat span { color: var(--muted); font-size: .95rem; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.contact-list a { font-size: 1.15rem; font-weight: 700; text-decoration: none; }
.map { border: 0; width: 100%; height: 380px; border-radius: var(--radius); background: var(--line); }

/* Footer */
footer { background: var(--ink); color: #c9d1d3; padding: 40px 0; font-size: .95rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a { color: #fff; }
footer .fname { font-family: "Fraunces", Georgia, serif; color: #fff; font-size: 1.3rem; }

/* Privacy page */
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose ul { padding-left: 1.2em; }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px; gap: 10px; }
  .callbar a { flex: 1; text-align: center; }
  body { padding-bottom: 72px; }
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* v2 additions */
.brand .logo { height: 56px; width: auto; }
.photo { margin: 0; }
.photo img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.photo figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.photo-stack { display: grid; gap: 20px; }
.notice-img { height: 90px; width: auto; border-radius: 10px; background: #fff; }
.notice .badge { display: inline-block; margin-bottom: 6px; }
.svc-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 48px; }
@media (max-width: 860px) { .svc-grid { grid-template-columns: 1fr; } }
.card h4 { margin: 14px 0 6px; font-size: 1.05rem; color: var(--brand-dark); }
ul.svc { list-style: none; padding: 0; margin: 0 0 12px; columns: 2 260px; column-gap: 24px; }
ul.svc li { padding: 6px 0 6px 22px; position: relative; break-inside: avoid; font-size: 1rem; }
ul.svc li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h2.sub { margin-bottom: 20px; }
.card.numbered { position: relative; padding-top: 28px; }
.card .num { position: absolute; top: -14px; left: 24px; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.logos { display: flex; gap: 16px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.logos img { height: 56px; width: auto; }
.card.addr { margin-bottom: 20px; }
.card.addr p { color: var(--ink); }
.card.addr .big { font-size: 1.4rem; font-weight: 700; text-decoration: none; }
.contact-list { margin-top: 20px; }
.contact-list li strong { display: inline; }
.map-img { margin-bottom: 20px; }
.map-img img { background: #fff; }
