/* ==========================================================================
   GIRAFFE PAINTERS - STICKY FIXED CODE SYSTEM (PART 1 OF 2)
   ========================================================================== */

:root {
    /* Brand Theme Custom Color Matrix */
    --bg-cream: #FDEDDF;          /* Your Correct Logo Backdrop Color */
    --surface-white: #ffffff;     /* White Grid Boxes */
    --text-charcoal: #2A2520;     /* Deep readable off-black typography */
    --giraffe-gold: #EB6E00;      /* Core Call to Action Accent (Marigold) */
    --gold-hover: #E29600;        /* Interactive Element Selection Hover */
    --border-subtle: rgba(42, 37, 32, 0.08);

    /* Clean Font Framework Pairings */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', Helvetica, Arial, sans-serif;
}

/* --- Global Site Configurations --- */
html {
    scroll-behavior: smooth; /* Native Fluid Gliding Layout Animation Hook */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--surface-white); /* Defaults canvas to absolute white */
    color: var(--text-charcoal);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* --- Global Page Architecture Containers --- */
.card-section {
    width: 100%;
    padding: 80px 24px; 
    border-bottom: 1px solid var(--border-subtle);
    background-color: var(--surface-white); /* Defaults all sections to crisp white first */
}

.container-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-title h2 {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-title p {
    font-size: 1.1rem;
    color: rgba(42, 37, 32, 0.75);
}

/* ==========================================================================
   GLOBAL NAVIGATION COMPONENT (NATURAL POSITION STICKY ARCHITECTURE)
   ========================================================================== */
.main-header {
    position: sticky; 
    top: 0;
    left: 0;
    width: 100%;
    /* Swaps out the peach tone for your logo's exact backdrop variable matching shade */
    background-color: var(--bg-cream) !important; 
    border-bottom: 1px solid var(--border-subtle);
    z-index: 9999;
    padding: 8px 0; 
}

.brand-logo-img {
    /* 📐 TRUE SLIM SCALE: Shrinks height to match corporate standards */
    height: 34px !important;  
    width: auto;            
    display: block;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

/* Sizing boundaries for the top bar brand graphic asset */
.logo-link {
    display: inline-block;
    vertical-align: middle;
    text-decoration: none;
}

/* Base Desktop View for Menu Links */
.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-charcoal);
    margin: 0 16px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--giraffe-gold);
}

.mobile-only-phone {
    display: none; /* Hide phone inside navigation sheet on large monitors */
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    text-decoration: none;
    color: var(--text-charcoal);
    font-weight: 700;
}

/* The Three Lines Hamburger Button Properties */
.menu-toggle {
    display: none; /* Invisible on desktop screens */
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10000;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-charcoal);
    transition: all 0.3s ease;
}

/* ==========================================================================
   BUTTON STRUCTURAL FRAMEWORKS
   ========================================================================== */
.btn {
    display: inline-block;
    text-decoration: none;
    background-color: var(--giraffe-gold);
    color: var(--surface-white);
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease;
}

.btn:hover {
    background-color: var(--text-charcoal);
}

.btn-header {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ==========================================================================
   CARD 1 STYLES - HERO RUNWAY (Full-Width Photo Background Layer)
   ========================================================================== */
.hero-card {
    /* 📸 LOOKS FOR A FILE NAMED hero-bg.jpg IN YOUR VS CODE FOLDER LEVEL */
    background-image: linear-gradient(to bottom, rgba(253, 237, 223, 0.45), rgba(255, 255, 255, 0)), url('hero-bg.jpg');
    background-size: cover;        /* Stretches the image edge-to-edge beautifully */
    background-position: center;    /* Keeps the visual core of your photo perfectly centered */
    background-repeat: no-repeat;
    background-attachment: scroll;  /* Moves smoothly as mobile/desktop users swipe down */
    padding-top: 60px;             /* Gives clean spacing alignment below the sticky header bar */
    padding-bottom: 100px;
    text-align: center;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 3.6rem;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-charcoal);
}

.italic-serif {
    font-style: italic;
    font-weight: 400;
}

.hero-subheading {
    font-size: 1.25rem;
    max-width: 480px; /* Restricts the text line length so it wraps tightly and stays centered */
    margin: 0 auto 40px auto;
    color: var(--text-charcoal);
    font-weight: 600;
    text-shadow: 0 0 12px rgba(255, 255, 255, 1), 0 0 4px rgba(255, 255, 255, 0.8);
}

/* 📐 FRANCHISE TUNING: Turned into a compact, seamless visual wrapper */
.lead-box {
    background: transparent; /* Strips away the giant bulky white background block */
    padding: 0;             /* Wipes out thick box margins so it stays tight and centered */
    max-width: 460px;       /* Sets a slim width ceiling that perfectly emulates WOW 1 DAY */
    margin: 0 auto 30px auto;
    box-shadow: none;       /* Removes block shadow profiles */
    border: none;           /* Removes outer structural boxes */
}

.lead-box h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    margin-bottom: 20px;
    color: var(--text-charcoal);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   COMBINED HIGH-CONVERSION POSTAL INPUT MATRIX (FRANCHISE CAPSULE EMBED)
   ========================================================================== */
/* ==========================================================================
   PERFECT CERTAPRO-STYLE FLOATING CAPSULE BAR OVERHAUL
   ========================================================================== */
.postal-form {
    display: flex;
    gap: 0;                   /* Locks elements flush together inside the track wrapper */
    width: 100%;
    max-width: 320px;         /* 📐 COMPACT WIDTH: Scales down total capsule length to match benchmarks */
    margin: 0 auto 24px auto; /* Centers the capsule bar cleanly over the bedding photo */
    align-items: center;
    background: #ffffff;      
    padding: 6px 6px 6px 20px; /* Generous left padding gives input text breathing space */
    border-radius: 40px;      /* Pill shape capsule edges matching corporate frameworks */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); 
    border: 1px solid var(--border-subtle);
}

.postal-form input {
    width: 100% !important;   /* Input now automatically claims 100% of remaining empty space */
    flex: 1 !important;       /* Allows input text area to grow and shrink dynamically */
    padding: 12px 0;          /* Clean layout alignment padding text tracks */
    border: none !important;  
    font-size: 1rem;
    outline: none;
    background-color: transparent; 
}

/* YOUR FOCUS GLOW SYSTEM UPGRADED FOR THE ENTIRE CAPSULE BAR CONTAINER */
.postal-form:focus-within {
    border-color: var(--giraffe-gold); 
    box-shadow: 0 8px 25px rgba(255, 170, 1, 0.15);
}

.btn-submit {
    width: auto !important;   /* 📐 CONTENT FLEX: Removes percentage limits completely */
    flex: none !important;    /* Stops the button from stretching wider blindly */
    
    /* Perfect Circle/Oval Padding tailored specifically for short words like 'Go' */
    padding: 12px 28px !important; 
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    white-space: nowrap;      /* Guarantees your layout copy never wraps onto line breaks */
    border-radius: 30px !important; /* Elegant oval shape mapping inside the outer tracks */
    background-color: var(--giraffe-gold) !important;
    color: #ffffff !important;
}

.form-feedback {
    margin-top: 16px;
    font-size: 0.95rem;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8); /* Ensures feedback stays legible over photo artifacts */
}

.trust-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.stars {
    color: var(--giraffe-gold);
    letter-spacing: 1px;
}

/* ==========================================================================
   CARD 2 STYLES - VALUE PILLARS (Warm Cream Row Break)
   ========================================================================== */
.difference-card {
    background-color: #F8F9FA !important;
}

.value-row {
    display: flex;
    gap: 40px;
    justify-content: space-between;
}

.value-block {
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

.value-icon {
    font-size: 1.5rem;
    color: var(--giraffe-gold);
    margin-bottom: 14px;
    font-weight: 700;
}

.value-block h4 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.value-block p {
    color: rgba(42, 37, 32, 0.8);
    font-size: 0.98rem;
}

/* ==========================================================================
   CARD 3 STYLES - SERVICE MATRIX GRID (Crisp White Base)
   ========================================================================== */
.services-card {
    background-color: var(--surface-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #ffffff !important; /* Solid white service card panels */
    padding: 40px 30px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 14px;
}

.service-card p {
    font-size: 0.98rem;
    color: rgba(42, 37, 32, 0.8);
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-link {
    text-decoration: none;
    color: var(--giraffe-gold);
    font-weight: 600;
    transition: color 0.2s ease;
}

.card-link:hover {
    color: var(--text-charcoal);
}

/* ==========================================================================
   CARD 4 STYLES - SOCIAL REVIEWS (Warm Cream Row Break)
   ========================================================================== */
.reviews-card {
    background-color: #F8F9FA !important;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.review-box {
    border-left: 3px solid var(--giraffe-gold);
    padding: 10px 0 10px 24px;
}

.review-stars {
    color: var(--giraffe-gold);
    margin-bottom: 10px;
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-charcoal);
    margin-bottom: 14px;
}

.review-author {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: rgba(42, 37, 32, 0.6);
}

/* ==========================================================================
   CARD 5 STYLES - PORTFOLIO SHOWCASE GRID (Crisp White Base)
   ========================================================================== */
.gallery-card {
    background-color: var(--surface-white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background-color: #ffffff !important;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 15px rgba(42, 37, 32, 0.03);
}

.photo-box {
    height: 280px;
    background-color: rgba(255, 243, 227, 0.3) !important; /* Soft warm ivory tint asset placeholder */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-item:hover .photo-box {
    transform: scale(1.04);
}

.photo-tag {
    background-color: var(--surface-white);
    color: var(--text-charcoal);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Image File Asset Paths */
.photo-kitchen { background-image: url('kitchen.jpg'); }
.photo-living   { background-image: url('living.jpg'); }
.photo-bedroom  { background-image: url('bedroom.jpg'); }
.photo-bathroom { background-image: url('bathroom.jpg'); }
.photo-hallway  { background-image: url('hallway.jpg'); }
.photo-exterior { background-image: url('exterior.jpg'); }

/* ==========================================================================
   CARD 6 STYLES - FOOTER SYSTEM (Solid Charcoal Base)
   ========================================================================== */
.footer-card {
    background-color: var(--text-charcoal);
    color: var(--bg-cream);
    text-align: center;
}

.footer-cta-block h2 {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.footer-cta-block p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(255, 243, 227, 0.7);
}

.footer-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-footer-phone {
    background-color: transparent;
    border: 2px solid var(--bg-cream);
    color: var(--bg-cream);
    padding: 12px 28px;
}

.btn-footer-phone:hover {
    background-color: var(--bg-cream);
    color: var(--text-charcoal);
}

.btn-footer-estimate {
    background-color: var(--giraffe-gold);
    color: #ffffff;
    padding: 14px 28px;
}

.btn-footer-estimate:hover {
    background-color: var(--surface-white);
    color: var(--text-charcoal);
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 243, 227, 0.1);
    margin: 60px 0 40px 0;
}

.footer-logo-area {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.footer-logo-img {
    height: 72px;          
    width: auto;            
    display: block;
    mix-blend-mode: normal;
    
     /* 💡 ADDS THE LIGHTING POP: This forces your dark logo text to turn white */
    /* so it reads beautifully against the charcoal footer background! */
    filter: invert(1) brightness(1.5);
}

.partner-text {
    font-size: 0.95rem;
    color: rgba(255, 243, 227, 0.6);
    margin-bottom: 24px;
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 243, 227, 0.4);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & HAMBURGER SYSTEM OVERRIDES (COMPLETE REPAIR)
   ========================================================================== */
@media (max-width: 900px) {
    
    /* 1. ELIMINATES SIDE-SCROLLING: Forces absolute containment inside viewports */
    html, body {
        overflow-x: hidden !important;
        position: relative;
    }

    /* 📐 1. REPAIRS STICKINESS: Re-anchors the header bar box firmly at the top layer */
    .main-header {
        position: sticky !important; 
        top: 0 !important;
        left: 0;
        width: 100%;
        background-color: var(--bg-cream) !important;
        border-bottom: 1px solid var(--border-subtle);
        z-index: 9999 !important;
        padding: 6px 0 !important; /* Balanced layout frame spacing padding */
    }

    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 12px;
        height: 48px; /* Balanced mobile thickness layout benchmark */
    }

    .logo-area {
        display: flex;
        align-items: center;
        order: 1;
    }

    .brand-logo-img {
        height: 28px !important;  /* Perfect tight height profile scaling rules */
        width: auto !important;            
        display: block;
    }

    /* Align CTA button cleanly in the center slot without crowding your text graphics */
    .header-cta { 
        display: flex; 
        align-items: center; 
        justify-content: center;
        order: 2; 
        margin-left: auto;
        margin-right: 12px;
        gap: 0;
    } 

    .phone-link { 
        display: none; /* Safely strips desktop string from mobile headers */
    } 

    /* 🍔 2. MEATY ACTION BUTTON: Restores standard structural height, font weight, and depth */
    .btn-header { 
        padding: 8px 16px !important; /* Re-widened and padded to stand out bold like WOW 1 DAY */
        font-size: 0.78rem !important; 
        font-weight: 700 !important;   /* Thicker typography treatment boosts visual conversion speed */
        border-radius: 4px !important;
        white-space: nowrap;
        letter-spacing: 0.5px;
        line-height: 1.2 !important;   /* Restores meaty box proportions */
    } 

    /* Centers and structures the 3 lines hamburger icon system elements */
    .menu-toggle { 
        display: flex; 
        order: 3; 
        margin-left: 0; 
        height: 16px !important; 
        justify-content: space-between;
    } 

    /* ==========================================================================
       MOBILE FLOATING CAPSULE BALANCE
       ========================================================================== */
    .postal-form {
        display: flex !important;
        flex-direction: row !important; 
        gap: 0 !important;
        width: calc(100% - 24px) !important; 
        max-width: 290px !important; 
        margin: 0 auto 24px auto !important;
        padding: 4px 4px 4px 14px !important; 
        border-radius: 30px !important;
    }

    .postal-form input {
        width: 100% !important;
        flex: 1 !important; 
        padding: 8px 0 !important;
        font-size: 0.9rem !important;
    }

    .btn-submit {
        width: auto !important;
        flex: none !important; 
        padding: 8px 20px !important; 
        font-size: 0.85rem !important;
        border-radius: 20px !important; 
    }

    /* ==========================================================================
       DROPDOWN DRAWER COMPONENTS
       ========================================================================== */
    .nav-links { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background-color: var(--bg-cream); 
        border-bottom: 1px solid var(--border-subtle); 
        padding: 20px 0; 
        box-shadow: 0 10px 15px rgba(0,0,0,0.05); 
    } 
    
    .nav-links a { 
        margin: 12px 0; 
        text-align: center; 
        font-size: 1.1rem; 
        width: 100%; 
    } 
    
    .mobile-only-phone { 
        display: block; 
        font-weight: 700; 
        color: var(--giraffe-gold) !important; 
    } 
    
    .nav-links.mobile-open { 
        display: flex; 
    } 
    
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); } 
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; } 
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); } 
}

@media (max-width: 768px) {
    /* Wipes out excess whitespace to compress structural rows tightly */
    .card-section { 
        padding: 44px 20px !important; 
    }
    
    .hero-card {
        padding-top: 40px !important;
        padding-bottom: 44px !important;
    }

    .hero-content h1 { font-size: 2.2rem; }
    .section-title h2 { font-size: 2rem; }
    .value-row { flex-direction: column; gap: 30px; }
    .reviews-grid { grid-template-columns: 1fr; gap: 30px; }
    .portfolio-grid { grid-template-columns: 1fr; gap: 20px; }
    .photo-box { height: 240px; }
    
    /* Stacks footer action elements into a clean mobile layout row */
    .footer-buttons { 
        flex-direction: column; 
        gap: 12px; 
    }

    /* 📐 3. FIXES FOOTER LOGO OVERFLOW: Scales down the asset and restricts bounds to match your phone glass screen width */
    .footer-logo-img {
        max-width: 100% !important; /* Stops horizontal text stretching completely */
        height: 44px !important;     /* Auto-scales height proportionally so lettering remains crisp and centered */
        margin: 0 auto !important;
    }
}

/* ==========================================================================
   COMPLIANT MULTI-STEP SHIELD FRAMEWORK (PART 1 OF 2)
   ========================================================================== */

/* The full-screen darkened mask container that layers over the entire page */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(42, 37, 32, 0.5); /* Soft charcoal masking filter overlay */
    backdrop-filter: blur(8px);               /* Blurs out your bedroom photograph beautifully */
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000 !important;                /* Layers completely over your sticky navbar bar */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;                               /* Keeps window hidden until triggered */
    pointer-events: none;                     /* Blocks accidental text clicking when invisible */
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* This class gets activated instantly by JavaScript to reveal the funnel window */
.modal-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* The central structured option panel card card container */
.modal-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 540px;                         /* Slim corporate focus frame format */
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth slight slide up execution motion effect when modal loads into view */
.modal-visible .modal-card {
    transform: translateY(0) !important;
}

/* The upper right close execution button element structure */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-charcoal);
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s ease;
    outline: none;
}

.modal-close:hover {
    opacity: 1;
}

/* Branding block alignment elements mapping down the top frame */
.modal-header-brand {
    text-align: center;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 20px;
}

.modal-brand-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-charcoal);
    display: block;
}

.modal-header-brand p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--giraffe-gold);
    margin-top: 4px;
    font-weight: 600;
}

/* Hidden by default, toggled on row selections */
.modal-step {
    display: none;
}

/* Reveals the targeted workflow frame safely on state tracks */
.modal-step.active-step {
    display: block !important;
    animation: fadeInStep 0.4s ease forwards;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.modal-step h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-charcoal);
    font-weight: 600;
}

/* ==========================================================================
   COMPLIANT MULTI-STEP SHIELD FRAMEWORK (PART 2 OF 2)
   ========================================================================== */

/* 📐 OPTION GRIDS: Builds the large block buttons for your macro choices */
.option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 8px;
}

.option-grid-triple {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 8px;
}

/* Styled option selector block states */
.option-btn {
    background-color: #ffffff;
    color: var(--text-charcoal);
    border: 2px solid rgba(42, 37, 32, 0.12);
    padding: 24px 16px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.option-btn:hover {
    border-color: var(--giraffe-gold);
    background-color: rgba(255, 170, 1, 0.03);
    transform: translateY(-2px);
}

.option-btn:active {
    transform: scale(0.98);
}

/* Vertical text box entry stack formatting */
.input-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.input-stack input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(42, 37, 32, 0.18);
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    font-family: var(--font-sans);
    transition: border-color 0.2s ease;
}

.input-stack input:focus {
    border-color: var(--giraffe-gold);
}

/* ==========================================================================
   STRICT PIPEDA / CASL LEGAL LAYOUT OVERRIDES
   ========================================================================== */
.compliance-box {
    background-color: #F8F9FA; /* Neutral grey wash separates legal text visually */
    padding: 16px;
    border-radius: 6px;
    border: 1px solid rgba(42, 37, 32, 0.06);
    margin-bottom: 24px;
    text-align: left;
}

.compliance-label {
    display: flex;
    align-items: flex-start; /* Keeps the checkbox aligned neatly with the first text row */
    gap: 12px;
    cursor: pointer;
}

.compliance-label input[type="checkbox"] {
    margin-top: 4px; /* Levels out box with font height lines */
    width: 16px;
    height: 16px;
    accent-color: var(--giraffe-gold); /* Forces checkbox to turn your signature yellow when checked */
    flex-shrink: 0;
}

.compliance-text {
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(42, 37, 32, 0.7);
}

.legal-link {
    color: var(--text-charcoal);
    text-decoration: underline;
    font-weight: 500;
}

.legal-link:hover {
    color: var(--giraffe-gold);
}

/* Bottom final big button interface */
.btn-modal-submit {
    width: 100%;
    padding: 16px 24px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    background-color: var(--text-charcoal) !important; /* Bold high-contrast finish target */
    color: #ffffff !important;
}

.btn-modal-submit:hover {
    background-color: var(--giraffe-gold) !important;
}

.modal-feedback {
    text-align: center;
    margin-top: 16px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* ==========================================================================
   MOBILE SCREEN MULTI-STEP PANEL SCALING OVERRIDES
   ========================================================================== */
@media (max-width: 600px) {
    .modal-card {
        padding: 30px 20px;
        width: calc(100% - 24px); /* Scales block down flush to phone frame borders */
        margin: 12px;
    }
    
    .option-grid {
        grid-template-columns: 1fr; /* Stacks Choices into vertical rows on tiny screens */
        gap: 12px;
    }
    
    .option-grid-triple {
        grid-template-columns: 1fr; /* Stacks Interior/Exterior choices for big thumbs */
        gap: 10px;
    }
    
    .option-btn {
        padding: 16px;
        font-size: 0.95rem;
    }
    
    .modal-step h3 {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }
}

/* ==========================================================================
   NATIVE PORTFOLIO LIGHTBOX STYLESYSTEM 
   ========================================================================== */
.gallery-trigger {
    cursor: pointer;
}

.lightbox-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 13, 11, 0.95); /* Deep luxury studio dark backdrop */
    z-index: 200000 !important;               /* Layers over your sticky nav header */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Activated by JavaScript on click */
.lightbox-mask.lightbox-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.lightbox-content-box {
    max-width: 90%;
    max-height: 80vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-display-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 4px;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    user-select: none;
    -webkit-user-select: none;
}

/* Lightbox UI Navigation Architecture */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: #ffffff;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s;
    z-index: 200010;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(42, 37, 32, 0.3);
    border: none;
    color: #ffffff;
    font-size: 2rem;
    padding: 16px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    user-select: none;
    z-index: 200010;
}
.lightbox-nav:hover, .lightbox-close:hover { opacity: 1; background: rgba(42, 37, 32, 0.6); }
.nav-prev { left: 20px; }
.nav-next { right: 20px; }

.lightbox-title-header {
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.lightbox-counter-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 15px;
    letter-spacing: 1px;
}

/* Mobile Layout Viewport Compression Adjuster */
@media (max-width: 768px) {
    .lightbox-nav {
        padding: 12px 14px;
        font-size: 1.5rem;
        background: rgba(42, 37, 32, 0.6); /* Higher visibility default for finger taps */
    }
    .nav-prev { left: 10px; }
    .nav-next { right: 10px; }
    .lightbox-title-header { font-size: 1.1rem; }
    .lightbox-close { top: 15px; right: 15px; font-size: 2.2rem; }
}

/* ==========================================================================
   FIXED MULTI-STEP SHIELD OVERLAYS (ELIMINATES CLIPPING & LOG-LOCKS)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(42, 37, 32, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Central option card layout updates with internal scroll boundaries */
.modal-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 500px; /* Tightened from 540px to stay elegantly contained */
    
    /* 📐 SAFE SCALING MATRIX: Prevents buttons from clipping out on short screens */
    max-height: 90vh; 
    overflow-y: auto;  /* Adds an internal scrollbar automatically if elements crowd the page */
    
    border-radius: 12px;
    padding: 24px 30px; /* Reduced from 40px to eliminate massive empty spaces */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
}

/* Tightens the upper brand caption spacing block */
.modal-header-brand {
    text-align: center;
    margin-bottom: 16px; /* Reduced from 32px to lift heading upward */
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
}

/* Compresses the address entry layout columns so 'Province' doesn't spill over margins */
.address-prefill-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr; /* Custom balances field widths */
    gap: 8px;
    width: 100%;
}

.address-prefill-grid input {
    width: 100% !important;
    font-weight: 500;
    padding: 10px 8px !important; /* Compact interior tracking */
    font-size: 0.9rem !important;
    border: 1px solid rgba(42, 37, 32, 0.18) !important;
    border-radius: 4px;
    outline: none;
}

/* Visual cue for when input fields are automatically locked by JavaScript */
.address-prefill-grid input[readonly] {
    background-color: rgba(42, 37, 32, 0.04) !important;
    color: rgba(42, 37, 32, 0.6) !important;
    cursor: not-allowed;
    border-color: rgba(42, 37, 32, 0.08) !important;
}

.modal-step h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem; /* Scaled down slightly for modern proportions */
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-charcoal);
    font-weight: 600;
}

.input-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px; /* Tightened row separations */
}

.compliance-box {
    background-color: #F8F9FA;
    padding: 12px; /* Slimmed padding */
    border-radius: 6px;
    border: 1px solid rgba(42, 37, 32, 0.06);
    margin-bottom: 16px;
}
