/* ==========================================================================
   1. DESIGN SYSTEM - FRAMED MAROON & CONTRAST FOREGROUND
   ========================================================================== */
:root {
    --primary: #FFFFFF;          /* Crisp high-contrast white for headers inside maroon panels */
    --accent: #d7a456;           /* Soft champagne gold accent */
    --accent-hover: #f3d37a;     /* Brighter gold hover state */
    --bg-light: #ffffff;         /* Clean, sophisticated gallery slate-white */
    --bg-card: #2e1a29;          /* SYNCED: Replaced #12070f to perfectly match style.css color code */
    --text-main: #F5F5F5;        /* Soft ivory for typography inside dark panels */
    --text-muted: #C5B2B4;       /* Muted ash descriptions */
    --page-dark: #2b1b1b;        /* SYNCED: Replaced #1A1A1A to perfectly match style.css typography color code */
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --border-radius: 4px;
    --border-color: rgba(255, 255, 255, 0.10);  /* Subtle light framing lines */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-light);
    color: var(--page-dark); 
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: clamp(80px, 10vw, 110px); 
}

/* ==========================================================================
   2. GLOBAL NAVIGATION HEADER (Maroon Framed)
   ========================================================================== */
header {
    background: radial-gradient(circle at 22% 18%, rgba(255,255,255,0.10), transparent 22%), linear-gradient(180deg, #1a1017 0%, #32011e 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 18px 45px rgba(0, 0, 0, 0.28);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: saturate(180%) blur(18px);
    transform: translateZ(0);
    height: auto;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(12px, 2vw, 20px) 22px;
    position: relative;
    background: radial-gradient(circle at 22% 18%, rgba(255,255,255,0.10), transparent 22%), linear-gradient(180deg, #1a1017 0%, #32011e 100%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 26px 70px rgba(0,0,0,0.34);
    backdrop-filter: blur(20px);
    transform-style: preserve-3d;
}

/* LEFT-SIDE LOGO ALIGNMENT RULES */
.logo-wrapper {
    display: flex;
    align-items: center;         
    flex-direction: row;         
    gap: clamp(8px, 1.5vw, 12px);                   
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo-img {
    height: clamp(30px, 4vw, 40px);                
    width: auto;
    object-fit: contain;
    display: block;
}

.logo {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    margin: 0;
    text-shadow: 0 3px 10px rgba(0,0,0,0.35);
}

.logo span { 
    color: var(--accent); 
}

.nav-links {
    display: flex;
    list-style: none;
    gap: clamp(15px, 2.5vw, 30px);
    align-items: center;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-links a, .dropdown-trigger {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    text-transform: uppercase;
    font-size: clamp(11px, 1.2vw, 13px);
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    padding: 10px 0;
}

.nav-links a::after, .dropdown-trigger::after {
    content: '';
    position: absolute;
    bottom: -2px; 
    left: 0; 
    width: 0; 
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after,
.dropdown-container:hover .dropdown-trigger::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active,
.dropdown-container:hover .dropdown-trigger {
    color: var(--accent);
}

/* --- INTEGRATED NAV GROUP & SOCIAL LINK MATRIX --- */
.nav-auth-social-group {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2vw, 20px);
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    visibility: visible;
    opacity: 1;
}

.header-socials .social-icon {
    color: var(--text-main) !important;
    font-size: 15px;
    text-decoration: none !important;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    line-height: 1 !important;
    visibility: visible;
    opacity: 1;
}

.header-socials .social-icon::after {
    display: none !important;
    content: none !important;
}

.header-socials .social-icon svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: currentColor;
}

.header-socials .social-icon i,
.header-socials .social-icon [class*="fa-"] {
    font-size: 15px !important;
    display: inline-block !important;
    width: auto;
    height: auto;
    line-height: 1;
}

.header-socials .social-icon:hover {
    color: var(--accent) !important;
    transform: translateY(-2px);
    background: transparent !important;
}

/* --- MOBILE TOGGLE ELEMENT --- */
.mobile-menu-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    flex-shrink: 0;
}

.mobile-menu-toggle span,
.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle span { top: 50%; }
.mobile-menu-toggle span::before { content: ''; top: -8px; }
.mobile-menu-toggle span::after { content: ''; top: 8px; }

.mobile-menu-toggle.open span { background: transparent; }
.mobile-menu-toggle.open span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.mobile-menu-toggle.open span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* --- NESTED DROPDOWN SYSTEM (FIXED DESKTOP GAP) --- */
.dropdown-menu {
    display: none; 
    position: absolute;
    top: 100%; 
    left: 50%;
    transform: translate(-50%, -2px); 
    background-color: #32011e; 
    box-shadow: 0 12px 35px rgba(0,0,0,0.45);
    border-radius: 12px; 
    width: min(480px, 90vw); 
    padding: 20px;
    grid-template-columns: 1fr 1fr; 
    gap: 16px; 
    opacity: 0; 
    transition: var(--transition); 
    z-index: 1100;
    border: 1px solid rgba(255,255,255,0.12);
}

.dropdown-container:hover .dropdown-menu {
    display: grid; 
    opacity: 1; 
    transform: translate(-50%, 4px); 
}

.dropdown-header {
    grid-column: 1 / -1;
    padding-bottom: 8px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.dropdown-header h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin: 0;
}

.dropdown-column h4 { 
    font-size: 11px; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    color: var(--accent); 
    margin-bottom: 12px; 
    border-bottom: 1px solid var(--primary); 
    padding-bottom: 5px; 
}

.dropdown-column ul { 
    list-style: none; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
}

.dropdown-column ul li a { 
    padding: 2px 0 !important; 
    display: block; 
    text-transform: none !important; 
    font-size: 13px !important; 
    color: var(--text-main) !important; 
    font-weight: 400 !important; 
    border: none !important;
}

.dropdown-column ul li a:hover { 
    color: var(--accent) !important; 
    padding-left: 6px !important; 
}

.dropdown-column ul li a::after { display: none !important; }

.auth-status-badge { 
    font-size: 11px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: var(--accent); 
    font-weight: 700; 
    background: rgba(255,255,255,0.08); 
    padding: 4px 10px; 
    border-radius: 20px; 
    display: none;
    line-height: 1;
    align-self: center;
}

.auth-btn { 
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)); 
    color: var(--primary) !important; 
    padding: 10px clamp(12px, 1.5vw, 20px) !important; 
    border-radius: 14px; 
    font-size: clamp(11px, 1.2vw, 12px) !important; 
    border: 1px solid rgba(255,255,255,0.12); 
    outline: none; 
    cursor: pointer; 
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 14px 30px rgba(0,0,0,0.30);
    transition: var(--transition), transform 0.25s ease;
    position: relative;
}

.auth-btn:hover { 
    background: rgba(255,255,255,0.12); 
    color: var(--primary) !important;
    transform: translateY(-2px);
}

/* Top scrolling offer bar */
.top-offer-scroller {
    background: radial-gradient(circle at 22% 18%, rgba(255,255,255,0.10), transparent 22%), linear-gradient(180deg, #1a1017 0%, #32011e 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 18px 45px rgba(0, 0, 0, 0.28); /* Maroon gradient */
    color: var(--accent);                                /* Champagne gold text */
    font-family: 'Cinzel Decorative', serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid rgba(215, 164, 86, 0.3);
    padding: 8px 0;
    position: relative;
    z-index: 999; /* Keep above body */
}

.offer-track {
    display: inline-block;
    padding-left: 100%;
    animation: scrollOffers 18s linear infinite;
}

.offer-track span {
    margin-right: 60px; /* spacing between repeats */
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* Keyframes for scrolling effect */
@keyframes scrollOffers {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}


/* ==========================================================================
   4. EDITORIAL VIEW SPLIT - WHITE BACKGROUND & BLACK/MAROON TEXT LAYERS
   ========================================================================== */
.detail-view-split { 
    display: flex; 
    gap: 60px; 
    align-items: stretch; 
    margin-bottom: 50px; 
    background: #FFFFFF;                  
    padding: 50px; 
    border-radius: var(--border-radius); 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.02); 
    border: 1px solid #C5A880;            
}

/* UPDATED: Converted into an overlay viewport layout wrapper boundary for the moving ticker */
.detail-left-img { 
    flex: 1; 
    border-radius: var(--border-radius); 
    overflow: hidden; 
    border: 1px solid #EEEEEE;            
    aspect-ratio: 4/3; 
    position: relative; /* Crucial anchor for overlay scroller */
}

.detail-left-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
    transition: var(--transition);
}

.detail-view-split:hover .detail-left-img img {
    transform: scale(1.02);
}

/* Pause the scrolling text automatically whenever the user hovers over the image content */
.detail-left-img:hover .service-quote-box {
    animation-play-state: paused;
}

.detail-right-content { 
    flex: 1.2; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.meta-tag { 
    font-size: 11px; 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    color: #4a0716ee;                      
    font-weight: 700; 
    margin-bottom: 8px; 
    display: block; 
}

/* ==========================================================================
   DETAIL RIGHT CONTENT - COMPLETE TYPOGRAPHY & INTERACTION MATRIX
   ========================================================================== */

/* 1. Structural main heading using the premium luxury Cinzel layout rules */
.detail-right-content h2 { 
    font-family: 'Cinzel', 'Segoe UI', serif;
    font-size: clamp(22px, 2.8vw, 34px) !important; /* Fluid scaling prevents mobile overflow */
    text-transform: uppercase; 
    letter-spacing: 2px;                            /* Elegant high-end tracking */
    
    /* FIX: Changed from dark maroon to theme accent gold, forced explicitly to BOLD */
    color: var(--accent) !important;                     
    font-weight: 700 !important; 
    
    margin-bottom: 20px; 
    line-height: 1.25;
    
    /* FIX: Changed shadow from a black overlay to a soft, deep maroon blend */
    text-shadow: 0 2px 4px rgba(50, 1, 30, 0.4);     
    text-align: left;
}

/* 2. Editorial long-form description blocks */
/* Refined Service Description Styling */
.detail-right-content p { 
    font-family: 'Playfair Display', Georgia, serif;   /* Elegant serif font */
    font-size: clamp(13px, 1.4vw, 14.5px);             /* Slightly reduced size */
    font-style: italic;                                /* Adds sophistication */
    font-weight: 540;                                  /* Thicker semi-bold */
    color: #572649;                                    /* Deep maroon tone */
    margin-bottom: 24px; 
    line-height: 1.6;                                  /* Comfortable spacing */
    letter-spacing: 0.8px;                             /* Stronger tracking */
    text-align: left;

    /* Premium card-like feel */
    background: linear-gradient(to right, #fafafa, #fdfdfd); 
    padding: 18px 22px;
    border-left: 4px solid var(--accent);              /* Champagne gold accent */
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: var(--transition);
}

/* Section headers inside description (WHAT WE DO, etc.) */
.detail-right-content p strong {
    display: inline-block;
    font-family: 'Cinzel Decorative', serif;   /* Regal, engraved style */
    font-size: 1.45rem;                         /* Larger for impact */
    font-weight: 900;                           /* Extra-bold, thicker strokes */
    font-style: italic;                         /* Elegant tone */
    color: #fff;                                /* White text for contrast */
    text-transform: uppercase;
    letter-spacing: 2.2px;                      /* Wide spacing for luxury feel */
    padding: 6px 14px;
    margin-top: 32px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover)); /* Gold strip */
    border-radius: 4px;
    text-shadow: 0 2px 6px rgba(50, 1, 30, 0.6); /* Depth */
}


/* Decorative bar accent */
.detail-right-content p strong::before {
    content: '◆';                              /* Diamond marker */
    color: var(--accent);
    font-size: 1.2rem;
    margin-right: 8px;
    position: relative;
    top: -2px;
}

.detail-right-content p strong::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: linear-gradient(to right, var(--accent), var(--accent-hover));
    margin-top: 10px;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(215, 164, 86, 0.6);
}



/* Decorative bullet points */
.detail-right-content ul li::before {
    content: "✦";                            /* Elegant star bullet */
    color: var(--accent);
    font-weight: bold;
    margin-right: 10px;
}

/* Hover polish */
.detail-right-content p:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}


/* Container bounds over the image layout framework */
.detail-left-img.image-overlay-wrapper {
    position: relative !important;
    overflow: hidden !important;
}

/* 1. Viewport track window clip sitting at the top head of image */
.service-quote-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50 !important; /* Force sit over image rendering layouts */
    
    background: radial-gradient(circle at 22% 18%, rgba(255,255,255,0.15), transparent 25%), 
                linear-gradient(90deg, rgba(26, 16, 23, 0.95) 0%, rgba(50, 1, 30, 0.95) 100%) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-family: 'Playfair Display', Georgia, serif !important;
    font-style: italic !important;
    
    padding: 10px 0;
    margin: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
}

/* 2. The inner text layer that performs the physical horizontal movement */
#marquee-text-node {
    display: inline-block;
    padding-left: 100%; /* Shakes original start tracking completely off-canvas right */
    
    color: #FFFFFF !important; /* Forces crisp visibility against deep maroon gradient background */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    font-family: 'Playfair Display', Georgia, serif !important;
    font-style: italic !important;
    font-weight: 600 !important;
    font-size: clamp(13px, 1.5vw, 16px) !important;
    letter-spacing: 0.6px;
    
    animation: quoteMarqueeScroller 18s linear infinite;
}

/* Infinite loop keyframe pipeline setup */
@keyframes quoteMarqueeScroller {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}



/* Custom premium dash indicator that scales cleanly without breaking text flow */
.detail-right-content ul li::before,
.detail-right-content .pointer-item::before {
    content: '—';                                  /* Elegant line dash accent */
    color: var(--accent, #d7a456);                 /* Uses theme gold as the list pointer */
    font-weight: 700;
    flex-shrink: 0;                               /* Keeps the dash perfectly aligned on wraps */
}

/* 4. REFINED ACTION LINKS & UNDERLINE SLIDERS */
.detail-right-content .colored-action-link {
    display: inline-flex;
    align-items: center;
    font-family: 'Segoe UI', system-ui, sans-serif;
    
    /* FIX: Changed base color to theme accent gold, forced to bold weight */
    color: var(--accent) !important;                      
    font-weight: 700 !important;
    
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    padding-bottom: 6px;                            /* Space before underline bar */
    width: fit-content;
}

/* Base line tracker state */
.detail-right-content .colored-action-link::after {
    content: '';
    position: absolute;
    bottom: 0; 
    left: 0; 
    width: 30px;                                    /* Decorative short line design */
    height: 2px;
    
    /* FIX: Underline uses theme accent gold instead of dark maroon */
    background-color: var(--accent);            
    transition: var(--transition);
}

/* Hover state changes color slightly to add feedback and expands underline to full width */
.detail-right-content .colored-action-link:hover { 
    /* FIX: Changes to a brighter glowing gold on interaction (no muddy reds or black tones) */
    color: var(--accent-hover, #ffdfa9) !important;                       
    transform: translateY(-1px);                    /* Micro-interaction lift */
}

.detail-right-content .colored-action-link:hover::after { 
    width: 100%;                                    /* Smooth linear bar extension */
    background-color: var(--accent-hover, #ffdfa9);           
}           


/* ==========================================================================
   5. DYNAMIC CUSTOMER SHOWCASE GALLERY - GOLD & WHITE ARCHITECTURE
   ========================================================================== */
.portfolio-gallery-section {
    background: #FFFFFF;                  
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.02); 
    border: 1px solid #C5A880;            
    margin-bottom: 60px;
}

.portfolio-gallery-section h3 {
    text-transform: uppercase;
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid #C5A880;     
    color: #4a0715d4;                      
}

.gallery-subsection {
    margin-bottom: 30px;
}

.gallery-subsection-heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #4a0715;
}

.gallery-subsection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.55);
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    box-sizing: border-box;
}

.gallery-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-section-inner {
    display: block;
}

.gallery-card-item {
    position: relative;
    background: #FFFFFF;                  
    border: 1px solid #C5A880;            
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    transition: var(--transition);
    cursor: pointer;
    transform: translateZ(0); 
}

.gallery-card-item:hover {
    transform: translateY(-4px);          
    border-color: var(--accent);          
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12); 
}

.gallery-card-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-card-item:hover img {
    transform: scale(1.04);               
}



/* ==========================================================================
   8. MOBILE & HANDSET ADAPTIVE VIEWPORTS (PERFECTLY SYNCED CODE ALIGNMENT)
   ========================================================================== */
@media (max-width: 768px) {
    body {
        padding-top: 75px;
    }
    .nav-container {
        padding: 16px 20px;
    }
    
    .mobile-menu-toggle {
        display: block;
        margin-left: 16px;
    }

    /* Mobile Drawer Engine - Perfectly matched to core UI color configurations */
    .nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: #32011e !important; 
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        border-bottom: 2px solid rgba(215, 164, 86, 0.25);
    }
    
    .nav-links.open {
        max-height: 85vh; 
        overflow-y: auto;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links li a,
    .dropdown-trigger {
        display: block;
        padding: 14px 20px;
        width: 100%;
        text-align: left;
        border-top: 1px solid rgba(255,255,255,0.08);
        margin: 0;
        font-size: 14px !important;
    }

    .nav-links li a::after, .dropdown-trigger::after {
        display: none !important; 
    }
    
    /* Nested Services Interaction Dropdown Matrix */
    .dropdown-menu {
        display: none;
        position: static !important;
        width: 100% !important;
        transform: none !important;
        opacity: 1 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        grid-template-columns: 1fr !important; 
        gap: 0 !important;
    }
    
    .dropdown-menu.show,
    .dropdown-container:hover .dropdown-menu {
        display: grid !important;
        padding: 12px 20px 18px !important;
        background: #32011e !important;
        border-top: 1px solid #32011e !important;
    }

    .dropdown-header {
        grid-column: 1 / -1;
        padding-bottom: 0;
        margin-bottom: 10px;
        border-bottom: none;
    }

    .dropdown-header h4 {
        font-size: 13px;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .dropdown-column h4 {
        margin-bottom: 8px;
        border-bottom: none;
    }
    
    /* Responsive Auth & Social Action Layout elements */
    .nav-auth-social-group {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100%;
        gap: 0 !important;
        background: rgba(0, 0, 0, 0.15);
    }

    .nav-auth-social-group .auth-btn,
    .nav-auth-social-group #loginBtn {
        display: block;
        width: calc(100% - 40px) !important;
        margin: 16px 20px 8px 20px !important;
        text-align: center;
        padding: 12px !important;
        box-sizing: border-box;
    }

    /* Fixed mobile social tray layout inside hidden sidebar */
    .header-socials {
        display: flex !important; 
        justify-content: flex-start !important;
        width: 100% !important;
        padding: 12px 20px 20px 20px !important;
        gap: 20px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        visibility: visible !important;
        opacity: 1 !important;
    }

    .header-socials .social-icon {
        font-size: 18px !important; 
        padding: 6px 0 !important;
        width: 32px;
        height: 32px;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Standard Core Components Overrides */
    .detail-view-split { 
        flex-direction: column !important; 
        padding: 25px; 
        gap: 30px; 
    } 

    .gallery-display-grid {
        grid-template-columns: 1fr;
    }

   
}

@media (max-width: 768px) {
    body {
        padding-top: 75px;
    }
    .nav-container {
        padding: 16px 20px;
    }
    
    .mobile-menu-toggle {
        display: block;
        margin-left: 16px;
    }

    /* Mobile Drawer Engine - Perfectly matched to core UI color configurations */
    .nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: #32011e !important; 
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        border-bottom: 2px solid rgba(215, 164, 86, 0.25);
    }
    
    .nav-links.open {
        max-height: 85vh; 
        overflow-y: auto;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links li a,
    .dropdown-trigger {
        display: block;
        padding: 14px 20px;
        width: 100%;
        text-align: left;
        border-top: 1px solid rgba(255,255,255,0.08);
        margin: 0;
        font-size: 14px !important;
    }

    .nav-links li a::after, .dropdown-trigger::after {
        display: none !important; 
    }
    
    /* Nested Services Interaction Dropdown Matrix */
    .dropdown-menu {
        display: none;
        position: static !important;
        width: 100% !important;
        transform: none !important;
        opacity: 1 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        grid-template-columns: 1fr !important; 
        gap: 0 !important;
    }
    
    .dropdown-menu.show,
    .dropdown-container:hover .dropdown-menu {
        display: grid !important;
        padding: 12px 20px 18px !important;
        background: #32011e !important;
        border-top: 1px solid #32011e !important;
    }

    .dropdown-header {
        grid-column: 1 / -1;
        padding-bottom: 0;
        margin-bottom: 10px;
        border-bottom: none;
    }

    .dropdown-header h4 {
        font-size: 13px;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .dropdown-column h4 {
        margin-bottom: 8px;
        border-bottom: none;
    }
    
    /* Responsive Auth & Social Action Layout elements */
    .nav-auth-social-group {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100%;
        gap: 0 !important;
        background: rgba(0, 0, 0, 0.15);
    }

    .nav-auth-social-group .auth-btn,
    .nav-auth-social-group #loginBtn {
        display: block;
        width: calc(100% - 40px) !important;
        margin: 16px 20px 8px 20px !important;
        text-align: center;
        padding: 12px !important;
        box-sizing: border-box;
    }

    /* Fixed mobile social tray layout inside hidden sidebar */
    .header-socials {
        display: flex !important; 
        justify-content: flex-start !important;
        width: 100% !important;
        padding: 12px 20px 20px 20px !important;
        gap: 20px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        visibility: visible !important;
        opacity: 1 !important;
    }

    .header-socials .social-icon {
        font-size: 18px !important; 
        padding: 6px 0 !important;
        width: 32px;
        height: 32px;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Standard Core Components Overrides */
    .detail-view-split { 
        flex-direction: column !important; 
        padding: 25px; 
        gap: 30px; 
    } 

    .gallery-display-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================================
   COMPACT MOBILE VIEWPORT ADAPTATIONS (SMALL SMARTPHONES)
   ========================================================================== */
@media (max-width: 460px) {
    body {
        padding-top: 70px; /* Marginally shave height to maximize readable real estate */
    }

    /* Decrease surrounding frame margins so text contents have more width room */
    .nav-container {
        padding: 12px 16px;
    }

    /* Scale dropdown item padding down slightly so items don't look excessively tall */
    .nav-links li a,
    .dropdown-trigger {
        padding: 12px 16px;
        font-size: 13px !important; /* Slightly more compact font sizing for narrow panels */
    }

    /* Tighten up internal dropdown navigation container space allocation */
    .dropdown-menu.show,
    .dropdown-container:hover .dropdown-menu {
        padding: 10px 16px 14px !important;
    }

    /* Ensure action elements adapt flawlessly when squeezed into 460px widths */
    .nav-auth-social-group .auth-btn,
    .nav-auth-social-group #loginBtn {
        width: calc(100% - 32px) !important;
        margin: 12px 16px 6px 16px !important;
        padding: 10px !important;
    }

    .header-socials {
        padding: 10px 16px 16px 16px !important;
        gap: 16px !important;
    }

    /* Standard Core Components Overrides for tiny viewports */
    .detail-view-split {
        padding: 15px;
        gap: 20px;
    }
}

/* ==========================================================================
   992px MEDIA MATRIX (TABLETS LANDSCAPE & DECOR ENGINE ADJUSTMENTS)
   ========================================================================== */
@media (max-width: 992px) {
    body {
        padding-top: 80px;
    }

    /* Keep header content layout spaced out without overlapping */
    .nav-container {
        padding: 14px 24px;
    }

    /* Shrink your main desktop links font scale down slightly before mobile layout drops */
    .nav-links a, 
    .dropdown-trigger {
        font-size: 12px !important;
        letter-spacing: 0.5px;
    }

    /* Restructure the 3 or 4 column image gallery into a clean 2-column grid row layout */
    .gallery-display-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px;
    }

    /* Scale back alternating rows from large screen specs */
    .services-alternating-container {
        gap: 40px;
        margin: 30px auto;
    }

    .service-row,
    .service-row:nth-child(even) {
        padding: 30px;
        gap: 30px;
    }

    .detail-view-split {
        gap: 35px;
        padding: 30px;
    }
}
