/* ============================================================
   Foster411 — Patchwork design system (interior pages)
   Extracted from the approved landing design (index.html).
   ============================================================ */

:root {
  --orchard: #3D5A40;
  --orchard-deep: #2C432F;
  --sage: #E7EDE2;
  --sage-deep: #D8E2D0;
  --peach: #F29D6B;
  --peach-deep: #E07E45;
  --blossom: #F6CDB8;
  --cream: #FBF6EE;
  --bark: #33291F;
  --ink-soft: #5C5144;
  --ink-faint: #8B7F6E;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Nunito Sans", system-ui, sans-serif;
  background: var(--sage);
  color: var(--bark);
  line-height: 1.6;
  font-size: 17px;
}
h1, h2, h3, h4 { font-family: "Young Serif", serif; font-weight: 400; line-height: 1.14; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--peach-deep); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

/* ---------- utility bar ---------- */
.utility { background: var(--orchard-deep); color: #CFDCC9; font-size: 0.82rem; font-weight: 600; }
.utility-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 8px 0; flex-wrap: wrap; }
.utility a { color: var(--cream); text-decoration: none; font-weight: 800; }
.utility a:hover { text-decoration: underline; text-underline-offset: 3px; }
.utility .crisis { color: var(--blossom); }

/* ---------- header ---------- */
header.site { padding: 22px 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark-patch {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--peach) 50%, var(--orchard) 50%);
  box-shadow: inset 0 0 0 3px var(--cream);
}
.wordmark span { font-family: "Young Serif", serif; font-size: 1.35rem; letter-spacing: -0.01em; }
.wordmark small { display: block; font-family: "Nunito Sans", sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orchard); }
nav.main { display: flex; align-items: center; gap: 14px; }
nav.main ul { display: flex; gap: 20px; list-style: none; align-items: center; }
nav.main a { text-decoration: none; font-weight: 700; font-size: 0.88rem; }
nav.main a:hover { color: var(--orchard); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2.5px; text-decoration-color: var(--peach); }
nav.main a[aria-current="page"] { color: var(--orchard); box-shadow: inset 0 -3px 0 var(--peach); }

/* skip link (a11y) */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--peach); color: var(--bark); font-weight: 800; text-decoration: none;
  padding: 10px 20px; border-radius: 0 0 12px 0; border: 2.5px solid var(--bark); border-top: none; border-left: none;
}
.skip:focus { left: 0; }

/* mobile nav toggle */
.nav-toggle {
  display: none; align-items: center; gap: 9px; cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: 0.88rem; color: var(--bark);
  background: transparent; border: 2.5px solid var(--bark); border-radius: 999px; padding: 8px 18px;
}
.nav-toggle::before { content: "☰"; font-size: 1rem; line-height: 1; }
.nav-toggle[aria-expanded="true"]::before { content: "✕"; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 800; font-size: 0.95rem;
  padding: 12px 24px; border-radius: 999px; border: 2.5px solid var(--bark);
  background: transparent; cursor: pointer; font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--bark); }
.btn-peach { background: var(--peach); }
.btn-green { background: var(--orchard); color: var(--cream); border-color: var(--orchard-deep); }
.btn-quiet { background: transparent; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
nav.main .btn { padding: 10px 20px; font-size: 0.88rem; }

/* ---------- page hero + breadcrumbs ---------- */
.page-hero { padding: 26px 0 54px; }
.crumbs { font-size: 0.85rem; font-weight: 600; color: var(--ink-faint); margin-bottom: 30px; }
.crumbs a { text-decoration: none; color: var(--orchard); }
.crumbs a:hover { text-decoration: underline; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orchard); margin-bottom: 18px;
}
.eyebrow::before { content: ""; flex: none; width: 26px; height: 3px; background: var(--peach); border-radius: 2px; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 18px; max-width: 18em; }
.page-hero h1 em { font-style: normal; color: var(--orchard); position: relative; white-space: nowrap; }
.page-hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.28em;
  background: var(--blossom); z-index: -1; border-radius: 3px;
}
.page-hero .lede { font-size: 1.12rem; max-width: 38em; color: #4A4036; }

/* ---------- sections ---------- */
.sheet { background: var(--cream); border-radius: 40px 40px 0 0; padding: 70px 0 90px; }
.section-head { max-width: 640px; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); }

/* ---------- patch icons ---------- */
.patch-icon { display: inline-block; width: 46px; height: 46px; border-radius: 10px; }
.p-hst-a { background: linear-gradient(135deg, var(--peach) 50%, var(--orchard) 50%); }
.p-hst-b { background: linear-gradient(45deg, var(--blossom) 50%, var(--orchard) 50%); }
.p-hst-c { background: linear-gradient(-45deg, var(--sage-deep) 50%, var(--peach) 50%); }
.p-solid-g { background: var(--orchard); }
.p-solid-p { background: var(--peach); }
.p-solid-b { background: var(--blossom); }
.p-dot { background: radial-gradient(circle at center, var(--peach) 34%, var(--cream) 35%); border: 2px solid var(--sage-deep); }

/* ---------- badges, tags, chips ---------- */
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
  background: var(--sage-deep); color: var(--orchard-deep);
}
.badge-gov { background: var(--orchard); color: var(--cream); }
.badge-nonprofit { background: var(--blossom); color: #5C4638; }
.vtag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700; color: var(--orchard);
}
.vtag::before { content: "✓"; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--orchard); color: var(--cream); font-size: 0.62rem; }
.vtag.stale { color: #A05A2C; }
.vtag.stale::before { content: "!"; background: var(--peach-deep); }
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.78rem; font-weight: 700; padding: 3px 12px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--sage-deep); color: var(--ink-soft);
}

/* ---------- callouts ---------- */
.callout {
  background: var(--sage); border-radius: var(--radius); padding: 22px 26px;
  border-left: 5px solid var(--orchard); margin: 26px 0;
}
.callout.warn { background: #FBEADF; border-left-color: var(--peach-deep); }
.callout.flag { background: var(--blossom); border-left-color: var(--bark); }
.callout.training { background: #fff; border: 2px solid var(--sage-deep); border-left: 5px solid var(--orchard); }
.callout.training .badge { margin-bottom: 8px; }
.callout.training .btn { margin-top: 14px; color: var(--cream); }
.callout h4 { font-size: 1.05rem; margin-bottom: 6px; }
.callout p { font-size: 0.95rem; color: var(--ink-soft); }
.callout p:last-child { margin-bottom: 0; }
.callout a { color: var(--orchard); font-weight: 700; }

/* ---------- data tables ---------- */
table.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 20px 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 2px var(--sage-deep); }
table.data th { font-family: "Nunito Sans", sans-serif; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; text-align: left; background: var(--orchard); color: var(--cream); padding: 12px 16px; }
table.data td { padding: 12px 16px; border-top: 1.5px dashed var(--sage-deep); vertical-align: top; }
table.data td b { font-family: "Young Serif", serif; font-weight: 400; font-size: 1.05rem; }

/* ---------- cards ---------- */
.card {
  background: #fff; border: 2px solid var(--sage-deep); border-radius: var(--radius);
  padding: 24px; transition: border-color 0.15s ease, transform 0.15s ease;
}
a.card { text-decoration: none; display: block; }
a.card:hover { border-color: var(--peach-deep); transform: translateY(-3px); }
.card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.card p { font-size: 0.92rem; color: var(--ink-soft); }
.card small { font-weight: 600; font-size: 0.78rem; color: var(--ink-faint); }

/* dashed link lists (from the landing "door" pattern) */
ul.dashlist { list-style: none; }
ul.dashlist li { padding: 10px 0; border-top: 1.5px dashed #C6CFBC; font-size: 0.93rem; font-weight: 600; }
ul.dashlist li:first-child { border-top: none; }
ul.dashlist li a { text-decoration: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
ul.dashlist li a::after { content: "→"; color: var(--peach-deep); }
ul.dashlist li a:hover { color: var(--orchard); }

/* ---------- phone band ---------- */
.help-card {
  background: var(--blossom); border-radius: 20px; padding: 40px 44px;
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
  border: 2.5px solid var(--bark);
}
.help-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.help-card p { color: #5C4638; max-width: 32em; }
.help-card .phone { font-family: "Young Serif", serif; font-size: 1.5rem; white-space: nowrap; text-decoration: none; }
.help-card .phone small { display: block; font-family: "Nunito Sans", sans-serif; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #8A5A3C; }

/* ---------- footer ---------- */
footer.site { background: var(--orchard-deep); color: #BCCBB6; padding: 56px 0 40px; font-size: 0.9rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.foot-grid h4 { font-family: "Nunito Sans", sans-serif; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream); margin-bottom: 14px; }
.foot-grid ul { list-style: none; }
.foot-grid li { padding: 4px 0; }
footer.site a { color: #DCE7D8; text-decoration: none; }
footer.site a:hover { text-decoration: underline; color: var(--cream); }
.foot-brand p { font-size: 0.85rem; max-width: 26em; margin-top: 12px; }
.foot-legal { border-top: 1px solid #3E5941; padding-top: 22px; font-size: 0.8rem; color: #93A78E; }

/* ---------- shared layout helpers ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

@media (prefers-reduced-motion: reduce) {
  .btn:hover, a.card:hover { transform: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 940px) {
  header.site { position: relative; }
  .nav-toggle { display: inline-flex; }
  nav.main ul { display: none; }
  nav.main ul.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 16px; right: 16px; top: calc(100% - 8px); z-index: 50;
    background: var(--cream); border: 2.5px solid var(--bark); border-radius: 16px;
    padding: 10px; box-shadow: 6px 6px 0 rgba(51, 41, 31, 0.18);
  }
  nav.main ul.open li { border-top: 1.5px dashed var(--sage-deep); }
  nav.main ul.open li:first-child { border-top: none; }
  nav.main ul.open a { display: block; padding: 12px 14px; font-size: 1rem; }
  nav.main ul.open a[aria-current="page"] { box-shadow: none; background: var(--sage); border-radius: 10px; }
  nav.main ul.open .btn { margin: 10px 14px 8px; text-align: center; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .page-hero h1 { font-size: 1.9rem; }
  .help-card { padding: 30px 26px; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- print (caseworker quick reference) ---------- */
@media print {
  .utility, header.site, footer.site, .no-print { display: none !important; }
  body { background: #fff; font-size: 12px; }
  .sheet { border-radius: 0; padding: 0; }
  .printable { box-shadow: none !important; border: 1.5px solid #333 !important; }
}
