/*
 * "Areas we serve": the county cards and the local landing page layout.
 *
 * New sections the legacy site had no styles for, kept in their own file so
 * the vendored stylesheets stay byte-identical. Loaded last.
 *
 * Palette follows the site: brand blue #0067d3, accent yellow #fddb27.
 */

/* --- County / page cards ------------------------------------------------ */

.areas_grid {
  margin-top: 34px;
}

.area_card {
  height: 100%;
  margin-bottom: 26px;
  overflow: hidden;
  border: 1px solid #e6eaf1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(16, 32, 56, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.area_card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(16, 32, 56, 0.12);
}

.area_card > img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.area_card_body {
  padding: 22px 24px 26px;
}

.area_card_body h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
}

.area_card_body h2 a {
  color: #0d1c33;
}

.area_card_body h2 a:hover {
  color: #0067d3;
}

.area_card_body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.area_card_body li {
  position: relative;
  padding: 5px 0 5px 18px;
}

.area_card_body li::before {
  position: absolute;
  top: 12px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #fddb27;
  content: "";
}

.area_card_body li a {
  color: #47576b;
  font-size: 15px;
}

.area_card_body li a:hover {
  color: #0067d3;
}

.area_hero {
  margin: 30px 0;
  overflow: hidden;
  border-radius: 10px;
}

/* --- Local landing page ------------------------------------------------- */

.area_page_hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 380px;
  padding: 60px 0;
  background-color: #0d1c33;
  background-position: center;
  background-size: cover;
  text-align: center;
}

/* Darkens the photograph so the headline stays readable over any image. */
.area_page_hero::before {
  position: absolute;
  inset: 0;
  background: rgba(6, 18, 36, 0.55);
  content: "";
}

.area_page_hero .container {
  position: relative;
}

.area_page_hero h1 {
  margin: 0 0 22px;
  color: #fff;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.area_page_intro {
  padding: 56px 0 10px;
  text-align: center;
}

.area_page_intro .container {
  max-width: 900px;
}

/* "Our Clients" strip, the same on every landing page. */
.area_clients {
  padding: 40px 0 10px;
}

.area_clients h2 {
  margin-bottom: 26px;
  color: #0d1c33;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
}

.area_clients_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  align-items: center;
}

.area_client_logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 74px;
  padding: 10px;
  border: 1px solid #e6eaf1;
  border-radius: 8px;
  background: #fff;
}

.area_client_logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Mixed-quality logos read more evenly muted until hovered. */
  filter: grayscale(100%);
  opacity: 0.75;
  transition:
    filter 0.2s ease,
    opacity 0.2s ease;
}

.area_client_logo:hover img {
  filter: none;
  opacity: 1;
}

.area_page_section {
  padding: 46px 0;
}

.area_page_section:nth-child(even) {
  background: #f7f9fc;
}

.area_section_media img {
  display: block;
  width: 100%;
  border-radius: 10px;
}

.area_section_copy h2 {
  margin-bottom: 18px;
  color: #0d1c33;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.area_section_copy p {
  color: #47576b;
  line-height: 1.8;
}

.area_section_copy ul {
  padding-left: 18px;
}

.area_section_copy li {
  margin-bottom: 7px;
  color: #47576b;
}

@media (max-width: 991px) {
  .area_page_hero {
    min-height: 300px;
  }

  .area_page_hero h1 {
    font-size: 32px;
  }

  /* Stacked: the image always leads, whichever side it takes on desktop. */
  .area_page_section .row.flex-row-reverse {
    flex-direction: column-reverse !important;
  }

  .area_section_media {
    margin-bottom: 22px;
  }
}

@media (max-width: 767px) {
  .area_page_hero {
    min-height: 240px;
    padding: 44px 0;
  }

  .area_page_hero h1 {
    font-size: 25px;
  }

  .area_page_intro {
    padding: 38px 0 6px;
  }

  .area_page_section {
    padding: 32px 0;
  }

  .area_section_copy h2 {
    font-size: 22px;
  }

  .area_card > img {
    height: 160px;
  }

  .area_card_body {
    padding: 18px 18px 20px;
  }

  .area_clients {
    padding: 30px 0 4px;
  }

  .area_clients h2 {
    font-size: 21px;
  }

  .area_clients_grid {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    gap: 10px;
  }

  .area_client_logo {
    height: 58px;
    padding: 7px;
  }
}
