/* =========================================================
   McGill Building & Remodeling - Easy-to-Edit Stylesheet
   Edit the variables below first. They control the main look.
   ========================================================= */

:root {
    --dark: #111111;
    --text: #222222;
    --muted: #6e7278;
    --accent: #588AD6;
    --light: #f5f5f5;
    --white: #ffffff;
    --border: #e7e7e7;

    --container: 1180px;
    --page-padding: 32px;
    --section-space: 90px;
    --mobile-breakpoint: 980px;
    --phone-breakpoint: 560px;

    --hero-image: url('images/home-banner.jpg');
    --page-banner-image: url('images/home-banner.jpg');
    --subfloor-service-main-image: url('images/subfloor-preparation-top.jpg');
    --acclimation-service-main-image: url('images/acclimation-top.JPG');
    --installspecs-service-main-image: url('images/gallery/installspecs/installspecs-top.jpg');
    --restoration-service-main-image: url('images/gallery/restoration/restoration-top.jpg');
    --recessedvents-service-main-image: url('images/gallery/recessedvents/recessedvents-top.JPEG');
    --dustless-service-main-image: url('images/gallery/dustless/dustless-top.jpg');
    --oilvswater-service-main-image: url('images/gallery/oilvswater/oilvswater-top.JPG');
    --prefinish-service-main-image: url('images/gallery/prefinish/prefinish-top.JPEG');
    --stainscolor-service-main-image: url('images/gallery/stainscolor/stainscolor-top.JPEG');
    --exteriordecks-service-main-image: url('images/gallery/exteriordecks/exteriordecks-top.JPEG');
    --stairservices-service-main-image: url('images/gallery/stairservices/stairservices-top.JPEG');
    --lvp-service-main-image: url('images/gallery/lvp/lvp-top.jpg');
}

/* =========================================================
   GLOBAL BASE STYLES
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    color: var(--text);
    background: var(--white);
}

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

.container,
.expertise-section,
.cta-section,
.services-layout,
.about-page-section,
.page-banner-inner {
    width: min(var(--container), calc(100% - var(--page-padding)));
    margin-left: auto;
    margin-right: auto;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    font-weight: 900;
}

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

.button.secondary {
    background: var(--white);
    color: var(--dark);
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */

.top-bar {
    display: flex;
    justify-content: center;
    gap: 28px;
    padding: 10px 18px;
    background: var(--dark);
    color: var(--white);
    font-size: 13px;
}

.nav-wrap {
    width: min(var(--container), calc(100% - var(--page-padding)));
    height: 86px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: var(--dark);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.logo span {
    color: var(--accent);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 800;
}

.main-nav > a,
.dropdown-toggle {
    padding: 30px 0;
    border: 0;
    background: transparent;
    color: #151515;
    cursor: pointer;
    font: inherit;
}

.nav-button {
    padding: 14px 22px !important;
    background: var(--accent) !important;
    color: var(--dark) !important;
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    min-width: 230px;
    padding: 10px;
    background: var(--white);
    border-top: 4px solid var(--accent);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.2s;
}

.dropdown-menu a {
    display: block;
    padding: 13px 14px;
    color: #333333;
    font-weight: 700;
}

.dropdown-menu a:hover {
    background: #f7f7f7;
    color: #000000;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hamburger {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    background: var(--accent);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    z-index: 60;
}

.hamburger span {
    display: block;
    width: 23px;
    height: 3px;
    background: var(--dark);
    transition: 0.2s;
}

.hamburger[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================================================
   HOME PAGE HERO
   ========================================================= */

.hero {
    min-height: 680px;
    display: grid;
    align-items: center;
    grid-template-columns: minmax(16px, 1fr) minmax(0, var(--container)) minmax(16px, 1fr);
    position: relative;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42)), var(--hero-image) center / cover;
}

.hero-content {
    grid-column: 2;
    max-width: 760px;
    color: var(--white);
}

.hero h1 {
    margin: 0 0 24px;
    font-size: clamp(46px, 7vw, 86px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero-copy {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 20px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-card {
    position: absolute;
    right: max(16px, calc((100% - var(--container)) / 2));
    bottom: 50px;
    display: grid;
    gap: 6px;
    padding: 28px 34px;
    background: var(--white);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.hero-card strong {
    font-size: 48px;
}

/* =========================================================
   HOME PAGE EXPERTISE / CTA
   ========================================================= */

.expertise-section,
.cta-section {
    margin-top: var(--section-space);
    margin-bottom: var(--section-space);
}

.section-heading {
    max-width: 700px;
    margin-bottom: 35px;
}

.section-heading h2,
.cta-section h2 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1;
}

.section-heading p:last-child,
.expertise-card p,
.cta-section p {
    color: var(--muted);
    line-height: 1.7;
}

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

.expertise-card {
    min-height: 260px;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
}

.expertise-card span {
    color: var(--accent);
    font-size: 28px;
    font-weight: 900;
}

.expertise-card h3 {
    margin: 50px 0 12px;
    font-size: 22px;
}

.cta-section {
    padding: 68px 48px;
    background: var(--dark);
    color: var(--white);
    text-align: center;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.72);
}

/* =========================================================
   SERVICES PAGE
   ========================================================= */

.page-banner {
    min-height: 320px;
    display: grid;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.45)), var(--page-banner-image) center / cover;
    color: var(--white);
}

.page-banner h1 {
    margin: 0 0 18px;
    font-size: clamp(44px, 7vw, 78px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

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

.breadcrumbs span {
    color: var(--accent);
}

.services-layout {
    margin-top: var(--section-space);
    margin-bottom: var(--section-space);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 44px;
    align-items: start;
}

.service-content h2,
.about-main-content h2 {
    margin: 0 0 20px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.service-content .lead,
.about-main-content .lead {
    margin-bottom: 34px;
    /*color: var(--muted);*/
    font-size: 18px;
    /*line-height: 1.8;*/
}

/*PHOTOS FOR SUBFLOOR PREPARATION SERVICE PAGES*/

.subfloor-service-hero-image,
.subfloor-service-image,
.subfloor-about-image-large,
.subfloor-about-image {
    background-position: center;
    background-size: cover;
}

.subfloor-service-hero-image {
    min-height: 390px;
    margin-bottom: 36px;
    background-image: var(--subfloor-service-main-image);
}

.subfloor-service-image-grid,
.subfloor-about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin: 30px 0;
}

.subfloor-service-image,
.about-image {
    min-height: 245px;
}

.subfloor-image-one {
    background-image: url('images/subfloor-preparation1.jpg');
}

.subfloor-image-two {
    background-image: url('images/subfloor-preparation2.jpg');
}
.subfloor-image-three {
    background-image: url('images/gallery/subfloor/subfloor-preparation1.JPEG');
}
.subfloor-image-four {
    background-image: url('images/gallery/subfloor/subfloor-preparation2.JPEG');
}
.subfloor-image-five {
    background-image: url('images/gallery/subfloor/subfloor-preparation3.JPEG');
}
.subfloor-image-six {
    background-image: url('images/gallery/subfloor/subfloor-preparation4.JPG');
}

/* Stack the two before-and-after subfloor photos on phones */
@media (max-width: 700px) {
    .subfloor-service-image-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .subfloor-service-image {
        width: 100%;
        min-height: 300px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #eeeeee;
    }
}

/*PHOTOS FOR SUBFLOOR PREPARATION SERVICE PAGES*/

/*PHOTOS FOR ACCLIMATION SERVICE PAGES*/

.acclimation-service-hero-image,
.acclimation-service-image,
.acclimation-about-image-large,
.acclimation-about-image {
    background-position: center;
    background-size: cover;
}

.acclimation-service-hero-image {
    min-height: 390px;
    margin-bottom: 36px;
    background-image: var(--acclimation-service-main-image);
}

.acclimation-service-image-grid,
.acclimation-about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin: 30px 0;
}

.acclimation-service-image,
.about-image {
    min-height: 245px;
}

.acclimation-image-one {
    background-image: url('images/gallery/acclimation/acclimation1.JPEG');
}

.acclimation-image-two {
    background-image: url('images/gallery/acclimation/acclimation2.jpg');
}

.acclimation-image-three {
    background-image: url('images/gallery/acclimation/acclimation3.JPEG');
}
.acclimation-image-four {
    background-image: url('images/gallery/acclimation/acclimation4.JPEG');
}

.acclimation-image-five {
    background-image: url('images/gallery/acclimation/acclimation5.JPG');
}

/* Stack the two before-and-after acclimation photos on phones */
@media (max-width: 700px) {
    .acclimation-service-image-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .acclimation-service-image {
        width: 100%;
        min-height: 300px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #eeeeee;
    }
}

/*PHOTOS FOR ACCLIMATION SERVICE PAGES*/

/*PHOTOS FOR INSTALL SPECS SERVICE PAGES*/

.installspecs-service-hero-image,
.installspecs-service-image,
.installspecs-about-image-large,
.installspecs-about-image {
    background-position: center;
    background-size: cover;
}

.installspecs-service-hero-image {
    min-height: 390px;
    margin-bottom: 36px;
    background-image: var(--installspecs-service-main-image);
}

.installspecs-service-image-grid,
.installspecs-about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin: 30px 0;
}

.installspecs-service-image,
.about-image {
    min-height: 245px;
}

.installspecs-image-one {
    background-image: url('images/gallery/installspecs/installspec1.jpg');
}

.installspecs-image-two {
    background-image: url('images/gallery/installspecs/installspec2.jpg');
}

.installspecs-image-three {
    background-image: url('images/gallery/installspecs/installspec3.JPEG');
}
.installspecs-image-four {
    background-image: url('images/gallery/installspecs/installspec4.JPEG');
}

.installspecs-image-five {
    background-image: url('images/gallery/installspecs/installspec5.JPG');
}
.installspecs-image-six {
    background-image: url('images/gallery/installspecs/installspec6.JPG');
}
.installspecs-image-seven {
    background-image: url('images/gallery/installspecs/installspec7.JPG');
}
.installspecs-image-eight {
    background-image: url('images/gallery/installspecs/installspec8.JPG');
}
.installspecs-image-nine {
    background-image: url('images/gallery/installspecs/installspec9.JPG');
}
.installspecs-image-ten {
    background-image: url('images/gallery/installspecs/installspec10.JPG');
}
.installspecs-image-eleven {
    background-image: url('images/gallery/installspecs/installspec11.JPG');
}
.installspecs-image-twelve {
    background-image: url('images/gallery/installspecs/installspec12.JPG');
}

/* Stack the two before-and-after installspecs photos on phones */
@media (max-width: 700px) {
    .installspecs-service-image-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .installspecs-service-image {
        width: 100%;
        min-height: 300px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #eeeeee;
    }
}

/*PHOTOS FOR INSTALL SPECS SERVICE PAGES*/

/*PHOTOS FOR RESTORATION SERVICE PAGES*/

.restoration-service-hero-image,
.restoration-service-image,
.restoration-about-image-large,
.restoration-about-image {
    background-position: center;
    background-size: cover;
}

.restoration-service-hero-image {
    min-height: 390px;
    margin-bottom: 36px;
    background-image: var(--restoration-service-main-image);
}

.restoration-service-image-grid,
.restoration-about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin: 30px 0;
}

.restoration-service-image,
.about-image {
    min-height: 245px;
}

.restoration-image-one {
    background-image: url('images/gallery/restoration/restoration1.jpg');
}

.restoration-image-two {
    background-image: url('images/gallery/restoration/restoration2.jpg');
}

.restoration-image-three {
    background-image: url('images/gallery/restoration/restoration3.jpg');
}
.restoration-image-four {
    background-image: url('images/gallery/restoration/restoration4.jpg');
}

.restoration-image-five {
    background-image: url('images/gallery/restoration/restoration5.jpg');
}
.restoration-image-six {
    background-image: url('images/gallery/restoration/restoration6.jpg');
}
.restoration-image-seven {
    background-image: url('images/gallery/restoration/restoration7.jpg');
}
.restoration-image-eight {
    background-image: url('images/gallery/restoration/restoration8.jpg');
}
.restoration-image-nine {
    background-image: url('images/gallery/restoration/restoration9.jpg');
}
.restoration-image-ten {
    background-image: url('images/gallery/restoration/restoration10.jpg');
}
.restoration-image-eleven {
    background-image: url('images/gallery/restoration/restoration11.JPEG');
}
.restoration-image-twelve {
    background-image: url('images/gallery/restoration/restoration12.JPEG');
}

.restoration-image-thirteen {
    background-image: url('images/gallery/restoration/restoration13.JPEG');
}
.restoration-image-fourteen {
    background-image: url('images/gallery/restoration/restoration14.JPEG');
}
.restoration-image-fifteen {
    background-image: url('images/gallery/restoration/restoration15.JPEG');
}
.restoration-image-sixteen {
    background-image: url('images/gallery/restoration/restoration16.JPEG');
}
.restoration-image-seventeen {
    background-image: url('images/gallery/restoration/restoration17.jpg');
}
.restoration-image-eighteen {
    background-image: url('images/gallery/restoration/restoration18.jpg');
}
.restoration-image-nineteen {
    background-image: url('images/gallery/restoration/restoration19.jpg');
}
.restoration-image-twenty {
    background-image: url('images/gallery/restoration/restoration20.jpg');
}
.restoration-image-twentyone {
    background-image: url('images/gallery/restoration/restoration21.jpg');
}
.restoration-image-twentytwo {
    background-image: url('images/gallery/restoration/restoration22.jpg');
}

/* Stack the two before-and-after restoration photos on phones */
@media (max-width: 700px) {
    .restoration-service-image-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .restoration-service-image {
        width: 100%;
        min-height: 300px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #eeeeee;
    }
}

/*PHOTOS FOR RESTORATION SERVICE PAGES*/

/*PHOTOS FOR RECESSED VENTS SERVICE PAGES*/

.recessedvents-service-hero-image,
.recessedvents-service-image,
.recessedvents-about-image-large,
.recessedvents-about-image {
    background-position: center;
    background-size: cover;
}

.recessedvents-service-hero-image {
    min-height: 390px;
    margin-bottom: 36px;
    background-image: var(--recessedvents-service-main-image);
}

.recessedvents-service-image-grid,
.recessedvents-about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin: 30px 0;
}

.recessedvents-service-image,
.about-image {
    min-height: 245px;
}

.recessedvents-image-one {
    background-image: url('images/gallery/recessedvents/recessedvents1.JPEG');
}




/* Stack the two before-and-after recessedvents photos on phones */
@media (max-width: 700px) {
    .recessedvents-service-image-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .recessedvents-service-image {
        width: 100%;
        min-height: 300px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #eeeeee;
    }
}

/*PHOTOS FOR RECESSED VENTS SERVICE PAGES*/

/*PHOTOS FOR LVP SERVICE PAGES*/

.lvp-service-hero-image,
.lvp-service-image,
.lvp-about-image-large,
.lvp-about-image {
    background-position: center;
    background-size: cover;
}

.lvp-service-hero-image {
    min-height: 390px;
    margin-bottom: 36px;
    background-image: var(--lvp-service-main-image);
}

.lvp-service-image-grid,
.lvp-about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin: 30px 0;
}

.lvp-service-image,
.about-image {
    min-height: 245px;
}

.lvp-image-one {
    background-image: url('images/gallery/lvp/lvp1.jpg');
}
.lvp-image-two {
    background-image: url('images/gallery/lvp/lvp2.jpg');
}



/* Stack the two before-and-after lvp photos on phones */
@media (max-width: 700px) {
    .lvp-service-image-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .lvp-service-image {
        width: 100%;
        min-height: 300px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #eeeeee;
    }
}

/*PHOTOS FOR LVP SERVICE PAGES*/

/*PHOTOS FOR DUSTLESS SERVICE PAGES*/

.dustless-service-hero-image,
.dustless-service-image,
.dustless-about-image-large,
.dustless-about-image {
    background-position: center;
    background-size: cover;
}

.dustless-service-hero-image {
    min-height: 390px;
    margin-bottom: 36px;
    background-image: var(--dustless-service-main-image);
}

.dustless-service-image-grid,
.dustless-about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin: 30px 0;
}

.dustless-service-image,
.about-image {
    min-height: 245px;
}

.dustless-image-one {
    background-image: url('images/gallery/dustless/dustless1.jpg');
}
.dustless-image-two {
    background-image: url('images/gallery/dustless/dustless2.jpg');
}
.dustless-image-three {
    background-image: url('images/gallery/dustless/dustless3.jpg');
}
.dustless-image-four {
    background-image: url('images/gallery/dustless/dustless4.jpg');
}


/* DUSTLESS SANDING - BRIGHTEN ALL 3 PHOTOS */


.dustless-service-hero-image,
.dustless-service-image {
    opacity: 1 !important;
    filter: brightness(1.45) contrast(1.08) saturate(1.15) !important;
}


/* Stack the two before-and-after dustless photos on phones */
@media (max-width: 700px) {
    .dustless-service-image-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .dustless-service-image {
        width: 100%;
        min-height: 300px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #eeeeee;
    }
}

/*PHOTOS FOR DUSTLESS SERVICE PAGES*/

/*PHOTOS FOR OILVSWATER SERVICE PAGES*/

.oilvswater-service-hero-image,
.oilvswater-service-image,
.oilvswater-about-image-large,
.oilvswater-about-image {
    background-position: center;
    background-size: cover;
}

.oilvswater-service-hero-image {
    min-height: 390px;
    margin-bottom: 36px;
    background-image: var(--oilvswater-service-main-image);
}

.oilvswater-service-image-grid,
.oilvswater-about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin: 30px 0;
}

.oilvswater-service-image,
.about-image {
    min-height: 245px;
}

.oilvswater-image-one {
    background-image: url('images/gallery/oilvswater/oilvswater1.JPEG');
}
.oilvswater-image-two {
    background-image: url('images/gallery/oilvswater/oilvswater2.JPG');
}
.oilvswater-image-three {
    background-image: url('images/gallery/oilvswater/oilvswater-top.JPG');
}


/* Stack the two before-and-after oilvswater photos on phones */
@media (max-width: 700px) {
    .oilvswater-service-image-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .oilvswater-service-image {
        width: 100%;
        min-height: 300px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #eeeeee;
    }
}

/*PHOTOS FOR OILVSWATER SERVICE PAGES*/

/*PHOTOS FOR PREFINISH SERVICE PAGES*/

.prefinish-service-hero-image,
.prefinish-service-image,
.prefinish-about-image-large,
.prefinish-about-image {
    background-position: center;
    background-size: cover;
}

.prefinish-service-hero-image {
    min-height: 390px;
    margin-bottom: 36px;
    background-image: var(--prefinish-service-main-image);
}

.prefinish-service-image-grid,
.prefinish-about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin: 30px 0;
}

.prefinish-service-image,
.about-image {
    min-height: 245px;
}

.prefinish-image-one {
    background-image: url('images/gallery/prefinish/prefinish1.jpg');
}
.prefinish-image-two {
    background-image: url('images/gallery/prefinish/prefinish2.JPEG');
}
.prefinish-image-three {
    background-image: url('images/gallery/prefinish/prefinish3.JPEG');
}
.prefinish-image-four {
    background-image: url('images/gallery/prefinish/prefinish4.JPEG');
}
.prefinish-image-five {
    background-image: url('images/gallery/prefinish/prefinish5.JPEG');
}


/* Stack the two before-and-after prefinish photos on phones */
@media (max-width: 700px) {
    .prefinish-service-image-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .prefinish-service-image {
        width: 100%;
        min-height: 300px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #eeeeee;
    }
}

/*PHOTOS FOR PREFINISH SERVICE PAGES*/

/*PHOTOS FOR STAINSCOLOR SERVICE PAGES*/

.stainscolor-service-hero-image,
.stainscolor-service-image,
.stainscolor-about-image-large,
.stainscolor-about-image {
    background-position: center;
    background-size: cover;
}

.stainscolor-service-hero-image {
    min-height: 390px;
    margin-bottom: 36px;
    background-image: var(--stainscolor-service-main-image);
}

.stainscolor-service-image-grid,
.stainscolor-about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin: 30px 0;
}

.stainscolor-service-image,
.about-image {
    min-height: 245px;
}

.stainscolor-image-one {
    background-image: url('images/gallery/stainscolor/stainscolor1.JPEG');
}
.stainscolor-image-two {
    background-image: url('images/gallery/stainscolor/stainscolor2.JPEG');
}


/* Stack the two before-and-after stainscolor photos on phones */
@media (max-width: 700px) {
    .stainscolor-service-image-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .stainscolor-service-image {
        width: 100%;
        min-height: 300px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #eeeeee;
    }
}

/*PHOTOS FOR STAINSCOLOR SERVICE PAGES*/

/*PHOTOS FOR EXTERIORDECKS SERVICE PAGES*/

.exteriordecks-service-hero-image,
.exteriordecks-service-image,
.exteriordecks-about-image-large,
.exteriordecks-about-image {
    background-position: center;
    background-size: cover;
}

.exteriordecks-service-hero-image {
    min-height: 390px;
    margin-bottom: 36px;
    background-image: var(--exteriordecks-service-main-image);
}

.exteriordecks-service-image-grid,
.exteriordecks-about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin: 30px 0;
}

.exteriordecks-service-image,
.about-image {
    min-height: 245px;
}

.exteriordecks-image-one {
    background-image: url('images/gallery/exteriordecks/exteriordecks1.JPEG');
}
.exteriordecks-image-two {
    background-image: url('images/gallery/exteriordecks/exteriordecks2.JPEG');
}
.exteriordecks-image-three {
    background-image: url('images/gallery/exteriordecks/exteriordecks3.JPEG');
}
.exteriordecks-image-four {
    background-image: url('images/gallery/exteriordecks/exteriordecks4.JPEG');
}
.exteriordecks-image-five {
    background-image: url('images/gallery/exteriordecks/exteriordecks5.JPEG');
}
.exteriordecks-image-six {
    background-image: url('images/gallery/exteriordecks/exteriordecks6.JPEG');
}


/* Stack the two before-and-after exteriordecks photos on phones */
@media (max-width: 700px) {
    .exteriordecks-service-image-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .exteriordecks-service-image {
        width: 100%;
        min-height: 300px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #eeeeee;
    }
}

/*PHOTOS FOR EXTERIORDECKS SERVICE PAGES*/

/*PHOTOS FOR STAIRSERVICES SERVICE PAGES*/

.stairservices-service-hero-image,
.stairservices-service-image,
.stairservices-about-image-large,
.stairservices-about-image {
    background-position: center;
    background-size: cover;
}

.stairservices-service-hero-image {
    min-height: 390px;
    margin-bottom: 36px;
    background-image: var(--stairservices-service-main-image);
}

.stairservices-service-image-grid,
.stairservices-about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin: 30px 0;
}

.stairservices-service-image,
.about-image {
    min-height: 245px;
}

.stairservices-image-one {
    background-image: url('images/gallery/stairservices/stairservices1.jpg');
}
.stairservices-image-two {
    background-image: url('images/gallery/stairservices/stairservices2.JPEG');
}
.stairservices-image-three {
    background-image: url('images/gallery/stairservices/stairservices3.JPEG');
}
.stairservices-image-four {
    background-image: url('images/gallery/stairservices/stairservices4.jpg');
}



/* Stack the two before-and-after stairservices photos on phones */
@media (max-width: 700px) {
    .stairservices-service-image-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .stairservices-service-image {
        width: 100%;
        min-height: 300px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #eeeeee;
    }
}

/*PHOTOS FOR STAIRSERVICES SERVICE PAGES*/







.service-block,
.about-text-block {
    padding: 34px 0;
    border-top: 1px solid var(--border);
}

.service-block h3,
.about-text-block h3,
.quote-panel h3,
.side-card h3 {
    margin: 0 0 14px;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.service-block p,
.about-text-block p,
.about-side-panel p {
    /*color: var(--muted);
    line-height: 1.75;*/
}

.highlight-block {
    margin: 12px 0 0;
    padding: 34px;
    background: #f7f7f7;
    border-top: 4px solid var(--accent);
}

.check-list {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding: 10px 0 10px 30px;
    font-weight: 700;
}

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

.stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 34px 0;
}

.stats-strip div {
    padding: 28px;
    background: var(--dark);
    color: var(--white);
}

.stats-strip strong {
    display: block;
    color: var(--accent);
    font-size: 38px;
    line-height: 1;
}

.stats-strip span {
    display: block;
    margin-top: 8px;
    font-weight: 800;
}

.quote-panel {
    padding: 44px;
    background: var(--dark);
    color: var(--white);
}

.quote-panel p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

.service-sidebar {
    position: sticky;
    top: 110px;
}

.side-card {
    margin-bottom: 24px;
    padding: 30px;
    background: #f7f7f7;
}

.service-menu-card a {
    display: block;
    margin-top: 10px;
    padding: 17px 18px;
    background: var(--white);
    border-left: 4px solid var(--accent);
    color: #161616;
    font-weight: 900;
}

.service-menu-card a:hover,
.service-menu-card a.active {
    background: var(--accent);
    color: var(--dark);
}

.help-card p {
    color: var(--muted);
    line-height: 1.7;
}

.help-card .eyebrow {
    color: var(--accent);
}

/* =========================================================
   ABOUT PAGE - FULL WIDTH, NO RIGHT SIDEBAR
   ========================================================= */

.about-banner {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.45)), var(--page-banner-image) center / cover;
}

.about-page-section {
    margin-top: var(--section-space);
    margin-bottom: var(--section-space);
}

.about-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 44px;
    align-items: start;
}

.about-main-content {
    width: 100%;
    max-width: 100%;
}

.about-image-large {
    min-height: 420px;
    margin: 0 0 36px;
    background-image: var(--service-main-image);
}

.about-side-panel {
    display: none;
}

.about-stats {
    grid-template-columns: 1fr;
    margin: 0 0 24px;
}

.about-stats div {
    padding: 24px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 35px;
    padding: 60px max(16px, calc((100% - var(--container)) / 2));
    background: var(--dark);
    color: var(--white);
}

.site-footer a {
    display: block;
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

.footer-logo {
    color: var(--white) !important;
}

/* =========================================================
   TABLET / MOBILE MENU
   ========================================================= */

@media (max-width: 980px) {
    .top-bar {
        display: none;
    }

    .nav-wrap {
        position: relative;
        width: 100%;
        height: 72px;
        padding: 0 14px;
    }

    .hamburger {
        display: flex;
        position: absolute;
        top: 13px;
        right: 14px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        z-index: 50;
        width: 100%;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        padding: 0;
        background: var(--dark);
        color: var(--white);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav > a,
    .dropdown-toggle {
        display: block;
        width: 100%;
        padding: 18px 22px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        color: var(--white) !important;
        text-align: left;
    }

    .nav-button {
        border-radius: 0;
        background: var(--accent) !important;
        color: var(--dark) !important;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-toggle::after {
        content: '+';
        float: right;
    }

    .nav-dropdown.is-open .dropdown-toggle::after {
        content: '-';
    }

    .dropdown-menu {
        display: none;
        position: static;
        padding: 0;
        background: #1c1c1c;
        border-top: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-dropdown.is-open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 15px 34px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        color: var(--white);
    }

    .dropdown-menu a:hover {
        background: #252525;
        color: var(--white);
    }

    .hero {
        min-height: 620px;
    }

    .hero-card {
        position: static;
        grid-column: 2;
        width: max-content;
        margin-top: 30px;
    }

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

    .services-layout {
        grid-template-columns: 1fr;
        margin-top: 64px;
        margin-bottom: 64px;
    }

    .service-sidebar {
        position: static;
        order: -1;
    }

    .service-menu-card {
        padding: 22px;
    }

    .service-menu-card a {
        padding: 15px 16px;
    }

    .page-banner {
        min-height: 260px;
    }

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

    .about-page-section {
        margin-top: 64px;
        margin-bottom: 64px;
    }

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

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

/* =========================================================
   SMALL PHONE STYLES
   ========================================================= */

@media (max-width: 560px) {
    .logo {
        font-size: 23px;
    }

    .nav-wrap {
        height: 66px;
        padding: 0 12px;
    }

    .hamburger {
        top: 10px;
        right: 12px;
        width: 44px;
        height: 44px;
    }

    .main-nav {
        top: 66px;
        max-height: calc(100vh - 66px);
    }

    .hero {
        min-height: auto;
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-copy {
        font-size: 17px;
    }

    .hero-card {
        width: 100%;
        padding: 22px;
    }

    .expertise-section,
    .cta-section {
        margin-top: 60px;
        margin-bottom: 60px;
    }

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

    .cta-section {
        padding: 44px 22px;
    }

    .services-layout,
    .about-page-section {
        width: calc(100% - 24px);
        margin-top: 48px;
        margin-bottom: 48px;
        gap: 28px;
    }

    .page-banner-inner {
        width: calc(100% - 24px);
    }

    .page-banner {
        min-height: 230px;
    }

    .service-hero-image,
    .about-image-large {
        min-height: 260px;
    }

    .service-image-grid,
    .about-image-grid {
        grid-template-columns: 1fr;
    }

    .service-image,
    .about-image {
        min-height: 220px;
    }

    .highlight-block {
        padding: 24px;
    }

    .stats-strip,
    .about-stats {
        grid-template-columns: 1fr;
    }

    .quote-panel {
        padding: 30px 22px;
    }

    .side-card {
        padding: 22px;
    }

    .site-footer {
        grid-template-columns: 1fr;
        padding: 44px 16px;
    }
}

/* =========================================================
   MULTI-DROPDOWN HAMBURGER MENU FIX
   Allows multiple dropdown groups in the mobile hamburger menu.
   ========================================================= */

.dropdown-toggle {
    position: relative;
}

@media (min-width: 981px) {
    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .main-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav > a,
    .main-nav .dropdown-toggle {
        font-size: 16px;
        line-height: 1.2;
    }

    .dropdown-toggle::after {
        content: '+';
        position: absolute;
        right: 22px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 24px;
        font-weight: 900;
    }

    .nav-dropdown.is-open .dropdown-toggle::after {
        content: '−';
    }

    .nav-dropdown:hover .dropdown-menu {
        display: none;
    }

    .nav-dropdown.is-open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        display: block;
        padding-left: 42px;
        font-size: 15px;
    }
}

@media (max-width: 560px) {
    .main-nav > a,
    .main-nav .dropdown-toggle {
        padding: 17px 18px !important;
    }

    .dropdown-toggle::after {
        right: 18px;
    }

    .dropdown-menu a {
        padding: 14px 30px;
    }
}

/* =========================================================
   SUBFLOOR PHOTO GALLERY
   ========================================================= */

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

.subfloor-gallery-item {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: #222;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

.subfloor-gallery-item img {
    display: block;
    width: 100%;
    height: 245px;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.subfloor-gallery-item:hover img,
.subfloor-gallery-item:focus-visible img {
    opacity: 0.82;
    transform: scale(1.04);
}

.subfloor-gallery-item:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.subfloor-gallery-item span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 13px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.78);
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Enlarged gallery */

.subfloor-lightbox {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 70px 80px 50px;
    background: rgba(0, 0, 0, 0.92);
}

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

.subfloor-lightbox-content {
    max-width: 1100px;
    max-height: 90vh;
    margin: 0;
    text-align: center;
}

.subfloor-lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: calc(90vh - 55px);
    margin: auto;
    object-fit: contain;
}

.subfloor-lightbox-content figcaption {
    margin-top: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.subfloor-lightbox-close,
.subfloor-lightbox-arrow {
    position: absolute;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background 0.2s ease;
}

.subfloor-lightbox-close:hover,
.subfloor-lightbox-arrow:hover,
.subfloor-lightbox-close:focus-visible,
.subfloor-lightbox-arrow:focus-visible {
    background: rgba(255, 255, 255, 0.25);
}

.subfloor-lightbox-close {
    top: 20px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 38px;
    line-height: 38px;
}

.subfloor-lightbox-arrow {
    top: 50%;
    width: 52px;
    height: 62px;
    border-radius: 4px;
    font-size: 34px;
    transform: translateY(-50%);
}

.subfloor-lightbox-prev {
    left: 22px;
}

.subfloor-lightbox-next {
    right: 22px;
}

body.subfloor-lightbox-open {
    overflow: hidden;
}

@media (max-width: 700px) {
    .subfloor-gallery {
        grid-template-columns: 1fr;
    }

    .subfloor-gallery-item img {
        height: 220px;
    }

    .subfloor-lightbox {
        padding: 70px 15px 80px;
    }

    .subfloor-lightbox-arrow {
        top: auto;
        bottom: 14px;
        width: 48px;
        height: 48px;
        transform: none;
    }

    .subfloor-lightbox-prev {
        left: calc(50% - 58px);
    }

    .subfloor-lightbox-next {
        right: calc(50% - 58px);
    }

    .subfloor-lightbox-close {
        top: 12px;
        right: 14px;
    }
}

/* Full-width service page without right sidebar */
.services-layout-full {
    display: block;
}

.services-layout-full .service-content {
    width: 100%;
    max-width: 100%;
}

/* Three stair gallery photos per row on desktop */
.stair-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Two per row on tablets */
@media (max-width: 900px) {
    .stair-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* One full-width photo per row on phones */
@media (max-width: 600px) {
    .stair-gallery {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .stair-gallery .subfloor-gallery-item img {
        width: 100%;
        height: auto;
        max-height: none;
        aspect-ratio: auto;
        object-fit: contain;
        background: #eeeeee;
    }
}
