/* Terra Firma LLC - main stylesheet */

:root {
    --c-ink: #1f1b17;
    --c-text: #3a332c;
    --c-muted: #5e554c;
    --c-cream: #f8f4ec;
    --c-sand: #efe8dc;
    --c-line: #ddd3c4;
    --c-white: #ffffff;
    --c-dark: #26211c;
    --c-dark-2: #1b1714;
    --c-dark-text: #cfc6ba;
    --c-amber: #9a5410;
    --c-amber-hover: #7f440c;
    --c-amber-light: #e0a45c;

    --f-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    --f-body: "Barlow", Arial, Helvetica, sans-serif;

    --container: 1240px;
    --gutter: clamp(18px, 4vw, 40px);
    --topbar-h: 38px;
    --header-h: 92px;
    --section-y: clamp(64px, 8vw, 110px);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
    max-width: 100%;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    max-width: 100%;
    overflow-x: clip;
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--c-amber);
    text-decoration: none;
}

p {
    margin: 0 0 1em;
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 .5em;
    font-family: var(--f-head);
    font-weight: 700;
    line-height: 1.08;
    color: var(--c-ink);
    letter-spacing: .01em;
    overflow-wrap: break-word;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--c-amber-light);
    outline-offset: 3px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--c-ink);
    color: var(--c-white);
}

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

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 0;
    font-family: var(--f-head);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.btn--primary {
    background: var(--c-amber);
    border-color: var(--c-amber);
    color: var(--c-white);
}

.btn--dark {
    background: var(--c-dark);
    border-color: var(--c-dark);
    color: var(--c-white);
}

.btn--light-outline {
    background: rgba(0, 0, 0, .15);
    border-color: var(--c-white);
    color: var(--c-white);
}

.btn--outline {
    background: transparent;
    border-color: var(--c-ink);
    color: var(--c-ink);
}

.btn--large {
    min-height: 56px;
    padding: 14px 30px;
    font-size: 19px;
}

.btn--block {
    width: 100%;
}

@media (hover: hover) and (pointer: fine) {
    .btn--primary:hover {
        background: var(--c-amber-hover);
        border-color: var(--c-amber-hover);
    }

    .btn--dark:hover {
        background: var(--c-dark-2);
    }

    .btn--light-outline:hover {
        background: var(--c-white);
        color: var(--c-ink);
    }

    .btn--outline:hover {
        background: var(--c-ink);
        color: var(--c-white);
    }
}

/* ---------- Top bar ---------- */

.topbar {
    background: var(--c-dark);
    color: var(--c-dark-text);
    font-size: 14px;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--topbar-h);
}

.topbar__note {
    margin: 0;
}

.topbar__links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.topbar__links a {
    color: var(--c-white);
    font-weight: 500;
}

.topbar__phone {
    font-weight: 600;
    letter-spacing: .02em;
}

@media (hover: hover) and (pointer: fine) {
    .topbar__links a:hover {
        color: var(--c-amber-light);
    }
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--c-cream);
    border-bottom: 1px solid var(--c-line);
    transition: box-shadow .25s var(--ease);
}

.site-header.is-stuck {
    box-shadow: 0 6px 24px rgba(31, 27, 23, .12);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: var(--header-h);
}

.site-logo {
    flex: 0 0 auto;
    display: block;
}

.site-logo img {
    width: auto;
    height: 64px;
}

.main-nav {
    margin-left: auto;
}

.main-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav__item {
    position: relative;
}

.main-nav__link {
    display: block;
    padding: 30px 14px;
    font-family: var(--f-head);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--c-ink);
}

.main-nav__link.is-current {
    color: var(--c-amber);
}

.has-dropdown > .main-nav__link::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-4px) rotate(45deg);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    padding: 10px 0;
    background: var(--c-white);
    border-top: 3px solid var(--c-amber);
    box-shadow: 0 16px 36px rgba(31, 27, 23, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}

.dropdown a {
    display: block;
    padding: 10px 22px;
    color: var(--c-text);
    font-weight: 500;
}

.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

@media (hover: hover) and (pointer: fine) {
    .has-dropdown:hover .dropdown {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .main-nav__link:hover,
    .dropdown a:hover {
        color: var(--c-amber);
    }

    .dropdown a:hover {
        background: var(--c-cream);
    }
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.header-phone {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    color: var(--c-ink);
}

.header-phone__label {
    font-size: 13px;
    color: var(--c-muted);
}

.header-phone__number {
    font-family: var(--f-head);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

.site-header__actions .btn {
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding: 10px 12px;
    background: transparent;
    border: 2px solid var(--c-ink);
    color: var(--c-ink);
    cursor: pointer;
}

.menu-toggle__text {
    font-family: var(--f-head);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.menu-toggle__bars {
    display: grid;
    gap: 4px;
    width: 22px;
}

.menu-toggle__bars span {
    display: block;
    height: 2px;
    background: currentColor;
}

/* Mobile menu */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(27, 23, 20, .55);
}

.mobile-menu[hidden] {
    display: none;
}

.mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(420px, 100%);
    padding: 18px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: var(--c-cream);
}

.mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--c-line);
}

.site-logo--small img {
    height: 44px;
}

.mobile-menu__close {
    position: relative;
    width: 48px;
    height: 48px;
    background: transparent;
    border: 2px solid var(--c-ink);
    cursor: pointer;
}

.mobile-menu__x::before,
.mobile-menu__x::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 2px;
    background: var(--c-ink);
}

.mobile-menu__x::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu__x::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu__list {
    padding: 10px 0 18px;
}

.mobile-menu__list > li > a {
    display: block;
    padding: 13px 0;
    font-family: var(--f-head);
    font-size: 23px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--c-ink);
}

.mobile-menu__sub {
    padding: 0 0 8px 14px;
    border-left: 2px solid var(--c-line);
}

.mobile-menu__sub a {
    display: block;
    padding: 9px 0;
    font-size: 17px;
    color: var(--c-text);
}

.mobile-menu__actions {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

body.menu-open {
    overflow: hidden;
}

/* ---------- Hero slider ---------- */

.hero {
    position: relative;
    height: clamp(520px, calc(100svh - var(--topbar-h) - var(--header-h)), 780px);
    overflow: hidden;
    background: var(--c-dark);
    color: var(--c-white);
}

.hero__slides,
.hero__slide {
    position: absolute;
    inset: 0;
}

.hero__slide {
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.1s var(--ease), visibility 1.1s;
}

.hero__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero__media,
.hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero__media img {
    object-fit: cover;
    object-position: center 55%;
    transform: scale(1.08);
    transition: transform 7s linear;
}

.hero__slide.is-active .hero__media img {
    transform: scale(1);
}

.hero__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(20, 16, 12, .25) 0%, rgba(20, 16, 12, .1) 35%, rgba(20, 16, 12, .55) 100%),
        radial-gradient(ellipse at center, rgba(20, 16, 12, .45) 0%, rgba(20, 16, 12, .15) 70%);
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero__title {
    max-width: 1120px;
    margin: 0 auto 14px;
    font-size: clamp(40px, 5.4vw, 76px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: .015em;
    text-transform: uppercase;
    color: var(--c-white);
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.hero__text {
    max-width: 640px;
    margin: 0 auto 30px;
    font-size: clamp(18px, 1.6vw, 21px);
    font-weight: 500;
    line-height: 1.5;
    color: var(--c-white);
    text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.hero__slide .hero__title,
.hero__slide .hero__text,
.hero__slide .hero__actions {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.hero__slide.is-active .hero__title {
    opacity: 1;
    transform: none;
    transition-delay: .35s;
}

.hero__slide.is-active .hero__text {
    opacity: 1;
    transform: none;
    transition-delay: .55s;
}

.hero__slide.is-active .hero__actions {
    opacity: 1;
    transform: none;
    transition-delay: .75s;
}

.hero__controls {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 18px;
    transform: translateX(-50%);
}

.hero__arrow {
    position: relative;
    width: 44px;
    height: 44px;
    background: rgba(20, 16, 12, .45);
    border: 1px solid rgba(255, 255, 255, .6);
    cursor: pointer;
}

.hero__arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 11px;
    border-top: 2px solid var(--c-white);
    border-left: 2px solid var(--c-white);
}

.hero__arrow--prev::before {
    transform: translate(-30%, -50%) rotate(-45deg);
}

.hero__arrow--next::before {
    transform: translate(-70%, -50%) rotate(135deg);
}

.hero__dots {
    display: flex;
    gap: 10px;
}

.hero__dot {
    width: 34px;
    height: 4px;
    padding: 0;
    background: rgba(255, 255, 255, .45);
    border: 0;
    cursor: pointer;
}

.hero__dot.is-active {
    background: var(--c-amber-light);
}

@media (hover: hover) and (pointer: fine) {
    .hero__arrow:hover {
        background: var(--c-amber);
        border-color: var(--c-amber);
    }
}

/* ---------- Sections (shared) ---------- */

.section {
    padding-block: var(--section-y);
}

.section--sand {
    background: var(--c-sand);
}

.section--dark {
    background: var(--c-dark);
    color: var(--c-dark-text);
}

.section-title {
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.02;
    text-transform: uppercase;
    letter-spacing: .015em;
}

.section-title--light {
    color: var(--c-white);
}

.section-head {
    margin-bottom: clamp(32px, 4vw, 48px);
}

.section-head--center {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
}

.section-head--center p {
    font-size: 18px;
    color: var(--c-muted);
}

.section-head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.section-head--split .section-title {
    margin: 0;
}

.section-foot {
    margin-top: 44px;
    text-align: center;
}

.lead {
    font-size: 19px;
    line-height: 1.6;
    color: var(--c-ink);
}

.text-link {
    font-family: var(--f-head);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--c-amber);
    border-bottom: 2px solid currentColor;
    padding-bottom: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .text-link:hover {
        color: var(--c-amber-hover);
    }
}

/* Reveal on scroll */

.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}

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

/* ---------- Intro ---------- */

.intro {
    background: var(--c-cream);
}

.intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}

.intro__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 28px;
    margin-top: 30px;
}

.framed-photo {
    position: relative;
    margin: 0 22px 22px 0;
}

.framed-photo::before {
    content: "";
    position: absolute;
    inset: 22px -22px -22px 22px;
    border: 3px solid var(--c-amber);
    z-index: 0;
}

.framed-photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 5 / 6;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(31, 27, 23, .18);
}

.framed-photo--wide img {
    aspect-ratio: 3 / 2;
}

.intro__grid--flip {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.section--cream {
    background: var(--c-cream);
}

.booking__flyer {
    display: block;
    margin-top: 22px;
    border: 1px solid rgba(255, 255, 255, .16);
}

/* ---------- Service tiles ---------- */

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

.service-tile {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3.4;
    background: var(--c-dark);
    color: var(--c-white);
}

.service-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
}

.service-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 16, 12, .05) 20%, rgba(20, 16, 12, .6) 55%, rgba(20, 16, 12, .92) 100%);
}

.service-tile__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: block;
    padding: 24px 26px;
}

.service-tile__title {
    display: block;
    margin-bottom: 6px;
    font-family: var(--f-head);
    font-size: 27px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--c-white);
}

.service-tile__text {
    display: block;
    margin-bottom: 12px;
    font-size: 15.5px;
    line-height: 1.45;
    color: #eee7dd;
}

.service-tile__more {
    display: inline-block;
    font-family: var(--f-head);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-amber-light);
    border-bottom: 2px solid var(--c-amber-light);
}

@media (hover: hover) and (pointer: fine) {
    .service-tile:hover img {
        transform: scale(1.06);
    }
}

/* ---------- Featured project / before-after ---------- */

.featured__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(36px, 5vw, 70px);
    align-items: center;
}

.compare {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: var(--c-dark);
    user-select: none;
    touch-action: pan-y;
}

.compare__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.compare__before {
    position: absolute;
    inset: 0;
    clip-path: inset(0 50% 0 0);
}

.compare__label {
    position: absolute;
    top: 16px;
    z-index: 3;
    padding: 6px 12px;
    background: rgba(20, 16, 12, .72);
    font-family: var(--f-head);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-white);
    pointer-events: none;
}

.compare__label--before {
    left: 16px;
}

.compare__label--after {
    right: 16px;
}

.compare__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 4;
    width: 3px;
    margin-left: -1.5px;
    background: var(--c-white);
    pointer-events: none;
}

.compare__handle span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: var(--c-amber);
    border: 3px solid var(--c-white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
}

.compare__handle span::before,
.compare__handle span::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--c-white);
    border-left: 2px solid var(--c-white);
}

.compare__handle span::before {
    left: 9px;
    transform: translateY(-50%) rotate(-45deg);
}

.compare__handle span::after {
    right: 9px;
    transform: translateY(-50%) rotate(135deg);
}

.compare__range {
    position: absolute;
    inset: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
}

.compare:focus-within .compare__handle span {
    outline: 3px solid var(--c-amber-light);
    outline-offset: 2px;
}

.featured__facts {
    margin: 22px 0 30px;
    border-top: 1px solid var(--c-line);
}

.featured__facts li {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--c-line);
}

.featured__facts span {
    flex: 0 0 64px;
    font-family: var(--f-head);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-ink);
}

/* ---------- Process ---------- */

.process__grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(40px, 6vw, 90px);
    align-items: start;
}

.process__intro p {
    margin-bottom: 30px;
    font-size: 18px;
}

.process__steps {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.process__step {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 20px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.process__num {
    font-family: var(--f-head);
    font-size: 54px;
    font-weight: 700;
    line-height: .9;
    color: var(--c-amber-light);
}

.process__step h3 {
    margin-bottom: 8px;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--c-white);
}

.process__step p {
    margin: 0;
}

.process__step a {
    color: var(--c-white);
    font-weight: 600;
    border-bottom: 1px solid var(--c-amber-light);
}

/* ---------- Work grid ---------- */

.work-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(170px, 18vw, 250px);
    gap: 14px;
}

.work-grid__item {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--c-dark);
}

.work-grid__item--large {
    grid-column: span 2;
    grid-row: span 2;
}

.work-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
}

.work-grid__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 16px 12px;
    background: linear-gradient(180deg, rgba(20, 16, 12, 0), rgba(20, 16, 12, .82));
    font-size: 15px;
    font-weight: 500;
    color: var(--c-white);
}

@media (hover: hover) and (pointer: fine) {
    .work-grid__item:hover img {
        transform: scale(1.05);
    }
}

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 12, 10, .94);
}

.lightbox[hidden] {
    display: none;
}

.lightbox__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.lightbox__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(1200px, calc(100% - 140px));
    max-height: 100%;
    margin: 0;
}

.lightbox__figure img {
    max-width: 100%;
    max-height: calc(100vh - 130px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox__figure figcaption {
    margin-top: 16px;
    font-size: 16px;
    text-align: center;
    color: var(--c-dark-text);
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .35);
    cursor: pointer;
}

.lightbox__close {
    top: 0;
    right: 0;
}

.lightbox__close::before,
.lightbox__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 2px;
    background: var(--c-white);
}

.lightbox__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox__nav {
    top: 50%;
    margin-top: -25px;
}

.lightbox__nav--prev {
    left: 0;
}

.lightbox__nav--next {
    right: 0;
}

.lightbox__nav::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--c-white);
    border-left: 2px solid var(--c-white);
}

.lightbox__nav--prev::before {
    transform: translate(-30%, -50%) rotate(-45deg);
}

.lightbox__nav--next::before {
    transform: translate(-70%, -50%) rotate(135deg);
}

/* ---------- FAQ ---------- */

.faq__grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(36px, 6vw, 90px);
    align-items: start;
}

.faq__intro p {
    margin-bottom: 28px;
    font-size: 18px;
}

.accordion__item {
    margin-bottom: 12px;
    background: var(--c-white);
    border: 1px solid var(--c-line);
}

.accordion__heading {
    margin: 0;
    font-family: var(--f-body);
}

.accordion__button {
    position: relative;
    display: block;
    width: 100%;
    padding: 20px 60px 20px 24px;
    background: transparent;
    border: 0;
    font-family: var(--f-body);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    color: var(--c-ink);
    cursor: pointer;
}

.accordion__button::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 26px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--c-amber);
    border-bottom: 2px solid var(--c-amber);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .25s var(--ease);
}

.accordion__button[aria-expanded="true"]::after {
    transform: translateY(-30%) rotate(-135deg);
}

.accordion__panel {
    padding: 0 24px 20px;
}

.accordion__panel p {
    margin: 0;
}

/* ---------- CTA band ---------- */

.cta-band {
    position: relative;
    padding-block: clamp(80px, 9vw, 120px);
    background:
        linear-gradient(rgba(27, 23, 20, .82), rgba(27, 23, 20, .82)),
        url("../images/backgrounds/pine-ceiling-band.webp") center / cover no-repeat;
    color: var(--c-white);
    text-align: center;
}

.cta-band__title {
    font-size: clamp(36px, 4.6vw, 58px);
    text-transform: uppercase;
    color: var(--c-white);
}

.cta-band__inner > p {
    max-width: 620px;
    margin-inline: auto;
    font-size: 19px;
}

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 30px 0 26px;
}

.cta-band__phone {
    font-family: var(--f-head);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cta-band__phone a {
    margin-left: 6px;
    font-size: 34px;
    font-weight: 700;
    color: var(--c-amber-light);
}

/* ---------- Section responsive ---------- */

@media (max-width: 1024px) {
    .intro__grid,
    .featured__grid,
    .process__grid,
    .faq__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .intro {
        background: var(--c-cream);
    }

    .intro__media {
        max-width: 520px;
    }

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

    .work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: clamp(160px, 30vw, 260px);
    }
}

@media (max-width: 760px) {
    .service-tiles {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .service-tile {
        aspect-ratio: 16 / 10;
    }

    .service-tile__text {
        display: none;
    }

    .service-tile__body {
        padding: 18px 20px;
    }

    .service-tile__title {
        font-size: 25px;
    }

    .section-head--split {
        flex-direction: column;
        align-items: flex-start;
    }

    .work-grid {
        grid-auto-rows: 42vw;
        gap: 10px;
    }

    .work-grid__item--large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .work-grid__item:not(.work-grid__item--large) .work-grid__caption {
        display: none;
    }

    .process__step {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 14px;
    }

    .process__num {
        font-size: 40px;
    }

    .process__step h3 {
        font-size: 23px;
    }

    .cta-band__actions .btn {
        width: 100%;
        max-width: 360px;
    }

    .compare__label {
        top: 10px;
        font-size: 13px;
    }

    .compare__label--before {
        left: 10px;
    }

    .compare__label--after {
        right: 10px;
    }

    .lightbox {
        padding: 12px;
    }

    .lightbox__figure {
        max-width: 100%;
    }

    .lightbox__nav {
        top: auto;
        bottom: 0;
        margin-top: 0;
    }
}

/* ---------- Inner pages ---------- */

.page-banner {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(260px, 30vw, 380px);
    overflow: hidden;
    background: var(--c-dark);
    color: var(--c-white);
}

.page-banner__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 16, 12, .82) 0%, rgba(20, 16, 12, .55) 55%, rgba(20, 16, 12, .3) 100%);
}

.page-banner__inner {
    position: relative;
    z-index: 2;
    padding-block: 48px 52px;
}

.page-banner__title {
    max-width: 820px;
    margin: 0;
    font-size: clamp(40px, 5vw, 66px);
    line-height: 1;
    text-transform: uppercase;
    color: var(--c-white);
}

.page-banner__intro {
    max-width: 640px;
    margin: 14px 0 0;
    font-size: 19px;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    font-size: 15px;
}

.breadcrumbs li {
    color: var(--c-dark-text);
}

.breadcrumbs li + li::before {
    content: "/";
    margin: 0 10px;
    color: var(--c-amber-light);
}

.breadcrumbs a {
    color: var(--c-white);
}

.breadcrumbs [aria-current] {
    color: var(--c-amber-light);
}

@media (hover: hover) and (pointer: fine) {
    .breadcrumbs a:hover {
        color: var(--c-amber-light);
    }
}

.split-intro {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(30px, 5vw, 80px);
    align-items: start;
}

.split-intro .section-title {
    margin: 0;
}

/* Tick list: square markers, no icons */

.tick-list {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.tick-list li {
    position: relative;
    padding: 7px 0 7px 26px;
    border-bottom: 1px solid var(--c-line);
}

.tick-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 17px;
    width: 9px;
    height: 9px;
    background: var(--c-amber);
}

.tick-list--compact li {
    padding-block: 5px;
}

.tick-list--compact li::before {
    top: 15px;
}

.tick-list--columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
}

.tick-list--light li {
    border-color: rgba(255, 255, 255, .16);
}

.tick-list--light li::before {
    background: var(--c-amber-light);
}

/* Services overview rows */

.service-rows {
    padding-bottom: var(--section-y);
}

.service-row + .service-row {
    margin-top: clamp(50px, 7vw, 100px);
}

.service-row__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 76px);
    align-items: center;
}

.service-row--flip .service-row__media {
    order: 2;
}

.service-row__media {
    display: block;
    overflow: hidden;
}

.service-row__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .8s var(--ease);
}

.service-row__num {
    display: block;
    margin-bottom: 6px;
    font-family: var(--f-head);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--c-amber);
}

.service-row__title {
    font-size: clamp(30px, 3.2vw, 42px);
    text-transform: uppercase;
}

.service-row__title a {
    color: var(--c-ink);
}

@media (hover: hover) and (pointer: fine) {
    .service-row__media:hover img {
        transform: scale(1.04);
    }

    .service-row__title a:hover {
        color: var(--c-amber);
    }
}

/* Content + sidebar layout */

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(36px, 5vw, 70px);
    align-items: start;
}

.content-side {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: grid;
    gap: 24px;
}

.content-figure {
    margin: 30px 0;
}

.content-figure img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.content-figure figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: var(--c-muted);
}

.prose p {
    margin-bottom: 1.1em;
}

.includes,
.service-photos,
.project-compare {
    margin-top: 44px;
}

.includes__title {
    margin-bottom: 18px;
    font-size: 30px;
    text-transform: uppercase;
}

.side-nav {
    padding: 26px 26px 18px;
    background: var(--c-cream);
    border-top: 4px solid var(--c-amber);
}

.side-nav__title {
    margin-bottom: 14px;
    font-size: 23px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.side-nav li {
    border-bottom: 1px solid var(--c-line);
}

.side-nav li:last-child {
    border-bottom: 0;
}

.side-nav a {
    display: block;
    padding: 11px 0;
    font-weight: 500;
    color: var(--c-text);
}

.side-nav a.is-current {
    font-weight: 600;
    color: var(--c-amber);
}

@media (hover: hover) and (pointer: fine) {
    .side-nav a:hover {
        color: var(--c-amber);
    }
}

.contact-box {
    padding: 28px 26px;
    background: var(--c-dark);
    color: var(--c-dark-text);
}

.contact-box__title {
    margin-bottom: 10px;
    font-size: 26px;
    text-transform: uppercase;
    color: var(--c-white);
}

.contact-box__phone {
    display: block;
    margin: 4px 0 18px;
    font-family: var(--f-head);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--c-white);
}

.contact-box .btn + .btn,
.contact-box__phone + .btn--light-outline {
    margin-top: 12px;
}

.facts-box {
    padding: 26px;
    background: var(--c-cream);
    border-top: 4px solid var(--c-amber);
}

.facts-box dl {
    margin: 0;
}

.facts-box dt {
    margin-top: 14px;
    font-family: var(--f-head);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-muted);
}

.facts-box dt:first-child {
    margin-top: 0;
}

.facts-box dd {
    margin: 2px 0 0;
    font-weight: 500;
    color: var(--c-ink);
}

/* Photo grids */

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

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

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

.photo-grid--library {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.photo-grid__item {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--c-dark);
}

.photo-grid__item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .8s var(--ease);
}

.photo-grid__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 14px 10px;
    background: linear-gradient(180deg, rgba(20, 16, 12, 0), rgba(20, 16, 12, .85));
    font-size: 14px;
    font-weight: 500;
    color: var(--c-white);
}

.photo-grid__item[hidden],
.project-card[hidden] {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .photo-grid__item:hover img {
        transform: scale(1.05);
    }
}

/* Related project link */

.project-link {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    margin-top: 44px;
    background: var(--c-cream);
    color: var(--c-text);
}

.project-link img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.project-link__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 26px;
}

.project-link__label,
.project-card__type {
    font-family: var(--f-head);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--c-muted);
}

.project-link__title,
.project-card__title {
    display: block;
    margin: 4px 0 10px;
    font-family: var(--f-head);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--c-ink);
}

.project-link__more,
.project-card__more {
    align-self: flex-start;
    font-family: var(--f-head);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-amber);
    border-bottom: 2px solid currentColor;
}

/* Filters */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filters__btn {
    min-height: 42px;
    padding: 8px 16px;
    background: transparent;
    border: 2px solid var(--c-line);
    font-family: var(--f-head);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-ink);
    cursor: pointer;
}

.filters__btn.is-active {
    background: var(--c-ink);
    border-color: var(--c-ink);
    color: var(--c-white);
}

@media (hover: hover) and (pointer: fine) {
    .filters__btn:not(.is-active):hover {
        border-color: var(--c-ink);
    }
}

.section-head__text {
    text-wrap: pretty;
    margin: 10px 0 0;
    color: var(--c-muted);
}

/* Project cards */

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

.project-cards--single {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 30px;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: var(--c-white);
    border: 1px solid var(--c-line);
    color: var(--c-text);
}

.project-card__media {
    display: block;
    overflow: hidden;
}

.project-card__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .8s var(--ease);
}

.project-card__body {
    display: flex;
    flex-direction: column;
    padding: 24px 26px 28px;
}

.project-card__text {
    display: block;
    margin-bottom: 16px;
}

.project-card--wide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.project-card--wide .project-card__body {
    justify-content: center;
    padding: 30px 40px;
}

.project-card--wide .project-card__media img {
    height: 100%;
}

@media (hover: hover) and (pointer: fine) {
    .project-card:hover .project-card__media img {
        transform: scale(1.04);
    }
}

/* Project gallery */

.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.project-gallery__item {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--c-dark);
}

.project-gallery__item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform .8s var(--ease);
}

.project-gallery__item.is-wide img {
    aspect-ratio: 3 / 1;
}

@media (min-width: 1025px) {
    .section-head--split .filters {
        flex-shrink: 0;
    }
}

.project-gallery--tall .project-gallery__item img {
    aspect-ratio: 4 / 5;
}

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

.plan-pair__item {
    margin: 0;
    min-width: 0;
}

.plan-pair__item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.plan-pair__item figcaption {
    margin-top: 8px;
    font-size: 15px;
}

.photo-grid__item.is-wide img {
    aspect-ratio: 8 / 3;
}

.project-cards.is-single,
.photo-grid.is-single {
    max-width: 640px;
}

.is-wide {
    grid-column: span 2;
}

@media (hover: hover) and (pointer: fine) {
    .project-gallery__item:hover img {
        transform: scale(1.04);
    }
}

.project-gallery__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 16px 12px;
    background: linear-gradient(180deg, rgba(20, 16, 12, 0), rgba(20, 16, 12, .85));
    font-size: 15px;
    font-weight: 500;
    color: var(--c-white);
}

/* About: points and trades */

.points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 60px;
    margin-top: 30px;
    border-top: 1px solid var(--c-line);
}

.points__item {
    padding: 26px 0;
    border-bottom: 1px solid var(--c-line);
}

.points__item h3 {
    margin-bottom: 6px;
    font-size: 25px;
    text-transform: uppercase;
}

.points__item p {
    margin: 0;
}

.trades {
    padding-block: clamp(56px, 7vw, 90px);
}

.trades__inner {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
    gap: 40px;
    align-items: center;
}

.trades__title {
    margin: 0;
    font-size: clamp(34px, 4vw, 50px);
    text-transform: uppercase;
}

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

.trades__list li {
    border-bottom: 1px solid var(--c-line);
}

.trades__list a {
    display: block;
    padding: 14px 0;
    font-family: var(--f-head);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--c-ink);
}

@media (hover: hover) and (pointer: fine) {
    .trades__list a:hover {
        color: var(--c-amber);
    }
}

/* Booking */

.booking {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: clamp(36px, 6vw, 90px);
    align-items: start;
}

.booking__subtitle {
    margin: 28px 0 10px;
    font-size: 25px;
    text-transform: uppercase;
}

.booking__card {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    padding: 34px 30px;
    background: var(--c-dark);
    color: var(--c-dark-text);
    text-align: center;
    border-top: 5px solid var(--c-amber);
}

.booking__label {
    margin-bottom: 6px;
    font-family: var(--f-head);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-white);
}

.booking__price {
    margin: 0;
    font-family: var(--f-head);
    font-size: 84px;
    font-weight: 700;
    line-height: 1;
    color: var(--c-amber-light);
}

.booking__meta {
    margin: 4px 0 24px;
    font-size: 18px;
    color: var(--c-white);
}

.booking__note {
    margin: 14px 0 0;
    font-size: 14px;
}

.booking__or {
    margin: 16px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.booking__or a {
    font-weight: 600;
    color: var(--c-white);
}

.compare-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 30px;
}

.compare-table__col {
    padding: 36px 36px 40px;
    background: var(--c-white);
}

.compare-table__col h3 {
    font-size: 30px;
    text-transform: uppercase;
}

.compare-table__col--dark {
    background: var(--c-dark);
    color: var(--c-dark-text);
}

.compare-table__col--dark h3 {
    color: var(--c-white);
}

/* Contact form */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(36px, 5vw, 70px);
    align-items: start;
}

.contact-side {
    display: grid;
    gap: 24px;
}

.next-steps {
    padding: 26px;
    background: var(--c-cream);
    border-top: 4px solid var(--c-amber);
}

.next-steps ol {
    margin: 0;
    padding-left: 20px;
}

.next-steps li {
    margin-bottom: 10px;
}

.form-alert {
    margin-bottom: 24px;
    padding: 14px 18px;
    background: #fbeaea;
    border-left: 4px solid #a12a2a;
    color: #5e1515;
}

.form-alert p {
    margin: 0;
}

.form-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 22px;
    margin-bottom: 28px;
}

.field {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

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

.field > label,
.field legend {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: var(--c-ink);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    background: var(--c-white);
    border: 1px solid #bfb3a3;
    border-radius: 0;
    font: inherit;
    color: var(--c-ink);
}

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

.field select {
    appearance: none;
    padding-right: 40px;
    background-image: linear-gradient(45deg, transparent 50%, var(--c-ink) 50%), linear-gradient(135deg, var(--c-ink) 50%, transparent 50%);
    background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid var(--c-amber);
    outline-offset: 0;
    border-color: var(--c-amber);
}

.field [aria-invalid="true"] {
    border-color: #a12a2a;
}

.field__error {
    margin: 6px 0 0;
    font-size: 14px;
    font-weight: 500;
    color: #a12a2a;
}

.radios {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    min-height: 50px;
    align-items: center;
}

.checkbox span,
.radio span {
    font-weight: 400;
    color: var(--c-text);
}

.radio,
.checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.radio input,
.checkbox input {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--c-amber);
    flex: 0 0 auto;
}

.upload {
    padding: 18px;
    background: var(--c-cream);
    border: 1px dashed #bfb3a3;
}

.upload input {
    max-width: 100%;
    font-size: 15px;
}

.upload__help {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--c-muted);
}

.upload__list li {
    margin-top: 6px;
    font-size: 14px;
    color: var(--c-ink);
}

.btn[disabled] {
    opacity: .7;
    cursor: wait;
}

/* Narrow blocks, legal, error */

.narrow-block {
    max-width: 760px;
}

.narrow-block__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.legal {
    max-width: 860px;
}

.legal h2 {
    margin: 36px 0 10px;
    font-size: 28px;
    text-transform: uppercase;
}

.legal ul {
    margin: 0 0 1em;
    padding-left: 22px;
    list-style: square;
}

.legal li {
    margin-bottom: 6px;
}

.legal__updated {
    font-weight: 600;
    color: var(--c-muted);
}

.error-page {
    padding-block: clamp(80px, 12vw, 150px);
    background: var(--c-cream);
}

.error-page__inner {
    max-width: 820px;
    text-align: center;
}

.error-page__code {
    margin: 0;
    font-family: var(--f-head);
    font-size: clamp(110px, 16vw, 180px);
    font-weight: 700;
    line-height: .9;
    color: var(--c-amber);
}

.error-page .narrow-block__actions {
    justify-content: center;
}

/* ---------- Inner responsive ---------- */

@media (max-width: 1024px) {
    .split-intro,
    .service-row__grid,
    .content-layout,
    .booking,
    .contact-layout,
    .trades__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-row--flip .service-row__media {
        order: 0;
    }

    .content-side,
    .booking__card {
        position: static;
    }

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

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

@media (max-width: 760px) {
    .page-banner {
        min-height: 230px;
    }

    .page-banner__inner {
        padding-block: 36px 34px;
    }

    .tick-list--columns,
    .points,
    .trades__list,
    .compare-table,
    .project-cards,
    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .photo-grid--3,
    .photo-grid--library {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .photo-grid__caption {
        display: none;
    }

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

    .project-gallery {
        gap: 10px;
    }

    .compare-table__col {
        padding: 28px 22px 32px;
    }

    .project-card--wide .project-card__body {
        padding: 24px 22px 28px;
    }

    .filters {
        margin-top: 6px;
    }

    .booking__price {
        font-size: 68px;
    }
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--c-dark);
    color: var(--c-dark-text);
    font-size: 16px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 48px;
    padding-block: 72px 56px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 22px;
}

.footer-logo img {
    width: auto;
    height: 58px;
}

.site-footer__tagline {
    font-family: var(--f-head);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--c-white);
}

.site-footer__title {
    margin-bottom: 18px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-white);
}

.site-footer__col li {
    margin-bottom: 9px;
}

.site-footer a {
    color: var(--c-dark-text);
}

.site-footer__phone a {
    font-family: var(--f-head);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--c-white);
}

.site-footer .btn--primary {
    color: var(--c-white);
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    background: var(--c-dark-2);
    font-size: 14px;
}

.site-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    padding-block: 20px;
}

.site-footer__bottom p {
    margin: 0;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.site-footer .site-credit {
    color: var(--c-white);
}

@media (hover: hover) and (pointer: fine) {
    .site-footer a:hover {
        color: var(--c-amber-light);
    }

    .site-footer .btn--primary:hover {
        color: var(--c-white);
    }
}

/* ---------- Mobile quick actions ---------- */

.mobile-actions {
    display: none;
}

/* ---------- Responsive ---------- */

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

    .main-nav__link {
        padding-inline: 9px;
        font-size: 18px;
    }
}

@media (max-width: 1120px) {
    .main-nav,
    .site-header__actions {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

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

@media (max-width: 760px) {
    :root {
        --header-h: 74px;
    }

    body {
        font-size: 16px;
    }

    .site-footer__bottom {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }

    .topbar__note {
        display: none;
    }

    .topbar__inner {
        justify-content: center;
    }

    .site-logo img {
        height: 48px;
    }

    .hero {
        height: clamp(500px, calc(100svh - var(--topbar-h) - var(--header-h) - 64px), 680px);
    }

    .hero__content {
        align-self: flex-end;
        padding-bottom: 96px;
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 340px;
    }

    .hero__controls {
        bottom: 22px;
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 20px;
        padding-block: 56px 40px;
    }

    .site-footer__brand,
    .site-footer__col:last-child {
        grid-column: 1 / -1;
    }

    .site-footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .mobile-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--c-dark);
        box-shadow: 0 -6px 18px rgba(0, 0, 0, .18);
    }

    .mobile-actions__item {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 60px;
        font-family: var(--f-head);
        font-size: 19px;
        font-weight: 600;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--c-white);
        border-right: 1px solid rgba(255, 255, 255, .14);
    }

    .mobile-actions__item:last-child {
        border-right: 0;
    }

    .mobile-actions__item--primary {
        background: var(--c-amber);
    }
}

@media (max-width: 420px) {
    .menu-toggle__text {
        display: none;
    }

    .site-logo img {
        height: 42px;
    }
}

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

    .hero__media img {
        transform: none !important;
    }
}

/* ---------- Experience strip under the hero ---------- */

.trust {
    background: var(--c-dark);
    border-bottom: 4px solid var(--c-amber);
}

.trust__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.trust__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 26px 24px;
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.trust__item:first-child {
    padding-left: 0;
    border-left: 0;
}

.trust__title {
    font-family: var(--f-head);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--c-white);
}

.trust__text {
    font-size: 15px;
    line-height: 1.4;
    color: var(--c-dark-text);
}

@media (max-width: 1024px) {
    .trust__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust__item:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .trust__item:nth-child(n+3) {
        border-top: 1px solid rgba(255, 255, 255, .12);
    }
}

@media (max-width: 520px) {
    .trust__item {
        padding: 18px 0 18px 16px;
    }

    .trust__title {
        font-size: 21px;
    }

    .trust__text {
        font-size: 14px;
    }
}

/* ---------- Service page: typical projects and common questions ---------- */

.typical,
.service-faq {
    margin-top: 44px;
}

.typical__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 30px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: typical;
}

.typical__list li {
    position: relative;
    min-width: 0;
    padding: 14px 0 14px 46px;
    border-top: 1px solid var(--c-line);
    counter-increment: typical;
}

.typical__list li::before {
    content: counter(typical, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 12px;
    font-family: var(--f-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--c-amber);
}

@media (max-width: 760px) {
    .typical__list {
        grid-template-columns: minmax(0, 1fr);
    }
}
