/* Service sections — 600px photo hero, then dark → light theme body */
.gsa-service-section {
    position: relative;
    overflow: hidden;
    padding: 0;
    isolation: isolate;
}

.gsa-theme-hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.gsa-theme-hero__photos {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: rgb(var(--gsa-mid));
}

.gsa-theme-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gsa-theme-hero__shade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    z-index: 1;
    pointer-events: none;
}

.gsa-theme-hero__inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 20px;
    scroll-margin-top: 52px;
}

.gsa-theme-caption {
    display: block;
    margin: 12px 0 0;
    color: #fff;
    font-size: 13px !important;
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 18px;
    text-transform: uppercase;
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
         0    2px 3px rgba(0, 0, 0, 0.55);
}

.gsa-theme-caption::after {
    border-top: 3px solid #fff;
    content: "";
    display: block;
    margin: 8px auto 0;
    width: 26px;
}

.gsa-section-title {
    margin: 0;
    font-size: 44px;
    font-weight: 700;
    line-height: 48px;
    text-align: center;
    color: #fff;
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
        -2px  0   0 #000,
         2px  0   0 #000,
         0   -2px 0 #000,
         0    2px 0 #000,
         0    2px 3px rgba(0, 0, 0, 0.6),
         0    3px 6px rgba(0, 0, 0, 0.45),
         0   -1px 1px rgba(255, 255, 255, 0.18);
}

.gsa-theme-body {
    padding: 42px 0 52px;
}

.gsa-service-section .gsa-theme-surface {
    position: relative;
    z-index: 2;
}

.gsa-service-section .heading-text p,
.gsa-service-section .heading-text .lead {
    color: #111 !important;
}

.gsa-service-section .icon-box {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 10px;
    padding: 20px 18px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    height: 100%;
}

/* Water */
.gsa-theme-water {
    --gsa-dark: 13, 51, 71;
    --gsa-mid: 61, 126, 168;
    --gsa-light: 184, 217, 239;
    --gsa-heading: 61, 126, 168;
}

.gsa-theme-water .gsa-theme-hero__shade {
    background: linear-gradient(180deg, transparent 0%, rgba(var(--gsa-mid), 0.45) 100%);
}

.gsa-theme-water .gsa-theme-body {
    background: linear-gradient(180deg,
        rgb(var(--gsa-mid)) 0%,
        rgba(var(--gsa-mid), 0.88) 12%,
        rgba(var(--gsa-light), 0.95) 55%,
        rgb(var(--gsa-light)) 100%);
}

/* Land */
.gsa-theme-land {
    --gsa-dark: 42, 26, 14;
    --gsa-mid: 107, 68, 35;
    --gsa-light: 232, 212, 176;
    --gsa-heading: 139, 105, 20;
}

.gsa-theme-land .gsa-theme-hero__shade {
    background: linear-gradient(180deg, transparent 0%, rgba(var(--gsa-mid), 0.48) 100%);
}

.gsa-theme-land .gsa-theme-body {
    background: linear-gradient(180deg,
        rgb(var(--gsa-mid)) 0%,
        rgba(var(--gsa-mid), 0.9) 12%,
        rgba(var(--gsa-light), 0.95) 55%,
        rgb(var(--gsa-light)) 100%);
}

/* Mapping */
.gsa-theme-mapping {
    --gsa-dark: 36, 52, 62;
    --gsa-mid: 92, 114, 130;
    --gsa-light: 212, 220, 228;
    --gsa-heading: 92, 114, 130;
}

.gsa-theme-mapping .gsa-theme-hero__shade {
    background: linear-gradient(180deg, transparent 0%, rgba(var(--gsa-mid), 0.46) 100%);
}

.gsa-theme-mapping .gsa-theme-body {
    background: linear-gradient(180deg,
        rgb(var(--gsa-mid)) 0%,
        rgba(var(--gsa-mid), 0.88) 12%,
        rgba(var(--gsa-light), 0.95) 55%,
        rgb(var(--gsa-light)) 100%);
}

/* Ecology */
.gsa-theme-ecology {
    --gsa-dark: 22, 52, 24;
    --gsa-mid: 61, 107, 50;
    --gsa-light: 198, 220, 186;
    --gsa-heading: 61, 107, 50;
}

.gsa-theme-ecology .gsa-theme-hero__shade {
    background: linear-gradient(180deg, transparent 0%, rgba(var(--gsa-mid), 0.48) 100%);
}

.gsa-theme-ecology .gsa-theme-body {
    background: linear-gradient(180deg,
        rgb(var(--gsa-mid)) 0%,
        rgba(var(--gsa-mid), 0.88) 12%,
        rgba(var(--gsa-light), 0.95) 55%,
        rgb(var(--gsa-light)) 100%);
}

/* Agriculture */
.gsa-theme-agriculture {
    --gsa-dark: 58, 42, 18;
    --gsa-mid: 139, 119, 72;
    --gsa-light: 235, 220, 178;
    --gsa-heading: 139, 119, 72;
}

.gsa-theme-agriculture .gsa-theme-hero__shade {
    background: linear-gradient(180deg, transparent 0%, rgba(var(--gsa-mid), 0.46) 100%);
}

.gsa-theme-agriculture .gsa-theme-body {
    background: linear-gradient(180deg,
        rgb(var(--gsa-mid)) 0%,
        rgba(var(--gsa-mid), 0.88) 12%,
        rgba(var(--gsa-light), 0.95) 55%,
        rgb(var(--gsa-light)) 100%);
}

@media (max-width: 991.98px) {
    .gsa-theme-hero {
        height: 420px;
    }

    .gsa-section-title {
        font-size: 35px;
        line-height: 38px;
    }
}

@media (max-width: 575.98px) {
    .gsa-theme-hero {
        height: 320px;
    }

    .gsa-theme-hero__photos {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .gsa-section-title {
        font-size: 29px;
        line-height: 32px;
    }

    .gsa-theme-caption {
        font-size: 12px !important;
        letter-spacing: 1.5px;
    }
}

/* Project example cards */
.gsa-project-examples {
    margin-top: 8px;
    padding-top: 0;
}

.gsa-project-examples__intro {
    font-size: 1.21rem;
    line-height: 1.55;
    font-weight: 400;
    color: #111 !important;
    margin: 0 auto 24px;
    max-width: 820px;
}

.gsa-project-examples__grid {
    margin-left: -10px;
    margin-right: -10px;
}

.gsa-project-examples__grid > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
}

.gsa-project-card {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gsa-project-card__image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.gsa-project-card__body {
    padding: 16px 16px 18px;
    flex: 1 1 auto;
}

.gsa-project-card__body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #111 !important;
}

.gsa-project-card__body .gsa-point-list {
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .gsa-project-examples__grid > [class*="col-"] {
        margin-bottom: 16px;
    }
}

@media (max-width: 575.98px) {
    .gsa-project-card__body {
        padding: 14px;
    }

    .gsa-project-card__body h3 {
        font-size: 1rem;
    }
}

.gsa-theme-mapping .gsa-project-card {
    border-top: 3px solid #3a4f5c;
}

.gsa-theme-water .gsa-project-card {
    border-top: 3px solid #1e4d6b;
}

.gsa-theme-land .gsa-project-card {
    border-top: 3px solid #6b4423;
}

.gsa-theme-ecology .gsa-project-card {
    border-top: 3px solid #2d5016;
}

.gsa-theme-agriculture .gsa-project-card {
    border-top: 3px solid #5c4a1f;
}

/* About Us — equal-height four-column cards */
#aboutus.grid-layout.post-3-columns {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    overflow: visible;
}

#aboutus.grid-layout.post-3-columns .post-item {
    float: none;
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 0 10px 20px 10px;
    box-sizing: border-box;
}

#aboutus.grid-layout.post-3-columns .post-item .post-item-wrap {
    flex: 0 0 auto;
}

#aboutus.grid-layout.post-3-columns .post-item .post-image img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

#aboutus.grid-layout.post-3-columns .post-item .post-item-description {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

#aboutus.grid-layout.post-3-columns .post-item .post-item-description .gsa-point-list {
    flex: 1 1 auto;
}

@media (max-width: 991.98px) {
    #aboutus.grid-layout.post-3-columns .post-item {
        height: auto !important;
        min-height: 0 !important;
    }
}

/* Tree banner — centered above office map heading */
.gsa-tree-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 16px 12px;
    text-align: center;
    box-sizing: border-box;
}

.gsa-tree-banner img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(92vw, 1440px);
    max-height: 240px;
    object-fit: contain;
}

.gsa-tree-banner--office {
    position: relative;
    z-index: 3;
    margin-top: -100px;
    margin-bottom: 4px;
    padding: 0 16px 10px;
}

/* Geography quotes — white panel to match tree.gif backdrop */
.gsa-spatial-quotes {
    background: #fff;
    padding: 20px 16px 28px;
    margin: 0;
}

.gsa-spatial-quotes--tobler {
    padding: 12px 16px 20px;
}

.gsa-spatial-quotes--footer {
    padding: 28px 16px 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.gsa-tree-banner--quote {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    padding: 0 16px 12px;
}

.gsa-spatial-quote {
    color: #111 !important;
    display: block;
    font-family: "Helvetica Neue", Helvetica, Arial, Verdana, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 2px;
    line-height: 18px;
    margin: 0 auto 20px;
    max-width: 920px;
    position: relative;
    text-align: center;
    text-transform: uppercase;
    text-shadow: none !important;
}

.gsa-spatial-quotes.text-center .gsa-spatial-quote::after,
.gsa-spatial-quote::after {
    border-top: 3px solid #111;
    content: "";
    display: block;
    margin: 8px auto 0;
    width: 26px;
}

.gsa-spatial-quote--second {
    margin-top: 20px;
    margin-bottom: 0;
}

#footer .footer-content {
    padding-top: 8px;
}

/* Section nav + back-to-top (below hero / section image) */
.gsa-section-toolbar {
    background: rgba(224, 224, 224, 0.96);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    scroll-margin-top: 52px;
}

.gsa-section-toolbar .gsa-section-back-top-wrap {
    display: flex;
    justify-content: center;
    padding: 10px 0 0;
}

.gsa-section-toolbar .gsa-section-nav {
    border-top: none;
    border-bottom: none;
    padding: 4px 14px 14px;
    margin: 0 auto;
    background: transparent;
}

.gsa-section-back-top-wrap {
    display: flex;
    justify-content: center;
    padding: 14px 0 2px;
}

.gsa-section-back-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #444 !important;
    text-decoration: none !important;
    font-size: 15px;
    opacity: 0.72;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow:
        4px 4px 10px rgb(190, 190, 190),
        -4px -4px 10px rgb(255, 255, 255);
    background: rgb(224, 224, 224);
}

.gsa-section-back-top:hover,
.gsa-section-back-top:focus-visible {
    opacity: 1;
    transform: translateY(-2px);
    color: #1b3d2e !important;
}

.gsa-section-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 10px;
    padding: 12px 14px 20px;
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(224, 224, 224, 0.72);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.gsa-section-nav .gsa-neu-btn--nav {
    flex: 0 1 auto;
    min-width: 74px;
    font-size: 15px !important;
    padding: 7px 12px !important;
    text-align: center;
    white-space: nowrap;
}

/* Readable cards — equal width, wider on tablet (+25% cumulative), no horizontal overflow */
.gsa-service-section .gsa-theme-surface.container {
    max-width: min(96vw, 1197px);
}

.gsa-service-section .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.gsa-service-section .icon-box,
.gsa-service-section .gsa-project-card {
    width: 100%;
    flex: 1 1 auto;
    box-sizing: border-box;
}

.gsa-service-section .gsa-point-list li {
    margin-bottom: 15px;
}

.gsa-service-section .gsa-point-list li:last-child {
    margin-bottom: 0;
}

.gsa-service-section .icon-box h3 {
    font-size: 20px;
}

.gsa-service-section .icon-box .gsa-point-list,
.gsa-service-section .gsa-project-card__body .gsa-point-list,
.gsa-service-section .gsa-project-card__body h3 {
    font-size: 18px;
    line-height: 1.6;
}

.gsa-service-section .icon-box .gsa-point-list,
.gsa-service-section .gsa-project-card__body .gsa-point-list,
.gsa-service-section .heading-text p,
.gsa-service-section .gsa-project-examples__intro {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

@media (min-width: 768px) {
    .gsa-service-section .gsa-theme-surface.container {
        max-width: min(96vw, 1436px);
    }

    .gsa-service-section .icon-box .gsa-point-list,
    .gsa-service-section .gsa-project-card__body .gsa-point-list,
    .gsa-service-section .gsa-project-card__body h3 {
        font-size: 19px;
        line-height: 1.6;
    }

    .gsa-section-nav .gsa-neu-btn--nav {
        font-size: 17px !important;
        min-width: 86px;
        padding: 8px 14px !important;
    }
}

@media (max-width: 575.98px) {
    .gsa-section-nav {
        gap: 6px 8px;
        padding: 10px 8px 16px;
    }

    .gsa-section-nav .gsa-neu-btn--nav {
        min-width: 64px;
        font-size: 14px !important;
        padding: 6px 10px !important;
    }

    .gsa-service-section .icon-box .gsa-point-list,
    .gsa-service-section .gsa-project-card__body .gsa-point-list {
        font-size: 19px;
        line-height: 1.55;
    }
}
