:root {
    --green: #83bb3f;
    --green-dark: #5f9a27;
    --ink: #2e3438;
    --muted: #687178;
    --line: #dfe5dc;
    --soft: #f3f5f2;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(33, 45, 37, 0.1);
    --content-width: 1040px;
    --wide-width: 1160px;
    --hero-ornament-height: 92px;
    --kicker-font-size: 15px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: #f6f7f5;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.page {
    width: 100%;
    overflow-x: clip;
    background: transparent;
}

.shell {
    width: min(100% - 40px, var(--content-width));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--white);
}

main {
    background: transparent;
}

.header-inner {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 72px;
    row-gap: 30px;
    min-height: 166px;
    padding: 28px 0 26px;
}

.brand {
    grid-row: 1 / 3;
    align-self: center;
}

.brand img {
    width: 285px;
    height: auto;
}

.mobile-nav-toggle,
.submenu-toggle {
    display: none;
}

.main-nav {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    color: #4a5356;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
}

.nav-item {
    position: relative;
}

.nav-item.has-mega {
    position: static;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 0;
}

.main-nav .nav-link[aria-current="page"],
.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
    color: var(--green-dark);
}

.main-nav .nav-link[aria-current="page"] {
    font-weight: 800;
}

.has-panel > .nav-link::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.submenu-toggle {
    width: 34px;
    height: 34px;
    border: 0;
    color: var(--green-dark);
    background: transparent;
    cursor: pointer;
}

.submenu-toggle::before {
    content: "";
    display: block;
    width: 9px;
    height: 9px;
    margin: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 160ms ease;
}

.nav-panel {
    position: absolute;
    top: calc(100% + 18px);
    right: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 26px;
    width: 430px;
    padding: 26px;
    border: 1px solid rgba(95, 154, 39, 0.16);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 50px rgba(33, 45, 37, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.nav-panel::before {
    content: "";
    position: absolute;
    inset: -20px 0 auto;
    height: 20px;
}

.nav-item:hover .nav-panel,
.nav-item:focus-within .nav-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-panel-mega {
    top: calc(100% - 12px);
    right: 0;
    left: 0;
    width: 100%;
    grid-template-columns: 280px minmax(0, 1fr);
    padding: 30px;
}

.nav-panel-intro {
    padding-right: 24px;
    border-right: 1px solid var(--line);
}

.nav-panel-intro strong {
    display: block;
    margin-bottom: 12px;
    color: var(--green-dark);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
}

.nav-panel-intro p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
}

.nav-panel-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.nav-panel-mega .nav-panel-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 16px;
}

.nav-panel-mega .nav-panel-links a:nth-last-child(3):first-child,
.nav-panel-mega .nav-panel-links a:nth-last-child(3):first-child ~ a {
    min-height: 92px;
}

.nav-panel-links a {
    display: grid;
    gap: 5px;
    min-height: 74px;
    padding: 13px 14px;
    border-radius: 4px;
    background: #f5f7f3;
}

.nav-panel-links a:hover,
.nav-panel-links a:focus {
    background: #edf3e8;
}

.nav-panel-links span {
    color: var(--green-dark);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.nav-panel-links small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.header-actions {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: flex-end;
    gap: 33px;
    white-space: nowrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 20px;
    border: 2px solid var(--green);
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.1;
}

.header-button {
    min-height: 45px;
    gap: 10px;
    padding: 10px 17px;
    border-radius: 7px;
    font-size: 17px;
}

.header-button svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.button-solid:hover,
.button-solid:focus {
    border-color: var(--green-dark);
    background: var(--green-dark);
}

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

.button-outline:hover,
.button-outline:focus {
    color: var(--white);
    background: var(--green);
}

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--white);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0 0 var(--hero-ornament-height);
    z-index: -1;
    background:
        linear-gradient(90deg, #edf4ef 0%, #f8faf7 16%, #ffffff 34%, #ffffff 66%, #f8faf7 84%, #edf4ef 100%);
}

.hero img {
    width: min(100%, 1280px);
    max-width: 1280px;
    height: auto;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section {
    padding: 78px 0;
    background: var(--white);
}

.kicker {
    margin: 0 0 8px;
    color: var(--green-dark);
    font-size: var(--kicker-font-size);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.welcome-copy .kicker {
    margin-bottom: 20px;
    color: var(--green);
}

.welcome-copy h1 {
    margin-bottom: 24px;
    color: #687178;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    margin-bottom: 20px;
    color: var(--green-dark);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
}

h3 {
    margin-bottom: 12px;
    color: var(--green-dark);
    font-size: 20px;
    line-height: 1.25;
}

.welcome-section {
    position: relative;
    padding: 8px 0 64px;
}

.welcome-section::before {
    content: none;
}

.welcome-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 74px;
    align-items: start;
    width: min(100% - 40px, var(--content-width));
    padding: 54px 50px 48px;
    border-radius: 3px;
    background: #f0f1ef;
    box-shadow: none;
}

.welcome-copy {
    max-width: 585px;
}

.welcome-copy p {
    color: var(--muted);
    font-size: 20px;
    line-height: 1.38;
}

.welcome-copy strong {
    color: var(--green-dark);
}

.team-portraits {
    display: grid;
    gap: 16px;
}

.team-portraits img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
    background: var(--white);
}

.section-heading {
    margin-bottom: 44px;
    text-align: center;
}

.section-heading .kicker {
    margin-bottom: 0;
    color: var(--green);
}

.section-heading-left {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
    gap: 58px;
    align-items: start;
    margin-bottom: 42px;
    text-align: left;
}

.section-heading-left p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.36;
}

.services-overview-section {
    background: #f5f8f2;
    padding: 46px 0 86px;
}

.services-layout {
    display: grid;
    grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
    gap: 48px;
    width: min(100% - 40px, var(--wide-width));
    margin: 0 auto;
    align-items: start;
}

.services-intro {
    position: sticky;
    top: 190px;
    padding-top: 10px;
}

.services-intro .kicker {
    margin-bottom: 24px;
    color: var(--green);
}

.services-intro p:not(.kicker) {
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.36;
}

.slider-controls {
    display: flex;
    gap: 12px;
}

.slider-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 2px solid var(--green);
    border-radius: 4px;
    color: var(--green-dark);
    background: var(--white);
    cursor: pointer;
}

.slider-button:hover,
.slider-button:focus {
    color: var(--white);
    background: var(--green);
}

.slider-button svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.services-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 315px);
    gap: 22px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 4px 0 22px;
    scroll-padding-inline: 0;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(131, 187, 63, 0.5) transparent;
}

.services-slider::-webkit-scrollbar {
    height: 8px;
}

.services-slider::-webkit-scrollbar-track {
    background: transparent;
}

.services-slider::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: rgba(131, 187, 63, 0.45);
}

.service-card {
    display: flex;
    min-height: 320px;
    flex-direction: column;
    scroll-snap-align: start;
    padding: 31px 28px 27px;
    border-radius: 4px;
    background: #eff0ee;
}

.service-card:first-child {
    border-top: 5px solid var(--green);
    background: #edf3e8;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border: 2px solid rgba(131, 187, 63, 0.35);
    border-radius: 4px;
    color: var(--green-dark);
    background: rgba(255, 255, 255, 0.62);
}

.service-icon svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    margin-bottom: 18px;
    color: var(--green-dark);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.service-card p {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.45;
}

.service-card a {
    margin-top: auto;
    color: var(--green-dark);
    font-size: 15px;
    font-weight: 800;
}

.service-card a:hover,
.service-card a:focus {
    color: var(--ink);
}

.subpage-hero {
    background: #eef3ea;
    padding: 74px 0 68px;
}

.subpage-hero-inner {
    max-width: 860px;
}

.subpage-hero .kicker {
    margin-bottom: 18px;
    color: var(--green);
}

.subpage-hero h1 {
    max-width: 720px;
    margin-bottom: 24px;
}

.subpage-hero p:not(.kicker) {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 21px;
    line-height: 1.42;
}

.subpage-hero-media {
    padding: 54px 0;
}

.subpage-hero-media-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
    gap: 46px;
    align-items: center;
}

.subpage-hero-copy {
    text-align: left;
}

.subpage-hero-media img {
    width: 100%;
    height: 330px;
    border-radius: 4px;
    object-fit: cover;
    object-position: 55% 48%;
}

.image-hero {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    background: #eef3ea;
}

.image-hero > img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    object-position: center top;
}

.image-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(245, 248, 242, 0.92) 0%, rgba(245, 248, 242, 0.72) 32%, rgba(245, 248, 242, 0.05) 68%);
    pointer-events: none;
}

.image-hero-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
}

.image-hero-box {
    width: min(100%, 540px);
    padding: 38px 42px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
}

.image-hero-box .kicker {
    margin-bottom: 18px;
    color: var(--green);
}

.image-hero-box h1 {
    margin-bottom: 22px;
}

.image-hero-box p:not(.kicker) {
    margin: 0;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.42;
}

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

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

.service-topic-card {
    display: grid;
    align-content: start;
    min-height: 390px;
    padding: 32px;
    border-radius: 4px;
    background: #f0f1ef;
}

.service-topic-card h3 {
    margin-bottom: 18px;
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
}

.service-topic-card p {
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.5;
}

.service-topic-card ul {
    display: grid;
    gap: 10px;
    margin: auto 0 0;
    padding: 0;
    list-style: none;
}

.service-topic-card li {
    position: relative;
    padding-left: 22px;
    color: #4f5a60;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.service-topic-card li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.cta-section {
    background: #f5f8f2;
    padding: 70px 0;
}

.cta-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 34px;
    align-items: center;
    padding: 42px 48px;
    border-radius: 4px;
    background: var(--white);
}

.cta-panel p:not(.kicker) {
    max-width: 710px;
    margin: 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.45;
}

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

.about-intro-grid {
    display: grid;
    grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
    gap: 70px;
    align-items: start;
}

.text-column {
    max-width: 720px;
}

.text-column p {
    color: var(--muted);
    font-size: 20px;
    line-height: 1.45;
}

.feature-section {
    background: #f5f8f2;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    min-height: 270px;
    padding: 31px 28px 27px;
    border-radius: 4px;
    background: var(--white);
}

.feature-card h3 {
    margin-bottom: 16px;
    color: var(--green-dark);
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.48;
}

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

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.team-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    min-height: 190px;
    padding: 24px;
    border-radius: 4px;
    background: #f0f1ef;
}

.team-card img,
.team-placeholder {
    width: 150px;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
}

.team-card img {
    object-fit: cover;
    background: var(--white);
}

.team-placeholder {
    display: grid;
    place-items: center;
    color: var(--green-dark);
    background: #e6eddf;
    font-size: 36px;
    font-weight: 800;
}

.team-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 800;
}

.team-card p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.45;
}

.testimonials-section {
    background: #f5f8f2;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    justify-content: space-between;
    gap: 35px;
}

.news-card {
    display: grid;
    grid-template-rows: 300px 1fr;
    overflow: hidden;
    background: transparent;
}

.news-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
}

.news-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 298px;
    margin-top: 12px;
    padding: 29px 30px 33px;
    border-radius: 4px;
    background: #eff0ee;
}

.news-card-body h3 {
    margin-bottom: 25px;
    color: var(--green-dark);
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
}

.news-card-body p {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.34;
}

.news-card-body a {
    display: inline-flex;
    margin-top: auto;
    min-width: 122px;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 4px;
    color: var(--white);
    background: var(--green);
    font-weight: 700;
    font-size: 16px;
}

.split-section {
    background: #f0f1ef;
    padding: 96px 0 50px;
}

.split-section-muted {
    padding-top: 56px;
    padding-bottom: 96px;
}

.split-row {
    display: grid;
    grid-template-columns: minmax(0, 500px) 500px;
    justify-content: space-between;
    gap: 42px;
    align-items: center;
}

.split-row-reverse {
    grid-template-columns: 500px minmax(0, 500px);
}

.split-row-reverse .split-copy {
    order: 2;
}

.split-copy {
    max-width: 500px;
}

.split-copy p {
    color: var(--muted);
    font-size: 20px;
    line-height: 1.34;
}

.split-copy .kicker {
    margin-bottom: 24px;
    color: var(--green);
}

.split-copy .button {
    min-width: 122px;
    min-height: 45px;
    margin-top: 10px;
    padding: 10px 18px;
    font-size: 16px;
}

.split-row img {
    width: 100%;
    height: 312px;
    object-fit: cover;
    border-radius: 4px;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
    gap: 70px;
    align-items: start;
}

.contact-grid > div > p {
    color: var(--muted);
}

.contact-facts {
    display: grid;
    gap: 14px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.contact-facts p {
    margin: 0;
    color: var(--ink);
    font-family: inherit;
    line-height: 1.55;
}

.contact-facts strong {
    display: inline-block;
    margin-bottom: 2px;
    color: var(--muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
}

.contact-form {
    display: grid;
    gap: 12px;
    padding: 34px;
    border: 1px solid var(--line);
    background: #f8f9f7;
}

.contact-form label {
    font-weight: 700;
    color: #3f494d;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #cbd4c8;
    border-radius: 4px;
    padding: 13px 14px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid rgba(131, 187, 63, 0.22);
    border-color: var(--green);
}

.form-message {
    padding: 14px 16px;
    border-radius: 4px;
    font-weight: 700;
}

.form-message p {
    margin: 0;
}

.form-message p + p {
    margin-top: 8px;
}

.success {
    color: #315b1d;
    background: #e5f3dc;
}

.error {
    color: #8c2525;
    background: #fae7e7;
}

.honeypot,
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

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

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

.footer-inner p {
    margin: 0;
}

.footer-inner div {
    display: flex;
    gap: 18px;
}

.footer-inner a:hover,
.footer-inner a:focus {
    text-decoration: underline;
}

@media (max-width: 1080px) {
    .header-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 22px;
        min-height: 0;
        padding: 24px 0;
    }

    .brand,
    .main-nav,
    .header-actions {
        grid-column: 1;
        grid-row: auto;
    }

    .brand img {
        width: 290px;
        margin: 0 auto;
    }

    .main-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px 28px;
        font-size: 19px;
    }

    .nav-panel,
    .nav-panel-mega {
        right: auto;
        left: 50%;
        width: min(920px, calc(100vw - 28px));
        transform: translate(-50%, 8px);
    }

    .nav-item:hover .nav-panel,
    .nav-item:focus-within .nav-panel {
        transform: translate(-50%, 0);
    }

    .header-actions {
        justify-content: center;
    }

    .news-grid {
        gap: 30px;
    }

    .service-topic-grid {
        grid-template-columns: 1fr;
    }

    .services-layout {
        grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
        gap: 32px;
        width: min(100% - 28px, var(--content-width));
    }
}

@media (max-width: 820px) {
    .shell {
        width: min(100% - 28px, var(--content-width));
    }

    .section {
        padding: 56px 0;
    }

    .welcome-panel,
    .about-intro-grid,
    .split-row,
    .split-row-reverse,
    .cta-panel,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .welcome-panel {
        gap: 34px;
        padding: 32px;
    }

    .team-portraits {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .section-heading-left {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .subpage-hero-media-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .subpage-hero-media img {
        height: 260px;
    }

    .image-hero,
    .image-hero > img {
        min-height: 0;
        height: auto;
    }

    .image-hero > img {
        height: 270px;
    }

    .image-hero-content {
        position: relative;
        inset: auto;
        display: block;
        padding: 0 0 40px;
    }

    .image-hero::after {
        background: linear-gradient(180deg, rgba(245, 248, 242, 0.05) 0%, rgba(245, 248, 242, 0.92) 78%);
    }

    :root {
        --hero-ornament-height: 58px;
    }

    .image-hero-box {
        width: 100%;
        margin-top: -54px;
        padding: 28px;
    }

    .services-layout {
        grid-template-columns: 1fr;
    }

    .services-intro {
        position: static;
    }

    .services-slider {
        grid-auto-columns: minmax(260px, 82vw);
    }

    .split-row,
    .split-row-reverse,
    .contact-grid {
        gap: 34px;
    }

    .split-row-reverse .split-copy {
        order: 0;
    }

    .split-row img {
        min-width: 0;
    }

    .cta-panel {
        padding: 32px;
    }
}

@media (max-width: 560px) {
    .header-inner {
        grid-template-columns: minmax(0, 1fr) repeat(3, 42px);
        gap: 8px;
        align-items: center;
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .brand img {
        width: min(100%, 196px);
        margin: 0;
    }

    .mobile-nav-toggle {
        grid-column: 4;
        grid-row: 1;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        border: 2px solid var(--green);
        border-radius: 4px;
        color: var(--green-dark);
        background: var(--white);
        cursor: pointer;
    }

    .mobile-nav-toggle:hover,
    .mobile-nav-toggle:focus {
        outline: none;
        border-color: var(--green-dark);
        background: #f5f8f2;
    }

    .mobile-nav-toggle span[aria-hidden="true"] {
        display: block;
        width: 22px;
        height: 2px;
        margin: 0;
        border-radius: 2px;
        background: currentColor;
        transition: transform 160ms ease, opacity 160ms ease;
    }

    .mobile-nav-toggle[aria-expanded="true"] span[aria-hidden="true"]:nth-child(2) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-nav-toggle[aria-expanded="true"] span[aria-hidden="true"]:nth-child(3) {
        opacity: 0;
    }

    .mobile-nav-toggle[aria-expanded="true"] span[aria-hidden="true"]:nth-child(4) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .header-actions {
        grid-column: 2 / 4;
        grid-row: 1;
        display: grid;
        grid-template-columns: repeat(2, 42px);
        gap: 8px;
        justify-content: end;
        white-space: normal;
    }

    .header-button {
        width: 42px;
        height: 42px;
        min-height: 42px;
        gap: 0;
        padding: 0;
        border-radius: 4px;
        overflow: hidden;
        font-size: 0;
        line-height: 0;
        color: transparent;
    }

    .header-button svg {
        display: block;
        flex: 0 0 auto;
        width: 22px;
        height: 22px;
        margin: auto;
        color: inherit;
        stroke: currentColor;
    }

    .header-button.button-solid svg {
        color: var(--white);
    }

    .header-button.button-outline svg {
        color: var(--green-dark);
    }

    .main-nav {
        grid-column: 1 / -1;
        display: none;
        grid-template-columns: 1fr;
        justify-content: stretch;
        justify-items: stretch;
        width: 100%;
        padding: 10px 0 0;
        border-top: 1px solid var(--line);
        gap: 0;
        font-size: 18px;
    }

    .site-header.nav-open .main-nav {
        display: grid;
    }

    .nav-item,
    .nav-item.has-mega {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        border-bottom: 1px solid var(--line);
    }

    .nav-link {
        justify-content: flex-start;
        min-height: 56px;
        padding: 16px 8px 16px 2px;
        font-weight: 600;
    }

    .has-panel > .nav-link::after {
        content: none;
    }

    .submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        align-self: center;
        justify-self: end;
        width: 44px;
        height: 44px;
        border-radius: 4px;
    }

    .submenu-toggle:focus {
        outline: 2px solid rgba(95, 154, 39, 0.32);
        outline-offset: -2px;
    }

    .nav-item.is-open .submenu-toggle::before {
        transform: translateY(2px) rotate(225deg);
    }

    .nav-panel {
        position: static;
        grid-column: 1 / -1;
        left: auto;
        right: auto;
        display: none;
        width: 100%;
        max-width: none;
        padding: 0 0 14px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        opacity: 1;
        pointer-events: auto;
        transform: none !important;
        transition: none;
    }

    .nav-item.is-open .nav-panel {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .nav-panel::before,
    .nav-panel-intro {
        display: none;
    }

    .nav-panel-links,
    .nav-panel-mega .nav-panel-links {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .nav-panel-links a,
    .nav-panel-mega .nav-panel-links a:nth-last-child(3):first-child,
    .nav-panel-mega .nav-panel-links a:nth-last-child(3):first-child ~ a {
        display: grid;
        width: 100%;
        min-height: 0;
        gap: 4px;
        padding: 12px 0 12px 18px;
        border-radius: 0;
        border-top: 1px solid rgba(223, 229, 220, 0.8);
        background: transparent;
    }

    .nav-panel-links a:hover,
    .nav-panel-links a:focus {
        outline: none;
        background: #f5f8f2;
    }

    .nav-panel-links span {
        color: var(--green-dark);
        font-size: 15px;
        line-height: 1.25;
    }

    .nav-panel-links small {
        color: var(--muted);
        font-size: 13px;
        line-height: 1.35;
    }

    .welcome-panel,
    .contact-form,
    .service-topic-card,
    .cta-panel {
        padding: 24px;
    }

    .team-portraits {
        grid-template-columns: 1fr;
    }

    .team-card {
        grid-template-columns: 1fr;
    }

    .subpage-hero-media {
        padding: 40px 0 46px;
    }

    .subpage-hero-media img {
        height: 210px;
    }

    .image-hero > img {
        height: 220px;
    }

    .image-hero-box {
        margin-top: -44px;
        padding: 24px;
    }

    .services-slider {
        grid-auto-columns: minmax(250px, 86vw);
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 22px 0;
    }
}
