/* ============================================================
   Community Dog Park — campaign site
   Self-contained, no external dependencies.
   ============================================================ */

:root {
  --sand-50: #fdfaf3;
  --sand-100: #f7efe0;
  --sand-200: #efe3cd;
  --sand-300: #e4d3b3;
  --ink: #26333c;
  --ink-soft: #4a5964;
  --ink-faint: #7a8792;
  --teal: #16697a;
  --teal-dark: #0f4d5a;
  --teal-light: #e3f0f2;
  --gold: #e39a2e;
  --gold-soft: #f6e6c9;
  --grass: #5a8a5e;
  --grass-dark: #416b45;
  --white: #ffffff;
  --line: #e7ddca;
  --shadow-sm: 0 1px 3px rgba(38, 51, 60, .08), 0 1px 2px rgba(38, 51, 60, .06);
  --shadow: 0 10px 30px -12px rgba(38, 51, 60, .25);
  --shadow-lg: 0 24px 60px -20px rgba(15, 77, 90, .35);
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1120px;
  --readw: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand-50);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { line-height: 1.15; color: var(--ink); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1rem; }
a { color: var(--teal); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--tint { background: var(--sand-100); }
.section--teal { background: linear-gradient(160deg, var(--teal), var(--teal-dark)); color: #eaf6f8; }
.section--teal h2, .section--teal h3 { color: #fff; }
.section--ink { background: var(--ink); color: #d9e2e8; }
.section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: .8rem;
}
.section--teal .eyebrow, .section--ink .eyebrow { color: var(--gold); }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: var(--readw); }
.section--teal .lead, .section--ink .lead { color: #cfe5e9; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; font-size: 1rem;
  padding: .85em 1.5em; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gold); color: #3a2a08; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #f0a838; box-shadow: var(--shadow); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-dark); }
.btn--ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn--ghost:hover { background: var(--teal-light); }
.btn--on-dark { background: #fff; color: var(--teal-dark); }
.btn--on-dark:hover { background: var(--sand-100); }
.btn--lg { font-size: 1.08rem; padding: 1em 1.8em; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 250, 243, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .55em; font-weight: 800; color: var(--ink); text-decoration: none; font-size: 1.05rem; letter-spacing: -.01em; }
.brand__mark { font-size: 1.5rem; line-height: 1; }
.nav__links { display: flex; align-items: center; gap: 1.4rem; }
.nav__links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav__links a:hover { color: var(--teal); }
.nav__cta { margin-left: .4rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 860px) {
  .nav__links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--sand-50); border-bottom: 1px solid var(--line);
    padding: 8px 22px 18px; box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav__cta { margin: 12px 0 0; }
  .nav__toggle { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,77,90,.55) 0%, rgba(15,50,60,.72) 55%, rgba(20,40,48,.85) 100%);
}
.hero__inner { position: relative; padding: clamp(70px, 13vw, 150px) 0 clamp(56px, 9vw, 110px); }
.hero__inner .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; max-width: 15ch; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero__sub { font-size: 1.25rem; max-width: 40ch; color: #eaf6f8; margin: 0 0 1.8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 2.6rem; }
.hero__stat b { display: block; font-size: 1.8rem; font-weight: 800; color: #fff; }
.hero__stat span { font-size: .9rem; color: #cfe5e9; }

/* ---------- generic grid + cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card__icon { font-size: 1.9rem; margin-bottom: .5rem; display: block; }
.card h3 { margin-bottom: .35rem; }
.card p:last-child { margin-bottom: 0; }
.card--soft { background: var(--sand-100); }

.prose { max-width: var(--readw); }
.prose h3 { margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose blockquote {
  margin: 1.2em 0; padding: 1em 1.3em;
  background: var(--teal-light); border-left: 4px solid var(--teal);
  border-radius: 0 12px 12px 0; color: var(--ink-soft); font-style: italic;
}
.section--teal .prose blockquote, .section--ink .prose blockquote { background: rgba(255,255,255,.08); border-left-color: var(--gold); color: #eaf6f8; }

/* ---------- before / after ---------- */
.ba { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); user-select: none; touch-action: pan-y; }
.ba__img { display: block; width: 100%; }
.ba__after { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.ba__after-inner { position: absolute; inset: 0; }
.ba__after svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba__label { position: absolute; top: 16px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: #fff; backdrop-filter: blur(4px); }
.ba__label--before { left: 16px; background: rgba(38,51,60,.72); }
.ba__label--after { right: 16px; background: rgba(22,105,122,.82); }
.ba__handle { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; left: 50%; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(0,0,0,.06); cursor: ew-resize; }
.ba__grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; font-size: 1.1rem; color: var(--teal); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba__note { text-align: center; color: var(--ink-faint); font-size: .88rem; margin-top: .9rem; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery button { border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .3s ease; }
.gallery button:hover img { transform: scale(1.05); }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20,30,36,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 18px; right: 24px; color: #fff; font-size: 2.4rem; background: none; border: 0; cursor: pointer; line-height: 1; }

/* ---------- scope / phase list ---------- */
.phase { display: flex; gap: 1rem; align-items: flex-start; }
.phase__num { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; }
.phase h3 { margin-bottom: .2rem; }
.phase p { color: var(--ink-soft); margin-bottom: 0; }

/* ---------- budget table ---------- */
.tablewrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
table.budget { width: 100%; border-collapse: collapse; min-width: 480px; }
.budget th, .budget td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.budget th { background: var(--sand-100); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.budget td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.budget tr.total td { font-weight: 800; background: var(--teal-light); border-bottom: none; }
.budget tr:last-child td { border-bottom: none; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1rem; }
.pill { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-sm); }
.pill b { color: var(--teal); }

/* ---------- checklist ---------- */
.checkgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .checkgrid { grid-template-columns: 1fr; } }
.checkcol h3 { display: flex; align-items: center; gap: .5rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .97rem; }
.checklist li::before { content: "☐"; color: var(--teal); font-size: 1.1rem; line-height: 1.2; flex: 0 0 auto; }

/* ---------- sponsor tiers ---------- */
.tier { text-align: center; }
.tier__amt { font-size: 1.5rem; font-weight: 800; color: var(--teal); }
.tier__name { font-weight: 700; margin: .2rem 0; }
.tier__desc { color: var(--ink-soft); font-size: .92rem; }
.tier--founding { border: 2px solid var(--gold); position: relative; }
.tier--founding::before { content: "★ Founding"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #3a2a08; font-size: .72rem; font-weight: 800; padding: 3px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- FAQ ---------- */
.faq { max-width: var(--readw); margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--teal); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 18px; color: var(--ink-soft); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- forms ---------- */
.formcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 1rem; background: var(--sand-50); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field--row { grid-template-columns: 1fr; } }
.form__note { font-size: .85rem; color: var(--ink-faint); margin-top: 10px; }
.check-inline { display: flex; align-items: center; gap: .6rem; }
.check-inline input { width: auto; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #aeb9c1; padding: 48px 0 32px; font-size: .92rem; }
.footer a { color: #d9e2e8; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; margin-bottom: 26px; }
.footer__brand { font-weight: 800; color: #fff; font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; }
.footer__cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer__col h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .7rem; }
.footer__col a { display: block; text-decoration: none; padding: 3px 0; color: #aeb9c1; }
.footer__col a:hover { color: #fff; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; color: #7f8b93; max-width: 780px; }

/* ---------- misc ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.mt { margin-top: 1.4rem; }
.callout { background: var(--gold-soft); border: 1px solid #ecd6a8; border-radius: var(--radius); padding: 22px 26px; }
.callout strong { color: var(--ink); }
.anchor { scroll-margin-top: 80px; }
.imground { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
