/* ============================================================
   Malden (MA) — River Blue / Reed Gold / Fog / Charcoal
   Hero: text left, one square photo shown as a large circle on the
   right with a thin offset ring behind it (nothing overlaps the photo)
   ============================================================ */

:root {
  --river: #2F5D7C;
  --river-deep: #20435B;
  --river-soft: #E6EFF4;
  --reed: #D9B44A;
  --reed-deep: #AA8832;
  --reed-pale: #FAF3DF;
  --fog: #F2F5F4;
  --char: #2A2F33;
  --white: #FFFFFF;
  --ink: #1E2429;
  --muted: #5A6369;
  --muted-2: #98A1A7;
  --line: #DFE5E6;
  --danger-bg: #FBEAE7;
  --danger-border: #E3A79B;
  --danger-text: #8A3A2A;
  --success-bg: #E9F5EE;
  --success-border: #9FCFB4;
  --success-text: #1F5C3D;
  --r: 12px;
  --r-lg: 20px;
  --serif: 'Gelasio', Georgia, serif;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--fog); line-height: 1.64; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; color: var(--river-deep); line-height: 1.15; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.cm { max-width: 1140px; margin: 0 auto; padding: 0 2.5rem; }
.sm { padding: 5.5rem 0; }
.sm-w { background: var(--white); }
.sm-r { background: var(--river-deep); }
.sm-g { background: var(--reed-pale); }
@media (max-width: 860px) { .cm { padding: 0 1.3rem; } .sm { padding: 3.5rem 0; } }

/* ---------- Nav ---------- */
nav { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: inset 0 -3px 0 var(--reed); }
.nm { max-width: 1140px; margin: 0 auto; padding: 0.8rem 2.5rem; display: flex; align-items: center; justify-content: space-between; }
.nm-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nm-logo img { width: 42px; height: 42px; }
.nm-logo span { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--river-deep); }
.nm-links { list-style: none; display: flex; gap: 2rem; }
.nm-links a { text-decoration: none; font-weight: 600; font-size: 0.94rem; color: var(--muted); transition: color .2s; }
.nm-links a:hover { color: var(--river); }
.nm-links a.active { color: var(--reed-deep); }
.nm-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nm-btn span { width: 22px; height: 2px; background: var(--river-deep); border-radius: 2px; }
@media (max-width: 860px) {
  .nm { padding: 0.8rem 1.3rem; }
  .nm-links { position: fixed; top: 66px; left: 0; right: 0; background: var(--white); flex-direction: column; gap: 0; padding: 0.4rem 1.5rem 1.2rem; border-bottom: 3px solid var(--reed);
    opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
  .nm-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nm-links li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .nm-links li:last-child { border-bottom: none; }
  .nm-btn { display: flex; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 0.95rem 1.5rem; border-radius: 999px; font-family: var(--sans);
  font-weight: 700; font-size: 0.95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-river { background: var(--river); color: var(--white); }
.btn-river:hover { background: var(--river-deep); }
.btn-reed { background: var(--reed); color: var(--river-deep); }
.btn-reed:hover { background: var(--reed-deep); color: var(--white); }
.btn-ol { background: transparent; color: var(--river-deep); border-color: var(--river); }
.btn-ol:hover { background: var(--river); color: var(--white); }

/* ---------- Headings ---------- */
.ey { display: inline-block; font-weight: 700; font-size: 0.76rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--reed-deep); margin-bottom: 0.9rem; }
.h2 { font-size: clamp(1.9rem, 3.3vw, 2.6rem); margin-bottom: 0.9rem; }
.ld { color: var(--muted); max-width: 40rem; }
.hd { margin-bottom: 3rem; }
.hd.c { text-align: center; }
.hd.c .ld { margin: 0 auto; }

/* ---------- Hero: circle photo ---------- */
.hero { padding: 4rem 0 5rem; overflow: hidden; }
.hero-g { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 1.2rem; }
.hero h1 span { color: var(--river); font-style: italic; }
.hero p { color: var(--muted); font-size: 1.08rem; max-width: 31rem; margin-bottom: 2rem; }
.hero-b { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.orb { position: relative; width: 100%; max-width: 460px; margin-left: auto; aspect-ratio: 1 / 1; }
.orb::before { content: ""; position: absolute; inset: -18px -18px 18px 18px; border-radius: 50%; border: 3px solid var(--reed); }
.orb-img { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: var(--river-soft); }
.orb-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .hero { padding: 2.5rem 0 3.5rem; } .hero-g { grid-template-columns: 1fr; gap: 2.8rem; } .orb { margin: 0 auto; max-width: 320px; } }

/* ---------- Zig-zag steps ---------- */
.zz { display: flex; flex-direction: column; gap: 1.2rem; max-width: 900px; margin: 0 auto; }
.zz-r { display: grid; grid-template-columns: 70px 1fr; gap: 1.3rem; align-items: center; background: var(--fog); border-radius: var(--r-lg); padding: 1.4rem 1.6rem; width: 84%; }
.zz-r:nth-child(even) { margin-left: auto; background: var(--reed-pale); }
.zz-r b { width: 70px; height: 70px; border-radius: 50%; background: var(--river); color: var(--white); font-family: var(--serif); font-size: 1.7rem; display: flex; align-items: center; justify-content: center; }
.zz-r h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.zz-r p { color: var(--muted); }
.zz-note { margin-top: 1.4rem; text-align: center; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) { .zz-r { width: 100%; grid-template-columns: 54px 1fr; padding: 1.2rem; } .zz-r b { width: 54px; height: 54px; font-size: 1.3rem; } }

/* ---------- Nearest medical counter ---------- */
.sm-r .ey { color: var(--reed); }
.sm-r .h2 { color: var(--white); }
.sm-r .ld { color: rgba(255,255,255,0.84); }
.nc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; }
.nc-c { border-radius: var(--r-lg); padding: 2rem; }
.nc-c.a { background: var(--white); }
.nc-c.b { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18); }
.nc-c small { display: inline-block; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 999px; padding: 0.25rem 0.75rem; margin-bottom: 0.9rem; }
.nc-c.a small { background: var(--reed); color: var(--river-deep); }
.nc-c.b small { background: rgba(255,255,255,0.14); color: var(--white); }
.nc-c h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.nc-c.b h3 { color: var(--white); }
.nc-c address { font-style: normal; font-weight: 700; color: var(--river); margin-bottom: 0.7rem; }
.nc-c p { color: var(--muted); }
.nc-c.b p { color: rgba(255,255,255,0.82); }
.nc-c a { color: var(--reed); font-weight: 700; }
@media (max-width: 860px) { .nc { grid-template-columns: 1fr; } }

/* ---------- Dates explainer ---------- */
.dt { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.2rem; align-items: stretch; max-width: 980px; margin: 0 auto; }
.dt-c { background: var(--white); border-radius: var(--r-lg); padding: 1.8rem; border: 1px solid var(--line); }
.dt-c b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--river-deep); margin-bottom: 0.3rem; }
.dt-c small { display: block; font-weight: 700; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--reed-deep); margin-bottom: 0.6rem; }
.dt-c p { color: var(--muted); font-size: 0.97rem; }
.dt-vs { display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--muted-2); }
.dt-tip { max-width: 980px; margin: 1.4rem auto 0; background: var(--river-soft); border-left: 5px solid var(--river); border-radius: var(--r); padding: 1.1rem 1.4rem; color: var(--ink); }
@media (max-width: 760px) { .dt { grid-template-columns: 1fr; } }

/* ---------- Benefits 2x2 ---------- */
.bn { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.bn-i { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: start; background: var(--white); border-radius: var(--r-lg); padding: 1.5rem; border: 1px solid var(--line); }
.bn-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--river-soft); display: flex; align-items: center; justify-content: center; }
.bn-ic svg { width: 26px; height: 26px; stroke: var(--river); }
.bn-i h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.bn-i p { color: var(--muted); font-size: 0.96rem; }
@media (max-width: 760px) { .bn { grid-template-columns: 1fr; } }

/* ---------- Conditions ---------- */
.cond { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
.cond-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cond-chips span { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 0.95rem; font-size: 0.93rem; font-weight: 600; color: var(--river-deep); }
.cond-plus { background: var(--reed-pale); border-radius: var(--r-lg); padding: 1.8rem; border-left: 5px solid var(--reed); }
.cond-plus h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.cond-plus p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 860px) { .cond { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---------- Testimonials ---------- */
.t3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.t3-c { background: var(--white); border-radius: var(--r-lg); padding: 1.8rem; border-top: 4px solid var(--river); }
.t3-c p { font-family: var(--serif); font-size: 1.05rem; line-height: 1.6; margin-bottom: 1rem; }
.t3-c span { font-weight: 700; font-size: 0.88rem; color: var(--reed-deep); }
@media (max-width: 860px) { .t3 { grid-template-columns: 1fr; } }

/* ---------- Q list ---------- */
.ql { max-width: 880px; margin: 0 auto; }
.ql-i { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.ql-i i { font-style: normal; width: 38px; height: 38px; border-radius: 50%; background: var(--reed); color: var(--river-deep); font-family: var(--serif); font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
.ql-i h3 { font-family: var(--sans); font-weight: 700; font-size: 1.03rem; color: var(--ink); margin-bottom: 0.35rem; }
.ql-i p { color: var(--muted); }
.ql-i a { color: var(--river); font-weight: 700; }

/* ---------- Overview ---------- */
.ov { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3.5rem; align-items: start; }
.ov h3 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
.ov h3:first-of-type { margin-top: 0; }
.ov p { color: var(--muted); line-height: 1.8; }
.ov a { color: var(--river); font-weight: 700; }
.sr { background: var(--river-deep); border-radius: var(--r-lg); padding: 1.6rem; }
.sr h4 { font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--reed); margin-bottom: 0.8rem; }
.sr a { display: block; padding: 0.9rem 0; border-top: 1px solid rgba(255,255,255,0.14); text-decoration: none; }
.sr a strong { display: block; color: var(--white); }
.sr a small { color: rgba(255,255,255,0.64); font-size: 0.86rem; }
.sr a:hover strong { color: var(--reed); }
@media (max-width: 860px) { .ov { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Closing ---------- */
.fin { background: var(--reed); padding: 4.5rem 0; text-align: center; }
.fin h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 0.6rem; }
.fin p { color: var(--river-deep); opacity: 0.85; margin-bottom: 1.8rem; }

/* ---------- Footer ---------- */
footer { background: var(--char); color: rgba(255,255,255,0.72); padding: 3.5rem 0 1.8rem; }
.fm { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.fm p { font-size: 0.92rem; line-height: 1.7; margin-top: 0.9rem; max-width: 24rem; color: rgba(255,255,255,0.62); }
footer .nm-logo span { color: var(--fog); }
footer h4 { font-family: var(--sans); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--reed); margin-bottom: 0.9rem; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
footer a { color: rgba(255,255,255,0.86); text-decoration: none; font-size: 0.94rem; }
footer a:hover { color: var(--reed); }
.fm-b { margin-top: 2.6rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.14); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-size: 0.84rem; color: rgba(255,255,255,0.5); }
@media (max-width: 860px) { .fm { grid-template-columns: 1fr; } }

/* ---------- Inner page header ---------- */
.ph { background: var(--river-soft); padding: 3.5rem 0 3rem; border-bottom: 3px solid var(--reed); }
.ph h1 { font-size: clamp(2.1rem, 3.6vw, 3rem); margin-bottom: 0.6rem; }
.ph p { color: var(--muted); max-width: 40rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease-out, transform .5s ease-out; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
