/* ============================================================
   Newton (MA) — Hunter / Brass / Ivory
   Hero: text left, one square photo on the right cut with a diagonal
   left edge and a thin brass accent line along the cut
   ============================================================ */

:root {
  --hunter: #26433A;
  --hunter-deep: #19302A;
  --hunter-soft: #E6EEEA;
  --brass: #B8924A;
  --brass-deep: #94732F;
  --brass-pale: #F7F0E1;
  --ivory: #F9F6EF;
  --white: #FFFFFF;
  --ink: #1D2622;
  --muted: #5C6560;
  --muted-2: #99A19C;
  --line: #E4DED2;
  --danger-bg: #FBEAE7;
  --danger-border: #E3A79B;
  --danger-text: #8A3A2A;
  --success-bg: #E9F5EE;
  --success-border: #9FCFB4;
  --success-text: #1F5C3D;
  --r: 8px;
  --r-lg: 16px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Mulish', -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(--ivory); line-height: 1.66; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--hunter-deep); line-height: 1.1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.cn { max-width: 1140px; margin: 0 auto; padding: 0 2.5rem; }
.sn { padding: 5.5rem 0; }
.sn-w { background: var(--white); }
.sn-h { background: var(--hunter); }
.sn-b { background: var(--brass-pale); }
@media (max-width: 860px) { .cn { padding: 0 1.3rem; } .sn { padding: 3.5rem 0; } }

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

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 0.95rem 1.5rem; border-radius: var(--r); 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-hunter { background: var(--hunter); color: var(--white); }
.btn-hunter:hover { background: var(--hunter-deep); }
.btn-brass { background: var(--brass); color: var(--hunter-deep); }
.btn-brass:hover { background: var(--brass-deep); color: var(--white); }
.btn-ol { background: transparent; color: var(--hunter-deep); border-color: var(--hunter); }
.btn-ol:hover { background: var(--hunter); color: var(--white); }

/* ---------- Headings ---------- */
.ey { display: inline-block; font-weight: 700; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: 0.8rem; }
.h2 { font-size: clamp(2.2rem, 3.8vw, 3.2rem); 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: diagonal cut ---------- */
.dg { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(520px, 78vh, 720px); background: var(--ivory); overflow: hidden; }
.dg-txt { display: flex; flex-direction: column; justify-content: center; padding: 3rem clamp(1.5rem, 3vw, 2.5rem) 3rem max(2rem, calc((100vw - 1140px) / 2 + 2.5rem)); position: relative; z-index: 2; }
.dg-txt h1 { font-size: clamp(2.6rem, 4.8vw, 4.1rem); margin-bottom: 1.1rem; }
.dg-txt h1 em { font-style: italic; color: var(--brass-deep); }
.dg-txt p { color: var(--muted); font-size: 1.08rem; max-width: 30rem; margin-bottom: 1.8rem; }
.dg-b { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.dg-img { position: relative; clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%); background: var(--hunter-soft); }
.dg-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dg-img::before { content: ""; position: absolute; inset: 0; clip-path: polygon(20% 0, 21.6% 0, 1.6% 100%, 0 100%); background: var(--brass); z-index: 2; }
@media (max-width: 860px) {
  .dg { grid-template-columns: 1fr; min-height: 0; }
  .dg-img { order: -1; height: 42vh; clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }
  .dg-img::before { display: none; }
  .dg-txt { padding: 2rem 1.3rem 2.6rem; }
}

/* ---------- Two steps, two systems ---------- */
.two { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: stretch; }
.two-c { background: var(--ivory); border-radius: var(--r-lg); padding: 2rem 1.8rem; border-top: 4px solid var(--hunter); }
.two-c.b { border-top-color: var(--brass); }
.two-c small { display: block; font-weight: 700; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 0.4rem; }
.two-c h3 { font-size: 1.75rem; margin-bottom: 0.8rem; }
.two-c ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.two-c li { padding-left: 1.4rem; position: relative; color: var(--muted); font-size: 0.97rem; }
.two-c li::before { content: "\2713"; position: absolute; left: 0; color: var(--brass-deep); font-weight: 700; }
.two-arrow { display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 2.6rem; color: var(--brass); }
.two-note { margin-top: 1.4rem; text-align: center; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } .two-arrow { transform: rotate(90deg); } }

/* ---------- MA difference ---------- */
.sn-h .ey { color: #E4C88E; }
.sn-h .h2 { color: var(--white); }
.sn-h .ld { color: rgba(255,255,255,0.84); }
.md { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: start; }
.md-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.md-list span { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); color: var(--white); border-radius: 999px; padding: 0.45rem 0.95rem; font-size: 0.93rem; font-weight: 600; }
.md-plus { background: var(--ivory); border-radius: var(--r-lg); padding: 2rem; }
.md-plus b { display: block; font-family: var(--serif); font-size: 3.5rem; color: var(--brass-deep); line-height: 0.9; margin-bottom: 0.5rem; }
.md-plus h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.md-plus p { color: var(--muted); font-size: 0.97rem; margin-bottom: 0.7rem; }
.md-plus p:last-child { margin-bottom: 0; }
.md-plus a { color: var(--hunter); font-weight: 700; }
@media (max-width: 860px) { .md { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Compare table ---------- */
.cmp-wrap { overflow-x: auto; }
.cmp { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; background: var(--white); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.cmp th, .cmp td { text-align: left; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); }
.cmp thead th { font-weight: 700; font-size: 0.86rem; letter-spacing: 0.05em; text-transform: uppercase; background: var(--hunter-deep); color: var(--white); }
.cmp thead th.hl { background: var(--brass-deep); }
.cmp tbody td:first-child { font-weight: 700; color: var(--hunter-deep); width: 30%; }
.cmp tbody td.hl { background: var(--brass-pale); font-weight: 600; }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp-note { color: var(--muted); font-size: 0.9rem; margin-top: 1rem; text-align: center; }
.cmp-note a { color: var(--hunter); font-weight: 700; }

/* ---------- 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-left: 6px solid var(--hunter); }
.lc-c.b { background: var(--hunter-soft); }
.lc-c h3 { font-size: 1.75rem; margin-bottom: 0.3rem; }
.lc-c address { font-style: normal; font-weight: 700; color: var(--brass-deep); 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(--brass); }
.tq-c p { font-family: var(--serif); font-size: 1.4rem; line-height: 1.4; margin-bottom: 1rem; color: var(--ink); }
.tq-c span { font-weight: 700; font-size: 0.9rem; color: var(--hunter); }
@media (max-width: 860px) { .tq { grid-template-columns: 1fr; } }

/* ---------- Accordion ---------- */
.ac { max-width: 880px; margin: 0 auto; }
.ac details { background: var(--white); border-left: 4px solid var(--line); border-radius: var(--r); margin-bottom: 0.7rem; }
.ac details[open] { border-left-color: var(--brass); }
.ac summary { list-style: none; cursor: pointer; padding: 1.15rem 3rem 1.15rem 1.4rem; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--hunter-deep); position: relative; }
.ac summary::-webkit-details-marker { display: none; }
.ac summary::after { content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.4rem; color: var(--brass-deep); }
.ac details[open] summary::after { content: "\2212"; }
.ac details p { padding: 0 1.4rem 1.3rem; color: var(--muted); }
.ac a { color: var(--hunter); font-weight: 700; }

/* ---------- Overview ---------- */
.ov { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3.5rem; align-items: start; }
.ov h3 { font-size: 1.6rem; 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(--hunter); font-weight: 700; }
.sr { background: var(--hunter-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: #E4C88E; 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: #E4C88E; }
@media (max-width: 860px) { .ov { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Closing ---------- */
.cl { background: var(--hunter); padding: 4.5rem 0; }
.cl-in { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cl h2 { color: var(--white); font-size: clamp(2.2rem, 3.8vw, 3.1rem); max-width: 34rem; }
.cl p { color: rgba(255,255,255,0.86); margin-top: 0.4rem; }

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

/* ---------- Inner page header ---------- */
.ph { background: var(--hunter-soft); padding: 3.5rem 0 3rem; border-bottom: 3px solid var(--brass); }
.ph h1 { font-size: clamp(2.5rem, 4.2vw, 3.6rem); 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; } }
