/* ==========================================================================
   Gem Soil & Water Conservation District
   Shared stylesheet — mobile-first, accessible, no framework

   Palette (client-selected 2026-06-08, from Leanne's Pinterest reference):
     #2D3644 navy/charcoal (primary)   #9F8551 gold/bronze (accent)
     #96A4A5 sage blue-gray            #CAB69D warm beige
     #E0E2E0 light gray
   Type: Public Sans — the U.S. federal design-system typeface (gov-clean).
   NOTE: intentionally a LIGHT theme (clean government aesthetic the client
   chose) — overrides NPD's dark-mode-default rule for this client site.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Brand palette */
  --navy: #2D3644;          /* primary — nav, headings, footer */
  --navy-deep: #20262f;     /* darker — hero/footer base */
  --navy-soft: #3c4858;     /* hover / secondary surfaces */
  --sage: #96A4A5;          /* muted blue-gray accent */
  --sage-deep: #6c7b7c;     /* accessible sage for text/icons */
  --gold: #9F8551;          /* accent — borders, highlights */
  --gold-deep: #79632f;     /* accessible gold for links/eyebrows (AA on white) */
  --beige: #CAB69D;         /* warm soft accent */
  --beige-soft: #f0e9dd;    /* soft section background */
  --gray: #E0E2E0;          /* light gray */
  --gray-soft: #f3f4f3;     /* alternating section background */

  /* Functional */
  --ink: #2b323c;           /* body text */
  --ink-soft: #5a636e;      /* secondary text */
  --line: #d9ddda;          /* hairlines */
  --bg: #ffffff;
  --bg-alt: var(--gray-soft);

  --maxw: 1120px;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(32, 38, 47, .08), 0 8px 24px rgba(32, 38, 47, .07);
  --shadow-lg: 0 14px 36px rgba(32, 38, 47, .14);
  --focus: 3px solid #1c4f63;

  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.18; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.15rem); font-weight: 800; }
h3 { font-size: 1.27rem; font-weight: 700; }
p { margin: 0 0 1rem; }

/* ---- Accessibility helpers ---- */
:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--navy-deep); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }
.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;
}

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--cream { background: var(--beige-soft); }
.section--navy { background: var(--navy); color: #eef1f3; }
.section--navy h2, .section--navy h3 { color: #fff; }
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 62ch; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .09em; font-size: .82rem; font-weight: 700;
  color: var(--gold-deep); margin: 0 0 .5rem;
}
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---- Header / nav ---- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.topbar { background: var(--navy-deep); color: #d3dade; font-size: .85rem; }
.topbar .container { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; justify-content: center; padding-top: .4rem; padding-bottom: .4rem; }
.topbar a { color: #fff; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.brand__mark {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 1.02rem; letter-spacing: .02em;
  border: 2px solid var(--gold);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 1.02rem; color: var(--navy); }
.brand__sub { font-size: .76rem; color: var(--ink-soft); letter-spacing: .02em; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--navy);
  color: #fff; border: 0; padding: .55rem .85rem; border-radius: 8px; font-size: .95rem; cursor: pointer;
}
.nav-toggle:hover { background: var(--navy-soft); }
.nav-menu { list-style: none; margin: 0; padding: 0; }

@media (max-width: 860px) {
  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    flex-direction: column; padding: .5rem 0;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { display: block; padding: .8rem 1.25rem; border-bottom: 1px solid var(--line); }
}
@media (min-width: 861px) {
  .nav-toggle { display: none; }
  .nav-menu { display: flex; gap: .25rem; }
  .nav-menu a {
    display: block; padding: .55rem .8rem; border-radius: 7px; text-decoration: none;
    color: var(--ink); font-weight: 600; font-size: .97rem;
  }
  .nav-menu a:hover { background: var(--bg-alt); color: var(--navy); }
  .nav-menu a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: .8rem 1.4rem; border-radius: 8px; border: 2px solid transparent; font-size: 1rem;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-soft); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--ghost-light { background: #fff; color: var(--navy); }
.btn--ghost-light:hover { background: var(--beige-soft); color: var(--navy); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #b59a63; color: var(--navy); }

/* ---- Hero ---- */
.hero {
  position: relative;
  background-color: var(--navy);
  background-image:
    linear-gradient(180deg, rgba(32,38,47,.72), rgba(32,38,47,.86)),
    url('../img/field-pivot.jpg');
  background-size: cover;
  background-position: center;
  color: #fff; padding: clamp(3.5rem, 9vw, 7rem) 0;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--beige), var(--sage));
}
.hero h1 { color: #fff; max-width: 20ch; }
.hero p { color: #eef2f4; font-size: 1.2rem; max-width: 56ch; }
.hero .eyebrow { color: var(--beige); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---- Page banner (interior pages) ---- */
.page-banner {
  position: relative; background: var(--navy); color: #fff;
  padding: clamp(2.2rem, 5vw, 3.4rem) 0;
}
.page-banner::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--beige), var(--sage));
}
.page-banner h1 { color: #fff; margin-bottom: .25rem; }
.page-banner p { color: #e6ebee; margin: 0; max-width: 60ch; }

/* ---- Breadcrumb ---- */
.crumbs { font-size: .85rem; color: var(--ink-soft); padding: .75rem 0; }
.crumbs a { color: var(--ink-soft); }

/* ---- Cards / grid ---- */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card__icon {
  width: 48px; height: 48px; border-radius: 11px; display: grid; place-items: center;
  background: var(--beige-soft); color: var(--navy); font-size: 1.4rem; font-weight: 800; margin-bottom: .9rem;
}
.card--link { transition: transform .15s ease, box-shadow .15s ease; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
a.card--link { text-decoration: none; color: inherit; display: block; }
a.card--link span[aria-hidden] { color: var(--gold-deep); font-weight: 700; }

/* Accent variants for cards (top border) */
.accent-coral { border-top: 4px solid var(--gold); }
.accent-mauve { border-top: 4px solid var(--sage); }
.accent-teal  { border-top: 4px solid var(--navy); }
.accent-plum  { border-top: 4px solid var(--beige); }

/* ---- Two-column content split ---- */
.split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1.4fr 1fr; } .split--even { grid-template-columns: 1fr 1fr; } }

/* ---- Media frame (real photos) ---- */
.media {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--gray-soft);
}
.media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.media--wide img { aspect-ratio: 16 / 10; }
.media figcaption { font-size: .85rem; color: var(--ink-soft); padding: .6rem .9rem; background: #fff; }

/* ---- Stat band ---- */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: 1.4rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.stat__num { font-size: 2.2rem; font-weight: 800; color: var(--gold-deep); line-height: 1; }
.stat__label { font-size: .92rem; color: var(--ink-soft); margin-top: .4rem; }

/* ---- Info / placeholder callouts ---- */
.callout {
  border-left: 4px solid var(--gold); background: var(--beige-soft);
  padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin: 1.25rem 0;
}
.placeholder {
  border: 2px dashed var(--sage); background: #f6f8f8; color: var(--sage-deep);
  padding: 1rem 1.25rem; border-radius: 8px; margin: 1.25rem 0; font-size: .95rem;
}
.placeholder strong { color: var(--navy); }

/* ---- Definition / contact list ---- */
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts .k { font-weight: 700; min-width: 7.5rem; color: var(--navy); }

/* ---- Gallery ---- */
.gallery { display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
}
.gallery figcaption { font-size: .82rem; color: var(--ink-soft); margin-top: .4rem; }
.gallery .ph-img {
  aspect-ratio: 4 / 3; background: repeating-linear-gradient(45deg, #eef0ef, #eef0ef 12px, #e4e8e6 12px, #e4e8e6 24px);
  border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center;
  color: var(--ink-soft); font-size: .85rem; text-align: center; padding: .5rem;
}

/* ---- Tables (minutes) ---- */
.table-wrap { overflow-x: auto; }
table.docs { width: 100%; border-collapse: collapse; min-width: 480px; }
table.docs th, table.docs td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
table.docs thead th { background: var(--navy); color: #fff; font-size: .92rem; }
table.docs tbody tr:nth-child(even) { background: var(--bg-alt); }

/* ---- Forms ---- */
.form { display: grid; gap: 1.1rem; max-width: 640px; }
.form .row { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .form .row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 700; color: var(--navy); font-size: .95rem; }
.field .req { color: var(--gold-deep); }
.field input, .field select, .field textarea {
  font: inherit; padding: .7rem .8rem; border: 1px solid #bcc6c4; border-radius: 8px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: var(--focus); border-color: var(--navy); }
.form-note { font-size: .85rem; color: var(--ink-soft); }

/* ---- Footer ---- */
.site-footer { background: var(--navy-deep); color: #c8d0d4; padding: 3rem 0 1.5rem; margin-top: 2rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1.25rem;
  font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: space-between; align-items: center;
}

/* ---- Utility ---- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.lead-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
