/* =============================================================
   Fairfield County, Ohio — HOME PAGE
   Page-specific sections layered on top of css/styles.css.
   Reuses the design-system tokens (--navy, --gold, etc.).
   ============================================================= */

/* ---------- WELCOME HERO (photo band) ---------- */
.welcome {
  position: relative;
  background-color: var(--charcoal);
  background-image:
    linear-gradient(95deg, rgba(3,18,38,.86) 0%, rgba(3,18,38,.62) 48%, rgba(3,18,38,.34) 78%, rgba(3,18,38,.2) 100%),
    url("https://www.co.fairfield.oh.us/images/PXL_20231018_162639545.jpg");
  background-size: cover;
  background-position: center 38%;
  color: #fff;
  border-bottom: 4px solid var(--gold);
}
.welcome-inner { padding-block: clamp(56px, 9vw, 116px) clamp(76px, 9vw, 120px); display: flex; align-items: center; gap: clamp(28px, 5vw, 64px); }
.welcome-copy { flex: 1 1 auto; max-width: 760px; }
.welcome-badge { flex: 0 0 auto; display: block; line-height: 0; }
.welcome-badge img { width: clamp(150px, 15vw, 208px); height: auto; }
@media (max-width: 900px) { .welcome-inner { display: block; } .welcome-badge { display: none; } }
.welcome .eyebrow { color: var(--gold-bright); margin-bottom: 16px; }
.welcome .eyebrow::before { background: var(--gold-bright); }
.welcome h1 {
  font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; font-weight: 800;
  letter-spacing: -.022em; color: #fff; text-wrap: balance;
}
.welcome h1 .soft { color: #fff; font-weight: 800; }
.welcome .lede {
  margin-top: 20px; max-width: 60ch; font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6; color: rgba(255,255,255,.84);
}
.welcome-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.award-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(230,169,29,.15); border: 1px solid rgba(230,169,29,.45);
  color: var(--gold-bright); font-weight: 700; font-size: 13px; letter-spacing: .02em;
  padding: 9px 15px; border-radius: 999px; text-decoration: none; transition: background .15s;
}
.award-pill:hover { background: rgba(230,169,29,.26); color: var(--gold-bright); }
.award-pill svg { width: 15px; height: 15px; fill: var(--gold-bright); }
.welcome-video {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 13px;
  color: rgba(255,255,255,.85); text-decoration: none; font-size: 14.5px; font-weight: 600;
}
.welcome-video:hover { color: var(--gold-bright); }
.welcome-video .play {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28);
  display: grid; place-items: center; transition: background .15s, border-color .15s;
}
.welcome-video:hover .play { background: var(--gold); border-color: var(--gold); }
.welcome-video .play svg { width: 16px; height: 16px; fill: #fff; transition: fill .15s; }
.welcome-video:hover .play svg { fill: var(--charcoal-2); }

/* ---------- PRIMARY CARDS (overlap hero) ---------- */
.primary { background: var(--surface); }
.primary-inner { padding-bottom: clamp(40px, 6vw, 72px); }
.primary-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: clamp(-72px, -6vw, -52px); position: relative; z-index: 5;
}
.primary-card {
  display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-md); padding: 28px 28px 26px;
  text-decoration: none; color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.primary-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(3,41,73,.18); border-color: var(--gold); }
.pc-icon { width: 54px; height: 54px; border-radius: 13px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.pc-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 2; }
.primary-card h3 { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.primary-card p { font-size: 14.5px; color: var(--body); line-height: 1.55; flex: 1; }
.pc-go { font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--navy-2); display: inline-flex; align-items: center; gap: 7px; }
.pc-go::after { content: "→"; transition: transform .15s; }
.primary-card:hover .pc-go { color: var(--gold-bright); }
.primary-card:hover .pc-go::after { transform: translateX(3px); }
@media (max-width: 900px) { .primary-grid { grid-template-columns: 1fr; margin-top: clamp(-56px, -10vw, -40px); } }

/* image-background variant for a primary card */
.primary-card--img { position: relative; overflow: hidden; color: #fff; border: 0; background-color: var(--navy); background-size: cover; background-position: center; min-height: 260px; justify-content: flex-end; }
.primary-card--img p { flex: 0 0 auto; }
.primary-card--img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, rgba(3,20,38,.85) 0%, rgba(3,20,38,.62) 58%, rgba(6,58,102,.5) 100%); }
.primary-card--img > * { position: relative; }
.primary-card--img h3 { color: #fff; }
.primary-card--img p { color: rgba(255,255,255,.86); }
.primary-card--img .pc-icon { background: rgba(255,255,255,.16); color: #fff; }
.primary-card--img .pc-go { color: var(--gold-bright); }
.primary-card--img .pc-icon { display: none; }
.primary-card--img:hover { border-color: transparent; box-shadow: 0 22px 52px rgba(3,20,38,.4); }

/* ---------- ENGAGE BAND (intro + quick actions) ---------- */
.engage { background: var(--navy); color: #fff; }
.engage-inner {
  padding-block: clamp(48px, 6.5vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(30px, 5vw, 60px); align-items: center;
}
.engage h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; line-height: 1.14; letter-spacing: -.018em; }
.engage h2 .accent { color: var(--gold-bright); }
.engage .sub { margin-top: 16px; font-size: 16px; line-height: 1.65; color: rgba(255,255,255,.82); max-width: 46ch; }
.engage-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.engage-link {
  display: flex; align-items: center; gap: 15px; padding: 17px 18px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.3;
  transition: background .15s, border-color .15s, transform .12s;
}
.engage-link:hover { background: rgba(230,169,29,.13); border-color: rgba(230,169,29,.42); color: var(--gold-bright); transform: translateY(-2px); }
.engage-link svg { width: 23px; height: 23px; flex-shrink: 0; color: var(--gold-bright); fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 920px) { .engage-inner { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .engage-actions { grid-template-columns: 1fr; } }

/* ---------- FINANCIAL STATS ---------- */
.stats { background: var(--canvas); }
.stats-inner { padding-block: clamp(48px, 6vw, 76px); }
.stats .section-head { margin-bottom: 30px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); padding: 28px 26px; }
.stat-card .si { width: 48px; height: 48px; border-radius: 12px; background: rgba(6,58,102,.08); color: var(--navy-2); display: grid; place-items: center; margin-bottom: 18px; }
.stat-card .si svg { width: 24px; height: 24px; }
.stat-val { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-card .bar { height: 3px; width: 40px; background: var(--gold); border-radius: 2px; margin-top: 16px; }
.stat-label { margin-top: 14px; font-size: 14px; color: var(--muted); font-weight: 600; line-height: 1.45; }
.stats-note { margin-top: 22px; font-size: 13px; color: var(--muted); font-style: italic; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stat-grid { grid-template-columns: 1fr; } }

/* ---------- NEWS GRID (clickable cards) ---------- */
.news { background: var(--surface); }
.news-inner { padding-block: clamp(48px, 6vw, 76px); }
.news .section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.news-allbtn { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--navy-2); text-decoration: none; padding: 10px 16px; border: 1.5px solid var(--navy); border-radius: 9px; transition: background .15s, color .15s; }
.news-allbtn:hover { background: var(--navy); color: #fff; }
a.news-card { display: flex; flex-direction: column; text-decoration: none; transition: transform .15s, box-shadow .15s, border-left-color .15s; }
a.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-left-color: var(--gold-bright); }
a.news-card .read { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-2); }
a.news-card .read::after { content: "→"; transition: transform .15s; }
a.news-card:hover .read { color: var(--gold-bright); }
a.news-card:hover .read::after { transform: translateX(3px); }
.news-card .tag.date { color: var(--navy-2); background: rgba(6,58,102,.08); }

/* ---------- ELECTED OFFICIALS — people grid ---------- */
.officials { background: var(--canvas); }
.officials-inner { padding-block: clamp(48px, 6vw, 76px); }
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.person-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 13px; overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.person-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.person-photo { width: 100%; aspect-ratio: 300 / 275; background: #11233a; overflow: hidden; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
.person-body { padding: 15px 17px 17px; }
.person-name { font-size: 15.5px; font-weight: 800; color: var(--navy); line-height: 1.18; letter-spacing: -.005em; }
.person-role { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 4px; }
@media (max-width: 900px) { .people-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .people-grid { grid-template-columns: 1fr; } }

/* ---------- QUICK-ACCESS ICON ROW + SOCIAL ---------- */
.access { background: var(--navy-2); color: #fff; }
.access-inner {
  padding-block: clamp(40px, 5vw, 60px);
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 28px; align-items: center;
}
.access-link { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 13px; color: #fff; text-decoration: none; }
.access-link .ai {
  width: 66px; height: 66px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.32);
  display: grid; place-items: center; color: #fff;
  transition: background .15s, border-color .15s, transform .14s, color .15s;
}
.access-link:hover .ai { background: var(--gold); border-color: var(--gold); color: var(--charcoal-2); transform: translateY(-3px); }
.access-link .ai svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.access-link .al { font-size: 13.5px; font-weight: 700; letter-spacing: .02em; line-height: 1.3; max-width: 15ch; }
.access-social { display: flex; flex-direction: column; align-items: center; gap: 13px; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.2); }
.access-social .lbl { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); font-weight: 700; }
.access-social .links { display: flex; gap: 10px; }
.access-social a { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; color: #fff; transition: background .15s, color .15s, transform .12s; }
.access-social a:hover { background: var(--gold); color: var(--charcoal-2); transform: translateY(-2px); }
.access-social svg { width: 20px; height: 20px; }
.board-photo { aspect-ratio: 300 / 275; }
.board-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
@media (max-width: 1000px) {
  .access-inner { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .access-social { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 18px; padding-left: 0; padding-top: 22px; border-left: 0; border-top: 1px solid rgba(255,255,255,.2); }
}
@media (max-width: 460px) { .access-inner { grid-template-columns: 1fr 1fr; } }

/* =============================================================
   SHARED INNER-PAGE HELPERS (directory tiles, link columns)
   ============================================================= */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 22px 24px; }
.tile h3 { font-size: 15.5px; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; line-height: 1.25; margin-bottom: 12px; }
.tile .trow { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--body); padding: 4px 0; }
.tile .trow svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.tile a { color: var(--navy-2); text-decoration: none; overflow-wrap: anywhere; }
.tile a:hover { color: var(--gold-bright); }
.tile address { font-style: normal; color: var(--body); font-size: 14px; line-height: 1.55; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.tile .who { font-weight: 700; color: var(--ink); }
.tile-link-list { display: flex; flex-direction: column; margin-top: 2px; }
.tile-link-list a { display: flex; align-items: center; gap: 9px; padding: 9px 0; font-size: 14.5px; font-weight: 600; border-bottom: 1px solid var(--line); }
.tile-link-list a:last-child { border-bottom: 0; }
.tile-link-list a svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }
@media (max-width: 900px) { .tile-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tile-grid { grid-template-columns: 1fr; } }
.tile-grid--center { display: flex; flex-wrap: wrap; justify-content: center; }
.tile-grid--center .tile { flex: 0 1 320px; }
.tile-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .tile-grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tile-grid--4 { grid-template-columns: 1fr; } }

/* external-link cue */
.ext-note { font-size: 14px; color: var(--muted); font-style: italic; margin-bottom: 22px; }

/* native contact form (Just Ask) */
.jsform { max-width: 640px; }
.jsform .field { margin-bottom: 16px; }
.jsform .frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.jsform label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.jsform .req { color: #c0392b; }
.jsform input, .jsform select, .jsform textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; }
.jsform textarea { resize: vertical; min-height: 120px; }
.jsform input:focus, .jsform select:focus, .jsform textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(6,58,102,.12); }
.jsform .btn-submit { width: auto; padding: 13px 26px; }
.jsform .note { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
@media (max-width: 560px) { .jsform .frow { grid-template-columns: 1fr; } }

/* 404 */
.nf-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px,5vw,56px); align-items: center; }
.nf-art { font-size: clamp(90px,16vw,180px); font-weight: 800; color: var(--navy); letter-spacing: -.04em; line-height: .9; }
.nf-art span { color: var(--gold); }
@media (max-width: 760px) { .nf-grid { grid-template-columns: 1fr; } }

/* Good Deeds profile cards — native-size portraits (no upscaling/blur) */
.gd-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 8px; }
.gd-card { width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .14s, box-shadow .14s, border-color .14s; }
.gd-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.gd-card__img { padding: 18px 18px 10px; display: flex; justify-content: center; }
.gd-card__img img { width: 160px; height: auto; border-radius: 10px; display: block; }
.gd-name { text-align: center; font-size: 17px; font-weight: 800; color: var(--navy); padding: 0 12px; }
.gd-role { text-align: center; font-size: 13.5px; color: var(--muted); font-weight: 600; margin-top: 3px; padding: 0 12px 16px; }
.gd-foot { margin-top: auto; background: var(--navy); color: #fff; text-align: center; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 11px; }
.gd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,48px); margin-top: 8px; }
@media (max-width: 760px) { .gd-cols { grid-template-columns: 1fr; } }

/* scroll reveal (primary cards slide in; stats fade up) */
.anim-prep { opacity: 0; transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
.anim-left { transform: translateX(-48px); }
.anim-right { transform: translateX(48px); }
.anim-up { transform: translateY(36px); }
.anim-in { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .anim-prep { opacity: 1 !important; transform: none !important; } }

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

/* =============================================================
   DOCUMENTS + FORMS — filter chips + grouped doc cards
   ============================================================= */
.doc-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.doc-chip { border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 12.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.doc-chip:hover { border-color: var(--gold); }
.doc-chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.doc-group + .doc-group { margin-top: 42px; }
.doc-group__head { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-2); font-weight: 800; margin: 0 0 18px; }
.doc-group__head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.doc-group__head .cnt { color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .doc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .doc-grid { grid-template-columns: 1fr; } }
.doc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; box-shadow: var(--shadow-sm); padding: 20px 22px; text-decoration: none; transition: transform .14s, box-shadow .14s, border-color .14s; }
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-left-color: var(--navy); }
.doc-card h3 { font-size: 16px; font-weight: 800; color: var(--navy); line-height: 1.28; letter-spacing: -.005em; }
.doc-card p { margin-top: 9px; font-size: 14px; line-height: 1.6; color: var(--body); flex: 1; }
.doc-card .ext { margin-top: 16px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-2); display: inline-flex; align-items: center; gap: 7px; }
.doc-card .ext svg { width: 13px; height: 13px; color: var(--gold); }
.doc-card:hover .ext { color: var(--gold-bright); }
.doc-hidden { display: none !important; }
