/* ============================================================
   Sunland Park (NM) — Desert Plum / Sunset Coral / Sand
   Hero: one landscape photo, full-bleed, slow Ken Burns zoom, with a
   sand text panel on the left
   ============================================================ */

:root {
  --plum: #5B3A4D;
  --plum-deep: #3F2735;
  --plum-soft: #F1E9EE;
  --coral: #E4704F;
  --coral-deep: #C4543A;
  --coral-pale: #FCEDE6;
  --sand: #F7EFE6;
  --sage: #5C8260;
  --white: #FFFFFF;
  --ink: #2A2027;
  --muted: #675A62;
  --muted-2: #A2959C;
  --line: #E9DED5;
  --danger-bg: #FBEAE7;
  --danger-border: #E3A79B;
  --danger-text: #8A3A2A;
  --success-bg: #E9F5EE;
  --success-border: #9FCFB4;
  --success-text: #1F5C3D;
  --r: 10px;
  --r-lg: 18px;
  --serif: 'Lora', Georgia, serif;
  --sans: 'Manrope', -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(--sand); line-height: 1.64; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--plum-deep); line-height: 1.14; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.cs { max-width: 1140px; margin: 0 auto; padding: 0 2.5rem; }
.ss { padding: 5.5rem 0; }
.ss-w { background: var(--white); }
.ss-p { background: var(--plum); }
.ss-c { background: var(--coral-pale); }
@media (max-width: 860px) { .cs { padding: 0 1.3rem; } .ss { padding: 3.5rem 0; } }

/* ---------- Nav ---------- */
nav { position: sticky; top: 0; z-index: 40; background: rgba(247,239,230,0.96); backdrop-filter: blur(8px); border-bottom: 3px solid var(--coral); }
.ns { max-width: 1140px; margin: 0 auto; padding: 0.8rem 2.5rem; display: flex; align-items: center; justify-content: space-between; }
.ns-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.ns-logo img { width: 42px; height: 42px; }
.ns-logo span { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--plum-deep); }
.ns-links { list-style: none; display: flex; gap: 2rem; }
.ns-links a { text-decoration: none; font-weight: 700; font-size: 0.94rem; color: var(--muted); transition: color .2s; }
.ns-links a:hover { color: var(--coral-deep); }
.ns-links a.active { color: var(--coral-deep); }
.ns-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.ns-btn span { width: 22px; height: 2px; background: var(--plum-deep); border-radius: 2px; }
@media (max-width: 860px) {
  .ns { padding: 0.8rem 1.3rem; }
  .ns-links { position: fixed; top: 69px; left: 0; right: 0; background: var(--sand); flex-direction: column; gap: 0; padding: 0.4rem 1.5rem 1.2rem; border-bottom: 3px solid var(--coral);
    opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
  .ns-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .ns-links li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .ns-links li:last-child { border-bottom: none; }
  .ns-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: 800; font-size: 0.95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-coral { background: var(--coral-deep); color: var(--white); }
.btn-coral:hover { background: #A5432D; }
.btn-plum { background: var(--plum); color: var(--white); }
.btn-plum:hover { background: var(--plum-deep); }
.btn-ol { background: transparent; color: var(--plum-deep); border-color: var(--plum); }
.btn-ol:hover { background: var(--plum); color: var(--white); }
.btn-sand { background: var(--sand); color: var(--plum-deep); }
.btn-sand: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(--coral-deep); 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: Ken Burns ---------- */
.kb { position: relative; height: clamp(540px, 82vh, 740px); overflow: hidden; background: var(--plum-deep); }
.kb-img { position: absolute; inset: 0; background-size: cover; background-position: center; animation: kb 26s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
@media (prefers-reduced-motion: reduce) { .kb-img { animation: none; } }
.kb-wrap { position: relative; z-index: 2; height: 100%; max-width: 1140px; margin: 0 auto; padding: 0 2.5rem; display: flex; align-items: center; }
.kb-panel { background: rgba(247,239,230,0.95); border-radius: var(--r-lg); padding: clamp(2rem, 4vw, 3rem); max-width: 560px; border-top: 5px solid var(--coral); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.45); }
.kb-panel h1 { font-size: clamp(2.1rem, 3.9vw, 3.3rem); margin-bottom: 1rem; }
.kb-panel h1 em { font-style: italic; color: var(--coral-deep); }
.kb-panel p { color: var(--muted); font-size: 1.07rem; margin-bottom: 1.8rem; }
.kb-b { display: flex; gap: 0.7rem; flex-wrap: wrap; }
@media (max-width: 860px) {
  .kb { height: auto; }
  .kb-img { position: relative; height: 40vh; background-position: 64% center; }
  .kb-wrap { padding: 0; }
  .kb-panel { border-radius: 0; max-width: none; box-shadow: none; }
}

/* ---------- Chain steps ---------- */
.chain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6rem; }
.lk { position: relative; background: var(--sand); border-radius: var(--r-lg); padding: 2rem 1.7rem; border-top: 4px solid var(--plum); }
.lk:not(:last-child)::after { content: "\2192"; position: absolute; right: -2.1rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 800; color: var(--coral-deep); }
.lk small { display: block; font-weight: 800; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 0.4rem; }
.lk h3 { font-size: 1.3rem; margin-bottom: 0.45rem; }
.lk p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 860px) { .chain { grid-template-columns: 1fr; gap: 2.6rem; } .lk:not(:last-child)::after { content: "\2193"; right: 50%; top: auto; bottom: -2.2rem; transform: translateX(50%); } }

/* ---------- Border basics ---------- */
.ss-p .ey { color: #F7B79E; }
.ss-p .h2 { color: var(--white); }
.ss-p .ld { color: rgba(255,255,255,0.82); }
.bb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.bb-c { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--r-lg); padding: 1.9rem 1.6rem; }
.bb-c small { display: inline-block; font-weight: 800; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--plum-deep); background: #F7B79E; border-radius: 999px; padding: 0.22rem 0.7rem; margin-bottom: 0.9rem; }
.bb-c.warn small { background: var(--coral); color: var(--white); }
.bb-c h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 0.5rem; }
.bb-c p { color: rgba(255,255,255,0.8); font-size: 0.97rem; }
.bb-note { color: rgba(255,255,255,0.6); font-size: 0.88rem; margin-top: 1.3rem; }
@media (max-width: 860px) { .bb { grid-template-columns: 1fr; } }

/* ---------- Tax bars ---------- */
.tb { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.tb-box { background: var(--white); border-radius: var(--r-lg); padding: 2rem; border: 1px solid var(--line); }
.tb-row { margin-bottom: 1.6rem; }
.tb-row:last-of-type { margin-bottom: 0; }
.tb-lbl { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 0.5rem; }
.tb-lbl span:last-child { font-family: var(--serif); font-size: 1.3rem; color: var(--plum-deep); }
.tb-track { height: 18px; background: var(--plum-soft); border-radius: 999px; overflow: hidden; }
.tb-fill { height: 100%; border-radius: 999px; }
.tb-fill.med { width: 3%; background: var(--sage); }
.tb-fill.rec { width: 78%; background: var(--coral); }
.tb-cap { font-size: 0.86rem; color: var(--muted); margin-top: 1.2rem; }
.tb ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.2rem; }
.tb li { padding-left: 1.6rem; position: relative; color: var(--ink); }
.tb li::before { content: "\2713"; position: absolute; left: 0; color: var(--coral-deep); font-weight: 800; }
@media (max-width: 860px) { .tb { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Condition chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; max-width: 1000px; margin: 0 auto; }
.chips span { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 0.95rem; font-size: 0.92rem; font-weight: 700; color: var(--plum-deep); }
.chips-note { text-align: center; margin-top: 1.4rem; color: var(--muted); font-size: 0.96rem; }
.chips-note a { color: var(--coral-deep); font-weight: 800; }

/* ---------- 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(--coral); }
.lc-c.b { background: var(--plum-soft); }
.lc-c h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.lc-c address { font-style: normal; font-weight: 800; color: var(--coral-deep); margin-bottom: 0.7rem; }
.lc-c p { color: var(--muted); }
@media (max-width: 860px) { .lc { grid-template-columns: 1fr; } }

/* ---------- Spotlight ---------- */
.sp { max-width: 860px; margin: 0 auto; text-align: center; }
.sp blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.5vw, 1.85rem); line-height: 1.45; color: var(--plum-deep); margin-bottom: 1rem; }
.sp cite { font-style: normal; font-weight: 800; color: var(--coral-deep); }

/* ---------- 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.9rem; color: var(--coral); 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(--coral-deep); font-weight: 800; }

/* ---------- Overview ---------- */
.ov { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3.5rem; align-items: start; }
.ov h3 { font-size: 1.3rem; 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(--coral-deep); 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: #F7B79E; 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: #F7B79E; }
@media (max-width: 860px) { .ov { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Closing ---------- */
.cl { background: var(--coral-deep); 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(1.9rem, 3.2vw, 2.6rem); max-width: 34rem; }
.cl p { color: rgba(255,255,255,0.9); margin-top: 0.4rem; }

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

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