/* =========================================================
   1. MASTER GLOBAL HEADING TYPOGRAPHY (CORMORANT GARAMOND)
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

h1, h2, h3, h4, h5, h6,
.hero-title,
.hero-main-title,
.hero-left-title,
.hero-heading,
.ch-title,
.ch-title-main,
.serif-heading,
.section-title,
.section-heading,
.section-heading-dark,
.section-heading-light,
.section-heading-hero,
.portfolio-heading-dark,
.portfolio-heading,
.dark-section-title,
.section-title-dark,
.dark-section-heading,
.gallery-title,
.project-title,
.card-title,
.scope-title,
.uniq-heading,
.heading-accent-light,
.heading-accent-dark,
.modal-title,
.service-title,
.cta-title,
.cta-heading,
.calc-heading,
.cta-container .serif-heading,
.cta-container h2,
.nav-proj-title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 400 !important;
    letter-spacing: -0.01em !important;
}

/* A. Main Hero Titles & Light Cover Headings */
.section-heading-hero,
.hero-title,
.hero-main-title,
.hero-left-title,
.ch-title-main,
.cinematic-hero h1,
.cta-banner h1,
.cta-banner h2,
.cta-container h1,
.cta-container h2,
.cta-container .serif-heading,
.cta-banner .serif-heading,
.cta-heading,
.scope-cta-banner-sec h2,
#ctaBannerSection h2,
.section-heading-light {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 400 !important;
    font-size: clamp(36px, 4.2vw, 58px) !important;
    line-height: 1.05 !important;
    font-style: normal !important;
    color: #FFFFFF !important;
}

/* B. Dark Section Headings (25+ Years of Design Legacy) */
.section-heading-dark,
.scope-title,
.serif-heading,
.section-heading,
.service-title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 400 !important;
    font-size: clamp(36px, 4.2vw, 58px) !important;
    line-height: 1.06 !important;
    font-style: normal !important;
    color: #0D0D0C !important;
}

/* Portfolio Detail Specific Headings */
.portfolio-heading-dark {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 400 !important;
    font-size: clamp(28px, 2.5vw, 38px) !important;
    line-height: 1.15 !important;
    font-style: normal !important;
    color: #0D0D0C !important;
}

/* Last Word Accent Colors */
.heading-accent-dark,
.accent-text,
.uniq-accent {
    color: #7B7368 !important;
    font-style: italic !important;
    font-weight: 400 !important;
}

.heading-accent-light,
.cta-accent,
.calc-accent {
    color: #C9C2B8 !important;
    font-style: italic !important;
    font-weight: 400 !important;
}

/* =========================================================
   2. LIGHT BUTTON THEME FOR COVER IMAGE BACKGROUND SECTIONS
========================================================= */
.cinematic-hero .ch-button,
.ch-content .ch-button,
.hero-content .ch-button,
.cta-banner .ch-button,
.cta-banner .cta-btn,
.cta-banner .scope-cta-btn,
.cta-banner a,
.cta-banner a.cta-btn,
.cta-container .cta-btn,
.cta-container a.cta-btn,
.section-cta .ch-button,
.section-cta a,
.section-cta .cta-btn,
#ctaSection .ch-button,
#ctaSection a,
.calc-btn,
a.calc-btn,
.btn-light {
    background: #F5F3EE !important;
    color: #0D0D0C !important;
    border: 1px solid #C9C2B8 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12) !important;
}

.cinematic-hero .ch-button .ch-btn-arrow,
.ch-content .ch-button .ch-btn-arrow,
.cta-banner .ch-button .ch-btn-arrow,
.cta-banner .cta-btn .ch-btn-arrow,
.cta-banner a .ch-btn-arrow,
.cta-container .cta-btn .ch-btn-arrow,
.section-cta .ch-button .ch-btn-arrow,
.section-cta a .ch-btn-arrow,
#ctaSection .ch-button .ch-btn-arrow {
    color: #0D0D0C !important;
}

.cinematic-hero .ch-button:hover,
.ch-content .ch-button:hover,
.hero-content .ch-button:hover,
.cta-banner .ch-button:hover,
.cta-banner .cta-btn:hover,
.cta-banner .scope-cta-btn:hover,
.cta-banner a:hover,
.cta-container .cta-btn:hover,
.cta-container a.cta-btn:hover,
.section-cta .ch-button:hover,
.section-cta a:hover,
.section-cta .cta-btn:hover,
#ctaSection .ch-button:hover,
#ctaSection a:hover,
.calc-btn:hover,
a.calc-btn:hover,
.btn-light:hover {
    background: #E5E0D8 !important;
    color: #0D0D0C !important;
    border-color: #BDB5AA !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}


/* =========================================================
   COMPLETE MASTER BUTTON SYSTEM (AUDITED & STANDARDIZED)
   1. Dark Charcoal Button Theme (Default for entire website)
   2. Light Creme Button Theme (Used ONLY on cover image backgrounds)
   3. Simple Inline Arrow (Stationary, No circle wrapper)
========================================================= */

/* 1. DARK CHARCOAL BUTTON THEME (DEFAULT FOR ALL SECTIONS) */
.ch-button,
.scope-cta-btn,
.scope-about-sec a.scope-cta-btn,
.calc-btn,
.cta-btn,
.btn-luxury,
.btn-luxury-outline,
.consultation-submit-btn,
.service-primary-btn,
.fp-view-all-btn,
.service-back-btn,
.action-btn,
.action-btn.primary,
.action-btn.secondary,
.inquire-btn,
.see-more-btn,
.next-step,
.prev-step,
button.ch-button,
input[type="submit"].ch-button,
a.ch-button,
a.scope-cta-btn,
.btn-dark {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    background: #0D0D0C !important;
    color: #FFFFFF !important;
    border: 1px solid #0D0D0C !important;
    text-decoration: none !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    letter-spacing: 0.2px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    outline: none !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
    opacity: 1 !important;
}

/* Arrow inside Dark Button Theme */
.ch-button .ch-btn-arrow,
.scope-cta-btn .ch-btn-arrow,
.scope-cta-btn .arrow,
.calc-btn .btn-arrow,
.cta-btn .cta-arrow,
.btn-luxury .arrow,
.action-btn .btn-arrow,
.next-step .btn-arrow,
.prev-step .btn-arrow,
.service-back-btn .ch-btn-arrow,
.fp-view-all-btn .ch-btn-arrow {
    display: inline-block !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: 17px !important;
    line-height: 1 !important;
    color: #FFFFFF !important;
    transition: transform 0.35s ease !important;
    transform: none !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
}

/* Hover state for Dark Button Theme */
.ch-button:hover,
.scope-cta-btn:hover,
.scope-about-sec a.scope-cta-btn:hover,
.calc-btn:hover,
.cta-btn:hover,
.btn-luxury:hover,
.btn-luxury-outline:hover,
.consultation-submit-btn:hover,
.service-primary-btn:hover,
.fp-view-all-btn:hover,
.service-back-btn:hover,
.action-btn:hover,
.action-btn.primary:hover,
.action-btn.secondary:hover,
.inquire-btn:hover,
.see-more-btn:hover,
.next-step:hover,
.prev-step:hover,
button.ch-button:hover,
input[type="submit"].ch-button:hover,
a.ch-button:hover,
a.scope-cta-btn:hover,
.btn-dark:hover {
    background: #1C1A18 !important;
    color: #FFFFFF !important;
    border-color: #1C1A18 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22) !important;
}

/* Arrow stays stationary on hover */
.ch-button:hover .ch-btn-arrow,
.scope-cta-btn:hover .arrow,
.calc-btn:hover .btn-arrow,
.cta-btn:hover .cta-arrow,
.action-btn:hover .btn-arrow,
.next-step:hover .btn-arrow,
.prev-step:hover .btn-arrow {
    transform: none !important;
    color: #FFFFFF !important;
}

/* 2. LIGHT CREME BUTTON THEME (USED ONLY ON COVER IMAGE BACKGROUNDS) */
.cinematic-hero .ch-button,
.ch-content .ch-button,
.hero-content .ch-button,
.cta-banner .ch-button,
.cta-banner .cta-btn,
.cta-banner .scope-cta-btn,
.cta-banner a,
.cta-banner a.cta-btn,
.cta-container .cta-btn,
.cta-container a.cta-btn,
.section-cta .ch-button,
.section-cta a,
.section-cta .cta-btn,
#ctaSection .ch-button,
#ctaSection a,
.scope-cta-banner-sec .cta-btn,
#ctaBannerSection .cta-btn,
.cta-btn-wrap .cta-btn,
#openConsultationBtn,
a#openConsultationBtn,
.calc-btn,
a.calc-btn,
.btn-light {
    background: #DDD8D0 !important;
    color: #0D0D0C !important;
    border: 1px solid #C9C2B8 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12) !important;
}

#openConsultationBtn span,
a#openConsultationBtn span,
.scope-cta-banner-sec .cta-btn span,
#ctaBannerSection .cta-btn span,
.cta-btn-wrap .cta-btn span,
.cta-banner .cta-btn span,
.calc-btn span,
a.calc-btn span,
.btn-light span {
    color: #0D0D0C !important;
}

.cinematic-hero .ch-button .ch-btn-arrow,
.ch-content .ch-button .ch-btn-arrow,
.cta-banner .ch-button .ch-btn-arrow,
.cta-banner .cta-btn .ch-btn-arrow,
.cta-banner a .ch-btn-arrow,
.cta-container .cta-btn .ch-btn-arrow,
.section-cta .ch-button .ch-btn-arrow,
.section-cta a .ch-btn-arrow,
#ctaSection .ch-button .ch-btn-arrow,
.scope-cta-banner-sec .cta-btn .ch-btn-arrow,
#ctaBannerSection .cta-btn .ch-btn-arrow,
.cta-btn-wrap .cta-btn .ch-btn-arrow,
#openConsultationBtn .ch-btn-arrow,
a#openConsultationBtn .ch-btn-arrow,
.calc-btn .ch-btn-arrow,
.calc-btn .btn-arrow,
.btn-light .ch-btn-arrow,
.btn-light .cta-arrow {
    color: #0D0D0C !important;
    background: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    transform: none !important;
}

/* Hover state for Light Button Theme */
.cinematic-hero .ch-button:hover,
.ch-content .ch-button:hover,
.hero-content .ch-button:hover,
.cta-banner .ch-button:hover,
.cta-banner .cta-btn:hover,
.cta-banner .scope-cta-btn:hover,
.cta-banner a:hover,
.cta-container .cta-btn:hover,
.cta-container a.cta-btn:hover,
.section-cta .ch-button:hover,
.section-cta a:hover,
.section-cta .cta-btn:hover,
#ctaSection .ch-button:hover,
#ctaSection a:hover,
.scope-cta-banner-sec .cta-btn:hover,
#ctaBannerSection .cta-btn:hover,
.cta-btn-wrap .cta-btn:hover,
#openConsultationBtn:hover,
a#openConsultationBtn:hover,
.calc-btn:hover,
a.calc-btn:hover,
.btn-light:hover {
    background: #E5E0D8 !important;
    color: #0D0D0C !important;
    border-color: #BDB5AA !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

.cinematic-hero .ch-button:hover .ch-btn-arrow,
.ch-content .ch-button:hover .ch-btn-arrow,
.cta-banner .ch-button:hover .ch-btn-arrow,
.cta-banner .cta-btn:hover .ch-btn-arrow,
.cta-banner a:hover .ch-btn-arrow,
.cta-container .cta-btn:hover .ch-btn-arrow,
.section-cta .ch-button:hover .ch-btn-arrow,
.section-cta a:hover .ch-btn-arrow,
#ctaSection .ch-button:hover .ch-btn-arrow,
.scope-cta-banner-sec .cta-btn:hover .ch-btn-arrow,
#ctaBannerSection .cta-btn:hover .ch-btn-arrow,
.cta-btn-wrap .cta-btn:hover .ch-btn-arrow,
#openConsultationBtn:hover .ch-btn-arrow,
a#openConsultationBtn:hover .ch-btn-arrow,
.calc-btn:hover .ch-btn-arrow,
.calc-btn:hover .btn-arrow,
.btn-light:hover .ch-btn-arrow,
.btn-light:hover .cta-arrow {
    color: #0D0D0C !important;
    transform: none !important;
}

/* =========================================================
   GLOBAL WEBSITE LIGHT SECTION COLOR (#F5F3EE)
========================================================= */
body {
    background-color: #F5F3EE !important;
}

:root {
    --bg-main: #F5F3EE !important;
    --bg-card: #F5F3EE !important;
    --bg-creme: #F5F3EE !important;
    --bg-light: #F5F3EE !important;
    --bg-primary: #F5F3EE !important;
}

section:not(.scope-cta-banner-sec):not(#ctaBannerSection):not(.section-cta):not(#ctaSection):not(.cinematic-hero):not(.hero-cinematic):not(.dark-section) {
    background-color: #F5F3EE;
}


/* =========================================================
   MASTER STANDARDIZED GLOBAL FOOTER COMPONENT
========================================================= */
html {
    height: auto !important;
}

body {
    min-height: 100vh;
    background-color: #F5F3EE !important;
}

footer.site-footer,
.site-footer {
    width: 100% !important;
    background: #F5F3EE !important;
    background-color: #F5F3EE !important;
    border-top: 1px solid rgba(13, 13, 12, 0.08) !important;
    padding: 24px 0 !important;
    box-sizing: border-box !important;
    clear: both !important;
    position: relative !important;
    z-index: 100 !important;
}

.site-footer .footer-container {
    max-width: 1400px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    box-sizing: border-box !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: #0D0D0C !important;
}

.site-footer .footer-container > div:first-child {
    color: #0D0D0C !important;
    opacity: 0.85 !important;
    white-space: nowrap !important;
}

.site-footer .footer-divider,
.footer-divider,
.footer-divider-line {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 20px !important;
    max-width: none !important;
    height: 1px !important;
    min-height: 1px !important;
    max-height: 1px !important;
    background: rgba(13, 13, 12, 0.22) !important;
    border: none !important;
    margin: 0 30px !important;
    display: block !important;
    align-self: center !important;
}

.site-footer .footer-socials {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
}

.site-footer .footer-socials a {
    color: #0D0D0C !important;
    text-decoration: none !important;
    opacity: 0.8 !important;
    transition: opacity 0.3s ease, color 0.3s ease !important;
    white-space: nowrap !important;
}

.site-footer .footer-socials a:hover {
    opacity: 1 !important;
    color: #0D0D0C !important;
}

.site-footer .back-to-top {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #0D0D0C !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.site-footer .back-to-top span {
    color: #0D0D0C !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.18em !important;
}

.site-footer .top-arrow-circle {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    border: 1px solid #0D0D0C !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    line-height: 1 !important;
    color: #0D0D0C !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.site-footer .back-to-top:hover .top-arrow-circle {
    background: #0D0D0C !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
}

@media (max-width: 768px) {
    .site-footer .footer-container {
        flex-direction: column !important;
        gap: 16px !important;
        text-align: center !important;
        padding: 0 20px !important;
    }
    .site-footer .footer-divider,
    .footer-divider,
    .footer-divider-line {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 20px !important;
        max-width: none !important;
        height: 1px !important;
        min-height: 1px !important;
        max-height: 1px !important;
        background: rgba(13, 13, 12, 0.22) !important;
        border: none !important;
        margin: 0 30px !important;
        display: block !important;
        align-self: center !important;
    }
}

/* =========================================================
   MASTER PROJECT DETAIL PAGES MOBILE 2-COLUMN ABSTRACT BENTO GRID (Screen <= 767px)
========================================================= */
@media (max-width: 767px) {
    .gallery-section {
        padding: 0 16px 40px 16px !important;
    }
    .gallery-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
    }
    .gallery-card,
    .gallery-grid .gallery-card,
    .gallery-grid > div[class*="g-card-"] {
        grid-column: span 1 !important;
        grid-row: auto !important;
        height: 200px !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
    }

    .gallery-label-badge {
        padding: 6px 12px !important;
        font-size: 10px !important;
        bottom: 12px !important;
        left: 12px !important;
        border-radius: 4px !important;
    }

    /* Mobile Specs Bar & Story section spacing refinement */
    .specs-bar-sec {
        padding: 18px 20px !important;
    }
    .specs-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px 12px !important;
    }
    .story-section {
        padding: 40px 20px 30px 20px !important;
    }
    .story-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    .palette-section {
        padding: 40px 20px !important;
    }
    .palette-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }
    .swatches-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
    }
}

/* =========================================================
   MASTER PROJECT DETAIL SECTIONS BACKGROUND (#DDD8D0)
   ========================================================= */
.specs-bar-sec,
.palette-section,
.quote-box,
.nav-project-card {
    background-color: #DDD8D0 !important;
}

.nav-project-card:hover {
    background-color: #C9C2B8 !important;
}

/* =========================================================
   PORTFOLIO WALKTHROUGH VIDEO GRID & LIGHTBOX MODAL (#DDD8D0 BG, TOP LOGO, CENTER PLAY BUTTON)
   ========================================================= */

/* Hide video cards by default in all photo grid modes */
.all-mode .card-video,
.res-mode .card-video,
.com-mode .card-video {
    display: none !important;
}

/* Video Mode Grid (Desktop 3-Column) */
.vid-mode {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    width: 100% !important;
}

.vid-mode .portfolio-card:not(.card-video) {
    display: none !important;
}

.vid-mode .card-video {
    display: flex !important;
    flex-direction: column !important;
    grid-column: span 1 !important;
    height: 380px !important;
    opacity: 1 !important;
    visibility: visible !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    position: relative !important;
    background: #DDD8D0 !important;
    background-color: #DDD8D0 !important;
    border: 1px solid rgba(28, 25, 23, 0.15) !important;
    cursor: pointer !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}

.vid-mode .card-video:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.14) !important;
}

/* Mobile Video Grid Overrides (<= 767px) */
@media (max-width: 767px) {
    .vid-mode {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .vid-mode .card-video {
        grid-column: span 1 !important;
        height: 220px !important;
        border-radius: 14px !important;
    }
}

/* Video Wrapper & Background */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: #DDD8D0 !important;
    background-color: #DDD8D0 !important;
    overflow: hidden;
    border-radius: inherit;
}

/* Top Left Logo */
.video-card-top-logo {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 3;
    pointer-events: none;
}

.video-card-top-logo img.video-thumb-logo,
.portfolio-card img.video-thumb-logo {
    max-width: 140px !important;
    max-height: 48px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    opacity: 0.92 !important;
    filter: grayscale(100%) contrast(120%) !important;
    -webkit-filter: grayscale(100%) contrast(120%) !important;
    transition: transform 0.4s ease, opacity 0.4s ease !important;
}

.card-video:hover .video-card-top-logo img.video-thumb-logo {
    transform: scale(1.05) !important;
    opacity: 1 !important;
}

/* Center Play Button Badge with Text */
.video-center-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #242220 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #FFFFFF;
    border-radius: 30px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    z-index: 4;
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.card-video:hover .video-center-play-badge {
    background: #1C1917;
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* Bottom Bar: Text Left */
.video-card-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 24px;
    background: linear-gradient(to top, rgba(221, 216, 208, 0.98) 0%, rgba(221, 216, 208, 0.75) 70%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    box-sizing: border-box;
    z-index: 3;
}

.video-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px !important;
    text-align: left;
}

.video-card-info .card-title {
    font-family: 'Cinzel', 'Playfair Display', serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0D0D0C !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.1 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85) !important;
}

.video-card-info .card-meta {
    font-family: 'Inter', sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.15em !important;
    color: #3D3732 !important;
    text-transform: uppercase !important;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.85) !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 767px) {
    .video-card-top-logo {
        top: 14px;
        left: 14px;
    }
    .video-card-top-logo img.video-thumb-logo {
        max-width: 95px !important;
        max-height: 32px !important;
    }
    .video-center-play-badge {
        padding: 8px 14px;
        font-size: 9px;
        gap: 6px;
    }
    .video-center-play-badge svg {
        width: 12px;
        height: 12px;
    }
    .video-card-bottom-bar {
        padding: 12px 14px;
    }
    .video-card-info .card-title {
    font-family: 'Cinzel', 'Playfair Display', serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0D0D0C !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.1 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85) !important;
}
    .video-card-info .card-meta {
    font-family: 'Inter', sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.15em !important;
    color: #3D3732 !important;
    text-transform: uppercase !important;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.85) !important;
    margin: 0 !important;
    padding: 0 !important;
}
}

/* Lightbox Modal */
.video-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: none !important;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-lightbox-modal.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.video-lightbox-container {
    position: relative;
    width: 90%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-lightbox-container video {
    width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.7);
    background: #000;
    outline: none;
}

.video-lightbox-title {
    color: #FFFFFF;
    font-family: 'Cinzel', 'Playfair Display', serif;
    font-size: 18px;
    margin-top: 16px;
    letter-spacing: 1px;
    text-align: center;
}

.video-lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.video-lightbox-close:hover {
    opacity: 0.7;
}

.video-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFF;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.video-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.08);
}

.video-lightbox-prev { left: -65px; }
.video-lightbox-next { right: -65px; }

@media (max-width: 767px) {
    .video-lightbox-prev { left: 10px; top: auto; bottom: -60px; transform: none; }
    .video-lightbox-next { right: 10px; top: auto; bottom: -60px; transform: none; }
    .video-lightbox-prev:hover, .video-lightbox-next:hover { transform: none; }
    .video-lightbox-title { font-size: 14px; margin-top: 10px; }
}

/* =========================================================
   STRICT MOBILE 2-LINE FILTER TABS & VIDEO REFINEMENTS (Screen <= 767px ONLY)
   ========================================================= */
@media (max-width: 767px) {
    .portfolio-filter-sec {
        padding: 10px 16px 16px 16px !important;
    }

    .filter-tabs-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important; /* STRICT 2-LINE WRAPPING ON MOBILE */
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px 20px !important;
        overflow-x: visible !important;
        border-bottom: 2px solid rgba(28, 25, 23, 0.12) !important;
        padding-bottom: 14px !important;
        margin-bottom: 24px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .filter-tabs-wrapper::-webkit-scrollbar {
        display: none !important;
    }

    .filter-btn {
        font-size: 11.5px !important;
        font-weight: 700 !important;
        letter-spacing: 0.12em !important;
        padding: 6px 0 !important;
        margin-right: 0 !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .filter-btn .tab-count {
        font-size: 10.5px !important;
    }

    .filter-btn::after {
        bottom: -14px !important;
    }

    /* Video Card Mobile Elements Refinement */
    .video-card-top-logo {
        top: 10px !important;
        left: 10px !important;
    }

    .video-card-top-logo img.video-thumb-logo {
        max-width: 80px !important;
        max-height: 26px !important;
    }

    .video-center-play-badge {
        padding: 6px 12px !important;
        font-size: 8.5px !important;
        gap: 4px !important;
        border-radius: 20px !important;
    }

    .video-center-play-badge svg {
        width: 10px !important;
        height: 10px !important;
    }

    .video-card-bottom-bar {
        padding: 8px 10px !important;
    }

    .video-card-info .card-title {
    font-family: 'Cinzel', 'Playfair Display', serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0D0D0C !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.1 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85) !important;
}

    .video-card-info .card-meta {
    font-family: 'Inter', sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.15em !important;
    color: #3D3732 !important;
    text-transform: uppercase !important;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.85) !important;
    margin: 0 !important;
    padding: 0 !important;
}
}

/* Single Line PLAY VIDEO text on mobile */
.video-center-play-badge {
    white-space: nowrap !important;
}
@media (max-width: 767px) {
    .video-center-play-badge {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        padding: 5px 9px !important;
        font-size: 7.5px !important;
        letter-spacing: 0.06em !important;
        gap: 3px !important;
    }
    .video-center-play-badge svg {
        width: 9px !important;
        height: 9px !important;
    }
}

/* =========================================================
   CALCULATOR MOBILE 2-COLUMN GRID OVERRIDE (Screen <= 768px ONLY)
   ========================================================= */
@media (max-width: 768px) {
    .option-grid,
    .multi-select-grid,
    [data-step] .option-grid,
    #interior-calculator-app .option-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px 10px !important;
    }

    .option-card,
    #interior-calculator-app .option-card {
        padding: 16px 10px 14px 10px !important;
        min-height: 140px !important;
        box-sizing: border-box !important;
    }

    .option-card .option-title {
        font-size: 13px !important;
        margin-top: 6px !important;
    }

    .option-card .option-subtitle,
    .option-card small {
        font-size: 10px !important;
    }
}

/* MASTER HEADING ACCENT ITALIC OVERRIDE */
.heading-accent-dark,
.heading-accent-light,
.heading-accent,
.accent-text,
.uniq-accent,
.calc-accent,
.cta-accent,
.services-accent {
    font-style: italic !important;
}

/* MASTER HEADING ACCENT ITALIC OVERRIDE (ONLY ACCENT SPANS) */
.heading-accent-dark,
.heading-accent-light,
.heading-accent,
.accent-text,
.uniq-accent,
.calc-accent,
.cta-accent,
.services-accent {
    font-style: italic !important;
}

/* BASE HEADINGS UPRIGHT / NORMAL */
h1:not(.heading-accent-dark):not(.heading-accent-light),
h2:not(.heading-accent-dark):not(.heading-accent-light),
h3:not(.heading-accent-dark):not(.heading-accent-light),
.section-heading-dark,
.section-heading-light,
.section-heading-hero,
.scope-title,
.serif-heading,
.section-heading,
.service-title,
.portfolio-heading-dark {
    font-style: normal !important;
}

/* =========================================================
   MOBILE UI OVERRIDES & ENHANCEMENTS
========================================================= */

/* 1. MOBILE LEAD MODAL POPUP FIXES */
#leadModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100svh !important;
    background: rgba(13, 13, 12, 0.65) !important;
    z-index: 999999 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

#leadModal > div {
    position: relative !important;
    background: #F5F3EE !important;
    border-radius: 12px !important;
    padding: 30px 22px !important;
    max-width: 480px !important;
    width: 100% !important;
    max-height: 90vh !important;
    max-height: 90svh !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid #DDD8D0 !important;
    box-sizing: border-box !important;
    margin: auto !important;
}

/* 2. MOBILE NAV DRAWER BACKDROP & OVERLAY FIXES */
@media (max-width: 991px) {
    .header-nav.nav-open::before {
        content: '' !important;
        position: fixed !important;
        top: 0 !important;
        left: -100vw !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100svh !important;
        background: rgba(13, 13, 12, 0.45) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        pointer-events: auto !important;
        z-index: -1 !important;
    }
}

/* 3. 3 CIRCLE FEATURE ICONS MOBILE GRID FIX */
@media (max-width: 768px) {
    .scope-features-row {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        margin-top: 15px !important;
        padding-top: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 0 !important;
        box-sizing: border-box !important;
    }

    .scope-feature-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0 4px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* 4. FEATURED PROJECTS HORIZONTAL SCROLL CAROUSEL ON MOBILE */
@media (max-width: 768px) {
    .scope-featured-projects-sec {
        padding: 40px 0 !important;
        overflow: hidden !important;
    }

    .fp-container {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .fp-header {
        padding: 0 20px !important;
        margin-bottom: 24px !important;
    }

    .fp-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 16px !important;
        padding: 10px 20px 25px 20px !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .fp-grid::-webkit-scrollbar {
        display: none !important;
    }

    .fp-card {
        flex: 0 0 78% !important;
        width: 78% !important;
        min-width: 78% !important;
        max-width: 78% !important;
        scroll-snap-align: center !important;
        margin: 0 !important;
    }

    .fp-card:first-child {
        scroll-snap-align: start !important;
    }

    .fp-card:last-child {
        scroll-snap-align: end !important;
    }
}

