/* ==========================================================================
   Service Areas Hub template (service-areas-hub-template.php) only -- these
   classes (.sah-*) never appear on any other page.

   Notes:
   - This theme's root font size is 10px, so 1rem = 10px here.
   - Each page section is an Advanced Columns block (genesis-blocks/gb-columns)
     with a "sah-section sah-..." class; its .gb-layout-column-wrap is capped
     to the site's content width.
   - Rules that set padding are prefixed with `body` on purpose: the theme's
     global `*:first-child { padding-top: 0 }` reset ties a single-class
     selector and would strip padding from whichever element is first.
   ========================================================================== */

/* -- Page structure -------------------------------------------------------- */

body .sah-page .sah-section {
    margin: 0;
}

.sah-page .sah-section > .gb-layout-column-wrap {
    max-width: 130rem;
    margin: 0 auto;
}

@media (max-width: 1340px) {
    .sah-page .sah-section > .gb-layout-column-wrap {
        padding: 0 2rem;
    }
}

body .sah-page h2 {
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

body .sah-page h3 {
    font-family: 'Montserrat', sans-serif;
}

/* -- Hero ------------------------------------------------------------------ */

body .sah-hero {
    background-color: #15336e;
    color: #fff;
    padding: 5rem 0 9rem;
}

/* .custom-breadcrumbs' base style (style.css) is built for a different,
   centered hero-banner page -- large centered text with a big bottom
   padding. Reset it to a small, left-aligned line like the mockup. */
.sah-hero .custom-breadcrumbs .breadcrumb {
    justify-content: flex-start;
    margin: 0 0 2rem;
    padding: 0;
    font-size: 1.4rem;
    font-weight: 400;
    gap: 0.5rem;
    color: #c3d2ea;
}

.sah-hero .custom-breadcrumbs .breadcrumb a,
.sah-hero .custom-breadcrumbs .breadcrumb span {
    color: #c3d2ea;
    font-weight: 400;
}

.sah-hero--copy h1 {
    color: #fff;
    font-size: 4.6rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 2.4rem;
    padding: 0;
    max-width: none;
}

body .sah-page .sah-hero--intro {
    color: #d6e0ef;
    font-size: 1.7rem;
    line-height: 1.6;
    max-width: 60rem;
    margin: 0 0 3.2rem;
}

/* Hero CTAs / final CTA: two buttons side by side inside one column. */
body .sah-page .sah-hero--ctas {
    margin: 0;
}

.sah-hero--ctas .gb-block-layout-column-inner,
.sah-final-cta--buttons .gb-block-layout-column-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

/* The site's base .custom-button rule (style.css) sets width: 100%, meant
   for a button sitting alone in its own content column -- override it here
   since two of them need to sit side by side. */
.sah-hero--ctas .custom-button,
.sah-final-cta--buttons .custom-button {
    width: auto;
}

.sah-hero--ctas a.button,
.sah-final-cta--buttons a.button {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1.4rem 2.2rem;
    border-radius: 4px;
}

a.button.sah-btn-white {
    background: #fff;
    color: #15336e;
    border: 1px solid #fff;
}

a.button.sah-btn-white:hover,
a.button.sah-btn-white:focus {
    background: #e3e9f2;
    color: #15336e;
}

body .sah-page p.sah-hero--photo {
    margin: 0;
    min-height: 31rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    padding: 0 2.4rem;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    color: #c3d2ea;
    font-size: 1.4rem;
    line-height: 1.5;
}

body .sah-page .sah-hero--image {
    margin: 0;
}

/* Give the image column a bit more room than the default wide-left split. */
@media (min-width: 896px) {
    .sah-hero > .gb-layout-column-wrap {
        grid-template-columns: 3fr 2fr;
    }
}

.sah-hero--image img {
    display: block;
    width: 100%;
    height: 40rem;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 895px) {
    .sah-hero--copy h1 {
        font-size: 3.2rem;
    }
}

/* -- Stats bar ----------------------------------------------------------------
   White card overlapping the bottom edge of the navy hero, like the mockup. */

body .sah-page .sah-section.sah-stats {
    position: relative;
    z-index: 1;
    margin-top: -5.8rem;
}

.sah-stats--wrap {
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    overflow: hidden;
}

body .sah-stat {
    flex: 1 1 20%;
    padding: 2.4rem 2.2rem;
    border-left: 1px solid #dfe5ee;
}

.sah-stat:first-child {
    border-left: none;
}

body .sah-page .sah-stat--number {
    color: #15336e;
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 1.2;
    margin: 0 0 0.6rem;
}

body .sah-page .sah-stat--label {
    color: #55575c;
    font-size: 1.4rem;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 782px) {
    body .sah-stat {
        flex: 1 1 50%;
        border-left: none;
        border-bottom: 1px solid #dfe5ee;
    }
}

/* -- State service-area sections / county cards ---------------------------- */

body .sah-state-section {
    padding: 7rem 0 0;
}

body .sah-state-section--last {
    padding-bottom: 7rem;
}

.sah-state-section h2 {
    color: #15336e;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.25;
    max-width: 80rem;
    margin: 0 0 1rem;
    scroll-margin-top: 12rem;
}

body .sah-page .sah-state-section--intro {
    max-width: 80rem;
    color: #55575c;
    font-size: 1.6rem;
    line-height: 1.6;
    margin: 0 0 3rem;
}

body .sah-page .sah-county-grid {
    margin: 0;
}

.sah-county-grid + .sah-county-grid {
    margin-top: 2rem !important;
}

.sah-county-grid > .gb-layout-column-wrap {
    gap: 2rem;
    grid-gap: 2rem;
}

body .sah-county-card {
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    padding: 2.4rem;
    height: 100%;
}

.sah-county-card--name {
    margin: 0 0 0.4rem;
    font-size: 2rem;
    font-weight: 800;
}

.sah-county-card--name a {
    color: #15336e;
    text-decoration: none;
}

.sah-county-card--name a:hover {
    text-decoration: underline;
}

body .sah-page .sah-county-card--meta {
    color: #878a92;
    font-size: 1.3rem;
    margin: 0 0 1.4rem;
}

body .sah-page .sah-county-card--towns {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.8rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1.6rem;
}

.sah-county-card--towns li {
    font-size: 1.4rem;
    margin: 0;
}

.sah-county-card--towns a {
    color: #1d4fa0;
    text-decoration: none;
}

.sah-county-card--towns a:hover {
    text-decoration: underline;
}

/* -- Services grid -----------------------------------------------------------*/

body .sah-services {
    background-color: #f2f5f9;
    padding: 7rem 0;
}

.sah-services h2 {
    color: #15336e;
    font-size: 3.2rem;
    font-weight: 800;
    margin: 0 0 3rem;
}

.sah-services--grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .sah-services--grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .sah-services--grid {
        grid-template-columns: 1fr;
    }
}

body .sah-service-card {
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    padding: 2.4rem;
}

.sah-service-card h3 {
    color: #15336e;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 0.8rem;
}

body .sah-page .sah-service-card p {
    color: #55575c;
    font-size: 1.4rem;
    line-height: 1.5;
    margin: 0 0 1.6rem;
}

.sah-service-card a {
    color: #15336e;
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
}

.sah-service-card a:hover {
    text-decoration: underline;
}

/* -- Office locations ---------------------------------------------------------*/

body .sah-offices {
    padding: 7rem 0;
}

.sah-offices h2 {
    color: #15336e;
    font-size: 3.2rem;
    font-weight: 800;
    margin: 0 0 1rem;
}

body .sah-page .sah-offices--intro {
    color: #55575c;
    font-size: 1.6rem;
    margin: 0 0 3rem;
}

.sah-offices--grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .sah-offices--grid {
        grid-template-columns: 1fr;
    }
}

.sah-office-card {
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    overflow: hidden;
    padding-bottom: 2rem;
}

body .sah-office-card--map {
    background-color: #e3eaf5;
    color: #6d7a90;
    font-size: 1.3rem;
    min-height: 18rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.6rem;
}

body .sah-office-card--map-embed {
    padding: 0;
}

.sah-office-card--map-embed iframe {
    display: block;
    width: 100%;
    height: 22rem;
    border: 0;
}

.sah-office-card h3,
.sah-office-card p {
    margin: 0;
    padding: 0 2rem;
}

.sah-office-card h3 {
    color: #15336e;
    font-size: 2rem;
    font-weight: 800;
    margin: 2rem 0 0.6rem;
}

body .sah-page .sah-office-card p {
    color: #55575c;
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

body .sah-page .sah-office-card p.sah-office-card--note {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.sah-office-card--directions {
    display: block;
    color: #15336e;
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: underline;
    margin: 0 2rem;
}

/* -- FAQ section ---------------------------------------------------------------*/

body .sah-faq-wrap {
    background-color: #f2f5f9;
    padding: 7rem 0;
}

/* -- Final CTA -----------------------------------------------------------------*/

body .sah-final-cta {
    background-color: #15336e;
    color: #fff;
    padding: 7rem 0;
}

.sah-final-cta h2 {
    color: #fff;
    font-size: 3.2rem;
    font-weight: 800;
    margin: 0 0 1rem;
    max-width: 60rem;
}

body .sah-page .sah-final-cta p {
    color: #d6e0ef;
    font-size: 1.6rem;
    max-width: 60rem;
    margin: 0;
}

@media (min-width: 896px) {
    .sah-final-cta--buttons .gb-block-layout-column-inner {
        justify-content: flex-end;
    }
}
