/* ============================================================
   Deming (NM) — Amethyst / Agate / Cream / Charcoal
   Hero: text left, one portrait photo in an arch-topped frame on the
   right with an agate offset outline (nothing overlaps the photo)
   ============================================================ */

:root {
  --am: #6E4F9E;
  --am-deep: #4E3677;
  --am-soft: #EEE8F6;
  --agate: #E08A3C;
  --agate-deep: #BE6C22;
  --agate-pale: #FCEFE1;
  --cream: #FAF5EC;
  --char: #2B2730;
  --white: #FFFFFF;
  --ink: #26222B;
  --muted: #625C68;
  --muted-2: #9F98A6;
  --line: #E6DFD3;
  --danger-bg: #FBEAE7;
  --danger-border: #E3A79B;
  --danger-text: #8A3A2A;
  --success-bg: #E9F5EE;
  --success-border: #9FCFB4;
  --success-text: #1F5C3D;
  --r: 10px;
  --r-lg: 18px;
  --serif: 'Crimson Pro', Georgia, serif;
  --sans: 'Cabin', -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(--cream); line-height: 1.64; -webkit-font-smoothing: antialiased; font-size: 1.04rem; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; color: var(--am-deep); line-height: 1.1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.cd { max-width: 1140px; margin: 0 auto; padding: 0 2.5rem; }
.sd { padding: 5.5rem 0; }
.sd-w { background: var(--white); }
.sd-c { background: var(--char); }
.sd-a { background: var(--am-soft); }
@media (max-width: 860px) { .cd { padding: 0 1.3rem; } .sd { padding: 3.5rem 0; } }

/* ---------- Nav ---------- */
nav { position: sticky; top: 0; z-index: 40; background: var(--char); border-bottom: 4px solid var(--agate); }
.nd { max-width: 1140px; margin: 0 auto; padding: 0.8rem 2.5rem; display: flex; align-items: center; justify-content: space-between; }
.nd-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nd-logo img { width: 42px; height: 42px; }
.nd-logo span { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--cream); }
.nd-links { list-style: none; display: flex; gap: 2rem; }
.nd-links a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: rgba(250,245,236,0.74); transition: color .2s; }
.nd-links a:hover { color: var(--cream); }
.nd-links a.active { color: var(--agate); }
.nd-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nd-btn span { width: 22px; height: 2px; background: var(--cream); border-radius: 2px; }
@media (max-width: 860px) {
  .nd { padding: 0.8rem 1.3rem; }
  .nd-links { position: fixed; top: 70px; left: 0; right: 0; background: var(--char); flex-direction: column; gap: 0; padding: 0.4rem 1.5rem 1.2rem; border-bottom: 4px solid var(--agate);
    opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
  .nd-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nd-links li { padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nd-links li:last-child { border-bottom: none; }
  .nd-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.97rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-am { background: var(--am); color: var(--white); }
.btn-am:hover { background: var(--am-deep); }
.btn-agate { background: var(--agate); color: var(--char); }
.btn-agate:hover { background: var(--agate-deep); color: var(--white); }
.btn-ol { background: transparent; color: var(--am-deep); border-color: var(--am); }
.btn-ol:hover { background: var(--am); color: var(--white); }

/* ---------- Headings ---------- */
.ey { display: inline-block; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--agate-deep); margin-bottom: 0.8rem; }
.h2 { font-size: clamp(2.1rem, 3.6vw, 3rem); 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: arch frame ---------- */
.hero { padding: 4rem 0 4.5rem; }
.hero-g { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 4.8vw, 4rem); margin-bottom: 1.2rem; }
.hero h1 em { font-style: italic; color: var(--agate-deep); }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 31rem; margin-bottom: 2rem; }
.hero-b { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.ar { position: relative; max-width: 420px; width: 100%; margin-left: auto; }
.ar-img { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; background: var(--am-soft); position: relative; z-index: 1; }
.ar-img img { width: 100%; height: 100%; object-fit: cover; }
.ar::before { content: ""; position: absolute; inset: -14px -14px 14px 14px; border-radius: 999px 999px var(--r-lg) var(--r-lg); border: 2px solid var(--agate); z-index: 0; }
@media (max-width: 860px) { .hero { padding: 2.5rem 0 3.5rem; } .hero-g { grid-template-columns: 1fr; gap: 2.8rem; } .ar { margin: 0 auto; max-width: 320px; } }

/* ---------- Fact strip ---------- */
.fs { background: var(--char); }
.fs-g { display: grid; grid-template-columns: repeat(4, 1fr); }
.fs-i { padding: 1.5rem 1.4rem; border-left: 1px solid rgba(255,255,255,0.1); }
.fs-i:first-child { border-left: none; }
.fs-i b { display: block; font-family: var(--serif); font-size: 1.55rem; color: var(--agate); }
.fs-i span { font-size: 0.9rem; color: rgba(250,245,236,0.75); }
@media (max-width: 860px) { .fs-g { grid-template-columns: 1fr 1fr; } .fs-i:nth-child(3) { border-left: none; } .fs-i:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.1); } }

/* ---------- Vertical timeline ---------- */
.vt { max-width: 820px; position: relative; padding-left: 2.6rem; }
.vt::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 3px; background: var(--line); }
.vt-i { position: relative; padding-bottom: 2.1rem; }
.vt-i:last-child { padding-bottom: 0; }
.vt-i::before { content: ""; position: absolute; left: -2.6rem; top: 4px; width: 25px; height: 25px; border-radius: 50%; background: var(--am); border: 4px solid var(--white); box-shadow: 0 0 0 2px var(--am); }
.vt-i small { display: block; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--agate-deep); margin-bottom: 0.25rem; }
.vt-i h3 { font-size: 1.45rem; margin-bottom: 0.35rem; }
.vt-i p { color: var(--muted); }

/* ---------- Did you know ---------- */
.dk { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; background: var(--agate-pale); border-radius: var(--r-lg); padding: 2.2rem 2.4rem; border-left: 6px solid var(--agate); }
.dk b { font-family: var(--serif); font-size: clamp(3.5rem, 7vw, 5rem); color: var(--agate-deep); line-height: 0.9; }
.dk h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.dk p { color: var(--muted); }
@media (max-width: 700px) { .dk { grid-template-columns: 1fr; gap: 0.6rem; } }

/* ---------- Compare cards ---------- */
.sd-c .ey { color: var(--agate); }
.sd-c .h2 { color: var(--cream); }
.sd-c .ld { color: rgba(250,245,236,0.8); }
.opt { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.opt-c { border-radius: var(--r-lg); padding: 2rem; }
.opt-c.med { background: var(--white); }
.opt-c.rec { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); }
.opt-c h3 { font-size: 1.75rem; margin-bottom: 0.3rem; }
.opt-c.rec h3 { color: var(--cream); }
.opt-c small { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 1.2rem; }
.opt-c.rec small { color: rgba(250,245,236,0.6); }
.opt-c ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.opt-c li { padding-left: 1.7rem; position: relative; }
.opt-c.med li::before { content: "\2713"; position: absolute; left: 0; color: var(--am); font-weight: 700; }
.opt-c.rec li { color: rgba(250,245,236,0.8); }
.opt-c.rec li::before { content: "\2022"; position: absolute; left: 0.3rem; color: rgba(250,245,236,0.5); }
@media (max-width: 860px) { .opt { grid-template-columns: 1fr; } }

/* ---------- Category accordions ---------- */
.ca { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.8rem; }
.ca details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.ca summary { list-style: none; cursor: pointer; padding: 1.3rem 3.2rem 1.3rem 1.5rem; font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--am-deep); position: relative; }
.ca summary::-webkit-details-marker { display: none; }
.ca summary small { font-family: var(--sans); font-weight: 500; font-size: 0.85rem; color: var(--muted-2); margin-left: 0.5rem; }
.ca summary::after { content: "+"; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.4rem; color: var(--agate-deep); }
.ca details[open] summary::after { content: "\2212"; }
.ca ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 1.5rem 1.4rem; }
.ca li { background: var(--am-soft); color: var(--am-deep); border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.93rem; font-weight: 500; }
.ca-note { text-align: center; margin-top: 1.4rem; color: var(--muted); font-size: 0.96rem; }
.ca-note a { color: var(--am); 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-top: 5px solid var(--am); }
.lc-c.b { background: var(--agate-pale); }
.lc-c h3 { font-size: 1.6rem; margin-bottom: 0.3rem; }
.lc-c address { font-style: normal; font-weight: 700; color: var(--agate-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-left: 5px solid var(--am); }
.tq-c p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.45; margin-bottom: 1rem; }
.tq-c span { font-weight: 700; font-size: 0.9rem; color: var(--agate-deep); }
@media (max-width: 860px) { .tq { grid-template-columns: 1fr; } }

/* ---------- Two-column Q&A ---------- */
.qa2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
.qa2-i { padding: 1.5rem 0; border-top: 2px solid var(--line); }
.qa2-i h3 { font-size: 1.3rem; margin-bottom: 0.45rem; }
.qa2-i p { color: var(--muted); }
.qa2-i a { color: var(--am); font-weight: 700; }
@media (max-width: 860px) { .qa2 { grid-template-columns: 1fr; } }

/* ---------- Overview ---------- */
.ov { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3.5rem; align-items: start; }
.ov h3 { font-size: 1.45rem; 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(--am); font-weight: 700; }
.sr { background: var(--char); border-radius: var(--r-lg); padding: 1.6rem; }
.sr h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--agate); margin-bottom: 0.8rem; }
.sr a { display: block; padding: 0.9rem 0; border-top: 1px solid rgba(255,255,255,0.12); text-decoration: none; }
.sr a strong { display: block; color: var(--cream); }
.sr a small { color: rgba(250,245,236,0.62); font-size: 0.86rem; }
.sr a:hover strong { color: var(--agate); }
@media (max-width: 860px) { .ov { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Closing ---------- */
.cl { background: var(--am); 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.1rem, 3.4vw, 2.8rem); max-width: 34rem; }
.cl p { color: rgba(255,255,255,0.9); margin-top: 0.4rem; }

/* ---------- Footer ---------- */
footer { background: var(--char); color: rgba(255,255,255,0.72); padding: 3.5rem 0 1.8rem; }
.fd { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.fd p { font-size: 0.93rem; line-height: 1.7; margin-top: 0.9rem; max-width: 24rem; color: rgba(255,255,255,0.62); }
footer .nd-logo span { color: var(--cream); }
footer h4 { font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--agate); 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.95rem; }
footer a:hover { color: var(--agate); }
.fd-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.86rem; color: rgba(255,255,255,0.5); }
@media (max-width: 860px) { .fd { grid-template-columns: 1fr; } }

/* ---------- Inner page header ---------- */
.ph { background: var(--am-soft); padding: 3.5rem 0 3rem; border-bottom: 4px solid var(--agate); }
.ph h1 { font-size: clamp(2.4rem, 4vw, 3.4rem); 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; } }
