/* SOLACE — site styles. Plain CSS, no build step. */
:root {
  --teal-900: #163b39;
  --teal-800: #1f4d4a;
  --teal-700: #2a625e;
  --sage-500: #6a9f8b;
  --sage-300: #a9c9b5;
  --sage-100: #e3efe8;
  --cream: #faf6ee;
  --sand: #f1e9da;
  --ink: #1c2a29;
  --muted: #4a5a58;
  --accent: #a3502b;      /* terracotta, white text ≈ 5.6:1 */
  --accent-dark: #7f3d20;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(22, 59, 57, 0.10);
  --max: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--teal-900); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .narrow, .narrow.center { margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--teal-900); color: var(--white); padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: var(--white); }

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

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 238, 0.96);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid rgba(31, 77, 74, 0.12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--teal-900); }
.brand img { width: 30px; height: 38px; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; letter-spacing: .12em; }
.brand-tag { display: block; font-size: .72rem; letter-spacing: .02em; color: var(--muted); font-family: var(--sans); font-weight: 400; line-height: 1.2; }

.nav-toggle {
  display: none; align-items: center; gap: .5rem;
  background: transparent; border: 2px solid var(--teal-800); color: var(--teal-900);
  border-radius: 999px; padding: .45rem .9rem; font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: "";
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav a {
  display: block; padding: .5rem .8rem; border-radius: 8px; text-decoration: none;
  color: var(--ink); font-weight: 500;
}
.site-nav a:hover { background: var(--sage-100); color: var(--teal-900); }
.site-nav a[aria-current="page"] { color: var(--teal-900); box-shadow: inset 0 -3px 0 var(--sage-500); border-radius: 8px 8px 0 0; }
.site-nav .nav-cta a { background: var(--accent); color: var(--white); margin-left: .4rem; }
.site-nav .nav-cta a:hover { background: var(--accent-dark); color: var(--white); }
.site-nav .nav-cta a[aria-current="page"] { box-shadow: none; border-radius: 8px; }

@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 1px solid rgba(31,77,74,.15); box-shadow: var(--shadow); }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: .15rem; }
  .no-js .site-nav ul { flex-wrap: wrap; flex-direction: row; padding: 0 0 .75rem; }
  .no-js .header-inner { flex-wrap: wrap; }
  .site-nav a { padding: .8rem .9rem; }
  .site-nav .nav-cta a { margin: .4rem 0 0; text-align: center; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--sage-500); border-radius: 0 8px 8px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 600;
  line-height: 1.2; text-align: center;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--teal-900); border-color: var(--teal-800); }
.btn-secondary:hover { background: var(--teal-800); color: var(--white); }
.btn-light { background: var(--white); color: var(--teal-900); }
.btn-light:hover { background: var(--sage-100); color: var(--teal-900); }
.btn-outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--teal-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.center .btn-row { justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% 10%, rgba(169, 201, 181, .45), transparent 60%),
    linear-gradient(180deg, var(--sand), var(--cream));
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-700); margin-bottom: .9rem;
}
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 40ch; }
.hero-art { position: relative; }
.hero-art svg, .hero-art img { display: block; width: 100%; max-width: 440px; margin-inline: auto; filter: drop-shadow(0 18px 30px rgba(22,59,57,.15)); }
.hero-note { font-size: .92rem; color: var(--muted); margin-top: 1.25rem; }

.page-hero {
  background: linear-gradient(180deg, var(--sand), var(--cream));
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  position: relative; overflow: hidden;
}
.page-hero .lead { max-width: 60ch; }
.page-hero .leaf-deco { position: absolute; right: 4%; top: 50%; transform: translateY(-50%) rotate(18deg); width: 120px; opacity: .55; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 90px; }
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-alt { background: var(--white); }
.section-sage { background: var(--sage-100); }
.section-dark { background: var(--teal-900); color: #eef5f1; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark a { color: #d9ece2; }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head p { color: #cfe1d8; }
.section-dark .eyebrow { color: var(--sage-300); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--white); border-radius: var(--radius); padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow); border: 1px solid rgba(31, 77, 74, 0.08);
}
.section-alt .card { background: var(--cream); box-shadow: none; }
.card h3 { margin-bottom: .45em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .icon { display: block; width: 44px; height: 44px; margin-bottom: .9rem; color: var(--teal-700); }
.card-featured { border-top: 5px solid var(--accent); }
.card-veteran { background: var(--teal-800); color: #eef5f1; border: 0; }
.card-veteran h3 { color: var(--white); }
.card-veteran .icon { color: var(--sage-300); }
.tag {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--sage-100); color: var(--teal-900); padding: .2rem .6rem; border-radius: 999px; margin-bottom: .7rem;
}
.card-veteran .tag { background: rgba(255,255,255,.15); color: var(--white); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li { counter-increment: step; position: relative; }
.step-num {
  display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--teal-800); color: var(--white); font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
  margin-bottom: .8rem;
}
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--sage-300); }
.timeline li { position: relative; padding: 0 0 1.6rem 1.6rem; }
.timeline li::before {
  content: ""; position: absolute; left: -10px; top: .35rem; width: 17px; height: 17px; border-radius: 50%;
  background: var(--cream); border: 3px solid var(--teal-700);
}
.timeline strong { display: block; font-family: var(--serif); color: var(--teal-900); font-size: 1.15rem; }

.stat { text-align: left; }
.stat-number { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: var(--teal-800); line-height: 1.05; }
.section-dark .stat-number { color: var(--white); }
.stat-label { display: block; color: var(--muted); margin-top: .35rem; }
.section-dark .stat-label { color: #cfe1d8; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--sage-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}

blockquote.quote {
  margin: 0; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; color: var(--teal-900);
}
.section-dark blockquote.quote { color: var(--white); }
.quote-cite { display: block; margin-top: 1rem; font-family: var(--sans); font-size: 1rem; font-style: normal; color: var(--muted); }
.section-dark .quote-cite { color: #cfe1d8; }

.vignette { border-left: 4px solid var(--accent); padding-left: 1.1rem; }
.fineprint { font-size: .9rem; color: var(--muted); }
.section-dark .fineprint { color: #cfe1d8; }
.notice {
  background: var(--sand); border-left: 5px solid var(--accent); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0;
}
.notice p:last-child { margin: 0; }
.notice-safety { background: #fff4ec; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
caption { text-align: left; padding: 1rem 1.2rem .4rem; font-weight: 700; color: var(--teal-900); }
th, td { text-align: left; padding: .85rem 1.2rem; border-bottom: 1px solid var(--sage-100); vertical-align: top; }
thead th { background: var(--teal-800); color: var(--white); font-weight: 600; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; color: var(--teal-900); }

/* Gift tiers */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tier { background: var(--white); border-radius: var(--radius); padding: 1.3rem; border: 1px solid rgba(31,77,74,.1); }
.tier-amount { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--accent-dark); display: block; }

/* Forms */
form .field { margin-bottom: 1.1rem; }
label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--teal-900); }
.hint { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; padding: .75rem .9rem; border-radius: 10px;
  border: 2px solid #b9cbc3; background: var(--white); color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--teal-700); outline: 3px solid rgba(42, 98, 94, .25); outline-offset: 0; }
textarea { min-height: 140px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; }
legend { font-weight: 600; color: var(--teal-900); margin-bottom: .4rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.radio-row label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 400; color: var(--ink); }
.form-status { margin-top: 1rem; }
.form-status:empty { display: none; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--teal-800), var(--teal-900)); color: #eef5f1; border-radius: 22px; padding: clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #d6e7de; max-width: 60ch; }
.cta-band .leaf-deco { position: absolute; right: -20px; bottom: -40px; width: 180px; opacity: .25; transform: rotate(-24deg); }

/* Footer */
.site-footer { background: var(--teal-900); color: #d6e7de; padding: 3.5rem 0 2rem; margin-top: 0; }
.site-footer a { color: var(--white); }
.site-footer h2 { font-size: 1.05rem; color: var(--white); font-family: var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .4rem; }
.footer-brand { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .12em; color: var(--white); font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.4rem; font-size: .9rem; }

/* Responsive */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art svg, .hero-art img { max-width: 320px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4, .tiers { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  .btn-row .btn { width: 100%; }
  .page-hero .leaf-deco { display: none; }
  .hero-art svg, .hero-art img { max-width: 240px; }
  .hero { padding-top: 2.25rem; }
  body { font-size: 1rem; }
}
@media print {
  .site-header, .nav-toggle, .cta-band, .site-footer { display: none; }
  body { background: #fff; }
}

.pull { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.6rem); color: var(--teal-900); margin-top: 1.5rem; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2rem; }
.h-sm { font-size: 1.3rem; }

/* Stack tables into cards on small screens */
@media (max-width: 640px) {
  .table-stack { overflow: visible; }
  .table-stack table { min-width: 0; }
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-stack tr { display: block; padding: .9rem 1.1rem; border-bottom: 1px solid var(--sage-100); }
  .table-stack th, .table-stack td { display: block; padding: .2rem 0; border: 0; }
  .table-stack tbody th { font-size: 1.05rem; margin-bottom: .2rem; }
  .table-stack td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--teal-800); }
  .table-stack tbody tr:last-child { border-bottom: 0; }
}
