:root {
    --bg: #f6f7f4;
    --surface: #ffffff;
    --ink: #202826;
    --muted: #60706b;
    --line: #d9dfdb;
    --green: #2f7d63;
    --green-dark: #1d5645;
    --brass: #b88a35;
    --dark: #17211e;
    --shadow: 0 18px 45px rgba(20, 31, 28, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

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

.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: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding: 0 6vw;
    background: rgba(246, 247, 244, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 174px;
    font-weight: 700;
}

.brand__icon {
    width: 42px;
    height: 42px;
    background: var(--green);
    clip-path: polygon(50% 0, 88% 16%, 82% 72%, 50% 100%, 18% 72%, 12% 16%);
    box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.12);
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.main-nav a,
.header-cta {
    border-radius: 6px;
    padding: 9px 12px;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.94rem;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 160ms ease, opacity 160ms ease;
}

.main-nav a:hover,
.header-cta:hover {
    color: var(--ink);
    background: #e8eeea;
}

.header-cta {
    color: var(--surface);
    background: var(--green);
}

.header-cta:hover {
    color: var(--surface);
    background: var(--green-dark);
}

.hero {
    min-height: 620px;
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(90deg, rgba(20, 31, 28, 0.9), rgba(20, 31, 28, 0.58), rgba(20, 31, 28, 0.22)),
        url("../images/security-hero.png") center / cover no-repeat;
}

.hero__overlay {
    width: min(760px, 88vw);
    margin: 0 0 72px 6vw;
    color: var(--surface);
}

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

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.12;
}

h1 {
    max-width: 780px;
    font-size: clamp(2.35rem, 6vw, 4.8rem);
}

h2 {
    max-width: 780px;
    font-size: clamp(1.65rem, 3vw, 2.6rem);
}

h3 {
    font-size: 1.2rem;
}

.hero__intro,
.lead {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.12rem;
}

.lead {
    color: var(--muted);
}

.hero__actions,
.cta-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 6px;
    padding: 0 18px;
    font-weight: 800;
}

.button--primary {
    color: var(--surface);
    background: var(--green);
}

.button--secondary {
    color: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.button--light {
    color: var(--dark);
    background: var(--surface);
}

.section,
.page-shell {
    width: min(1120px, 88vw);
    margin: 0 auto;
}

.section {
    padding: 86px 0;
}

.section--intro {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 42px;
    align-items: start;
}

.section__content .rich-text {
    margin-top: 24px;
}

.rich-text {
    color: var(--muted);
    font-size: 1.03rem;
}

.rich-text p {
    margin: 0 0 18px;
}

.rich-text ul,
.rich-text ol {
    padding-left: 22px;
}

.trust-panel {
    display: grid;
    gap: 14px;
}

.trust-panel div,
.service-card,
.contact-aside {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.trust-panel div {
    padding: 22px;
}

.trust-panel strong {
    display: block;
    color: var(--green-dark);
    font-size: 1.35rem;
}

.trust-panel span {
    color: var(--muted);
}

.section--services {
    border-top: 1px solid var(--line);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.service-card {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 26px;
}

.service-card--link {
    color: var(--ink);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.service-card--link:hover {
    transform: translateY(-3px);
    border-color: rgba(47, 125, 99, 0.5);
    box-shadow: 0 22px 50px rgba(20, 31, 28, 0.16);
}

.service-card__icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 8px;
    color: var(--green-dark);
    background: #e8f0eb;
}

.service-card__icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card--link:hover .service-card__icon {
    color: var(--surface);
    background: var(--green);
}

.service-card p {
    color: var(--muted);
}

.service-card__action {
    margin-top: auto;
    color: var(--green-dark);
    font-weight: 800;
}

.services-list-section {
    grid-column: 1 / -1;
    padding-top: 36px;
    border-top: 1px solid var(--line);
}

.service-side-nav {
    display: grid;
    gap: 7px;
    margin: 18px 0 22px;
}

.service-side-nav a {
    border-radius: 6px;
    padding: 9px 10px;
    color: var(--muted);
    background: #f2f5f1;
    font-weight: 700;
}

.service-side-nav a:hover,
.service-side-nav a.is-active {
    color: var(--surface);
    background: var(--green);
}

.cta-band {
    justify-content: space-between;
    margin: 0 6vw 88px;
    padding: 34px 40px;
    color: var(--surface);
    background: var(--dark);
    border-radius: 8px;
}

.cta-band .eyebrow {
    color: #d7b76c;
}

.page-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 44px;
    padding: 82px 0;
}

.content-page,
.contact-aside {
    align-self: start;
}

.content-page h1 {
    color: var(--dark);
}

.content-page .rich-text {
    margin-top: 30px;
}

.contact-aside {
    padding: 24px;
}

.contact-aside p {
    color: var(--muted);
}

.page-shell--contact {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.8fr);
}

.contact-form-panel {
    align-self: start;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.contact-form-panel h2 {
    margin-bottom: 22px;
    font-size: 1.55rem;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--dark);
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 13px;
    color: var(--ink);
    background: #fbfcfa;
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(47, 125, 99, 0.24);
    border-color: var(--green);
}

.contact-form ul {
    margin: 7px 0 0;
    padding-left: 18px;
    color: #a43d35;
}

.form-alert {
    margin-bottom: 20px;
    border-radius: 6px;
    padding: 12px 14px;
    font-weight: 700;
}

.form-alert--success {
    color: #184a3b;
    background: #ddefe6;
    border: 1px solid #b9dccd;
}

.site-footer {
    padding: 54px 6vw 30px;
    color: rgba(255, 255, 255, 0.78);
    background: var(--dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) minmax(160px, 0.7fr) minmax(230px, 1fr);
    gap: 44px;
    width: min(1120px, 100%);
    margin: 0 auto;
}

.footer-column h2 {
    margin-bottom: 18px;
    color: var(--surface);
    font-size: 1.05rem;
}

.footer-column address {
    display: grid;
    gap: 4px;
    margin-bottom: 18px;
    font-style: normal;
}

.site-footer strong,
.site-footer a {
    color: var(--surface);
}

.footer-list,
.footer-nav {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-list li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 2px;
    align-items: center;
}

.footer-list span,
.footer-bottom {
    color: rgba(255, 255, 255, 0.58);
}

.footer-list span {
    grid-column: 2;
    font-size: 0.85rem;
}

.footer-list a {
    grid-column: 2;
}

.footer-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    fill: none;
    stroke: #d7b76c;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-icon--filled {
    fill: #d7b76c;
    stroke: none;
}

.footer-nav a,
.social-links a {
    width: fit-content;
}

.footer-nav a:hover,
.social-links a:hover,
.footer-bottom a:hover {
    color: #d7b76c;
}

.footer-nav--services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    padding: 7px 10px;
}

.social-links .footer-icon {
    width: 17px;
    height: 17px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: min(1120px, 100%);
    margin: 36px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.92rem;
}

@media (max-width: 840px) {
    .site-header {
        position: static;
        align-items: center;
        flex-wrap: wrap;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .brand {
        flex: 1;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        flex: 0 0 100%;
        align-items: stretch;
        justify-content: flex-start;
        flex-direction: column;
        gap: 4px;
        order: 3;
        padding-top: 10px;
    }

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

    .site-header--open .nav-toggle__bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header--open .nav-toggle__bar:nth-child(2) {
        opacity: 0;
    }

    .site-header--open .nav-toggle__bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .main-nav a {
        padding: 11px 0;
    }

    .header-cta {
        display: none;
        order: 4;
        width: 100%;
        text-align: center;
    }

    .site-header--open .header-cta {
        display: block;
    }

    .hero {
        min-height: 560px;
    }

    .hero__overlay {
        margin: 0 auto 48px;
    }

    .section--intro,
    .service-grid,
    .page-shell,
    .page-shell--contact {
        grid-template-columns: 1fr;
    }

    .cta-band,
    .site-footer,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-grid,
    .footer-nav--services {
        grid-template-columns: 1fr;
    }
}
