:root {
    --ink: #132421;
    --muted: #5c6964;
    --line: #dbe2dc;
    --paper: #f6f8f3;
    --mist: #e9f0eb;
    --forest: #105247;
    --forest-dark: #082f2b;
    --copper: #b94e2e;
    --amber: #f0b94d;
    --blue: #2f6570;
    --white: #ffffff;
    --shadow: 0 22px 55px rgba(19, 36, 33, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

::selection {
    color: var(--white);
    background: var(--copper);
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    transform: translateY(-160%);
    padding: 10px 14px;
    color: var(--white);
    background: var(--forest);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--white);
    transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
    color: var(--ink);
    background: rgba(246, 248, 243, 0.96);
    box-shadow: 0 10px 30px rgba(19, 36, 33, 0.08);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    overflow: hidden;
    border: 2px solid currentColor;
    border-radius: 8px;
    font-weight: 900;
}

.brand-mark::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 8px;
    width: 26px;
    height: 12px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: skewY(-24deg);
    opacity: 0.48;
}

.brand strong,
.brand small {
    display: block;
    line-height: 1.1;
}

.brand small {
    margin-top: 3px;
    font-size: 0.78rem;
    color: currentColor;
    opacity: 0.76;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 0.94rem;
    font-weight: 800;
}

.site-nav a {
    opacity: 0.84;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    opacity: 1;
}

.header-call {
    display: inline-flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0 8px 18px;
    border-left: 1px solid currentColor;
}

.header-call span {
    font-size: 0.74rem;
    opacity: 0.72;
}

.header-call strong {
    font-size: 0.96rem;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 8px;
    color: inherit;
    background: transparent;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
}

.hero {
    position: relative;
    display: grid;
    min-height: 94svh;
    overflow: hidden;
    color: var(--white);
}

.hero-media,
.hero-overlay,
.hero-content {
    grid-area: 1 / 1;
}

.hero-media {
    background-image: url("../img/hero-chimney-cleaning.png");
    background-position: center;
    background-size: cover;
    transform: scale(1.01);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(8, 47, 43, 0.92) 0%, rgba(8, 47, 43, 0.72) 46%, rgba(8, 47, 43, 0.12) 100%),
        linear-gradient(0deg, rgba(8, 47, 43, 0.66), rgba(8, 47, 43, 0.05) 48%),
        repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 80px);
}

.hero-content {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    max-width: 820px;
    padding-top: 116px;
    padding-bottom: 70px;
}

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

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

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

h1 {
    max-width: 760px;
    margin-bottom: 20px;
    font-size: 6.4rem;
    line-height: 0.9;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 18px;
    font-size: 3.35rem;
    line-height: 1;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 610px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.28rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 900;
    line-height: 1;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: var(--copper);
    box-shadow: 0 14px 28px rgba(185, 78, 46, 0.24);
}

.btn-secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.1);
}

.hero-note {
    max-width: 650px;
    margin-bottom: 38px;
    padding-left: 18px;
    border-left: 4px solid var(--amber);
}

.hero-note span {
    display: block;
    margin-bottom: 4px;
    color: var(--amber);
    font-weight: 900;
}

.hero-note p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
}

.hero-stats {
    display: grid;
    max-width: 900px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-stats div {
    min-width: 0;
    padding: 18px;
    background: rgba(8, 47, 43, 0.28);
}

.hero-stats dt {
    margin-bottom: 4px;
    font-weight: 900;
}

.hero-stats dd {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.92rem;
}

.quick-band {
    border-bottom: 1px solid var(--line);
    color: var(--white);
    background:
        linear-gradient(90deg, var(--forest-dark), var(--forest)),
        var(--forest-dark);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-grid > div {
    min-width: 0;
    padding: 22px 26px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.quick-grid > div:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.quick-grid span {
    display: block;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.quick-grid a,
.quick-grid strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.35;
}

.section {
    padding: 104px 0;
}

.section-head {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
    align-items: end;
    margin-bottom: 42px;
}

.section-head > p,
.section-head p:last-child {
    max-width: 560px;
    color: var(--muted);
    font-size: 1.05rem;
}

.compact-head {
    margin-bottom: 32px;
}

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

.service-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 16px 38px rgba(19, 36, 33, 0.07);
}

.service-card img {
    width: 100%;
    aspect-ratio: 1.48;
    object-fit: cover;
    background: var(--mist);
}

.service-card div {
    padding: 22px;
}

.service-tag {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 5px 9px;
    border: 1px solid rgba(185, 78, 46, 0.28);
    border-radius: 999px;
    color: var(--copper);
    font-size: 0.75rem;
    font-weight: 900;
}

.service-card p,
.split-copy p,
.proof-items p,
.appointment-copy p,
.faq-list p,
.site-footer p,
.signature-item p {
    color: var(--muted);
}

.service-card ul {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.service-card li {
    position: relative;
    padding-left: 22px;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 800;
}

.service-card li::before {
    content: "";
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--amber);
    transform: translateY(-50%);
}

.signature-section {
    position: relative;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(47, 101, 112, 0.08) 0 25%, transparent 25% 50%, rgba(47, 101, 112, 0.08) 50% 75%, transparent 75%) 0 0 / 28px 28px,
        var(--white);
}

.signature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.signature-item {
    min-height: 220px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 38px rgba(19, 36, 33, 0.06);
}

.signature-item span {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin-bottom: 36px;
    border: 1px solid rgba(47, 101, 112, 0.34);
    border-radius: 50%;
    color: var(--blue);
    font-weight: 900;
}

.signature-item h3 {
    margin-bottom: 10px;
}

.inspection-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}

.inspection-strip span {
    display: flex;
    align-items: center;
    min-height: 76px;
    padding: 18px;
    color: var(--white);
    background: var(--forest-dark);
    font-weight: 900;
}

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

.split-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 68px;
    align-items: start;
}

.split-copy {
    position: sticky;
    top: 110px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    color: var(--forest);
    font-weight: 900;
}

.text-link::after {
    content: "";
    width: 34px;
    height: 2px;
    margin-left: 10px;
    background: currentColor;
}

.process-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-list li {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 22px;
    align-items: start;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.process-list span {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(185, 78, 46, 0.26);
    border-radius: 50%;
    color: var(--copper);
    font-weight: 900;
}

.process-list h3 {
    margin-bottom: 6px;
}

.process-list p {
    margin: 0;
    color: var(--muted);
}

.proof-section {
    padding: 104px 0;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(240, 185, 77, 0.1) 0 1px, transparent 1px 72px),
        var(--forest-dark);
}

.proof-grid {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 60px;
}

.proof-section h2 {
    max-width: 560px;
}

.proof-items {
    display: grid;
    gap: 18px;
}

.proof-items article {
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: 18px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.proof-items span {
    width: 30px;
    height: 30px;
    margin-top: 2px;
    border: 8px solid var(--copper);
    border-radius: 50%;
}

.proof-items h3 {
    margin-bottom: 6px;
}

.proof-items p {
    grid-column: 2;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.72);
}

.appointment-section {
    background:
        linear-gradient(90deg, rgba(246, 248, 243, 0.98), rgba(246, 248, 243, 0.88)),
        url("../img/section-tools.png") right bottom / 50% auto no-repeat;
}

.appointment-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 58px;
    align-items: start;
}

.contact-lines {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.contact-lines a {
    width: fit-content;
    color: var(--forest);
    font-weight: 900;
}

.appointment-form {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

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

label {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

label span {
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 900;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cbd4ce;
    border-radius: 8px;
    padding: 13px 14px;
    color: var(--ink);
    background: var(--white);
    outline: none;
}

textarea {
    resize: vertical;
}

textarea::placeholder {
    color: #89948f;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--forest);
    box-shadow: 0 0 0 4px rgba(16, 82, 71, 0.12);
}

.trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-submit {
    width: 100%;
}

.notice {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 800;
}

.notice ul {
    margin: 8px 0 0;
    padding-left: 20px;
    font-weight: 600;
}

.notice.success {
    color: #0d3f37;
    border: 1px solid #b5d8c7;
    background: #e8f6ee;
}

.notice.error {
    color: #6f2718;
    border: 1px solid #edc0ad;
    background: #fff1ea;
}

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

.faq-grid {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 52px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

summary {
    cursor: pointer;
    padding: 20px 22px;
    font-weight: 900;
}

details p {
    margin: 0;
    padding: 0 22px 22px;
}

.site-footer {
    padding: 46px 0;
    color: rgba(255, 255, 255, 0.78);
    background: #091b19;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 40px;
}

.footer-brand {
    margin-bottom: 16px;
    color: var(--white);
}

.site-footer span {
    display: block;
    margin-bottom: 12px;
    color: var(--white);
    font-weight: 900;
}

.site-footer a {
    display: block;
    width: fit-content;
    margin-bottom: 8px;
    color: var(--white);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    h1 {
        font-size: 5.1rem;
    }

    h2 {
        font-size: 2.75rem;
    }
}

@media (max-width: 960px) {
    .header-call {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: 76px;
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        color: var(--ink);
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 14px;
        border-radius: 8px;
    }

    .site-nav a:hover,
    .site-nav a:focus-visible {
        background: var(--mist);
    }

    .section-head,
    .split-grid,
    .proof-grid,
    .appointment-grid,
    .faq-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .split-copy {
        position: static;
    }

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

    .inspection-strip {
        grid-template-columns: 1fr 1fr;
    }

    .appointment-section {
        background: var(--paper);
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 28px, 1160px);
    }

    .header-inner {
        min-height: 68px;
    }

    .site-nav {
        top: 68px;
        right: 14px;
        left: 14px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .hero {
        min-height: 84svh;
    }

    .hero-content {
        width: min(100% - 28px, 1160px);
        max-width: none;
        padding-top: 90px;
        padding-bottom: 34px;
    }

    .hero-media {
        background-position: 62% center;
    }

    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(8, 47, 43, 0.9), rgba(8, 47, 43, 0.58)),
            linear-gradient(0deg, rgba(8, 47, 43, 0.58), rgba(8, 47, 43, 0.1));
    }

    h1 {
        font-size: 3.05rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .hero-copy {
        font-size: 1.08rem;
    }

    .hero-actions {
        display: grid;
        gap: 10px;
        margin-bottom: 24px;
    }

    .hero-actions,
    .btn {
        width: 100%;
    }

    .quick-grid,
    .service-grid,
    .signature-grid,
    .inspection-strip,
    .field-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        display: none;
    }

    .hero-note {
        margin-bottom: 0;
    }

    .quick-grid > div {
        padding: 14px 16px;
    }

    .quick-grid > div {
        border-right: 1px solid rgba(255, 255, 255, 0.14);
    }

    .section,
    .proof-section {
        padding: 72px 0;
    }

    .section-head {
        gap: 12px;
        margin-bottom: 28px;
    }

    .signature-item {
        min-height: auto;
    }

    .signature-item span {
        margin-bottom: 22px;
    }

    .process-list li {
        grid-template-columns: 54px 1fr;
        gap: 14px;
        padding: 18px;
    }

    .process-list span {
        width: 42px;
        height: 42px;
    }

    .appointment-form {
        padding: 18px;
    }
}

@media (max-width: 390px) {
    h1 {
        font-size: 2.72rem;
    }

    h2 {
        font-size: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
