/* Samaritan Services — Design DNA v1 tokens (canonical: DESIGN-DNA-v1.md) */
:root {
  --canvas: #F7F2E9;
  --canvas-deep: #EDE4D4;
  --ink: #2B2118;
  --ink-soft: #5A4C3F;
  --primary: #1F4D3A;
  --primary-hover: #173D2E;
  --accent: #C9862B;
  --accent-text: #8A5A18; /* AA-compliant amber for text on light canvases */
  --warmth: #D9A28C;
  --glow: #F5D9A8;
  --error: #A94E3C;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius-btn: 8px;
  --radius-card: 12px;
  --measure: 62ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }
p  { max-width: var(--measure); }

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }

img { max-width: 100%; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--canvas); padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Layout ---------- */
.wrap { width: min(1120px, 92%); margin: 0 auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-deep { background: var(--canvas-deep); }

/* Threshold rule: doorframe double hairline (DNA motif 2) */
.threshold { border: 0; height: 6px; width: 140px; margin: 0;
  border-top: 1px solid var(--accent); border-bottom: 1px solid var(--canvas-deep); }
.threshold.center { margin: 0 auto; }
.section .threshold { margin-bottom: 1.6rem; }

.eyebrow {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 0.9rem;
}
.eyebrow.green { color: var(--primary); }

/* ---------- Header ---------- */
.topbar {
  background: var(--ink); color: var(--canvas);
  font-size: 0.88rem; padding: 8px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: var(--glow); text-decoration: none; font-weight: 500; display: inline-block; padding: 4px 2px; min-height: 24px; }
.topbar a:hover { color: #fff; }
.topbar .lic { color: #B7A68F; letter-spacing: 0.04em; }

.site-header {
  background: var(--canvas);
  border-bottom: 1px solid rgba(43, 33, 24, 0.12);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg, .brand-mark { flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; line-height: 1.1; }
.brand-tag { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.98rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--accent); color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--primary); }

.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: var(--radius-btn); border: 2px solid var(--primary);
  background: var(--primary); color: var(--canvas); text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--canvas); }
.btn.ghost { background: transparent; color: var(--primary); }
.btn.ghost:hover { background: rgba(31, 77, 58, 0.08); color: var(--primary-hover); }
.btn.amber { background: transparent; border-color: var(--accent); color: var(--ink); }
.btn.amber:hover { background: rgba(201, 134, 43, 0.12); }
.btn.small { padding: 10px 18px; font-size: 0.92rem; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.2s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -220px; right: -160px; width: 640px; height: 640px;
  background: radial-gradient(circle, var(--glow) 0%, rgba(245, 217, 168, 0) 65%);
  opacity: 0.5; pointer-events: none;
}
.hero .wrap { position: relative; padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero h1 { max-width: 15ch; }
.hero .lede { font-size: 1.18rem; color: var(--ink-soft); margin: 1.4rem 0 2.2rem; max-width: 52ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 2.4rem; flex-wrap: wrap; margin-top: 3rem; }
.hero-proof div { min-width: 120px; }
.hero-proof .num { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--primary); }
.hero-proof .lbl { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Two doors ---------- */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.door {
  background: #FDFBF6; border: 1px solid rgba(43, 33, 24, 0.1); border-radius: var(--radius-card);
  padding: 2.2rem 2rem; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
}
.door::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.door.care::after { background: var(--warmth); }
.door.nurse::after { background: var(--primary); }
.door p { color: var(--ink-soft); flex: 1; }
.door .btn { margin-top: auto; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.card {
  background: #FDFBF6; border: 1px solid rgba(43, 33, 24, 0.1);
  border-radius: var(--radius-card); padding: 1.8rem 1.6rem;
}
.card h3 { margin-bottom: 0.6rem; }
.card p, .card li { color: var(--ink-soft); font-size: 0.98rem; }
.card ul { padding-left: 1.1rem; }

.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 1.7rem; position: relative; margin-bottom: 0.55rem; color: var(--ink-soft); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* Photography (DNA §7). Real faces, warm-graded toward Candle/Espresso, self-hosted
   so no third party is involved on the intake pages. Framed as a plate rather than a
   full-bleed banner, which reads considered instead of stock. */
.photo-plate {
  border-radius: var(--radius-card); overflow: hidden; line-height: 0;
  border: 1px solid rgba(43, 33, 24, 0.10);
  box-shadow: 0 1px 2px rgba(43, 33, 24, 0.04);
}
.photo-plate img { width: 100%; height: auto; display: block; }
/* Her source photos top out around 960px. Cap to native so we never ship an
   upscaled image; the resulting inset reads as a deliberate plate. */
.photo-plate.native { max-width: 960px; margin-inline: auto; }
.photo-caption {
  line-height: 1.5; margin-top: 0.7rem; font-size: 0.88rem; color: var(--ink-soft);
}

/* Image beside text. Collapses to stacked, image first, on small screens. */
.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 4vw, 2.6rem); align-items: center; }
@media (max-width: 820px) { .media-split { grid-template-columns: 1fr; } }

/* Roster of named facilities. Set as a list rather than prose: eighteen names run
   together became a ~30-line wall on a phone, which the audience least tolerates.
   A list lets someone scan for their own facility instead of reading all of it. */
.name-list { list-style: none; padding: 0; margin-top: 0.3rem; columns: 2; column-gap: 2.2rem; }
.name-list li {
  break-inside: avoid; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.45;
  padding: 0.4rem 0; border-bottom: 1px solid rgba(43, 33, 24, 0.08);
}
@media (max-width: 720px) { .name-list { columns: 1; } }

/* ---------- Quote / testimonial ---------- */
.quote {
  background: #FDFBF6; border: 1px solid rgba(43, 33, 24, 0.1); border-radius: var(--radius-card);
  padding: 1.8rem 1.7rem;
}
.quote blockquote { font-family: var(--font-display); font-size: 1.08rem; font-weight: 400; line-height: 1.5; }
.quote cite { display: block; margin-top: 1rem; font-style: normal; font-size: 0.88rem; font-weight: 600; color: var(--primary); letter-spacing: 0.04em; }

.quote-feature {
  position: relative; padding: clamp(2.5rem, 6vw, 4rem); border-radius: var(--radius-card);
  background: var(--canvas-deep); overflow: hidden;
}
.quote-feature::before {
  content: ""; position: absolute; bottom: -180px; left: -120px; width: 480px; height: 480px;
  background: radial-gradient(circle, var(--glow) 0%, rgba(245, 217, 168, 0) 65%);
  opacity: 0.55; pointer-events: none;
}
.quote-feature blockquote { position: relative; font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.4; max-width: 34ch; }
.quote-feature cite { position: relative; display: block; margin-top: 1.2rem; font-style: normal; font-weight: 600; color: var(--primary); }

/* ---------- Forms ---------- */
.form-card {
  background: #FDFBF6; border: 1px solid rgba(43, 33, 24, 0.1); border-radius: var(--radius-card);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.hint { font-size: 0.85rem; color: var(--ink-soft); font-weight: 400; margin-top: 4px; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--canvas-deep); border: 1px solid rgba(43, 33, 24, 0.55);
  border-radius: var(--radius-btn); padding: 13px 14px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--primary); outline-offset: 1px; background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
fieldset { border: none; }
fieldset legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; }
.radio-row { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; font-size: 0.98rem; }
input[type="radio"], input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }

.privacy-note {
  background: rgba(245, 217, 168, 0.35); border-left: 3px solid var(--accent);
  padding: 12px 16px; font-size: 0.92rem; color: var(--ink-soft); border-radius: 0 8px 8px 0;
}

/* ---------- Callout band ---------- */
.band { background: var(--primary); color: var(--canvas); }
.band .wrap { padding: clamp(2.6rem, 6vw, 4rem) 0; display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap; }
.band h2 { color: var(--canvas); max-width: 22ch; }
.band p { color: rgba(247, 242, 233, 0.8); }
.band .btn { background: var(--canvas); border-color: var(--canvas); color: var(--primary); }
.band .btn:hover { background: var(--glow); border-color: var(--glow); color: var(--ink); }
.band .phones { font-family: var(--font-display); font-size: 1.3rem; }
.band .phones a { color: var(--glow); text-decoration: none; }

/* ---------- Certification badges ---------- */
.badge-strip {
  display: flex; align-items: center; justify-content: center; gap: clamp(1.6rem, 5vw, 3.2rem);
  flex-wrap: wrap; padding: 2rem 0;
}
.badge-strip img {
  height: 62px; width: auto; max-width: 140px; object-fit: contain;
  mix-blend-mode: multiply;
}
.badge-strip-title {
  text-align: center; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.4rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #CBB99E; font-size: 0.95rem; }
.site-footer .wrap { padding: 3.5rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.2rem; }
.site-footer h3 { color: var(--canvas); font-size: 1.05rem; margin-bottom: 0.9rem; }
.site-footer a { color: #CBB99E; text-decoration: none; }
.site-footer a:hover { color: var(--glow); }
.site-footer ul { list-style: none; }
.site-footer ul a { display: inline-block; padding: 4px 0; min-height: 24px; }
.site-footer li { margin-bottom: 0.5rem; }
.footer-seal { display: flex; align-items: center; gap: 16px; }
.footer-lic { font-size: 0.82rem; letter-spacing: 0.08em; color: var(--accent); margin-top: 10px; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(203, 185, 158, 0.25); margin-top: 2.6rem; padding-top: 1.4rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem;
}

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--canvas); }
.page-hero::before {
  content: ""; position: absolute; top: -260px; right: -140px; width: 560px; height: 560px;
  background: radial-gradient(circle, var(--glow) 0%, rgba(245, 217, 168, 0) 65%);
  opacity: 0.45; pointer-events: none;
}
.page-hero .wrap { position: relative; padding: clamp(3.2rem, 7vw, 5rem) 0 clamp(2.4rem, 5vw, 3.6rem); }
.page-hero .lede { font-size: 1.14rem; color: var(--ink-soft); margin-top: 1.2rem; max-width: 56ch; }

/* ---------- Offices ---------- */
.office { font-style: normal; }
.office .name { font-weight: 600; }
.office a { text-decoration: none; font-weight: 500; }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--canvas); border-bottom: 1px solid rgba(43, 33, 24, 0.12);
    flex-direction: column; align-items: stretch; padding: 0.6rem 4% 1.2rem; gap: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid rgba(43, 33, 24, 0.08); font-size: 1.05rem; }
  .nav .btn { margin-top: 12px; text-align: center; }
  .nav-toggle { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  .topbar .lic { display: none; }
  .band .wrap { flex-direction: column; align-items: flex-start; }
}
