:root {
    --ink: #152026;
    --text: #243139;
    --muted: #627078;
    --line: #d8e0e4;
    --paper: #f5f7f5;
    --white: #ffffff;
    --signal: #c63d32;
    --steel: #0b6470;
    --leaf: #39735c;
    --amber: #d99a1a;
    --shadow: 0 20px 46px rgba(17, 30, 38, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--paper);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.75;
}

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

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

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

h1,
h2,
h3 {
    color: var(--ink);
    line-height: 1.18;
}

h1 {
    max-width: 10em;
    margin: 0;
    font-size: clamp(38px, 6vw, 76px);
}

h2 {
    margin: 0;
    font-size: clamp(27px, 3.7vw, 44px);
}

h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 40;
    padding: 8px 12px;
    color: var(--white);
    background: var(--ink);
    border-radius: 4px;
}

.skip-link:focus {
    top: 16px;
}

.site-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.side-rail {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 28px 24px;
    color: var(--white);
    background: var(--ink);
}

.brand {
    display: grid;
    gap: 8px;
}

.brand strong {
    font-size: 27px;
    line-height: 1.1;
}

.brand span,
.rail-note,
.rail-meta {
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.site-nav {
    display: grid;
    gap: 6px;
}

.site-nav a {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
    font-weight: 800;
}

.site-nav a::after {
    content: ">";
    color: var(--amber);
}

.rail-note {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.rail-note p {
    margin: 0;
}

.mobile-header {
    display: none;
}

.content {
    min-width: 0;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 42vw);
    min-height: 86vh;
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(48px, 7vw, 92px);
}

.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 520px;
    overflow: hidden;
    background: #11191d;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-visual::after {
    position: absolute;
    inset: auto 0 0;
    padding: 22px 26px;
    color: var(--white);
    background: linear-gradient(180deg, transparent, rgba(10, 20, 26, 0.82));
    content: "Fire protection work / Inspection / Maintenance";
    font-size: 13px;
    font-weight: 800;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--steel);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.lead {
    max-width: 720px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ink);
    border-radius: 6px;
    padding: 11px 20px;
    font-weight: 900;
}

.button.primary {
    color: var(--white);
    background: var(--signal);
    border-color: var(--signal);
}

.button.secondary {
    background: var(--white);
}

.status-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.status-strip div {
    min-height: 132px;
    padding: 24px;
    border-right: 1px solid var(--line);
}

.status-strip strong {
    display: block;
    color: var(--ink);
    font-size: 24px;
    line-height: 1.2;
}

.status-strip span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.section,
.contact-section,
.page-hero {
    padding: clamp(56px, 8vw, 104px) clamp(22px, 7vw, 96px);
}

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

.section-grid,
.contact-section {
    display: grid;
    grid-template-columns: minmax(220px, 0.68fr) minmax(0, 1.32fr);
    gap: clamp(28px, 5vw, 76px);
    align-items: start;
}

.section-copy p {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.company-table {
    margin: 0;
    background: var(--white);
    border: 1px solid var(--line);
}

.company-table div {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    min-height: 64px;
    border-bottom: 1px solid var(--line);
}

.company-table div:last-child {
    border-bottom: 0;
}

.company-table dt,
.company-table dd {
    margin: 0;
    padding: 18px;
}

.company-table dt {
    color: var(--muted);
    background: #eef2f2;
    font-weight: 800;
}

.service-list {
    display: grid;
    gap: 10px;
}

.service-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 20px;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 5px solid var(--steel);
    border-radius: 6px;
}

.service-item span {
    color: var(--signal);
    font-size: 22px;
    font-weight: 900;
}

.service-item p,
.case-panel p,
.policy-body p {
    margin: 0;
    color: var(--muted);
}

.area-section {
    color: var(--white);
    background: #173036;
}

.area-section h2 {
    color: var(--white);
}

.area-section .eyebrow {
    color: var(--amber);
}

.area-section .section-copy p {
    color: rgba(255, 255, 255, 0.72);
}

.area-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.area-list li {
    min-height: 58px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-weight: 900;
}

.case-panel {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: center;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.case-panel img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

.case-panel small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
}

.case-panel .button {
    margin-top: 22px;
}

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

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

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
}

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

.contact-form textarea {
    resize: vertical;
}

.full {
    grid-column: 1 / -1;
}

.consent {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
}

.consent input {
    width: auto;
}

.page-hero {
    min-height: 340px;
    display: grid;
    align-content: center;
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.page-hero p:last-child {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
}

.policy-body article {
    max-width: 860px;
    padding: clamp(24px, 4vw, 42px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.policy-body h2 {
    margin-top: 34px;
    font-size: 24px;
}

.policy-body h2:first-child {
    margin-top: 0;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    padding: 36px clamp(22px, 7vw, 96px);
    color: var(--white);
    background: #11191d;
}

.site-footer p {
    max-width: 620px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.66);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

@media (max-width: 1040px) {
    .site-shell {
        display: block;
    }

    .side-rail {
        display: none;
    }

    .mobile-header {
        position: sticky;
        top: 0;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 14px 22px;
        background: rgba(245, 247, 245, 0.94);
        border-bottom: 1px solid var(--line);
        backdrop-filter: blur(14px);
    }

    .mobile-header strong {
        color: var(--ink);
        font-size: 22px;
    }

    .mobile-header nav {
        display: flex;
        gap: 16px;
        color: var(--muted);
        font-size: 13px;
        font-weight: 800;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-visual {
        min-height: 380px;
        order: -1;
    }

    .status-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-grid,
    .contact-section,
    .case-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .mobile-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .mobile-header nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
        white-space: nowrap;
    }

    .hero-copy,
    .section,
    .contact-section,
    .page-hero {
        padding: 42px 20px;
    }

    h1 {
        font-size: clamp(36px, 13vw, 54px);
    }

    .status-strip,
    .area-list,
    .contact-form {
        grid-template-columns: 1fr;
    }

    .company-table div,
    .service-item {
        grid-template-columns: 1fr;
    }

    .site-footer {
        grid-template-columns: 1fr;
    }
}
