@font-face {
    font-family: Manrope;
    src: url("assets/fonts/manrope-latin.woff2") format("woff2");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Barlow Condensed";
    src: url("assets/fonts/barlow-condensed-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --page: #f5f7fa;
    --surface: #fcfdfe;
    --surface-muted: #eaf0f5;
    --surface-blue: #dce9f2;
    --surface-red: #f7e8e8;
    --ink: #0a2d55;
    --ink-strong: #071f3c;
    --ink-soft: #2f4d68;
    --muted: #5c7184;
    --line: #cbd7e0;
    --accent: #c82f38;
    --accent-hover: #9f2028;
    --accent-text: #fff9f8;
    --focus: #168cc5;
    --success: #236b46;
    --error: #b4232b;
    --logo-surface: #edf3f7;
    --shadow: 0 22px 64px rgb(18 52 82 / 12%);
    --radius: 8px;
    --shell: 1280px;
    --header-height: 72px;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--page);
    color: var(--ink);
    font-family: Manrope, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

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

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

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

button {
    cursor: pointer;
}

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

h1,
h2,
h3 {
    margin-bottom: 0;
    color: var(--ink-strong);
    font-family: "Barlow Condensed", Impact, sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
}

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

.skip-link {
    position: fixed;
    z-index: 100;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    font-weight: 800;
    transform: translateY(-160%);
    transition: transform 180ms ease;
}

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

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 0 22px;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button:active {
    transform: translateY(1px) scale(0.99);
}

.button-primary {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-text);
}

.button-primary:hover {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
}

.button-secondary {
    border-color: var(--ink);
    background: transparent;
    color: var(--ink);
}

.button-secondary:hover {
    background: var(--ink);
    color: var(--page);
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    height: var(--header-height);
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    backdrop-filter: blur(18px);
}

.header-inner {
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    display: inline-flex;
    width: 62px;
    height: 58px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: transparent;
    overflow: hidden;
}

.brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 27px;
    margin-left: auto;
}

.desktop-nav a,
.header-phone {
    position: relative;
    padding: 8px 0;
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.desktop-nav a::after,
.header-phone::after {
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 2px;
    background: var(--accent);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.header-phone:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-cta {
    min-height: 44px;
    padding-inline: 18px;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    padding: 9px;
}

.menu-toggle span {
    display: block;
    width: 23px;
    height: 2px;
    margin: 5px auto;
    background: currentcolor;
    transition: transform 180ms ease, opacity 180ms ease;
}

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

.site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

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

.mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
    background: var(--page);
}

.mobile-menu.open {
    display: block;
}

.mobile-menu nav {
    padding-top: 14px;
    padding-bottom: 24px;
}

.mobile-menu a:not(.button) {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 750;
}

.mobile-menu .button {
    width: 100%;
    margin-top: 18px;
}

.hero {
    position: relative;
    min-height: calc(100dvh - var(--header-height));
    display: flex;
    align-items: center;
    padding: clamp(34px, 5vh, 58px) 0;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.hero::before {
    content: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    align-items: center;
    gap: clamp(42px, 6vw, 88px);
}

.hero-copy {
    max-width: 590px;
}

.hero-eyebrow {
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 11ch;
    font-size: clamp(3.9rem, 5.6vw, 5.9rem);
    line-height: 0.9;
}

.hero-copy > p:not(.hero-eyebrow) {
    max-width: 510px;
    margin: 25px 0 29px;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.55;
}

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

.hero-visual {
    position: relative;
    margin: 0;
}

.hero-visual::before {
    content: none;
}

.hero-visual img {
    width: 100%;
    height: clamp(430px, 55vh, 590px);
    border-radius: var(--radius);
    object-fit: cover;
    object-position: center;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.proof-strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

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

.proof-grid p {
    min-height: 110px;
    display: grid;
    align-content: center;
    gap: 2px;
    margin: 0;
    padding: 22px 34px;
    border-left: 1px solid var(--line);
}

.proof-grid p:first-child {
    border-left: 0;
    padding-left: 0;
}

.proof-grid strong {
    color: var(--ink);
    font-size: 0.88rem;
}

.proof-grid span {
    color: var(--muted);
    font-size: 0.78rem;
}

.services-section,
.work-section,
.area-section,
.contact-section {
    padding: clamp(84px, 10vw, 140px) 0;
}

.section-intro {
    max-width: 760px;
    margin-bottom: 54px;
}

.section-intro h2,
.work-heading h2,
.area-copy h2,
.contact-copy h2,
.emergency-layout h2 {
    font-size: clamp(3.2rem, 5.2vw, 5.4rem);
    line-height: 0.9;
}

.section-intro p,
.work-heading > p,
.area-copy > p,
.contact-copy > p {
    max-width: 650px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 1rem;
}

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

.service-card {
    position: relative;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}

.service-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.service-card-home {
    grid-column: span 6;
}

.service-card-commercial {
    grid-column: span 6;
}

.service-card-kitchen {
    grid-column: span 6;
    min-height: 440px;
    background: var(--surface);
}

.service-card-kitchen::before {
    content: none;
}

.service-card-install {
    grid-column: span 6;
    min-height: 360px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
}

.service-card-install img {
    height: 300px;
    min-height: 0;
}

.service-card-copy {
    position: relative;
    z-index: 1;
    padding: 30px;
}

.service-card-copy > p {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
}

.service-card h3 {
    max-width: 13ch;
    font-size: clamp(2.3rem, 3.7vw, 3.65rem);
    line-height: 0.92;
}

.service-card-copy > span {
    display: block;
    max-width: 540px;
    margin-top: 17px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.work-section {
    border-top: 1px solid var(--line);
    background: var(--surface-muted);
}

.work-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(54px, 8vw, 110px);
    align-items: start;
}

.work-heading {
    position: sticky;
    top: calc(var(--header-height) + 44px);
}

.work-flow {
    display: grid;
}

.work-flow article {
    display: grid;
    grid-template-columns: minmax(190px, 0.75fr) minmax(0, 1.25fr);
    gap: 26px;
    align-items: baseline;
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
}

.work-flow article:first-child {
    padding-top: 0;
}

.work-flow article:last-child {
    border-bottom: 0;
}

.work-flow h3 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.95;
}

.work-flow p {
    margin: 0;
    color: var(--ink-soft);
}

.emergency-section {
    padding: 64px 0;
    border-top: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
    background: var(--surface-red);
}

.emergency-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px;
    align-items: center;
}

.emergency-layout h2 {
    color: var(--ink-strong);
}

.emergency-layout p {
    max-width: 610px;
    margin: 16px 0 0;
    color: var(--ink-soft);
}

.emergency-layout > a {
    color: var(--accent);
    font-family: "Barlow Condensed", Impact, sans-serif;
    font-size: clamp(2.8rem, 5vw, 5.6rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.03em;
    white-space: nowrap;
    transition: color 180ms ease, transform 180ms ease;
}

.emergency-layout > a:hover {
    color: var(--accent-hover);
    transform: translateY(-2px);
}

.area-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
    gap: clamp(44px, 7vw, 90px);
    align-items: center;
}

.area-copy h2 {
    max-width: 11ch;
}

.area-scope {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 28px;
    margin-top: 38px;
}

.area-scope article {
    min-height: 116px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--surface-muted);
}

.area-scope article:first-child {
    grid-column: 1 / -1;
    background: var(--surface-blue);
}

.area-scope strong {
    color: var(--ink);
}

.area-scope span {
    color: var(--muted);
    font-size: 0.82rem;
}

.area-photo {
    position: relative;
    margin: 0;
}

.area-photo::after {
    position: absolute;
    z-index: -1;
    inset: 22px 22px -20px -20px;
    border-radius: var(--radius);
    background: var(--surface-blue);
    content: "";
}

.area-photo img {
    width: 100%;
    height: min(670px, 72vh);
    border-radius: var(--radius);
    object-fit: cover;
    object-position: center;
    box-shadow: var(--shadow);
}

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

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(56px, 8vw, 112px);
    align-items: start;
}

.contact-copy {
    position: sticky;
    top: calc(var(--header-height) + 44px);
}

.contact-links {
    display: grid;
    gap: 10px;
    margin-top: 34px;
}

.contact-links a {
    width: fit-content;
    border-bottom: 2px solid transparent;
    color: var(--ink);
    font-weight: 800;
    overflow-wrap: anywhere;
    transition: border-color 180ms ease, color 180ms ease;
}

.contact-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.contact-logo {
    width: 190px;
    height: 190px;
    margin-top: 45px;
    border-radius: var(--radius);
    background: var(--logo-surface);
    object-fit: contain;
}

.estimate-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--page);
    box-shadow: var(--shadow);
}

.form-field {
    min-width: 0;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    padding: 13px 14px;
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.form-field textarea {
    min-height: 142px;
    resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--muted);
    opacity: 1;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--focus);
    outline: 0;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent);
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"] {
    border-color: var(--error);
}

.form-help,
.field-error {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.72rem;
}

.field-error {
    min-height: 1.1em;
    color: var(--error);
}

.form-submit {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 18px;
}

.form-submit .button {
    min-width: 152px;
}

.form-submit .button:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.form-status {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.form-status.is-success {
    color: var(--success);
}

.form-status.is-error {
    color: var(--error);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--page);
}

.footer-main {
    min-height: 190px;
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    gap: 34px;
    align-items: center;
    padding-top: 34px;
    padding-bottom: 34px;
}

.footer-brand {
    display: block;
    width: 108px;
    height: 108px;
    border-radius: var(--radius);
    background: var(--logo-surface);
}

.footer-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-main > p {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
}

.footer-main nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 20px;
}

.footer-main nav a,
.footer-bottom a {
    font-size: 0.78rem;
    font-weight: 800;
}

.footer-main nav a:hover,
.footer-bottom a:hover {
    color: var(--accent);
}

.footer-bottom {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.72rem;
}

.has-js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 650ms cubic-bezier(0.16, 1, 0.3, 1), transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .hero-copy {
        animation: hero-enter 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .hero-visual {
        animation: hero-enter 760ms 80ms cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    @keyframes hero-enter {
        from {
            opacity: 0;
            transform: translateY(22px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 1100px) {
    .desktop-nav,
    .header-phone,
    .header-cta {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .menu-toggle {
        display: block;
    }

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

    .service-card-install img {
        height: 280px;
        min-height: 0;
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: auto;
        padding: 62px 0 74px;
    }

    .hero-grid,
    .work-layout,
    .area-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 54px;
    }

    .hero-copy {
        max-width: 720px;
    }

    .hero h1 {
        max-width: 11ch;
    }

    .hero-visual img {
        height: min(560px, 68vw);
    }

    .service-card-home,
    .service-card-commercial,
    .service-card-kitchen,
    .service-card-install {
        grid-column: 1 / -1;
    }

    .service-card-home,
    .service-card-commercial {
        display: grid;
        grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
        align-items: stretch;
    }

    .service-card-home picture,
    .service-card-home img,
    .service-card-commercial img {
        height: 100%;
        min-height: 390px;
    }

    .work-heading,
    .contact-copy {
        position: static;
    }

    .emergency-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .area-photo img {
        height: min(650px, 84vw);
    }

    .contact-layout {
        gap: 56px;
    }

    .contact-logo {
        width: 150px;
        height: 150px;
    }

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

    .footer-main nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .shell {
        width: min(100% - 36px, var(--shell));
    }

    .brand {
        width: 56px;
        height: 54px;
    }

    .brand img {
        width: 52px;
        height: 52px;
    }

    .hero {
        padding-top: 46px;
    }

    .hero::before {
        width: 420px;
        height: 420px;
        border-width: 72px;
    }

    .hero h1 {
        font-size: clamp(3.45rem, 16vw, 5.25rem);
        line-height: 0.88;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-visual::before {
        inset: 14px -10px -12px 14px;
    }

    .hero-visual img {
        height: 68vw;
        min-height: 290px;
        max-height: 460px;
    }

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

    .proof-grid p,
    .proof-grid p:first-child {
        min-height: 88px;
        padding: 18px 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .proof-grid p:first-child {
        border-top: 0;
    }

    .services-section,
    .work-section,
    .area-section,
    .contact-section {
        padding: 82px 0;
    }

    .section-intro {
        margin-bottom: 38px;
    }

    .section-intro h2,
    .work-heading h2,
    .area-copy h2,
    .contact-copy h2,
    .emergency-layout h2 {
        font-size: clamp(3rem, 14vw, 4.4rem);
    }

    .service-grid {
        display: block;
    }

    .service-card,
    .service-card-home,
    .service-card-commercial,
    .service-card-install {
        min-height: 0;
        display: flex;
        margin-bottom: 18px;
    }

    .service-card:last-child {
        margin-bottom: 0;
    }

    .service-card-home picture,
    .service-card-home img,
    .service-card-commercial img,
    .service-card-install img,
    .service-card img {
        width: 100%;
        height: 260px;
        min-height: 0;
    }

    .service-card-kitchen {
        min-height: 340px;
    }

    .service-card-copy {
        padding: 25px;
    }

    .service-card h3 {
        font-size: 2.75rem;
    }

    .work-layout {
        gap: 45px;
    }

    .work-flow article {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 28px 0;
    }

    .emergency-section {
        padding: 50px 0;
    }

    .emergency-layout > a {
        font-size: clamp(2.65rem, 14vw, 4.2rem);
        white-space: normal;
    }

    .area-scope {
        grid-template-columns: 1fr;
    }

    .area-scope article:first-child {
        grid-column: auto;
    }

    .area-photo img {
        height: 118vw;
        max-height: 610px;
    }

    .contact-logo {
        display: none;
    }

    .estimate-form {
        grid-template-columns: 1fr;
        padding: 24px 18px;
    }

    .form-field-wide,
    .form-submit {
        grid-column: auto;
    }

    .form-submit {
        align-items: stretch;
        flex-direction: column;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-brand {
        width: 88px;
        height: 88px;
    }

    .footer-main nav {
        grid-column: auto;
        justify-content: flex-start;
    }

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .has-js .reveal {
        opacity: 1;
        transform: none;
    }
}
