/* ============================================================
   N/CG Utility District — Redesign Stylesheet
   Clean / modern municipal aesthetic — brand palette matched
   to the official logo (black / logo blue / white)
   ============================================================ */

:root {
  --ink-black: #0b0d10;   /* header / hero / footer — matches logo backdrop */
  --black-deep: #000000;  /* topbar / footer band */
  --blue: #0096e1;        /* logo blue — primary accent */
  --blue-dark: #0077b0;   /* hover / pressed */
  --blue-light: #e6f4fc;  /* tint backgrounds */
  --blue-sky: #4fb8ea;    /* secondary lighter blue */
  --bg: #f6f8f9;
  --card: #ffffff;
  --ink: #1e2b32;
  --ink-soft: #52646c;
  --border: #e1e8ea;
  --amber: #c98a2c;
  --amber-bg: #fbf3e3;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(11, 13, 16, 0.08), 0 1px 2px rgba(11, 13, 16, 0.06);
  --shadow-lg: 0 8px 24px rgba(11, 13, 16, 0.14);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  color: var(--ink-black);
  line-height: 1.25;
  margin: 0 0 .6em;
}

h1 { font-size: 2.35rem; }
h2 { font-size: 1.6rem; margin-top: 2.2em; }
h3 { font-size: 1.2rem; color: var(--blue); margin-top: 1.6em; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--blue-dark); }
strong { color: var(--ink); }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink-black);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--black-deep);
  color: #cfe7f5;
  font-size: .85rem;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #eaf6fd; }
.topbar .emergency { color: #ffd48a; font-weight: 600; }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--ink-black);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
  max-width: 1320px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: "Source Serif 4", Georgia, serif;
}
.brand-icon { height: 46px; width: auto; flex-shrink: 0; }
.brand .name-block { line-height: 1.15; }
.brand .name-block .full { font-size: 1.06rem; font-weight: 700; color: #fff; }
.brand .name-block .tag { font-size: .72rem; color: var(--blue-sky); font-family: "Source Sans 3", sans-serif; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav.main-nav a {
  color: #dcebf3;
  font-weight: 600;
  font-size: .87rem;
  padding: 8px 10px;
  border-radius: 7px;
  display: inline-block;
  white-space: nowrap;
}
@media (min-width: 1180px) {
  nav.main-nav ul { flex-wrap: nowrap; }
}
nav.main-nav a:hover { background: rgba(0,150,225,.18); color: #fff; text-decoration: none; }
nav.main-nav a.active { background: var(--blue); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--ink-black); border: 1.5px solid var(--ink-black); }
.btn-outline:hover { background: var(--ink-black); color: #fff; text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(120deg, rgba(0,0,0,.82) 0%, rgba(11,13,16,.72) 45%, rgba(0,150,225,.55) 145%),
    url('hero-photo.jpg') 80% 8% / cover no-repeat;
  color: #fff;
  padding: 56px 0 64px;
}
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero-logo { width: 260px; max-width: 100%; margin-bottom: 24px; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero p.lede { color: #cfe7f5; font-size: 1.08rem; max-width: 46ch; }
.hero .actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hero .actions .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.hero .actions .btn-outline:hover { background: rgba(255,255,255,.12); }
.hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(4px);
}
.hero-card h3 { color: #fff; margin-top: 0; font-family: "Source Sans 3", sans-serif; text-transform: uppercase; font-size: .85rem; letter-spacing: .05em; }
.hero-card .big-phone { font-size: 1.5rem; font-weight: 700; color: #ffd48a; }
.hero-card p { color: #cfe7f5; font-size: .9rem; }

/* page hero (inner pages) */
.page-hero {
  background: linear-gradient(120deg, var(--ink-black), var(--blue));
  color: #fff;
  padding: 40px 0;
}
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: #cfe7f5; margin: .4em 0 0; max-width: 60ch; }

/* ---------- Page photo banner (edge-to-edge, sits under page-hero) ---------- */
.page-photo-frame {
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: var(--ink-black);
}
.page-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 640px) {
  .page-photo-frame { height: 180px; }
}

/* ---------- Inline wrapped photo (text wraps around it) ---------- */
.about-photo-inline {
  float: right;
  width: 380px;
  max-width: 45%;
  margin: 6px 0 20px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 760px) {
  .about-photo-inline { float: none; width: 100%; max-width: 100%; margin: 0 0 22px; }
}

/* ---------- Embedded explainer widget ---------- */
.explainer-frame {
  width: 100%;
  max-width: 940px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #eaf4ff;
}
.explainer-frame iframe {
  width: 100%;
  height: 600px;
  border: 0;
  display: block;
}
@media (max-width: 640px) {
  .explainer-frame iframe { height: 460px; }
}

/* ---------- Quick links / cards ---------- */
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: -34px auto 0;
  position: relative;
  z-index: 10;
}
.quick-links .card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px 20px;
  border-top: 3px solid var(--blue);
}
.quick-links .card h3 { margin-top: 0; color: var(--ink-black); font-family: "Source Sans 3", sans-serif; font-size: 1.02rem; }
.quick-links .card p { font-size: .88rem; margin-bottom: .8em; }
.quick-links .card a.card-link { font-weight: 700; font-size: .88rem; }

section { padding: 56px 0; }
section.tight { padding: 32px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: start; }

/* ---------- Mission / callouts ---------- */
.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.alert {
  background: var(--amber-bg);
  border: 1px solid #efd9ae;
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: .93rem;
  color: #6b4a15;
  margin-bottom: 1.4em;
}
.alert strong { color: #6b4a15; }

/* ---------- FAQ accordion (plain, CSS-only via <details>) ---------- */
details.faq {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 4px 18px;
}
details.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink-black);
  padding: 14px 0;
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "+ "; color: var(--blue); }
details.faq[open] summary::before { content: "− "; }
details.faq .faq-body { padding-bottom: 16px; color: var(--ink-soft); }
.faq-group h2:first-child { margin-top: 0; }

/* ---------- Document grid ---------- */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.doc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.doc-card .icon {
  width: 36px; height: 36px; border-radius: 6px; background: var(--blue-light);
  color: var(--blue); flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem;
}
.doc-card a { font-weight: 700; font-size: .93rem; }
.doc-card .meta { font-size: .78rem; color: var(--ink-soft); margin-top: 2px; }

/* ---------- Table ---------- */
table.simple { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .93rem; }
table.simple th, table.simple td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); }
table.simple th { background: var(--blue-light); color: var(--ink-black); }

/* ---------- Steps list ---------- */
ol.steps, ul.plain { padding-left: 1.3em; color: var(--ink-soft); }
ol.steps li, ul.plain li { margin-bottom: .5em; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--black-deep);
  color: #cfe7f5;
  margin-top: 40px;
}
footer.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 48px 24px 28px;
}
footer.site-footer h4 { color: #fff; font-family: "Source Sans 3", sans-serif; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
footer.site-footer a { color: #cfe7f5; }
footer.site-footer a:hover { color: var(--blue-sky); }
footer.site-footer p { color: #9db9c4; font-size: .9rem; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 8px; font-size: .9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  padding: 16px 24px;
  font-size: .82rem;
  color: #7fa3b0;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo-icon { height: 38px; width: auto; }
.footer-brand .full { color: #fff; font-weight: 700; font-family: "Source Serif 4", serif; }

/* ---------- Home page promo video feature ---------- */
.video-feature {
  background: radial-gradient(ellipse at 50% 0%, #17405c 0%, #0f2a3d 55%, #0b1c29 100%);
  color: #fff;
  padding: 64px 0 72px;
}
/* when the video band is the last block on the page, butt it against the footer */
main:has(> .video-feature:last-child) + footer.site-footer { margin-top: 0; }
.video-feature .video-intro {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 30px;
}
.video-feature .eyebrow {
  color: var(--blue-sky);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: .6em;
}
.video-feature h2 { color: #fff; margin-top: 0; }
.video-feature p { color: #cfe7f5; }
.video-feature a { color: var(--blue-sky); }
.video-frame {
  max-width: 760px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f2a3d;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
}
.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
  .two-col { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  footer.site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  header.site-header .wrap { flex-direction: column; align-items: flex-start; }
  nav.main-nav ul { gap: 2px; }
  .quick-links { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  footer.site-footer .wrap { grid-template-columns: 1fr; }
  h1 { font-size: 1.8rem; }
  .brand-icon { height: 38px; }
  .footer-logo-icon { height: 32px; }
  .hero-logo { width: 190px; }
  .video-feature { padding: 44px 0 48px; }
  .video-feature .video-intro { margin-bottom: 22px; }
}
