/* ============================================================
   Framingham (MA) — Plum / Leaf / Blush
   Hero: split screen, one square photo filling the LEFT half
   edge-to-edge, text on the right (no frame, no overlap)
   ============================================================ */

:root {
  --plum: #6B2D5C;
  --plum-deep: #4E1E43;
  --plum-soft: #F4E9F0;
  --petal: #B04880;
  --leaf: #4F7F52;
  --leaf-deep: #3A623E;
  --leaf-pale: #EAF2EA;
  --blush: #FBF3F1;
  --gold: #E0B45A;
  --white: #FFFFFF;
  --ink: #26202A;
  --muted: #625A66;
  --muted-2: #A098A3;
  --line: #EADFE0;
  --danger-bg: #FBEAE7;
  --danger-border: #E3A79B;
  --danger-text: #8A3A2A;
  --success-bg: #E9F5EE;
  --success-border: #9FCFB4;
  --success-text: #1F5C3D;
  --r: 12px;
  --r-lg: 20px;
  --serif: 'Young Serif', Georgia, serif;
  --sans: 'Nunito 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(--blush); line-height: 1.66; -webkit-font-smoothing: antialiased; font-size: 1.04rem; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--plum-deep); line-height: 1.15; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.cf { max-width: 1160px; margin: 0 auto; padding: 0 2.5rem; }
.sf { padding: 5.5rem 0; }
.sf-w { background: var(--white); }
.sf-p { background: var(--plum); }
.sf-l { background: var(--leaf-pale); }
@media (max-width: 860px) { .cf { padding: 0 1.3rem; } .sf { padding: 3.5rem 0; } }

/* ---------- Nav ---------- */
nav { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); border-top: 4px solid var(--plum); }
.nf { max-width: 1160px; margin: 0 auto; padding: 0.75rem 2.5rem; display: flex; align-items: center; justify-content: space-between; }
.nf-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nf-logo img { width: 42px; height: 42px; }
.nf-logo span { font-family: var(--serif); font-size: 1.15rem; color: var(--plum-deep); }
.nf-links { list-style: none; display: flex; gap: 2rem; }
.nf-links a { text-decoration: none; font-weight: 700; font-size: 0.94rem; color: var(--muted); transition: color .2s; }
.nf-links a:hover { color: var(--petal); }
.nf-links a.active { color: var(--petal); }
.nf-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nf-btn span { width: 22px; height: 2px; background: var(--plum-deep); border-radius: 2px; }
@media (max-width: 860px) {
  .nf { padding: 0.75rem 1.3rem; }
  .nf-links { position: fixed; top: 70px; left: 0; right: 0; background: var(--white); flex-direction: column; gap: 0; padding: 0.4rem 1.5rem 1.2rem; border-bottom: 1px solid var(--line);
    opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
  .nf-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nf-links li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .nf-links li:last-child { border-bottom: none; }
  .nf-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: 800; font-size: 0.95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-plum { background: var(--plum); color: var(--white); }
.btn-plum:hover { background: var(--plum-deep); }
.btn-leaf { background: var(--leaf); color: var(--white); }
.btn-leaf:hover { background: var(--leaf-deep); }
.btn-ol { background: transparent; color: var(--plum-deep); border-color: var(--plum); }
.btn-ol:hover { background: var(--plum); color: var(--white); }
.btn-blush { background: var(--blush); color: var(--plum-deep); }
.btn-blush:hover { background: var(--white); }

/* ---------- Headings ---------- */
.ey { display: inline-block; font-weight: 800; font-size: 0.76rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--petal); margin-bottom: 0.9rem; }
.h2 { font-size: clamp(1.9rem, 3.2vw, 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: split, photo LEFT ---------- */
.sp { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(540px, 80vh, 740px); }
.sp-img { position: relative; overflow: hidden; background: var(--plum-soft); }
.sp-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-txt { display: flex; flex-direction: column; justify-content: center; padding: 3rem max(2rem, calc((100vw - 1160px) / 2 + 2.5rem)) 3rem clamp(2rem, 4vw, 3.5rem); background: var(--blush); }
.sp-txt h1 { font-size: clamp(2.2rem, 3.9vw, 3.3rem); margin-bottom: 1.1rem; }
.sp-txt h1 span { color: var(--petal); }
.sp-txt p { color: var(--muted); font-size: 1.07rem; max-width: 31rem; margin-bottom: 1.8rem; }
.sp-b { display: flex; gap: 0.7rem; flex-wrap: wrap; }
@media (max-width: 860px) { .sp { grid-template-columns: 1fr; min-height: 0; } .sp-img { height: 44vh; } .sp-txt { padding: 2.2rem 1.3rem 2.8rem; } }

/* ---------- Icon steps ---------- */
.ic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.ic-c { background: var(--blush); border-radius: var(--r-lg); padding: 2rem 1.8rem; }
.ic-ico { width: 54px; height: 54px; border-radius: 50%; background: var(--plum); display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
.ic-ico svg { width: 26px; height: 26px; stroke: var(--white); }
.ic-c h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.ic-c p { color: var(--muted); font-size: 0.98rem; }
.ic-note { margin-top: 1.4rem; text-align: center; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) { .ic { grid-template-columns: 1fr; } }

/* ---------- Em Português ---------- */
.sf-p .ey { color: #F2C1DA; }
.sf-p .h2 { color: var(--white); }
.pt { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.pt-intro p { color: rgba(255,255,255,0.86); }
.pt-list { list-style: none; counter-reset: pt; display: flex; flex-direction: column; gap: 1rem; }
.pt-list li { counter-increment: pt; display: grid; grid-template-columns: 44px 1fr; gap: 1rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--r-lg); padding: 1.2rem 1.3rem; color: rgba(255,255,255,0.9); }
.pt-list li::before { content: counter(pt); width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--plum-deep); font-family: var(--serif); display: flex; align-items: center; justify-content: center; }
.pt-list b { color: var(--white); }
.pt-note { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-top: 1.2rem; }
.pt-note a { color: #F2C1DA; font-weight: 800; }
@media (max-width: 860px) { .pt { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Receipts ---------- */
.rc { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; max-width: 900px; margin: 0 auto; }
.rc-c { background: var(--white); border-radius: 6px; padding: 1.8rem 1.8rem 2.2rem; font-family: 'Courier New', monospace; box-shadow: 0 16px 40px -24px rgba(78,30,67,0.4); position: relative; }
.rc-c::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: radial-gradient(circle at 10px -2px, transparent 10px, var(--white) 11px) repeat-x; background-size: 20px 10px; }
.rc-c h3 { font-family: var(--sans); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 1.1rem; }
.rc-r { display: flex; justify-content: space-between; padding: 0.35rem 0; font-size: 0.95rem; color: var(--ink); }
.rc-r.tax { color: var(--petal); }
.rc-r.tot { border-top: 2px dashed var(--line); margin-top: 0.6rem; padding-top: 0.8rem; font-weight: 700; font-size: 1.06rem; }
.rc-c.pat .rc-r.tax { color: var(--leaf); }
.rc-note { max-width: 900px; margin: 2rem auto 0; text-align: center; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 760px) { .rc { grid-template-columns: 1fr; } }

/* ---------- Care legacy ---------- */
.cl2 { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; background: var(--white); border-radius: var(--r-lg); padding: 2.2rem 2.4rem; border-left: 6px solid var(--leaf); }
.cl2 b { font-family: var(--serif); font-size: clamp(3.2rem, 6vw, 4.5rem); color: var(--leaf); line-height: 0.9; }
.cl2 h3 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.cl2 p { color: var(--muted); }
@media (max-width: 700px) { .cl2 { grid-template-columns: 1fr; gap: 0.6rem; } }

/* ---------- 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(--plum-soft); border-radius: 999px; padding: 0.45rem 0.95rem; font-size: 0.93rem; font-weight: 700; color: var(--plum-deep); }
.cond-plus { background: var(--plum); border-radius: var(--r-lg); padding: 1.8rem; }
.cond-plus h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 0.5rem; }
.cond-plus p { color: rgba(255,255,255,0.84); font-size: 0.96rem; }
@media (max-width: 860px) { .cond { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---------- Local ---------- */
.lc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.4rem; }
.lc-c { border-radius: var(--r-lg); padding: 2rem; }
.lc-c.a { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--plum); }
.lc-c.b { background: var(--leaf-pale); }
.lc-c h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.lc-c address { font-style: normal; font-weight: 800; color: var(--petal); margin-bottom: 0.7rem; }
.lc-c p { color: var(--muted); }
@media (max-width: 860px) { .lc { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.tq { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.tq-c { background: var(--white); border-radius: var(--r-lg); padding: 2rem; border-top: 4px solid var(--petal); }
.tq-c p { font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; margin-bottom: 1rem; }
.tq-c span { font-weight: 800; font-size: 0.9rem; color: var(--leaf); }
@media (max-width: 860px) { .tq { grid-template-columns: 1fr; } }

/* ---------- Numbered FAQ ---------- */
.nq { max-width: 900px; margin: 0 auto; counter-reset: q; }
.nq-i { display: grid; grid-template-columns: 64px 1fr; gap: 1.2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.nq-i::before { counter-increment: q; content: counter(q, decimal-leading-zero); font-family: var(--serif); font-size: 1.8rem; color: var(--petal); line-height: 1; }
.nq-i h3 { font-family: var(--sans); font-weight: 800; font-size: 1.04rem; color: var(--ink); margin-bottom: 0.4rem; }
.nq-i p { color: var(--muted); }
.nq-i a { color: var(--plum); font-weight: 800; }

/* ---------- 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(--plum); font-weight: 800; }
.sr { background: var(--plum-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: #F2C1DA; 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: #F2C1DA; }
@media (max-width: 860px) { .ov { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Closing ---------- */
.cl { background: var(--leaf); padding: 4.5rem 0; text-align: center; }
.cl h2 { color: var(--white); font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 0.6rem; }
.cl p { color: rgba(255,255,255,0.9); margin-bottom: 1.8rem; }

/* ---------- Footer ---------- */
footer { background: var(--plum-deep); color: rgba(255,255,255,0.72); padding: 3.5rem 0 1.8rem; }
.ff { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.ff p { font-size: 0.92rem; line-height: 1.7; margin-top: 0.9rem; max-width: 24rem; color: rgba(255,255,255,0.64); }
footer .nf-logo span { color: var(--blush); }
footer h4 { font-family: var(--sans); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.14em; color: #F2C1DA; 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: #F2C1DA; }
.ff-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) { .ff { grid-template-columns: 1fr; } }

/* ---------- Inner page header ---------- */
.ph { background: var(--plum-soft); padding: 3.5rem 0 3rem; border-bottom: 4px solid var(--petal); }
.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; } }
