:root {
    --enamel: #0d2438;
    --enamel-deep: #081929;
    --ink: #14202b;
    --slate: #52606c;
    --plaster: #f3f6f8;
    --paper: #ffffff;
    --copper: #c4621a;
    --copper-dark: #8f4312;
    --copper-soft: #f6e4d4;
    --line: #d3dce3;
    --focus: #0b5cab;
    --display: "Fraunces", "Iowan Old Style", Georgia, serif;
    --body: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--plaster);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.125rem;
    line-height: 1.55;
}

a {
    color: inherit;
}

a:focus-visible,
.call-button:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    background: var(--enamel);
    color: var(--paper);
    padding: 0.5rem 0.75rem;
    z-index: 20;
}

.skip-link:focus {
    top: 1rem;
}

.wrap {
    width: min(72rem, calc(100% - 2rem));
    margin-inline: auto;
}

.masthead {
    position: sticky;
    top: 0;
    z-index: 8;
    background: rgba(13, 36, 56, 0.96);
    color: var(--paper);
    backdrop-filter: blur(8px);
}

.masthead__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 4.25rem;
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(0.92rem, 2.4vw, 1.05rem);
    font-weight: 680;
    white-space: nowrap;
}

.wordmark__mark {
    width: 0.85rem;
    height: 0.85rem;
    border: 3px solid #d28a4d;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px var(--enamel);
    background: #8f4312;
}

.masthead__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    background: #16344d;
    color: #f6e4d4;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid #2a536e;
}

.masthead__phone:hover {
    background: #1c415e;
}

.hero {
    position: relative;
    padding: 4.75rem 0 4.25rem;
    background:
        radial-gradient(circle at 88% 18%, rgba(196, 98, 26, 0.14), transparent 28%),
        linear-gradient(180deg, #eef4f7 0%, var(--plaster) 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(20, 32, 43, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 32, 43, 0.045) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, #000 40%, transparent);
    pointer-events: none;
}

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
    gap: 3.25rem;
    align-items: center;
}

.hero__copy h1 {
    margin: 0 0 1.2rem;
    font-family: var(--display);
    font-size: clamp(2.35rem, 5vw, 3.85rem);
    font-weight: 680;
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 13ch;
}

.lede {
    margin: 0 0 1.8rem;
    max-width: 36ch;
    color: var(--slate);
    font-size: 1.2rem;
}

.call-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 3.4rem;
    padding: 0.9rem 1.3rem;
    background: var(--copper);
    color: var(--paper);
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    box-shadow: 0 10px 24px rgba(143, 67, 18, 0.22);
}

.call-button__icon {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

.call-button:hover {
    background: var(--copper-dark);
}

.call-button--light {
    background: var(--paper);
    color: var(--enamel);
    box-shadow: none;
}

.call-button--light:hover {
    background: var(--copper-soft);
}

.plate {
    position: relative;
    overflow: hidden;
    background: var(--enamel);
    color: var(--paper);
    padding: 1.6rem 1.55rem 1.55rem;
    border-radius: 6px;
    box-shadow: 18px 18px 0 rgba(196, 98, 26, 0.18);
}

.plate::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 7px;
    background: linear-gradient(90deg, #d28a4d, #8f4312 55%, #c4621a);
}

.plate__pipes {
    display: block;
    width: min(100%, 14rem);
    height: auto;
    margin: 0.55rem 0 1.15rem;
}

.plate__label {
    margin: 0 0 0.45rem;
    color: #f3d3bc;
    font-size: 1rem;
}

.plate__number {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.85rem, 3.2vw, 2.45rem);
    font-weight: 680;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.plate__number a {
    text-decoration: none;
}

.plate__number a:hover {
    text-decoration: underline;
}

.plate__note {
    margin: 0.85rem 0 0;
    color: #d5dee6;
    font-size: 1rem;
    max-width: 28ch;
}

.steps {
    padding: 0 0 4.25rem;
}

.steps h2,
.services h2 {
    margin: 0 0 0.7rem;
    font-family: var(--display);
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 680;
    letter-spacing: -0.02em;
    max-width: 20ch;
}

.steps__intro {
    margin: 0 0 1.75rem;
    max-width: 46ch;
    color: var(--slate);
}

.steps__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.steps__list li {
    position: relative;
    padding: 0 0.4rem 0 0;
}

.steps__list li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.15rem;
    left: 3.1rem;
    right: -1rem;
    height: 2px;
    background: linear-gradient(90deg, #d28a4d, transparent);
}

.steps__num {
    display: inline-flex;
    width: 2.15rem;
    height: 2.15rem;
    margin-bottom: 0.85rem;
    align-items: center;
    justify-content: center;
    background: var(--enamel);
    color: var(--paper);
    font-family: var(--display);
    font-weight: 680;
}

.steps__list h3 {
    margin: 0 0 0.4rem;
    font-family: var(--display);
    font-size: 1.45rem;
    font-weight: 680;
}

.steps__list p {
    margin: 0;
    color: var(--slate);
    max-width: 28ch;
}

.availability {
    margin: 0;
    max-width: 62ch;
    color: var(--slate);
    font-size: 1rem;
}

.services {
    padding: 0 0 4.5rem;
}

.services__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem 1.75rem;
    margin: 1.4rem 0 0;
    padding: 1.35rem 0 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.services__list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: start;
}

.services__icon {
    display: inline-flex;
    width: 2.7rem;
    height: 2.7rem;
    align-items: center;
    justify-content: center;
    color: var(--copper-dark);
    background: var(--copper-soft);
}

.services__icon svg {
    width: 1.45rem;
    height: 1.45rem;
}

.services__list h3 {
    margin: 0 0 0.2rem;
    font-size: 1.12rem;
    font-weight: 700;
}

.services__list p {
    margin: 0;
    color: var(--slate);
    font-size: 1rem;
}

.close {
    position: relative;
    background:
        radial-gradient(circle at 88% 0%, rgba(196, 98, 26, 0.18), transparent 32%),
        linear-gradient(165deg, #16344d 0%, var(--enamel-deep) 72%);
    color: var(--paper);
    padding: 4rem 0 3.75rem;
}

.close::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 7px;
    background: linear-gradient(90deg, #d28a4d, #8f4312 55%, #c4621a);
}

.close__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.8fr);
    gap: 3rem;
    align-items: center;
}

.close__copy h2 {
    margin: 0 0 0.75rem;
    font-family: var(--display);
    font-size: clamp(1.85rem, 3.2vw, 2.55rem);
    font-weight: 680;
    letter-spacing: -0.03em;
    line-height: 1.12;
    max-width: 16ch;
}

.close__copy p {
    margin: 0;
    color: #d5dee6;
    max-width: 34ch;
}

.close__phone {
    padding: 1.5rem 1.4rem 1.45rem;
    background: rgba(8, 25, 41, 0.45);
    border: 1px solid #2a536e;
}

.close__label {
    margin: 0 0 0.4rem;
    color: #f3d3bc;
}

.close__number {
    display: block;
    margin: 0 0 1.15rem;
    font-family: var(--display);
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 680;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--paper);
    text-decoration: none;
}

.close__number:hover {
    text-decoration: underline;
}

.close__phone .call-button {
    width: 100%;
}

.footer {
    padding: 2rem 0 6.5rem;
    background: #e8eef2;
}

.notice {
    padding: 1.25rem 1.3rem 1.2rem;
    background: var(--paper);
    border-left: 5px solid var(--copper);
}

.disclaimer {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #33404a;
}

.footer__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.15rem;
}

.footer__name,
.footer__phone {
    margin: 0;
    color: var(--slate);
    font-size: 0.98rem;
}

.footer__phone {
    color: var(--copper-dark);
    font-weight: 700;
    text-decoration: none;
}

.footer__phone:hover {
    text-decoration: underline;
}

.dock {
    display: none;
}

@media (max-width: 860px) {
    .hero {
        padding: 2.6rem 0 2.4rem;
    }

    .hero__grid,
    .close__grid,
    .steps__list,
    .services__list,
    .footer__bar {
        display: block;
    }

    .hero__copy h1 {
        max-width: none;
    }

    .plate {
        display: none;
    }

    .masthead__inner {
        min-height: 3.6rem;
    }

    .masthead__phone {
        display: none;
    }

    .hero__copy .call-button {
        width: 100%;
    }

    .steps__list li:not(:last-child) {
        margin-bottom: 1.4rem;
        padding-bottom: 1.4rem;
        border-bottom: 1px solid var(--line);
    }

    .steps__list li:not(:last-child)::after {
        display: none;
    }

    .services__list li + li {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--line);
    }

    .close {
        padding: 2.6rem 0 2.4rem;
    }

    .close__copy h2 {
        max-width: none;
    }

    .close__phone {
        margin-top: 1.5rem;
    }

    .footer__phone {
        display: inline-block;
        margin-top: 0.45rem;
    }

    .masthead__phone span,
    .masthead__phone {
        white-space: nowrap;
    }

    .dock {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9;
        padding: 0.75rem 0.85rem calc(0.75rem + env(safe-area-inset-bottom));
        background: rgba(13, 36, 56, 0.96);
        box-shadow: 0 -8px 24px rgba(8, 25, 41, 0.18);
    }

    .call-button--dock {
        width: 100%;
        box-shadow: none;
    }
}

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