:root {
    --purple-950: #25065f;
    --purple-900: #3b108b;
    --purple-800: #433091;
    --purple-600: #6a52a0;
    --purple-300: #b9a7df;
    --cream: #fff6e9;
    --paper: #fffdf8;
    --white: #ffffff;
    --ink: #17141c;
    --muted: #6f6877;
    --line: rgba(23, 20, 28, 0.14);
    --shadow: 0 28px 80px rgba(35, 7, 87, 0.14);
    --radius-sm: 14px;
    --radius-md: 24px;
    --radius-lg: 38px;
    --container: 1280px;
    --header-height: 82px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

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

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    padding: 10px 15px;
    color: var(--white);
    background: var(--purple-900);
    border-radius: 8px;
    transform: translateY(-150%);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 54px;
    padding: 0 25px;
    border: 1px solid var(--purple-900);
    border-radius: 999px;
    color: var(--white);
    background: var(--purple-900);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
    background: var(--purple-950);
    border-color: var(--purple-950);
    box-shadow: 0 12px 28px rgba(59, 16, 139, 0.2);
    transform: translateY(-2px);
}

.button:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(106, 82, 160, 0.34);
    outline-offset: 3px;
}

.button-small {
    min-height: 44px;
    padding-inline: 20px;
    font-size: 0.72rem;
}

.button-large {
    min-height: 62px;
    padding-inline: 30px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: var(--purple-950);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.text-link span {
    font-size: 1.25rem;
    transition: transform 180ms ease;
}

.text-link:hover span {
    transform: translateX(4px);
}

.text-link-dark {
    color: var(--ink);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow > span {
    display: block;
    width: 38px;
    height: 1px;
    background: currentColor;
}

.eyebrow-dark {
    color: var(--purple-800);
}

.section {
    padding: 132px 0;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 90px;
    align-items: end;
    margin-bottom: 66px;
}

.section-heading h2,
.process-heading h2,
.faq-intro h2,
.quote-copy h2,
.comparison-copy h2,
.benefits-intro h2 {
    margin-bottom: 0;
    font-size: clamp(2.8rem, 5.1vw, 5.8rem);
    font-weight: 420;
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.section-heading > p {
    max-width: 520px;
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 1.05rem;
}

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

.section-heading-light > p {
    color: rgba(255, 255, 255, 0.62);
}

/* Project estimate improvements — retain the existing component styles. */
.hero .hero-actions {
    flex-wrap: wrap;
    gap: 20px 28px;
}

.button.button-large,
.button.button-submit,
.wood-stripping .button {
    max-width: 100%;
    padding-block: 15px;
    line-height: 1.4;
    text-align: center;
}

.hero-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 26px;
    color: var(--purple-900);
    font-size: 0.84rem;
}

.hero-shortcuts a {
    text-underline-offset: 4px;
}

.hero-shortcuts a span {
    display: inline-block;
    margin-left: 5px;
}

.wood-stripping {
    padding: 64px 0;
    border-top: 1px solid var(--line);
    background: var(--cream);
}

.wood-stripping__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(36px, 6vw, 88px);
    align-items: start;
}

.wood-stripping .eyebrow {
    margin-bottom: 22px;
    line-height: 1.6;
}

.wood-stripping h2 {
    margin-bottom: 0;
    font-size: clamp(2.5rem, 4.1vw, 4.5rem);
    font-weight: 420;
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.wood-stripping__copy > p {
    margin-bottom: 22px;
    color: #5f5867;
    font-size: 1.03rem;
}

.wood-stripping__copy > .wood-stripping__note {
    padding-left: 18px;
    border-left: 2px solid var(--purple-300);
    font-size: 0.9rem;
}

.project-pricing {
    margin-top: 28px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
}

.project-pricing h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.25;
}

.project-pricing p {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
}

.project-pricing p:last-child {
    margin-bottom: 0;
    color: var(--white);
    font-weight: 600;
}

.quote-copy .quote-contact {
    margin-top: 30px;
}

.field .field-hint {
    margin: 9px 0 0;
    color: #655d6e;
    font-size: 0.79rem;
    line-height: 1.5;
}

.quote-form .form-note {
    color: #655d6e;
    font-size: 0.76rem;
}

.quote-form .field input,
.quote-form .field select,
.quote-form .field textarea {
    min-width: 0;
    font-size: 16px;
}

@media (max-width: 940px) {
    .wood-stripping__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 680px) {
    section.hero h1 {
        max-width: 580px;
        font-size: clamp(2.45rem, 10.5vw, 4rem);
        line-height: 0.99;
        letter-spacing: -0.055em;
        margin-bottom: 22px;
    }

    .hero .hero-lead {
        margin-bottom: 26px;
    }

    .hero .hero-points {
        margin-top: 28px;
    }

    .hero .button-large {
        padding-inline: 18px;
        font-size: 0.76rem;
        letter-spacing: 0.055em;
        gap: 12px;
    }

    .wood-stripping {
        padding: 44px 0;
    }

    .wood-stripping .button {
        width: 100%;
        padding-inline: 18px;
        gap: 12px;
        font-size: 0.76rem;
    }

    .project-pricing {
        padding: 20px;
    }

    html:root {
        scroll-padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }

    body > .mobile-quote {
        height: calc(54px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
    }

    body.form-visible > .mobile-quote,
    body.form-active > .mobile-quote,
    body.menu-open > .mobile-quote,
    body.modal-open > .mobile-quote {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal.is-pending {
        opacity: 1;
        transform: none;
    }
}

/* Keep intrinsic image, select and text widths inside their grid columns. */
.services .services-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.services .services-grid > .service-card {
    grid-column: span 2;
    width: auto;
    margin-left: 0;
    transform: none;
}

.services .services-grid > .service-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.services .services-grid > .service-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.services .services-grid > .service-card:hover {
    transform: translateY(-4px);
}

.hero-grid > *,
.section-heading > *,
.services-grid > *,
.applications-grid > *,
.benefits-layout > *,
.benefit-item > *,
.project-card > *,
.project-card__details > *,
.comparison-grid > *,
.comparison-row > *,
.process-grid > *,
.faq-layout > *,
.faq-item summary > *,
.quote-grid > *,
.form-row-two > *,
.wood-stripping__grid > * {
    min-width: 0;
}

.quote-form,
.quote-form .field,
.quote-form .form-row,
.quote-form input,
.quote-form select,
.quote-form textarea {
    max-width: 100%;
    min-width: 0;
}

.quote-form .field select {
    width: 100%;
    text-overflow: ellipsis;
}

.section-heading h2,
.wood-stripping h2,
.quote-copy h2,
.service-card__body h3,
.application-card h3,
.faq-item summary,
.project-card__details strong {
    overflow-wrap: anywhere;
}

.services .section-heading h2 > span {
    display: block;
}

.wood-project-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
    margin: 0 0 22px;
    padding-left: 20px;
    color: var(--purple-900);
    font-size: 0.97rem;
}

@media (min-width: 941px) and (max-width: 1180px) {
    .benefits .benefit-item {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 14px;
    }

    .benefits .benefit-item p {
        grid-column: 2;
    }
}

@media (max-width: 940px) {
    .section .section-heading,
    .hero .hero-grid,
    .benefits .benefits-layout,
    .comparison .comparison-grid,
    .faq .faq-layout,
    .quote-section .quote-grid,
    .projects .project-card,
    .wood-stripping .wood-stripping__grid {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .services .services-grid > .service-card:nth-child(n) {
        grid-column: auto;
        transform: none;
    }
}

@media (max-width: 680px) {
    .services .section-heading {
        gap: 20px;
        margin-bottom: 30px;
        align-items: start;
    }

    .services .section-heading .eyebrow {
        margin-bottom: 18px;
    }

    .services .section-heading h2 {
        font-size: clamp(1.8rem, 8.1vw, 3rem);
        line-height: 1.12;
        letter-spacing: -0.04em;
    }

    .services .section-heading > p {
        max-width: 36ch;
        margin: 0;
        font-size: 0.96rem;
        line-height: 1.6;
    }

    .services .services-grid,
    .applications .applications-grid,
    .process .process-grid,
    .quote-form .form-row-two {
        grid-template-columns: minmax(0, 1fr);
    }

    .services .service-card {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        transform: none;
    }

    .services .service-card:nth-child(5):hover {
        transform: none;
    }

    .services .service-card__body {
        padding: 18px 20px 22px;
    }

    .services .service-card__body h3 {
        font-size: 1.12rem;
        line-height: 1.25;
    }

    .services .service-card__body p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .wood-stripping h2 {
        font-size: clamp(1.9rem, 8.8vw, 3rem);
        line-height: 1.12;
    }

    .wood-stripping .wood-stripping__copy > p {
        font-size: 0.96rem;
    }

    .wood-project-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero .hero-actions > a,
    .hero-shortcuts > a {
        min-width: 0;
        max-width: 100%;
    }

    .hero .hero-actions > .text-link {
        flex-wrap: wrap;
    }

    .hero .hero-media {
        min-width: 0;
        max-width: 100%;
    }

    .quote-section .quote-copy h2 {
        font-size: clamp(2rem, 9.2vw, 3.2rem);
        line-height: 1.06;
    }
}
