/* ==========================================================================
   Classic Civic — a trustworthy, institutional county theme.
   Navy + gold, serif headings, dense top navigation. Hand-written CSS, no
   dependencies, broad browser support (flexbox/grid).
   ========================================================================== */

:root {
  --navy: #0f2747;
  --navy-light: #1c3d6b;
  --gold: #b8860b;
  --gold-light: #d4a72c;
  --ink: #1f2733;
  --muted: #5a6573;
  --line: #d9dee6;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --bg-band: #eef1f6;
  --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

a { color: var(--navy-light); }
a:hover { color: var(--gold); }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  padding: 8px 14px;
  z-index: 10000;
  border: 2px solid var(--navy);
}

/* ---- Utility / top bar ---------------------------------------------------- */
.utilbar {
  background: var(--navy);
  color: #cdd6e4;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}
.utilbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.utilbar a { color: #e7ecf5; text-decoration: none; }
.utilbar a:hover { color: var(--gold-light); }
.utilbar__links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- Masthead ------------------------------------------------------------- */
.masthead {
  border-bottom: 4px solid var(--gold);
  background: var(--bg);
}
.masthead .container {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.seal {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.04em;
  border: 3px solid var(--gold);
  font-family: Georgia, serif;
}
.masthead__title { margin: 0; font-size: 30px; }
.masthead__title small {
  display: block;
  font-size: 14px;
  font-weight: normal;
  color: var(--muted);
  font-style: italic;
  margin-top: 4px;
}

/* ---- Primary navigation --------------------------------------------------- */
.mainnav {
  background: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
}
.mainnav ul {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 12px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}
.mainnav a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 3px solid transparent;
}
.mainnav a:hover,
.mainnav a[aria-current="page"] {
  background: var(--navy-light);
  border-bottom-color: var(--gold);
  color: #fff;
}

/* ---- Hero ----------------------------------------------------------------- */
.hero {
  background: linear-gradient(rgba(15, 39, 71, 0.82), rgba(15, 39, 71, 0.82)),
    repeating-linear-gradient(45deg, #16335c 0, #16335c 24px, #15315a 24px, #15315a 48px);
  color: #fff;
  padding: 64px 0;
}
.hero h1 { color: #fff; font-size: 40px; max-width: 18ch; }
.hero p { font-size: 19px; color: #dce4f0; max-width: 60ch; }
.hero__actions { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 3px;
  border: 2px solid var(--gold);
  cursor: pointer;
}
.btn--primary { background: var(--gold); color: #1a1300; }
.btn--primary:hover { background: var(--gold-light); color: #1a1300; }
.btn--ghost { background: transparent; color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---- Sections ------------------------------------------------------------- */
section { padding: 52px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: 30px; position: relative; display: inline-block; padding-bottom: 12px; }
.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background: var(--gold);
}
.section-head p { color: var(--muted); margin: 0; }

/* ---- Quick links band ----------------------------------------------------- */
.quicklinks {
  background: var(--bg-band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quicklinks .container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  padding: 0;
}
.quicklinks a {
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  background: var(--bg);
  padding: 22px 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 14px;
}
.quicklinks a:hover { background: var(--navy); color: #fff; }

/* ---- Cards / grids -------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  padding: 22px;
}
.card h3 { font-size: 20px; }
.card p { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.card a.card__link {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: var(--navy-light);
}
.card a.card__link:hover { color: var(--gold); }
.card__phone { font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: var(--muted); }

/* ---- Service list --------------------------------------------------------- */
.services-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.services-list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  padding: 16px 18px;
  color: var(--ink);
}
.services-list a:hover { background: var(--bg-alt); }
.services-list strong { color: var(--navy); font-family: Georgia, serif; }
.services-list span { color: var(--muted); font-size: 14px; font-family: Arial, sans-serif; }

/* ---- News ----------------------------------------------------------------- */
.news-item {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 22px;
}
.news-item .meta {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.tag {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 2px;
  margin-right: 8px;
}
.news-item h3 { font-size: 21px; }
.news-item p { margin: 0; color: var(--muted); }

/* ---- Page header (interior pages) ---------------------------------------- */
.page-header {
  background: var(--navy);
  color: #fff;
  padding: 44px 0;
}
.page-header h1 { color: #fff; font-size: 34px; margin: 0; }
.breadcrumb {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #b9c6dc;
  margin-bottom: 10px;
}
.breadcrumb a { color: #dce4f0; text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ---- Contact -------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: start; }
.info-block { margin-bottom: 26px; }
.info-block h3 { font-size: 18px; margin-bottom: 4px; }
.info-block p { margin: 0; color: var(--muted); }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-family: Arial, sans-serif; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--navy); }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}
.form-field input:focus,
.form-field textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }

.map-embed {
  background: var(--bg-band);
  border: 1px solid var(--line);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 14px;
}

/* ---- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: #c8d2e2;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  padding: 44px 0 24px;
  border-top: 4px solid var(--gold);
}
.site-footer h4 { color: #fff; font-family: Georgia, serif; font-size: 17px; margin-bottom: 12px; }
.site-footer a { color: #c8d2e2; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 7px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 28px;
  padding-top: 18px;
  text-align: center;
  font-size: 13px;
  color: #93a2bd;
}

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .quicklinks .container { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .services-list { grid-template-columns: 1fr; }
  .quicklinks .container { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .masthead .container { flex-wrap: wrap; }
  .masthead__title { font-size: 24px; }
  .hero h1 { font-size: 30px; }
  .mainnav ul { flex-direction: column; }
}
