:root {
  --navy: #17324d;
  --navy-2: #223f5c;
  --green: #2f6f45;
  --green-2: #4e8a63;
  --gold: #e0b241;
  --red: #9d2e2f;
  --ink: #18242f;
  --muted: #556570;
  --line: #d8e1dc;
  --paper: #f7f8f5;
  --wash: #edf4ee;
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(23, 50, 77, 0.12);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--green);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  max-width: 860px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, serif;
  font-size: 1.18rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 1px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--green);
}

.site-nav .nav-cta {
  color: var(--white);
  background: var(--navy);
  padding: 10px 14px;
  border-radius: 6px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
}

.hero {
  padding: 56px 0 42px;
  background:
    linear-gradient(90deg, rgba(247, 248, 245, 0.96), rgba(247, 248, 245, 0.78)),
    linear-gradient(180deg, #ffffff, var(--paper));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.86fr);
  align-items: center;
  gap: 42px;
}

.hero h1,
.page-hero h1,
.section h2,
.audience-card h2,
.contact-band h2,
.profile-section h2 {
  margin: 0;
  font-family: Georgia, serif;
  color: var(--navy);
  line-height: 1.08;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(2.55rem, 5.5vw, 4.85rem);
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.16rem;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  text-decoration: none;
  text-align: center;
}

.button.primary {
  background: var(--navy);
  color: var(--white);
}

.button.secondary {
  background: var(--green);
  color: var(--white);
}

.button.outline {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
}

.button.secondary.light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}

.button.wide {
  width: 100%;
}

.button:hover {
  filter: brightness(1.05);
  color: var(--white);
}

.button.outline:hover {
  color: var(--navy);
  background: var(--wash);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 34px 0 0;
}

.quick-facts div {
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.72);
  padding: 14px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quick-facts dt {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 4px 0 0;
  color: var(--navy);
  font-weight: 750;
}

.hero-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.audience-band {
  padding: 34px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.audience-grid,
.owner-grid,
.profile-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.audience-card,
.service-card,
.form-panel,
.credential-card,
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.audience-card {
  padding: 28px;
}

.audience-card h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
}

.audience-card p,
.service-card p,
.form-card p,
.owner-section p,
.profile-section p,
.contact-band p {
  color: var(--muted);
}

.text-link {
  font-weight: 800;
}

.section {
  padding: 68px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 26px;
}

.section-heading h2,
.owner-section h2,
.profile-section h2,
.contact-band h2 {
  font-size: clamp(2rem, 3.7vw, 3.2rem);
}

.owner-section .owner-copy-heading {
  max-width: 680px;
  font-size: clamp(1.2rem, 1.55vw, 1.55rem);
  line-height: 1.45;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  padding: 22px;
}

.service-card h3,
.form-panel h3,
.credential-card h3,
.form-card h2 {
  margin: 0 0 10px;
  color: var(--navy);
  line-height: 1.2;
}

.owner-section {
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.form-panel,
.credential-card {
  padding: 26px;
  box-shadow: 0 14px 40px rgba(23, 50, 77, 0.08);
}

.county-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}

.county-list li {
  border-bottom: 1px solid var(--line);
}

.county-list li:first-child {
  border-top: 1px solid var(--line);
}

.county-list a {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-weight: 750;
  text-decoration: none;
}

.county-list a::after {
  content: "Open";
  color: var(--green);
  font-size: 0.86rem;
}

.note {
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.66);
  padding: 12px 14px;
  border-radius: 0 6px 6px 0;
}

.profile-section {
  background: var(--white);
}

.credential-card {
  align-self: start;
  border-top: 6px solid var(--green);
}

.credential-card p {
  margin: 8px 0;
}

.contact-band {
  padding: 54px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), #244962);
}

.contact-band h2,
.contact-band p,
.contact-band .eyebrow {
  color: var(--white);
}

.contact-actions {
  justify-content: flex-end;
  align-items: center;
}

.page-hero {
  padding: 62px 0 44px;
  background:
    linear-gradient(135deg, rgba(23, 50, 77, 0.92), rgba(47, 111, 69, 0.82)),
    url("/assets/civic-valuation-hero.png") center / cover;
  color: var(--white);
}

.page-hero h1,
.page-hero .lead,
.page-hero .eyebrow {
  color: var(--white);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.3rem);
}

.toolbar {
  display: grid;
  gap: 8px;
  max-width: 520px;
  margin-bottom: 24px;
}

.toolbar label {
  color: var(--navy);
  font-weight: 800;
}

.search-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  font: inherit;
}

.forms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.form-alert {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 40px rgba(23, 50, 77, 0.08);
}

.form-alert h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: Georgia, serif;
  line-height: 1.15;
}

.form-alert p:last-child {
  margin-bottom: 0;
}

.form-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.form-actions {
  display: grid;
  gap: 10px;
}

.form-actions .button {
  width: 100%;
}

.small-copy {
  color: var(--muted);
  font-size: 0.95rem;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--muted);
}

.site-footer {
  color: #dce8de;
  background: #10283f;
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
}

@media (max-width: 980px) {
  .hero-grid,
  .audience-grid,
  .owner-grid,
  .profile-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 28px;
  }

  .service-grid,
  .forms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-alert {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .header-inner {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .site-nav .nav-cta {
    text-align: center;
  }

  .brand small {
    display: none;
  }

  .hero,
  .section {
    padding: 42px 0;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 12vw, 3.35rem);
  }

  .quick-facts,
  .service-grid,
  .forms-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
