/* ===========================================================
   Village Behavioral Services — shared styles
   Vanilla CSS, no build step. Warm, clinical-but-human.
   =========================================================== */

:root {
  --forest:        #2f5d50;
  --forest-dark:   #234a40;
  --forest-deep:   #1c3a32;
  --sage:          #6f9183;
  --sage-light:    #e9f0ec;
  --sage-tint:     #f3f7f4;
  --terracotta:    #c4704f;
  --terracotta-dk: #a85a3c;
  --sand:          #faf6ef;
  --sand-deep:     #f1eadd;
  --cream:         #fffdf8;
  --ink:           #283330;
  --muted:         #5f6f68;
  --line:          #e3ddd2;
  --white:         #ffffff;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 10px 30px rgba(31, 58, 50, 0.08);
  --shadow-sm: 0 4px 14px rgba(31, 58, 50, 0.07);
  --maxw:      1080px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--forest); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--forest-deep);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta-dk);
  margin-bottom: 14px;
}

.lead { font-size: 1.2rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--terracotta-dk); transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  color: var(--forest-deep);
  border-color: var(--forest);
}
.btn-secondary:hover { background: var(--sage-light); transform: translateY(-2px); }
.btn-ghost {
  background: #fff;
  color: var(--forest-deep);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--sage); transform: translateY(-2px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--forest-deep);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.1;
}
.brand .mark {
  width: 38px; height: 38px;
  flex: 0 0 38px;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.97rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--sage-light); color: var(--forest-deep); }
.nav-links a[aria-current="page"] { color: var(--forest-deep); background: var(--sage-light); }
.nav-links .btn { padding: 9px 18px; font-size: 0.95rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(111,145,131,0.28), transparent 60%),
    radial-gradient(700px 380px at 0% 110%, rgba(196,112,79,0.14), transparent 55%),
    linear-gradient(180deg, var(--sand) 0%, var(--sage-tint) 100%);
  padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 84px);
  overflow: hidden;
}
.hero .container { max-width: 820px; }
.hero h1 { margin-bottom: 0.35em; }
.hero .lead { max-width: 640px; margin-left: auto; margin-right: auto; }
.hero.center { text-align: center; }
.hero .cta-row { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero.center .cta-row { justify-content: center; }

/* ---------- Sections ---------- */
section { padding: clamp(48px, 7vw, 88px) 0; }
section.tight { padding: clamp(34px, 5vw, 60px) 0; }
.section-sage { background: var(--sage-tint); }
.section-forest { background: var(--forest-deep); color: #e9f0ec; }
.section-forest h1, .section-forest h2, .section-forest h3 { color: #fff; }
.section-forest .lead { color: #c4d6cd; }

.measure { max-width: 720px; }
.center-measure { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
/* 4-up grids: stay balanced (2x2 then 4-across) instead of leaving a lone orphan card */
@media (min-width: 640px)  { .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.card h3 { color: var(--forest-deep); margin-top: 6px; }
.card p:last-child { margin-bottom: 0; }
.card .ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--sage-light);
  color: var(--forest);
  margin-bottom: 6px;
}
.card .ico svg { width: 24px; height: 24px; }

/* highlighted callout */
.callout {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--terracotta);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  margin: 26px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* district pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }
.pill {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  min-width: 200px;
  flex: 1 1 220px;
}
.pill strong { display: block; color: var(--forest-deep); font-size: 1.05rem; }
.pill span { color: var(--muted); font-size: 0.92rem; }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 18px 0; }
.checklist li {
  position: relative;
  padding: 8px 0 8px 36px;
  border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute; left: 4px; top: 14px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--sage-light);
  box-shadow: inset 0 0 0 2px var(--sage);
}
.checklist li::after {
  content: "";
  position: absolute; left: 9px; top: 18px;
  width: 7px; height: 4px;
  border-left: 2px solid var(--forest);
  border-bottom: 2px solid var(--forest);
  transform: rotate(-45deg);
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .container { max-width: 680px; }
.email-link {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid rgba(255,255,255,0.4);
}
.email-link:hover { border-color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-deep);
  color: #b9ccc3;
  padding: 54px 0 34px;
}
.site-footer a { color: #e9f0ec; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: var(--sage); }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #87a298;
  margin: 0 0 12px;
}
.footer-col a { display: block; text-decoration: none; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  color: #87a298;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Misc ---------- */
.disclaimer {
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--sage-tint);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 28px;
}
.skip-link {
  position: absolute; left: -999px;
  background: #fff; padding: 10px 16px; border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 12px; }

:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; border-radius: 6px; }

@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav { padding: 12px 18px; }
  .brand small { display: none; }
  .nav-links a { padding: 7px 10px; font-size: 0.92rem; }
  .footer-grid { gap: 24px; }
}
