/* ==========================================================================
   Reset and base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--text);
    font-family: var(--body-font);
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body.nav-open,
body.lightbox-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

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

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    color: var(--primary);
    font-family: var(--heading-font);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(2.7rem, 5.2vw, 4.75rem);
}

h2 {
    font-size: clamp(2.15rem, 3.7vw, 3.35rem);
}

h3 {
    font-size: clamp(1.35rem, 2vw, 1.7rem);
}

p {
    margin-top: 0;
}

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

.section {
    padding: clamp(78px, 9vw, 120px) 0;
}

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

.eyebrow {
    margin-bottom: 15px;
    color: var(--accent-dark);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow--light {
    color: #f0c66e;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 14px 26px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

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

.button--primary {
    background: var(--primary);
    color: #fff;
}

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

.button--accent {
    background: var(--accent);
    color: #142330;
}

.button--accent:hover {
    background: #e7b44e;
}

.button--ghost {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.button--ghost:hover {
    background: #fff;
    color: var(--primary);
}

.button--full {
    width: 100%;
}


/* ==========================================================================
   Header
   ========================================================================== */

.header-top {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
}

.header-top__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 39px;
}

.header-top p {
    margin: 0;
}

.header-top a {
    color: #fff;
    text-decoration: none;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: #63c782;
    box-shadow: 0 0 0 4px rgba(99, 199, 130, 0.13);
}

.header-main {
    position: relative;
    z-index: 30;
    background: #fff;
    box-shadow: 0 12px 35px rgba(11, 25, 36, 0.08);
}

.header-main__inner {
    display: flex;
    align-items: center;
    min-height: 90px;
    gap: 34px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 47px;
    height: 47px;
    place-items: center;
    border-radius: 8px;
    background: var(--accent);
    color: var(--primary);
    font-family: var(--heading-font);
    font-size: 1.55rem;
    font-weight: 800;
}

.brand-copy {
    display: grid;
    line-height: 1.05;
}

.brand-copy strong {
    color: var(--primary);
    font-family: var(--heading-font);
    font-size: 1.25rem;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.primary-nav a {
    color: var(--primary);
    font-size: 0.97rem;
    font-weight: 700;
    text-decoration: none;
}

.primary-nav a:hover {
    color: var(--accent-dark);
}

.header-phone {
    display: grid;
    padding-left: 24px;
    border-left: 1px solid #e1e6e9;
    text-decoration: none;
    line-height: 1.25;
}

.header-phone span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.header-phone strong {
    color: var(--primary);
    font-family: var(--heading-font);
    font-size: 1rem;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 11px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #fff;
}


/* ==========================================================================
   Hero and forms
   ========================================================================== */

.hero {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    background: var(--primary);
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-media {
    background:
        url("/assets/images/siding-finished-202607.jpg") center / cover no-repeat;
}

.hero-overlay {
    background:
        linear-gradient(90deg,
            rgba(7, 20, 30, 0.94) 0%,
            rgba(7, 20, 30, 0.82) 46%,
            rgba(7, 20, 30, 0.42) 100%);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.76fr);
    align-items: center;
    min-height: 760px;
    gap: 74px;
    padding-block: 75px;
}

.hero-content {
    color: #fff;
}

.hero-content h1 {
    max-width: 760px;
    margin-bottom: 25px;
    color: #fff;
}

.hero-content h1 span {
    display: block;
    color: var(--accent);
}

.hero-intro {
    max-width: 660px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.83);
    font-size: 1.18rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 670px;
    margin-top: 47px;
    padding-top: 29px;
    border-top: 1px solid rgba(255, 255, 255, 0.23);
}

.hero-proof div {
    display: grid;
}

.hero-proof strong {
    color: #fff;
    font-family: var(--heading-font);
    font-size: 1.75rem;
}

.hero-proof span {
    color: rgba(255, 255, 255, 0.67);
    font-size: 0.83rem;
}

.hero-form-wrap {
    align-self: center;
}

.lead-form {
    padding: clamp(27px, 3.2vw, 40px);
    border-top: 5px solid var(--accent);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.27);
}

.form-heading span {
    color: var(--accent-dark);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.form-heading h2 {
    margin: 8px 0 25px;
    font-size: clamp(1.65rem, 2.2vw, 2.2rem);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-grid label {
    display: grid;
    gap: 7px;
}

.form-grid label>span {
    color: var(--primary);
    font-size: 0.79rem;
    font-weight: 800;
}

.form-grid__full {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #dbe1e5;
    border-radius: 8px;
    background: #f8fafb;
    color: var(--text);
    outline: none;
}

input,
select {
    min-height: 52px;
    padding: 0 14px;
}

textarea {
    min-height: 110px;
    padding: 13px 14px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-dark);
    box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.15);
}

.form-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.5;
    text-align: center;
}


/* ==========================================================================
   Trust bar
   ========================================================================== */

.trust-bar {
    position: relative;
    z-index: 4;
    background: #fff;
    box-shadow: 0 16px 35px rgba(10, 26, 38, 0.08);
}

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

.trust-grid article {
    display: flex;
    align-items: center;
    min-height: 132px;
    gap: 15px;
    padding: 25px;
    border-right: 1px solid #e8ecef;
}

.trust-grid article:last-child {
    border-right: 0;
}

.trust-icon {
    display: grid;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 50%;
    background: var(--cream);
    color: var(--accent-dark);
    font-weight: 900;
}

.trust-grid h2 {
    margin: 0 0 4px;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.trust-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 0.79rem;
    line-height: 1.45;
}


/* ==========================================================================
   Shared section layouts
   ========================================================================== */

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(55px, 7vw, 100px);
}

.image-stack {
    position: relative;
}

.image-stack img {
    width: 100%;
    min-height: 560px;
    border-radius: var(--radius);
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    right: -24px;
    bottom: 35px;
    display: flex;
    align-items: center;
    max-width: 215px;
    gap: 13px;
    padding: 20px;
    border-radius: 12px;
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 17px 40px rgba(14, 30, 42, 0.2);
}

.experience-badge strong {
    font-family: var(--heading-font);
    font-size: 2.7rem;
    line-height: 1;
}

.experience-badge span {
    font-size: 0.83rem;
    font-weight: 800;
    line-height: 1.35;
}

.section-copy h2 {
    margin-bottom: 23px;
}

.section-copy>p {
    color: var(--muted);
}

.check-list {
    display: grid;
    gap: 11px;
    margin: 28px 0 33px;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 31px;
}

.check-list li::before {
    position: absolute;
    top: 0.05em;
    left: 0;
    color: var(--accent-dark);
    content: "✓";
    font-weight: 900;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 48px;
}

.section-heading h2 {
    margin-bottom: 16px;
}

.section-heading>p:last-child {
    color: var(--muted);
}

.section-heading--center {
    margin-inline: auto;
    text-align: center;
}

.section-heading--split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.7fr);
    align-items: end;
    max-width: none;
    gap: 60px;
}

.section-action {
    margin-top: 36px;
    text-align: center;
}


/* ==========================================================================
   Services - cards
   ========================================================================== */

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

.service-card {
    position: relative;
    min-height: 305px;
    padding: 36px;
    overflow: hidden;
    border: 1px solid rgba(15, 35, 51, 0.08);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 13px 38px rgba(12, 29, 41, 0.06);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 55px rgba(12, 29, 41, 0.11);
}

.service-number {
    margin-bottom: 32px;
    color: var(--accent-dark);
    font-family: var(--heading-font);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--muted);
    font-size: 0.96rem;
}

.service-card a {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.service-card a span {
    margin-left: 6px;
    color: var(--accent-dark);
}

/* ==========================================================================
   Services: Image Cards
   ========================================================================== */

.services-image-cards {
    background: var(--cream);
}

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

.service-image-card {
    overflow: hidden;
    border: 1px solid rgba(16, 35, 51, 0.08);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 14px 40px rgba(10, 28, 41, 0.07);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.service-image-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(10, 28, 41, 0.13);
}

.service-image-card__image {
    position: relative;
    display: block;
    height: 245px;
    overflow: hidden;
    background: var(--primary);
}

.service-image-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease;
}

.service-image-card:hover .service-image-card__image img {
    transform: scale(1.05);
}

.service-image-card__image::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(8, 22, 33, 0.02) 45%,
            rgba(8, 22, 33, 0.48) 100%);
    content: "";
}

.service-image-card__number {
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 18px;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-family: var(--heading-font);
    font-size: 0.78rem;
    font-weight: 800;
}

.service-image-card__content {
    padding: 29px 30px 31px;
}

.service-image-card__content h3 {
    margin-bottom: 13px;
}

.service-image-card__content p {
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.65;
}

.service-image-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-dark);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.service-image-card__link span {
    transition: transform 180ms ease;
}

.service-image-card__link:hover span {
    transform: translateX(4px);
}


@media (max-width: 1000px) {

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

}


@media (max-width: 650px) {

    .services-image-grid {
        grid-template-columns: 1fr;
    }

    .service-image-card__image {
        height: 225px;
    }

}

/* ==========================================================================
   Gallery
   ========================================================================== */

.project-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    grid-template-rows: repeat(2, 265px);
    gap: 18px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--primary);
}

.project-card--large {
    grid-row: 1 / 3;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease;
}

.project-card:hover img {
    transform: scale(1.045);
}

.project-overlay {
    position: absolute;
    inset: auto 0 0;
    display: grid;
    padding: 70px 25px 24px;
    background: linear-gradient(transparent, rgba(5, 16, 24, 0.88));
    color: #fff;
}

.project-overlay small {
    color: #efc46c;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-overlay strong {
    font-family: var(--heading-font);
    font-size: 1.2rem;
}

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

.gallery-card {
    position: relative;
    min-height: 365px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--primary);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease;
}

.gallery-card:hover img {
    transform: scale(1.045);
}

.gallery-card>span {
    position: absolute;
    inset: auto 0 0;
    display: grid;
    padding: 70px 24px 23px;
    background: linear-gradient(transparent, rgba(5, 16, 24, 0.9));
    color: #fff;
}

.gallery-card small {
    color: #efc46c;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.gallery-card strong {
    font-family: var(--heading-font);
    font-size: 1.12rem;
}


/* ==========================================================================
   CTA and materials
   ========================================================================== */

.cta-banner {
    position: relative;
    overflow: hidden;
    padding: clamp(80px, 9vw, 120px) 0;
    background: var(--primary);
}

.cta-banner__image,
.cta-banner__overlay {
    position: absolute;
    inset: 0;
}

.cta-banner__image {
    background:
        url("/assets/images/siding-front-entry-door-202607.jpg") center / cover no-repeat;
}

.cta-banner__overlay {
    background: linear-gradient(90deg,
            rgba(8, 23, 34, 0.96),
            rgba(8, 23, 34, 0.72));
}

.cta-banner__content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
}

.cta-banner h2 {
    margin-bottom: 20px;
    color: #fff;
}

.cta-banner p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.8);
}

.cta-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 31px;
}

.cta-phone {
    color: #fff;
    font-weight: 800;
}

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

.material-grid article {
    padding: 36px;
    border-radius: var(--radius);
    background: #fff;
}

.material-grid article>span {
    display: inline-grid;
    width: 43px;
    height: 43px;
    margin-bottom: 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-family: var(--heading-font);
    font-size: 0.78rem;
    font-weight: 800;
}

.material-grid p,
.material-grid li {
    color: var(--muted);
    font-size: 0.92rem;
}

.material-grid ul {
    display: grid;
    gap: 8px;
    margin: 22px 0 0;
    padding-left: 20px;
}


/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-section {
    background: var(--primary);
}

.testimonial-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 80px;
}

.testimonial-heading h2 {
    color: #fff;
}

.testimonial-layout blockquote {
    margin: 0;
    padding: clamp(33px, 4vw, 52px);
    border-radius: var(--radius);
    background: #fff;
}

.stars {
    margin-bottom: 22px;
    color: var(--accent);
    letter-spacing: 0.13em;
}

.testimonial-layout blockquote p {
    color: var(--primary);
    font-family: var(--heading-font);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.55;
}

.testimonial-layout blockquote footer {
    display: grid;
    margin-top: 25px;
}

.testimonial-layout blockquote span {
    color: var(--muted);
    font-size: 0.85rem;
}


/* ==========================================================================
   Inner pages
   ========================================================================== */

.page-hero {
    padding: 100px 0;
    background:
        linear-gradient(rgba(7, 21, 31, 0.86), rgba(7, 21, 31, 0.86)),
        url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1900&q=86") center / cover no-repeat;
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 18px;
    color: #fff;
}

.page-hero p:last-child {
    max-width: 740px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.77);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 0.8fr);
    align-items: start;
    gap: 80px;
}

.contact-info>p {
    color: var(--muted);
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 34px;
}

.contact-cards article {
    display: grid;
    min-height: 120px;
    align-content: center;
    padding: 22px;
    border-radius: 12px;
    background: var(--cream);
}

.contact-cards small {
    margin-bottom: 5px;
    color: var(--accent-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.contact-cards a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.contact-form-panel .lead-form {
    box-shadow: 0 22px 60px rgba(12, 29, 41, 0.13);
}

.service-hero {
    padding: 85px 0;
    background: var(--primary);
}

.service-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.75fr);
    align-items: center;
    gap: 70px;
}

.service-hero h1 {
    color: #fff;
}

.service-hero p {
    color: rgba(255, 255, 255, 0.78);
}

.service-hero img {
    width: 100%;
    height: 420px;
    border-radius: var(--radius);
    object-fit: cover;
}

.service-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    align-items: start;
    gap: 80px;
}

.service-content article>p {
    color: var(--muted);
}

.service-sidebar {
    position: sticky;
    top: 30px;
    padding: 31px;
    border-top: 5px solid var(--accent);
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
}

.service-sidebar h3 {
    color: #fff;
}

.service-sidebar p {
    color: rgba(255, 255, 255, 0.72);
}

.sidebar-phone {
    display: block;
    margin-top: 19px;
    color: #fff;
    font-weight: 800;
    text-align: center;
}


/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.68);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.65fr 0.9fr;
    gap: 70px;
    padding-block: 75px;
}

.brand--footer .brand-copy strong,
.brand--footer .brand-copy small {
    color: #fff;
}

.footer-description {
    max-width: 430px;
    margin-top: 24px;
}

.site-footer h3 {
    margin-bottom: 21px;
    color: #fff;
    font-size: 1.05rem;
    letter-spacing: 0;
}

.footer-links,
.footer-contact {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a,
.footer-contact a {
    text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom__inner {
    display: flex;
    justify-content: space-between;
    padding-block: 19px;
    font-size: 0.78rem;
}

.footer-bottom p {
    margin: 0;
}


/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 90px;
    background: rgba(3, 10, 15, 0.95);
}

.lightbox.is-open {
    display: flex;
}

.lightbox figure {
    display: grid;
    max-width: min(1180px, 100%);
    max-height: 88vh;
    margin: 0;
    justify-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 13px;
    color: #fff;
    text-align: center;
}

.lightbox-close,
.lightbox-arrow {
    position: absolute;
    border: 0;
    background: transparent;
    color: #fff;
}

.lightbox-close {
    top: 20px;
    right: 28px;
    font-size: 2.7rem;
}

.lightbox-arrow {
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-count {
    position: absolute;
    right: 30px;
    bottom: 23px;
    color: rgba(255, 255, 255, 0.73);
    font-size: 0.83rem;
}


/* ==========================================================================
   Mobile actions
   ========================================================================== */

.mobile-actions {
    position: fixed;
    z-index: 45;
    right: 14px;
    bottom: 14px;
    display: none;
    gap: 7px;
    padding: 7px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 14px 40px rgba(5, 17, 25, 0.28);
}

.mobile-actions a {
    min-width: 58px;
    padding: 10px 11px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.mobile-actions a:last-child {
    background: var(--accent);
    color: var(--primary);
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1050px) {

    .primary-nav,
    .header-phone {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .primary-nav.is-open {
        position: absolute;
        top: 90px;
        right: 0;
        left: 0;
        display: grid;
        gap: 0;
        padding: 15px 20px 22px;
        background: #fff;
        box-shadow: 0 22px 35px rgba(10, 26, 38, 0.14);
    }

    .primary-nav.is-open a {
        padding: 13px 0;
        border-bottom: 1px solid #e8ecef;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 45px;
        padding-block: 85px;
    }

    .hero-form-wrap {
        max-width: 710px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid article:nth-child(2) {
        border-right: 0;
    }

    .trust-grid article:nth-child(-n + 2) {
        border-bottom: 1px solid #e8ecef;
    }

    .service-grid,
    .material-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-layout,
    .testimonial-layout,
    .contact-layout,
    .service-hero__grid {
        grid-template-columns: 1fr;
    }

    .contact-layout,
    .testimonial-layout {
        gap: 50px;
    }

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

    .service-sidebar {
        position: static;
    }

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

    .footer-grid>div:first-child {
        grid-column: 1 / -1;
    }

}

@media (max-width: 720px) {

    body {
        font-size: 17px;
    }

    .header-top__inner {
        justify-content: center;
    }

    .header-top p {
        display: none;
    }

    .header-main__inner {
        min-height: 78px;
    }

    .primary-nav.is-open {
        top: 78px;
    }

    .brand-copy strong {
        font-size: 1.1rem;
    }

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

    .hero,
    .hero-grid {
        min-height: auto;
    }

    .hero-grid {
        padding-block: 67px;
    }

    .hero-overlay {
        background: rgba(7, 20, 30, 0.82);
    }

    .hero-proof {
        grid-template-columns: 1fr;
        gap: 18px;
    }

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

    .form-grid__full {
        grid-column: auto;
    }

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

    .trust-grid article {
        min-height: 110px;
        border-right: 0;
        border-bottom: 1px solid #e8ecef;
    }

    .project-grid,
    .service-grid,
    .material-grid,
    .gallery-grid,
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .project-grid {
        grid-template-rows: auto;
    }

    .project-card,
    .project-card--large {
        grid-row: auto;
        min-height: 310px;
    }

    .section-heading--split {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .image-stack img {
        min-height: 430px;
    }

    .experience-badge {
        right: 14px;
        bottom: 18px;
    }

    .gallery-card {
        min-height: 330px;
    }

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

    .footer-grid>div:first-child {
        grid-column: auto;
    }

    .footer-bottom__inner {
        display: grid;
        gap: 5px;
    }

    .lightbox {
        padding: 55px 18px 70px;
    }

    .lightbox-arrow {
        top: auto;
        bottom: 18px;
        font-size: 2.2rem;
    }

    .lightbox-prev {
        left: 22px;
    }

    .lightbox-next {
        right: 22px;
    }

    .lightbox-count {
        right: 50%;
        bottom: 28px;
        transform: translateX(50%);
    }

    .mobile-actions {
        display: flex;
    }

}

/* ==========================================================================
   Hero variation: Split image, floating form and integrated trust bar
   ========================================================================== */

.hero-split-form {
    position: relative;
    overflow: hidden;
    background: var(--primary-dark);
}

.hero-split-form__background {
    position: absolute;
    inset: 0 0 100px 38%;
    background:
        linear-gradient(90deg,
            rgba(8, 23, 34, 0.98) 0%,
            rgba(8, 23, 34, 0.55) 27%,
            rgba(8, 23, 34, 0.08) 62%),
        url("https://images.unsplash.com/photo-1600047509807-ba8f99d2cdde?auto=format&fit=crop&w=2000&q=90") center / cover no-repeat;
}

.hero-split-form__main {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(370px, 0.68fr);
    align-items: center;
    min-height: 590px;
    gap: clamp(45px, 6vw, 95px);
    padding-block: 55px;
}

.hero-split-form__content {
    max-width: 670px;
    color: #fff;
}

.hero-split-form__content h1 {
    margin-bottom: 24px;
    color: #fff;
    font-size: clamp(2.8rem, 5vw, 4.65rem);
}

.hero-split-form__content h1 span {
    display: block;
}

.hero-split-form__intro {
    max-width: 610px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.14rem;
}

.hero-split-form__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.hero-split-form__actions .button {
    gap: 16px;
}

.hero-split-form__or {
    color: rgba(255, 255, 255, 0.72);
}

.hero-split-form__phone {
    color: #fff;
    font-weight: 800;
}

.hero-split-form__form {
    align-self: center;
}

.hero-split-form__form .lead-form {
    padding: 0 28px 24px;
    overflow: hidden;
    border-top: 0;
    border-radius: 12px;
}

.hero-split-form__form .form-heading {
    margin: 0 -28px 24px;
    padding: 18px 24px;
    background: var(--primary-dark);
    text-align: center;
}

.hero-split-form__form .form-heading span {
    display: none;
}

.hero-split-form__form .form-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 1.12rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero-split-form__form .form-grid {
    grid-template-columns: 1fr;
    gap: 11px;
}

.hero-split-form__form .form-grid__full {
    grid-column: auto;
}

.hero-split-form__form textarea {
    min-height: 82px;
}

.hero-split-form__trust {
    position: relative;
    z-index: 3;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(4, 17, 27, 0.96);
}

.hero-split-form__trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.hero-split-form__trust article {
    display: flex;
    align-items: center;
    min-height: 100px;
    gap: 16px;
    padding: 20px 27px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-split-form__trust article:first-child {
    padding-left: 0;
}

.hero-split-form__trust article:last-child {
    padding-right: 0;
    border-right: 0;
}

.hero-split-form__trust-icon {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--accent);
    font-family: var(--heading-font);
    font-size: 1.75rem;
    font-weight: 800;
}

.hero-split-form__trust article div {
    display: grid;
    line-height: 1.35;
}

.hero-split-form__trust strong {
    color: #fff;
    font-size: 0.91rem;
}

.hero-split-form__trust small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.67);
    font-size: 0.79rem;
}

@media (max-width: 1050px) {

    .hero-split-form__background {
        inset: 0 0 0 26%;
    }

    .hero-split-form__main {
        grid-template-columns: 1fr;
        padding-block: 75px;
    }

    .hero-split-form__form {
        width: min(100%, 680px);
    }

    .hero-split-form__trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-split-form__trust article:nth-child(2) {
        border-right: 0;
    }

    .hero-split-form__trust article:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .hero-split-form__trust article:first-child,
    .hero-split-form__trust article:last-child {
        padding-inline: 27px;
    }

}

@media (max-width: 720px) {

    .hero-split-form__background {
        inset: 0;
        opacity: 0.44;
    }

    .hero-split-form__main {
        min-height: auto;
        padding-block: 64px;
    }

    .hero-split-form__content h1 {
        font-size: clamp(2.5rem, 11vw, 3.55rem);
    }

    .hero-split-form__actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-split-form__or {
        display: none;
    }

    .hero-split-form__trust-grid {
        grid-template-columns: 1fr;
    }

    .hero-split-form__trust article,
    .hero-split-form__trust article:nth-child(2) {
        min-height: 86px;
        padding-inline: 20px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .hero-split-form__trust article:last-child {
        border-bottom: 0;
    }

}