@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@600;700&display=swap');

:root {
    /* === Premium Industrial Theme (Slate + Sky + Amber) === */
    --primary:        #0f172a;  /* Deep slate */
    --primary-light:  #1e293b;  /* Slightly lighter slate */
    --primary-dark:   #020617;  /* Near-black slate */
    --accent:         #38bdf8;  /* Electric sky blue */
    --accent-hover:   #0ea5e9;
    --cta:            #f59e0b;  /* Vivid amber - industrial, high-attention */
    --cta-hover:      #d97706;
    --success:        #10b981;  /* Emerald for success states */
    --text-main:      #334155;  /* Slate-700 */
    --text-dark:      #0f172a;
    --text-light:     #64748b;  /* Slate-500 */
    --bg-light:       #f8fafc;  /* Slate-50 */
    --bg-section:     #f1f5f9;  /* Slate-100 */
    --border:         #e2e8f0;  /* Slate-200 */
    --white:          #ffffff;
    --glass-bg:       rgba(255, 255, 255, 0.85);
    --border-radius:  10px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
    --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0ea5e9 100%);
    --gradient-cta:  linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --gradient-accent: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
}

/* Global Modernization & Reset Overrides */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: var(--text-main) !important;
    line-height: 1.6 !important;
    background-color: var(--white) !important;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif !important;
    color: var(--text-dark) !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    margin-top: 1.5em !important;
    margin-bottom: 0.75em !important;
}

a {
    color: var(--primary);
    transition: color 0.2s ease;
    text-decoration: none !important;
}

a:hover {
    color: var(--accent);
    text-decoration: none !important;
}

/* Clean up Legacy Bootstrap Gradients & Borders */
.btn, .navbar, .panel, .well, .thumbnail {
    box-shadow: none !important;
    text-shadow: none !important;
    border: none !important;
    border-radius: var(--border-radius) !important;
}

.well {
    background-color: var(--bg-light) !important;
}

/* Button Modernization */
.btn {
    padding: 12px 24px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: var(--border-radius) !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.btn-primary, #blue-btn, .btn-primary.active, .btn-primary:active {
    background: var(--primary) !important;
    color: white !important;
}

.btn-primary:hover, #blue-btn:hover {
    background: var(--primary-light) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
}

.btn-success, .green-btn {
    background: var(--cta) !important;
    color: white !important;
}

.btn-success:hover, .green-btn:hover {
    background: var(--cta-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
    color: white !important;
}

.blue-btn {
    background: var(--primary) !important;
    color: white !important;
}

.blue-btn:hover {
    background: var(--primary-light) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
    color: white !important;
}

.cta-btn {
    display: block !important;
    width: 100% !important;
    margin-bottom: 10px !important;
    text-align: center !important;
    padding: 15px 20px !important;
}

/* Floating CTA Refinement */
.floating_cta {
    background: var(--cta) !important;
    border-radius: 50px !important;
    padding: 15px 30px !important;
    box-shadow: var(--shadow-lg) !important;
    bottom: 30px !important;
    right: 30px !important;
}

/* --- Header & Nav Modernization: Two-Tier Layout --- */
#header-modern {
    background: var(--white);
    width: 100%;
    z-index: 1001;
}

.top-bar-modern {
    padding: 15px 0;
    background: white;
    border-bottom: 1px solid #f0f4f8;
}

.header-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-nav-section {
    display: flex;
    align-items: center;
    gap: 30px;
}

.upper-nav ul {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.upper-nav ul li a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.upper-nav ul li a:hover {
    color: var(--accent);
}

/* Pill Buttons */
.btn-pill {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-pill-dark {
    background: #0a0e1a !important;
    color: white !important;
}

.btn-pill-orange {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
    color: white !important;
}

.btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    filter: brightness(1.1);
}

.phone-link a {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0a0e1a !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-link a i {
    font-size: 14px;
    color: #0a0e1a;
}

/* Main Navigation Bar (Bottom Tier) */
.main-nav-modern {
    background: #0a0e1a;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.main-nav-list {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav-list > li {
    position: relative;
}

.main-nav-list > li > a {
    display: block;
    padding: 18px 25px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.main-nav-list > li > a i {
    font-size: 10px;
    margin-left: 5px;
    opacity: 0.7;
}

.main-nav-list > li:hover > a {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

/* Dropdown Menu Modern */
.dropdown-menu-modern {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 320px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border-radius: 0 0 8px 8px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    list-style: none;
    border-top: 3px solid var(--accent);
}

.has-dropdown:hover .dropdown-menu-modern {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu-modern li a {
    display: block;
    padding: 12px 25px;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.3s ease;
    border-left: 0 solid var(--accent);
}

.dropdown-menu-modern li a:hover {
    background: #f8fafc;
    color: var(--accent);
    padding-left: 35px;
    border-left: 4px solid var(--accent);
}

/* Mobile Dropdown Styling */
.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background: #f8fafc;
    list-style: none;
    padding: 0;
}

.mobile-has-dropdown.active .mobile-dropdown {
    max-height: 1000px; /* Large enough for full list */
}

.mobile-dropdown li a {
    padding: 12px 30px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.mobile-has-dropdown > a {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

.mobile-has-dropdown > a i {
    transition: transform 0.3s ease;
}

.mobile-has-dropdown.active > a i {
    transform: rotate(180deg);
}

/* Sticky Navigation */
.nav-sticky {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1500;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Mobile Toggle */
.navbar-toggle-modern {
    display: none;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.navbar-toggle-modern .icon-bar {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    transition: all 0.4s ease;
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-content {
    position: absolute;
    right: 0;
    top: 0;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background: white;
    padding: 30px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.close-mobile-nav {
    font-size: 30px;
    background: none;
    border: none;
    color: var(--primary);
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-list li a {
    display: block;
    padding: 15px 0;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.mobile-btn-quote {
    background: var(--gradient-cta) !important;
    color: white !important;
    text-align: center;
    border-radius: 8px;
    margin-top: 20px;
}

/* Responsive Queries */
@media (max-width: 1100px) {
    .main-nav-list > li > a {
        padding: 15px 15px;
        font-size: 12px;
    }
}

@media (max-width: 991px) {
    .upper-nav, .main-nav-modern {
        display: none;
    }
    
    .navbar-toggle-modern {
        display: block;
    }
    
    .top-bar-modern {
        padding: 10px 0;
    }
}

/* Sidebar & Cards Refinement */
.internal-page-content {
    background: var(--white) !important;
    padding: 30px !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow-sm) !important;
}

#leftNav {
    background: var(--white) !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow-sm) !important;
    overflow: hidden !important;
    margin-bottom: 30px !important;
}

#leftNav ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#leftNav li.menuTop {
    background: var(--primary) !important;
    padding: 15px 20px !important;
}

#leftNav li.menuTop a {
    color: white !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 14px !important;
}

#leftNav li a {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 20px !important;
    border-bottom: 1px solid #e6ebf1 !important;
    color: var(--text-dark) !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

#leftNav li a:hover {
    background-color: var(--bg-light) !important;
    color: var(--accent) !important;
    padding-left: 25px !important;
}

#leftNav li.active > a {
    color: var(--accent) !important;
    border-left: 4px solid var(--accent) !important;
    background-color: var(--bg-light) !important;
}

/* Footer Contact Section */
.footer-contact {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    padding: 60px 0 !important;
    text-align: center !important;
}

.footer-contact-text {
    color: white !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    margin-bottom: 30px !important;
    font-family: 'Montserrat', sans-serif !important;
}

.footer-contact .btn {
    font-size: 18px !important;
    padding: 15px 40px !important;
}



/* Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* --- Footer Modernization: 3-Column Layout --- */
.footer-modern {
    background: #0a0e1a; /* Matching header dark navy */
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 40px;
    font-family: 'Inter', sans-serif;
    border-top: 4px solid var(--accent);
}

.footer-row-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.footer-col-modern {
    margin-bottom: 40px;
}

.footer-logo-container {
    margin-bottom: 25px;
}

.footer-about-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 90%;
}

.footer-social-modern {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--accent);
    color: #0a0e1a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.3);
}

.footer-heading-modern {
    color: #00ffcc !important; /* Cyan for better visibility on dark */
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-heading-modern::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #00ffcc;
}

.footer-links-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-modern li {
    margin-bottom: 12px;
}

.footer-links-modern li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    display: inline-block;
}

.footer-links-modern li a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-contact-modern {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item-modern {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item-modern i {
    color: #00ffcc !important;
    font-size: 18px;
    margin-top: 3px;
    width: 25px;
    text-align: center;
}

.contact-item-modern span, 
.contact-item-modern a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item-modern a:hover {
    color: var(--accent);
}

.footer-bottom-modern {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom-modern p {
    font-size: 14px;
    margin: 0;
}

@media (max-width: 767px) {
    .footer-modern {
        padding: 60px 0 30px;
        text-align: center;
    }
    .footer-heading-modern::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-social-modern {
        justify-content: center;
    }
    .contact-item-modern {
        justify-content: center;
    }
}

/* 
   REFINED COMPONENT STYLES
   ========================================================================== */

/* Modernized Buttons - Global */
.btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    border: none !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}

.btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15) !important;
    filter: brightness(1.1) !important;
}

.green-btn {
    background: var(--gradient-cta) !important;
    color: white !important;
}

.blue-btn {
    background: var(--gradient-accent) !important;
    color: white !important;
}

/* Sidebar CTAs - Fixing Inconsistencies */
.left-nav-ctas {
    margin-top: 30px !important;
    padding: 0 10px !important;
}

.left-nav-ctas .row {
    margin-left: -5px !important;
    margin-right: -5px !important;
    display: flex !important;
    flex-wrap: wrap !important;
}

.left-nav-ctas [class*="col-"] {
    padding-left: 5px !important;
    padding-right: 5px !important;
    margin-bottom: 0 !important;
}

.cta-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin-bottom: 15px !important;
    text-align: center !important;
    padding: 12px 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    min-height: 55px !important;
    line-height: 1.2 !important;
}

/* Custom spacing for 50/50 buttons in sidebar */
.left-nav-ctas .col-sm-6 .cta-btn {
    min-height: 60px !important; /* Ensure they match even with different text lengths */
}

/* ==========================================================================
   HIDE SEARCH BAR — Definitive Removal (user-requested, no functional use)
   ========================================================================== */
#search-container,
#search,
#search form,
header .search,
header form.search,
#uppernav .search,
.header-search,
form.search-form,
input[type=search],
#headerSearchMobile,
.mobile-search,
.search-icon,
.mobile-phone-and-search .search-icon {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   MOBILE HEADER POLISH (hamburger is not JS-wired, hide it; rely on wrapped #topnav)
   ========================================================================== */
#mobile-header {
    background: var(--white) !important;
    box-shadow: var(--shadow-sm) !important;
    padding: 10px 0 !important;
    position: relative;
    z-index: 500;
}

#mobile-header .mobile-logo-container {
    text-align: center;
}

#mobile-header .mobile-logo-container img {
    height: 45px !important;
    width: auto !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 auto !important;
    display: inline-block !important;
}

#mobile-header .mobile-phone-and-search {
    text-align: right;
    padding-right: 10px;
    font-size: 20px;
    line-height: 45px;
}

#mobile-header .mobile-phone-and-search a {
    color: var(--primary) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    transition: all 0.3s ease;
}

#mobile-header .mobile-phone-and-search a:hover {
    background: var(--cta);
    color: white !important;
    transform: scale(1.05);
}

/* Hide the broken hamburger (it links to index.html, not a mmenu) since #topnav already wraps responsively */
#responsiveMenuButtonContainer {
    display: none !important;
}

/* Reclaim the space: push header right column to center vertically */
#headerRight {
    justify-content: center !important;
}

/* ==========================================================================
   HERO / SLIDER — Premium Treatment (NOTE: .slider.round is a toggle switch
   in Bootstrap forms — do NOT restyle it. We target bxslider/revslider only)
   ========================================================================== */
.rev_slider_wrapper,
#rev_slider_1_1_wrapper,
.bx-wrapper {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 60px -15px rgba(15, 23, 42, 0.25),
                0 8px 20px -8px rgba(15, 23, 42, 0.15) !important;
    margin: 25px auto 40px !important;
    position: relative;
    isolation: isolate;
}

.bx-wrapper img {
    border-radius: 16px !important;
    width: 100% !important;
    object-fit: cover !important;
}

.bx-wrapper {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    margin-bottom: 40px !important;
}

.bx-wrapper .bx-pager.bx-default-pager a {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
}

.bx-wrapper .bx-pager.bx-default-pager a.active,
.bx-wrapper .bx-pager.bx-default-pager a:hover {
    background: var(--accent) !important;
    transform: scale(1.2);
}

/* ==========================================================================
   MODERN IMAGE PRESENTATION
   ========================================================================== */
.internal-page-content img,
.content img,
article img,
main img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px -6px rgba(10, 37, 64, 0.18) !important;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.4s ease !important;
    margin: 20px 0 !important;
    display: block;
}

.internal-page-content img:hover,
.content img:hover,
article img:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 32px -8px rgba(10, 37, 64, 0.28) !important;
}

/* Don't apply to logos, icons, tiny UI images, or sliders */
#logo img,
.bx-wrapper img,
.footer img,
#footer img,
img[src*="icon"],
img[width="16"],
img[width="24"],
img[width="32"],
img.no-style,
.navbar img,
.nav img,
.hero-premium img {
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    margin: 0 !important;
}

#logo img {
    border-radius: 0 !important;
}

.bx-wrapper img {
    border-radius: 16px !important;
}

/* Figure / caption styling */
figure {
    margin: 30px 0 !important;
}

figcaption {
    font-size: 13px !important;
    color: var(--text-light) !important;
    text-align: center !important;
    margin-top: 10px !important;
    font-style: italic;
}

/* ==========================================================================
   CONSISTENT SECTION SPACING
   ========================================================================== */
.container,
.container-fluid {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

section,
.section,
.content-section {
    padding: 60px 0 !important;
}

.row + .row {
    margin-top: 30px;
}

/* First h1/h2 in content shouldn't have huge top margin */
.internal-page-content > h1:first-child,
.internal-page-content > h2:first-child,
.content > h1:first-child {
    margin-top: 0 !important;
}

/* ==========================================================================
   ON-LOAD ANIMATIONS (pure CSS, no JS required)
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body {
    animation: fadeIn 0.5s ease-out both;
}

#header,
#topNavContainer {
    animation: fadeInUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

.slider.round,
.rev_slider_wrapper,
.bx-wrapper {
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.15s both;
}

.internal-page-content,
.main-content,
#content {
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.25s both;
}

#leftNav,
.sidebar {
    animation: slideInLeft 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.35s both;
}

#footer,
.footer-contact {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   CARD / PRODUCT GRID — Modern Presentation
   ========================================================================== */
.product-grid,
.products-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    padding: 0;
    list-style: none;
}

.product-item,
.product-card,
.thumbnail {
    background: white !important;
    border: 1px solid #e6ebf1 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    padding: 20px !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: var(--shadow-sm) !important;
}

.product-item:hover,
.product-card:hover,
.thumbnail:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--accent) !important;
}

.product-item img,
.product-card img,
.thumbnail img {
    border-radius: 8px !important;
    margin: 0 0 15px 0 !important;
}

/* ==========================================================================
   TYPOGRAPHY POLISH
   ========================================================================== */
p {
    margin-bottom: 1.2em !important;
    line-height: 1.7 !important;
}

h1 { font-size: clamp(28px, 4vw, 42px) !important; }
h2 { font-size: clamp(22px, 3vw, 32px) !important; }
h3 { font-size: clamp(18px, 2.5vw, 24px) !important; }

::selection {
    background: var(--accent);
    color: var(--primary);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS POLISH
   ========================================================================== */
@media (max-width: 768px) {
    #header { padding: 10px 0 !important; }
    #logo img { max-height: 50px !important; }
    .slogan-container { display: none !important; }

    #topnav > ul {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    #topnav > ul > li > a {
        padding: 12px 15px !important;
        font-size: 12px !important;
    }

    .slider.round,
    .bx-wrapper {
        border-radius: 10px !important;
        margin: 15px 0 25px !important;
    }

    .internal-page-content { padding: 20px !important; }
    section, .section { padding: 40px 0 !important; }

    .product-grid,
    .products-list {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .footer-contact-text { font-size: 18px !important; }
}

@media (max-width: 480px) {
    .product-grid,
    .products-list {
        grid-template-columns: 1fr;
    }
    #uppernav ul {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }
}

/* ==========================================================================
   SCROLLBAR POLISH (WebKit)
   ========================================================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================================================
   FOOTER — Premium Redesign
   ========================================================================== */
#footer {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 70px 0 30px !important;
    position: relative;
    overflow: hidden;
}

#footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-cta);
}

#footer h3, #footer h4, #footer h5 {
    color: white !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin: 0 0 20px !important;
    position: relative;
    padding-bottom: 12px;
}

#footer h3::after, #footer h4::after, #footer h5::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--cta);
}

#footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer ul li {
    margin-bottom: 10px;
}

#footer a {
    color: rgba(255, 255, 255, 0.65) !important;
    transition: all 0.25s ease !important;
    display: inline-block;
}

#footer a:hover {
    color: var(--cta) !important;
    transform: translateX(4px);
}

#footer img {
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 0 20px !important;
    transform: none !important;
}

#footer hr,
#footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: 40px !important;
    padding-top: 25px !important;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.footer-contact {
    background: var(--gradient-hero) !important;
    position: relative;
    overflow: hidden;
}

.footer-contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-contact > * {
    position: relative;
    z-index: 1;
}

.footer-contact .btn {
    background: var(--gradient-cta) !important;
    color: white !important;
    border: none !important;
    padding: 16px 40px !important;
    font-size: 16px !important;
}

.footer-contact .btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 35px -5px rgba(245, 158, 11, 0.5) !important;
}

/* ==========================================================================
   FORMS — Contact, Quote, etc.
   ========================================================================== */
.cms_form,
form.contact-form,
form.quote-form,
form[id*="contact"],
form[id*="quote"],
form[id*="rfq"] {
    background: var(--white);
    padding: 35px;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.cms_form label,
form label {
    display: block !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: var(--text-dark) !important;
    margin-bottom: 6px !important;
    letter-spacing: 0.2px;
}

.cms_form input[type="text"]:not(.search-input),
.cms_form input[type="email"],
.cms_form input[type="tel"],
.cms_form input[type="url"],
.cms_form input[type="number"],
.cms_form select,
.cms_form textarea,
form input[type="text"]:not(.search-input),
form input[type="email"],
form input[type="tel"],
form input[type="url"],
form input[type="number"],
form select,
form textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    color: var(--text-dark) !important;
    background: var(--white) !important;
    transition: all 0.25s ease !important;
    box-shadow: none !important;
    line-height: 1.4 !important;
    margin-bottom: 18px !important;
    box-sizing: border-box !important;
}

/* Checkbox List Two-Column Layout */
#rfi_interested_in .rf_value {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px 30px !important;
    margin-top: 15px !important;
}

#rfi_interested_in .rf_value > div {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0 !important;
}

#rfi_interested_in .rf_value label {
    margin-bottom: 0 !important;
    display: inline-block !important;
    font-weight: 500 !important;
}

/* Remove underlines from phone and email links */
a[href^="tel:"], a[href^="mailto:"] {
    text-decoration: none !important;
}

.cms_form input:focus,
.cms_form select:focus,
.cms_form textarea:focus,
form input:focus,
form select:focus,
form textarea:focus {
    outline: none !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15) !important;
}

.cms_form textarea,
form textarea {
    min-height: 140px !important;
    resize: vertical !important;
}

.cms_form input[type="submit"],
.cms_form button[type="submit"],
form input[type="submit"],
form button[type="submit"] {
    background: var(--gradient-cta) !important;
    color: white !important;
    border: none !important;
    padding: 14px 36px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 4px 14px -2px rgba(245, 158, 11, 0.35) !important;
    width: auto !important;
    margin-top: 10px !important;
}

.cms_form input[type="submit"]:hover,
.cms_form button[type="submit"]:hover,
form input[type="submit"]:hover,
form button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.5) !important;
    filter: brightness(1.05);
}

.cms_form input[type="checkbox"],
.cms_form input[type="radio"],
form input[type="checkbox"],
form input[type="radio"] {
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Required field indicator */
.required::after,
label.required::after {
    content: " *";
    color: var(--cta);
    font-weight: 700;
}

/* ==========================================================================
   TABLES — Responsive & Modern
   ========================================================================== */
.internal-page-content table,
.content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 25px 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-sm) !important;
    background: white;
}

.internal-page-content table thead,
.content table thead {
    background: var(--primary) !important;
    color: white !important;
}

.internal-page-content table th,
.content table th {
    padding: 14px 18px !important;
    text-align: left !important;
    font-weight: 700 !important;
    color: white !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    letter-spacing: 0.5px;
}

.internal-page-content table td,
.content table td {
    padding: 14px 18px !important;
    border-bottom: 1px solid var(--border) !important;
}

.internal-page-content table tbody tr:hover,
.content table tbody tr:hover {
    background: var(--bg-light) !important;
}

.internal-page-content table tbody tr:last-child td,
.content table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Scroll wrapper for tables on narrow screens */
@media (max-width: 768px) {
    .internal-page-content table,
    .content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ==========================================================================
   LINKS in content — subtle underline animation
   ========================================================================== */
.internal-page-content a:not(.btn):not(.cta-btn):not([class*="btn"]),
.content a:not(.btn):not(.cta-btn):not([class*="btn"]) {
    color: var(--accent-hover) !important;
    background-image: linear-gradient(to right, var(--accent-hover), var(--accent-hover));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease, color 0.2s ease !important;
    padding-bottom: 2px;
}

.internal-page-content a:not(.btn):not(.cta-btn):not([class*="btn"]):hover,
.content a:not(.btn):not(.cta-btn):not([class*="btn"]):hover {
    background-size: 100% 2px;
}


/* ==========================================================================
   PREMIUM HERO  (#home_header.hero-premium) — dramatic visible redesign
   ========================================================================== */
#home_header.hero-premium {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 60px 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%) !important;
    min-height: clamp(420px, 55vw, 680px) !important;
    display: flex !important;
    align-items: stretch !important;
    box-shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.45);
    isolation: isolate;
}

#home_header.hero-premium .hero-bg-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    z-index: 1 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    opacity: 0.55 !important;
    filter: saturate(1.05) contrast(1.05) !important;
    transform: scale(1.02);
    animation: heroKenBurns 18s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
    0%   { transform: scale(1.02) translate3d(0, 0, 0); }
    100% { transform: scale(1.10) translate3d(-1.5%, -1%, 0); }
}

#home_header.hero-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg,
            rgba(15, 23, 42, 0.92) 0%,
            rgba(15, 23, 42, 0.72) 45%,
            rgba(15, 23, 42, 0.35) 75%,
            rgba(15, 23, 42, 0.15) 100%),
        radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 15% 90%, rgba(245, 158, 11, 0.15) 0%, transparent 50%);
    z-index: 2;
    pointer-events: none;
}

#home_header.hero-premium::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, #ffffff);
    z-index: 3;
    pointer-events: none;
}

#home_header.hero-premium .hero-overlay {
    position: relative !important;
    z-index: 4 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    padding: clamp(40px, 8vh, 100px) 0 !important;
}

#home_header.hero-premium .hero-overlay .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    color: #fff;
}

#home_header.hero-premium .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 8px 16px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin: 0 0 22px 0;
    animation: fadeInUp 0.7s cubic-bezier(0.165, 0.84, 0.44, 1) 0.1s both;
}

#home_header.hero-premium .hero-title {
    font-family: 'Montserrat', 'Inter', sans-serif !important;
    font-size: clamp(2rem, 5vw, 4.2rem) !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em !important;
    color: #ffffff !important;
    margin: 0 0 20px 0 !important;
    max-width: 780px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.25s both;
}

#home_header.hero-premium .hero-accent {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fde68a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

#home_header.hero-premium .hero-sub {
    font-family: 'Inter', sans-serif !important;
    font-size: clamp(1rem, 1.4vw, 1.2rem) !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.82) !important;
    max-width: 620px;
    margin: 0 0 36px 0 !important;
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.4s both;
}

#home_header.hero-premium .hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.55s both;
}

#home_header.hero-premium .hero-btn-primary,
#home_header.hero-premium .hero-btn-secondary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 16px 34px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    position: relative;
    overflow: hidden;
}

#home_header.hero-premium .hero-btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #0f172a !important;
    box-shadow: 0 10px 28px -8px rgba(245, 158, 11, 0.55),
                0 4px 12px -4px rgba(245, 158, 11, 0.35);
}
#home_header.hero-premium .hero-btn-primary::after {
    content: "\2192";
    font-size: 1.1em;
    transition: transform 0.3s ease;
}
#home_header.hero-premium .hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 38px -8px rgba(245, 158, 11, 0.7),
                0 6px 16px -4px rgba(245, 158, 11, 0.45);
    filter: brightness(1.08);
    color: #0f172a !important;
}
#home_header.hero-premium .hero-btn-primary:hover::after {
    transform: translateX(4px);
}

#home_header.hero-premium .hero-btn-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.28) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
#home_header.hero-premium .hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px);
    color: #fff !important;
}

/* Mobile hero */
@media (max-width: 767px) {
    #home_header.hero-premium {
        min-height: clamp(360px, 85vw, 520px) !important;
        margin: 0 0 40px 0 !important;
    }
    #home_header.hero-premium .hero-overlay {
        padding: 56px 0 !important;
    }
    #home_header.hero-premium::after { height: 60px; }
    #home_header.hero-premium .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }
    #home_header.hero-premium .hero-btn-primary,
    #home_header.hero-premium .hero-btn-secondary {
        width: 100%;
    }
}

/* ==========================================================================
   NAV / DROPDOWN / Z-INDEX / GAP — comprehensive fix block (Phase 3)
   Goals: proper depth1+depth2 dropdowns, no blue hover artifact, no gap
   between header/nav and hero, clean stacking, mobile collapsible nav.
   ========================================================================== */

/* --- 1. Stacking + gap reset ------------------------------------------------ */
#header,
#desktop-header {
    position: relative !important;
    z-index: 50 !important;
    margin: 0 !important;
}

#topNavContainer {
    position: sticky !important;
    top: 0 !important;
    z-index: 200 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--primary, #0f172a) !important;
    box-shadow: 0 2px 14px -4px rgba(15, 23, 42, 0.35) !important;
    border: none !important;
}

#topNavContainer .container,
#topNavContainer .row,
#topNavContainer .col-md-12 {
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Hide visually-empty hidden mobile search wrappers so they collapse */
#headerSearchMobile { display: none !important; height: 0 !important; }

/* Kill the gap above hero on every page that uses #home_header */
#home_header,
#home_header.hero-premium { margin-top: 0 !important; }

/* Internal page banners: also collapse top gap */
#content { margin-top: 0 !important; }

/* --- 2. Topnav base layout -------------------------------------------------- */
#topnav {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
}

#topnav > ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

#topnav > ul > li {
    position: relative !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    flex-shrink: 0 !important;
    display: block !important;
    visibility: visible !important;
    border: none !important;
}

#topnav > ul > li > a {
    display: flex !important;
    align-items: center !important;
    padding: 16px 18px !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    transition: color .25s ease, border-color .25s ease, background-color .25s ease !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Caret indicator on parents */
#topnav > ul > li.parent > a::after,
#topnav > ul > li > a.parent::after {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.7;
    transition: transform .25s ease;
}
#topnav > ul > li:hover > a::after,
#topnav > ul > li:focus-within > a::after {
    transform: rotate(225deg) translateY(0);
    opacity: 1;
}

/* HOVER / ACTIVE — kill the legacy blue, use accent underline */
#topnav > ul > li > a:hover,
#topnav > ul > li > a:focus,
#topnav > ul > li:hover > a,
#topnav > ul > li:focus-within > a,
#topnav > ul > li.active > a,
#topnav > ul > li.current > a {
    color: var(--cta, #f59e0b) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-bottom-color: var(--cta, #f59e0b) !important;
    outline: none !important;
}

/* --- 3. Depth-1 dropdown (opens below depth-0) ----------------------------- */
#topnav li ul {
    display: block !important;        /* visible by transform/opacity, not display */
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(8px) !important;
    transition: opacity .22s ease, transform .22s ease, visibility .22s !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 260px !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    list-style: none !important;
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    border-top: 3px solid var(--cta, #f59e0b) !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 24px 48px -16px rgba(15, 23, 42, 0.28),
                0 6px 16px -8px rgba(15, 23, 42, 0.18) !important;
    z-index: 1000 !important;
}

/* Show on hover/focus of parent */
#topnav li:hover > ul,
#topnav li:focus-within > ul {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

/* Right-edge dropdowns: keep within viewport */
#topnav > ul > li:nth-last-child(-n+2) > ul {
    left: auto !important;
    right: 0 !important;
}

/* --- 4. Depth-2 flyout (opens to the SIDE of depth-1) ---------------------- */
#topnav li ul li {
    position: relative !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

#topnav li ul li ul {
    top: -10px !important;
    left: 100% !important;
    margin-left: 4px !important;
    border-radius: 12px !important;
    border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
    border-left: 3px solid var(--accent, #38bdf8) !important;
}

/* If flyout would overflow viewport, flip to left */
#topnav > ul > li:nth-last-child(-n+2) li ul {
    left: auto !important;
    right: 100% !important;
    margin-left: 0 !important;
    margin-right: 4px !important;
    border-left: none !important;
    border-right: 3px solid var(--accent, #38bdf8) !important;
}

/* --- 5. Dropdown link styling ---------------------------------------------- */
#topnav li ul li a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 11px 20px !important;
    color: var(--text-dark, #1e293b) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    border-left: 3px solid transparent !important;
    transition: background-color .18s ease, color .18s ease,
                border-color .18s ease, padding-left .18s ease !important;
    white-space: nowrap !important;
}

/* Caret on parent submenu items */
#topnav li ul li.parent > a::after,
#topnav li ul li > a.parent::after {
    content: "\203A";
    margin-left: 12px;
    font-size: 1.1em;
    color: var(--accent, #38bdf8);
    opacity: 0.7;
    transition: transform .2s ease, opacity .2s ease;
}
#topnav li ul li:hover > a::after,
#topnav li ul li:focus-within > a::after {
    transform: translateX(3px);
    opacity: 1;
}

/* HOVER — no blue, use slate-tint with amber accent */
#topnav li ul li > a:hover,
#topnav li ul li > a:focus,
#topnav li ul li:hover > a,
#topnav li ul li:focus-within > a {
    background: rgba(56, 189, 248, 0.08) !important;
    color: var(--primary, #0f172a) !important;
    border-left-color: var(--cta, #f59e0b) !important;
    padding-left: 24px !important;
    outline: none !important;
}

/* Kill any legacy inline blue hover/highlight backgrounds inside nav */
#topNavContainer a,
#topNavContainer li,
#topNavContainer ul {
    background-color: transparent;
}
#topnav a:focus,
#topnav a:active,
#topnav li:focus,
#topnav li:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* --- 6. UpperNav dropdown alignment fix ------------------------------------ */
#uppernav { position: relative !important; z-index: 60 !important; }
#uppernav li { position: relative !important; }
#uppernav li ul {
    display: block !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(6px) !important;
    transition: opacity .2s ease, transform .2s ease, visibility .2s !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    right: auto !important;
    background: #fff !important;
    border-top: 3px solid var(--cta, #f59e0b) !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 18px 40px -14px rgba(15, 23, 42, 0.28) !important;
    padding: 6px 0 !important;
    z-index: 1100 !important;
}
#uppernav li:hover > ul,
#uppernav li:focus-within > ul {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

/* --- 7. Hero gets its own stacking context BELOW nav ------------------------ */
#home_header,
#home_header.hero-premium {
    position: relative !important;
    z-index: 1 !important;
    isolation: isolate;
}

/* --- 8. Floating CTA / back-to-top polish ---------------------------------- */
.floating_cta.btn {
    position: fixed !important;
    right: 24px !important;
    bottom: 90px !important;
    z-index: 950 !important;
    padding: 14px 22px !important;
    background: linear-gradient(135deg, var(--cta, #f59e0b), #d97706) !important;
    color: #0f172a !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 30px -10px rgba(245, 158, 11, 0.55),
                0 6px 14px -4px rgba(0, 0, 0, 0.18) !important;
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease !important;
}
.floating_cta.btn:hover {
    transform: translateY(-3px) !important;
    filter: brightness(1.06) !important;
    color: #0f172a !important;
    box-shadow: 0 20px 40px -10px rgba(245, 158, 11, 0.7),
                0 8px 18px -4px rgba(0, 0, 0, 0.22) !important;
}

.deconx-brand {
    background: #0a1121 !important; /* Extremely dark navy/black */
    padding: 10px 20px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    position: relative !important;
    border: 1px solid rgba(0, 255, 204, 0.1) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.deconx-brand:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 20px rgba(0, 255, 204, 0.15) !important;
}

.deconx-text {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 800 !important;
    font-size: 22px !important;
    letter-spacing: 1px !important;
    color: #00ffcc !important; /* Fallback */
    background: linear-gradient(90deg, #00ffcc 0%, #00d4ff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

.deconx-symbol {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    font-size: 7px !important;
    color: #00ffcc !important;
    border: 1.5px solid #00ffcc !important;
    border-radius: 50% !important;
    width: 12px !important;
    height: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 900 !important;
}

#back_to_top {
    position: fixed !important;
    right: 24px !important;
    bottom: 24px !important;
    z-index: 950 !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--primary, #0f172a) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.45) !important;
    cursor: pointer !important;
    transition: transform .25s ease, background-color .25s ease !important;
}
#back_to_top:hover {
    background: var(--accent, #38bdf8) !important;
    color: #0f172a !important;
    transform: translateY(-3px) !important;
}

/* --- 9. Mobile nav (≤991px) — collapsible via .nav-open toggle ------------- */
#nav_toggle_modern {
    display: none;
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 1500;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 12px;
    background: var(--primary, #0f172a);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.45);
    align-items: center;
    justify-content: center;
    padding: 0;
}
#nav_toggle_modern .bar {
    display: block;
    width: 22px; height: 2px;
    background: #fff;
    margin: 4px auto;
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}
body.nav-open #nav_toggle_modern .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open #nav_toggle_modern .bar:nth-child(2) { opacity: 0; }
body.nav-open #nav_toggle_modern .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 991px) {
    #nav_toggle_modern { display: flex !important; }

    /* Hide legacy hamburger so we have a single toggle */
    #responsiveMenuButtonContainer { display: none !important; }

    #topNavContainer {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: 100vh !important;
        width: 100% !important;
        max-width: 320px !important;
        transform: translateX(-100%);
        transition: transform .32s cubic-bezier(.4,.0,.2,1);
        overflow-y: auto !important;
        padding: 70px 0 30px !important;
        box-shadow: 8px 0 28px -8px rgba(0,0,0,.25) !important;
        z-index: 1400 !important;
    }
    body.nav-open #topNavContainer { transform: translateX(0); }

    body.nav-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(15,23,42,.5);
        z-index: 1300;
        backdrop-filter: blur(2px);
    }

    #topnav { padding: 0 !important; }
    #topnav > ul { flex-direction: column !important; align-items: stretch !important; }
    #topnav > ul > li { width: 100% !important; }
    #topnav > ul > li > a {
        padding: 14px 20px !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
        justify-content: flex-start !important;
    }

    /* Mobile dropdowns: inline accordion (no absolute positioning) */
    #topnav li ul {
        position: static !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        background: rgba(255,255,255,0.04) !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 4px 0 8px !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height .32s ease;
    }
    #topnav li:hover > ul,
    #topnav li:focus-within > ul,
    #topnav li.open > ul {
        max-height: 1500px;
    }
    #topnav li ul li a {
        color: rgba(255,255,255,0.85) !important;
        padding: 10px 32px !important;
        border-left: none !important;
    }
    #topnav li ul li > a:hover,
    #topnav li ul li:hover > a {
        background: rgba(56,189,248,0.1) !important;
        color: #fff !important;
        padding-left: 36px !important;
    }
    #topnav li ul li ul { padding-left: 12px !important; }

    /* Caret rotation hint on mobile */
    #topnav > ul > li.parent > a::after { margin-left: auto !important; }
}

/* --- 10. Reduced motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    #topnav li ul,
    #uppernav li ul,
    .floating_cta.btn,
    #back_to_top { transition: none !important; }
    #home_header.hero-premium .hero-bg-img { animation: none !important; }
}

/* ==========================================================================
   PHASE 3 — User-reported visual fixes
   1) Stacking: header dropdowns over navy bar
   2) Hero gap removal
   3) Cookie banner (CookieYes) themed
   4) Premium cards: industries / decon / chemical cleaning / descalers
   5) Manufacturer logos carousel
   6) Footer modernization (logo-light, themed socials, FA from CDN)
   7) Mobile overflow & text containment
   ========================================================================== */

/* --- 0. FontAwesome webfont fallback (local files 404) ---------------------- */
@font-face {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-style: normal;
    font-display: block;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2") format("woff2"),
         url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.ttf") format("truetype");
}
@font-face {
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
    font-style: normal;
    font-display: block;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-regular-400.woff2") format("woff2"),
         url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-regular-400.ttf") format("truetype");
}
@font-face {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
    font-style: normal;
    font-display: block;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff2") format("woff2"),
         url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.ttf") format("truetype");
}

/* --- 1. STACKING / Z-INDEX FINAL ORDER ------------------------------------- */
#header {
    position: relative !important;
    z-index: 500 !important;
}
#topNavContainer {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
}
#uppernav { position: relative !important; z-index: 600 !important; }
#uppernav li ul { z-index: 9999 !important; }
#topnav    { position: relative !important; }
#topnav  li ul { z-index: 9000 !important; }

/* --- 2. KILL THE GAP between nav bar and hero ------------------------------ */
#topNavContainer + div,
#topNavContainer + div > div,
#home_header,
#home_header.hero-premium {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* legacy padding removed */
#topNavContainer { border: none !important; }
#mm-0.mm-page > div:first-child { margin: 0 !important; padding: 0 !important; }

/* --- 3. COOKIE CONSENT (CookieYes) — themed buttons ------------------------ */
.cky-consent-container,
.cky-modal {
    font-family: 'Inter', sans-serif !important;
    border-radius: 14px !important;
    box-shadow: 0 24px 60px -16px rgba(15,23,42,.45) !important;
    border: 1px solid rgba(15,23,42,.06) !important;
}
.cky-notice,
.cky-consent-bar {
    background: #ffffff !important;
    color: #1e293b !important;
}
.cky-notice-des p,
.cky-notice-des,
.cky-title { color: #1e293b !important; }

.cky-btn {
    border-radius: 10px !important;
    padding: 11px 22px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    transition: all .25s ease !important;
    border-width: 1.5px !important;
    cursor: pointer !important;
}
.cky-btn-accept,
.cky-btn[data-cky-tag="accept-button"] {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #0f172a !important;
    border: none !important;
    box-shadow: 0 6px 16px -6px rgba(245,158,11,.5) !important;
}
.cky-btn-accept:hover { transform: translateY(-1px); filter: brightness(1.06); }

.cky-btn-reject,
.cky-btn-customize,
.cky-btn[data-cky-tag="reject-button"],
.cky-btn[data-cky-tag="settings-button"] {
    background: transparent !important;
    color: #0f172a !important;
    border: 1.5px solid #0f172a !important;
}
.cky-btn-reject:hover,
.cky-btn-customize:hover {
    background: #0f172a !important;
    color: #fff !important;
}

/* --- 4. PREMIUM CARDS — Industries / Decon product tiles ------------------- */
.home_slide_boxes { margin: 32px 0 !important; }

.home-slide-box {
    position: relative !important;
    margin-bottom: 28px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: 0 6px 20px -8px rgba(15,23,42,.18),
                0 2px 6px -2px rgba(15,23,42,.08) !important;
    transition: transform .35s cubic-bezier(.165,.84,.44,1),
                box-shadow .35s ease !important;
    isolation: isolate;
}
.home-slide-box:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 18px 36px -10px rgba(15,23,42,.25),
                0 8px 18px -6px rgba(15,23,42,.15) !important;
}
.home-slide-box img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    transition: transform .6s cubic-bezier(.165,.84,.44,1) !important;
}
.home-slide-box:hover img { transform: scale(1.06) !important; }

.home-slide-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 86px !important;
    background: linear-gradient(180deg,
        rgba(15,23,42,0) 0%,
        rgba(15,23,42,0.55) 35%,
        rgba(15,23,42,0.92) 100%) !important;
    color: #fff !important;
    transition: all .45s cubic-bezier(.165,.84,.44,1) !important;
    overflow: hidden !important;
    border-top: 3px solid #f59e0b !important;
}
.home-slide-box:hover .home-slide-overlay {
    height: 100% !important;
    background: linear-gradient(180deg,
        rgba(15,23,42,0.4) 0%,
        rgba(15,23,42,0.85) 100%) !important;
}
.home-slide-overlay-content {
    position: absolute !important;
    bottom: 0 !important;
    left: 0; right: 0;
    padding: 18px 20px !important;
    color: #fff !important;
    transition: bottom .45s ease !important;
}
.home-slide-box:hover .home-slide-overlay-content {
    bottom: 50%;
    transform: translateY(50%);
}
.home-slide-overlay-content h2,
.home-slide-overlay-content h3,
.home-slide-overlay-content p,
.home-slide-overlay-content a {
    color: #fff !important;
    text-decoration: none !important;
    font-family: 'Inter', sans-serif !important;
}
.overlay-header {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 0 6px 0 !important;
    text-transform: none !important;
}
.overlay-text {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    opacity: .92 !important;
    position: static !important;
    width: auto !important;
}

.industries-served-label-container {
    background: #ffffff !important;
    padding: 14px 12px !important;
    text-align: center !important;
    border-top: 3px solid #f59e0b !important;
}
.industries-served-label-container p {
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.industries-served-label-container a { color: #0f172a !important; }
.video-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.video-premium-card:hover + .video-title {
    color: var(--accent);
}

/* Lite-Youtube Integration */
lite-youtube.video-premium-card {
    cursor: pointer;
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background-color: #0f172a;
    background-size: cover;
    background-position: center;
    box-shadow: 0 6px 20px -8px rgba(15,23,42,.18),
                0 2px 6px -2px rgba(15,23,42,.08);
    transition: transform .35s cubic-bezier(.165,.84,.44,1),
                box-shadow .35s ease;
    margin-bottom: 12px;
}

lite-youtube.video-premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px -10px rgba(15,23,42,.25),
                0 8px 18px -6px rgba(15,23,42,.15);
}

lite-youtube.video-premium-card .lty-playbtn {
    display: none !important;
}

lite-youtube.video-premium-card .video-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.35);
    transition: background 0.3s ease;
    z-index: 1;
}

lite-youtube.video-premium-card:hover .video-card-overlay {
    background: rgba(15, 23, 42, 0.55);
}

lite-youtube.video-premium-card .video-card-overlay i {
    font-size: 48px;
    color: #fff;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    transition: transform 0.3s ease, color 0.3s ease;
}

lite-youtube.video-premium-card:hover .video-card-overlay i {
    transform: scale(1.15);
    color: #f59e0b;
}

lite-youtube.video-premium-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    z-index: 2;
}
.industries-served-label {
    font-family: 'Montserrat', sans-serif !important;
    font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    text-align: left !important;
    margin: 28px 0 24px !important;
}
.industries-served-label::after {
    content: "";
    display: block;
    width: 60px; height: 4px;
    background: linear-gradient(90deg, #f59e0b, #38bdf8);
    border-radius: 2px;
    margin-top: 12px;
}

/* --- 5. INDUSTRIES SERVED side-label layout polish ------------------------- */
.industries-served {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important;
    padding: 40px 24px !important;
    border-radius: 20px !important;
    margin: 30px 0 !important;
    border: 1px solid rgba(15,23,42,.04);
}

/* --- 6. h2 polish ---------------------------------------------------------- */
h2 {
    font-family: 'Montserrat', 'Inter', sans-serif !important;
    font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em !important;
    margin: 48px 0 16px !important;
    line-height: 1.2 !important;
    position: relative;
}
h2 + p { color: #64748b !important; max-width: 880px; }

/* --- 7. INDUSTRIAL CHEMICAL CLEANING column section ------------------------ */
.home-industrial-chemical-cleaning {
    padding: 60px 0 !important;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
    border-radius: 24px !important;
    margin: 40px 0 !important;
}
.home-industrial-chemical-cleaning .row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px 0 !important;
}
.home-industrial-chemical-cleaning-col {
    background: #ffffff !important;
    padding: 28px 24px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 14px -6px rgba(15,23,42,.12) !important;
    transition: transform .3s ease, box-shadow .3s ease !important;
    height: 100%;
    border: 1px solid rgba(15,23,42,.04);
}
.home-industrial-chemical-cleaning-col:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 32px -10px rgba(15,23,42,.22) !important;
}
.home-industrial-chemical-cleaning-col img {
    border-radius: 12px !important;
    margin: 0 auto 16px !important;
    transition: transform .35s ease !important;
}
.home-industrial-chemical-cleaning-col:hover img { transform: scale(1.04); }
.home-industrial-chemical-cleaning-col-heading {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    margin: 12px 0 8px !important;
    text-align: center;
}
.home-industrial-chemical-cleaning-col-heading a {
    color: #0f172a !important;
    text-decoration: none !important;
}
.home-industrial-chemical-cleaning-col-heading a:hover {
    color: #f59e0b !important;
}

/* --- 8. INDUSTRIAL DESCALERS (.home-blue-gray-row, .blue-bg, .gray-bg) ----- */
.home-blue-gray-row { padding: 40px 0 !important; }
.home-blue-gray-row .container-fluid > .row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 24px !important;
    margin: 0 !important;
    padding: 0 12px;
    align-items: stretch !important;
}
.home-blue-gray-row .container-fluid > .row > [class*="col-"] {
    flex: 0 0 calc(50% - 12px) !important;
    max-width: calc(50% - 12px) !important;
    width: calc(50% - 12px) !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}
.blue-bg, .gray-bg {
    padding: 36px 32px !important;
    border-radius: 20px !important;
    box-shadow: 0 6px 22px -10px rgba(15,23,42,.18) !important;
    border: 1px solid rgba(15,23,42,.04) !important;
    transition: transform .3s ease, box-shadow .3s ease !important;
    position: relative;
    overflow: hidden;
}
.blue-bg {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
}
.gray-bg {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%) !important;
}
.blue-bg::before, .gray-bg::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #38bdf8);
}
.blue-bg:hover, .gray-bg:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 18px 36px -12px rgba(15,23,42,.25) !important;
}
.blue-bg .home-blue-gray-heading,
.gray-bg .home-blue-gray-heading {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 16px !important;
    line-height: 1.3 !important;
}
.blue-bg ul, .gray-bg ul { padding-left: 18px; }
.blue-bg li, .gray-bg li {
    margin-bottom: 12px !important;
    line-height: 1.6 !important;
}
.blue-bg li::marker, .gray-bg li::marker { color: #f59e0b; }

/* --- 9. MANUFACTURER LOGOS carousel ---------------------------------------- */
.manufacturer-text {
    text-align: center !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.18em !important;
    color: #64748b !important;
    margin: 30px 0 18px !important;
}
.manufacturer-logos {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 60px !important;
    overflow: hidden !important;
    padding: 20px 0 !important;
    position: relative !important;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    width: 100% !important;
    justify-content: flex-start !important;
}
.manufacturer-logos img {
    flex: 0 0 auto !important;
    max-height: 60px !important;
    width: auto !important;
    margin: 0 !important;
    filter: grayscale(100%) opacity(.7);
    transition: filter .3s ease, transform .3s ease;
    animation: logoScroll 28s linear infinite;
}
.manufacturer-logos:hover img { animation-play-state: paused; }
.manufacturer-logos img:hover {
    filter: grayscale(0) opacity(1);
    transform: scale(1.08);
}
@keyframes logoScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-110%); }
}

/* --- 10. FOOTER MODERNIZATION ---------------------------------------------- */
.footer-main-content,
.mobile-footer-main-content {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0b1220 100%) !important;
    color: #e2e8f0 !important;
    padding: 64px 0 30px !important;
    position: relative !important;
    margin-top: 0 !important;
}
.footer-main-content::before,
.mobile-footer-main-content::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #38bdf8, #f59e0b);
}
.footer-main-content a,
.footer-col a,
.mobile-footer-main-content a,
.mobile-footer-col a {
    color: #e2e8f0 !important;
    text-decoration: none !important;
    transition: color .2s ease !important;
    font-size: 0.95rem !important;
}
.footer-main-content a:hover,
.footer-col a:hover,
.mobile-footer-col a:hover {
    color: #f59e0b !important;
    text-decoration: none !important;
}
.footer-col, .mobile-footer-col {
    color: #cbd5e1 !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    border: none !important;
    text-align: left !important;
    width: auto !important;
    margin: 0 !important;
    padding: 8px 0 !important;
}
.footer-col p, .mobile-footer-col p {
    color: #cbd5e1 !important;
    font-size: 0.95rem !important;
    margin: 0 0 10px !important;
}
.footer-col-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.14em !important;
    color: #f59e0b !important;
    border: none !important;
    margin: 0 0 18px !important;
    padding: 0 0 10px !important;
    position: relative;
}
.footer-col-title::after {
    content: "";
    position: absolute; left: 0; bottom: 0;
    width: 36px; height: 2px;
    background: #f59e0b;
    border-radius: 1px;
}

.mobile-footer-ellipse { display: none !important; }
.mobile-footer-main-content { margin-top: 0 !important; padding-top: 64px !important; }

.footer-col-img-container,
.mobile-footer-logo-container,
.mobile-footer-col-img-container {
    background: transparent !important;
    padding: 14px 0 !important;
    text-align: left !important;
}
.footer-col-img-container img,
.mobile-footer-logo-container img,
.mobile-footer-col-img-container img {
    max-width: 100px !important;
    height: auto !important;
    filter: brightness(0) invert(1) opacity(.7);
    transition: filter .3s ease;
    margin: 0 !important;
}
.footer-col-img-container img:hover,
.mobile-footer-col-img-container img:hover { filter: brightness(0) invert(1) opacity(1); }

.footer-social-links,
.mobile-footer-social-links {
    text-align: left !important;
    margin: 24px 0 0 !important;
    padding: 0 !important;
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
}
.footer-social-links a,
.mobile-footer-social-links a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    color: #e2e8f0 !important;
    font-size: 1rem !important;
    margin: 0 !important;
    transition: all .25s ease !important;
}
.footer-social-links a:hover,
.mobile-footer-social-links a:hover {
    background: #f59e0b !important;
    color: #0f172a !important;
    border-color: #f59e0b !important;
    transform: translateY(-2px) !important;
}
.footer-social-links i,
.mobile-footer-social-links i { font-size: 1rem !important; }

.mobile-footer-copyright {
    color: #94a3b8 !important;
    font-size: 0.82rem !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
    margin-top: 36px !important;
    padding-top: 22px !important;
    text-align: center !important;
}

/* --- 11. MOBILE RESPONSIVE OVERFLOW & TYPE TIGHTENING ---------------------- */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}
img, video, iframe { max-width: 100% !important; height: auto; }

@media (max-width: 767px) {
    .container, .container-fluid { padding-left: 16px !important; padding-right: 16px !important; }

    h1 { font-size: clamp(1.6rem, 6vw, 2.2rem) !important; line-height: 1.2 !important; }
    h2 { font-size: clamp(1.3rem, 5vw, 1.7rem) !important; line-height: 1.25 !important; margin: 32px 0 12px !important; }
    h3 { font-size: clamp(1.1rem, 4vw, 1.3rem) !important; }
    p, li { font-size: 0.95rem !important; line-height: 1.65 !important; word-wrap: break-word; overflow-wrap: anywhere; }

    .home-blue-gray-row .container-fluid > .row { flex-direction: column !important; flex-wrap: wrap !important; gap: 16px !important; }
    .home-blue-gray-row .container-fluid > .row > [class*="col-"] {
        flex: 1 1 100% !important; max-width: 100% !important; width: 100% !important;
    }

    .home_slide_boxes .row > [class*="col-"] { width: 100% !important; max-width: 100% !important; }

    .footer-main-content, .mobile-footer-main-content { padding: 40px 0 24px !important; }
    .footer-col, .mobile-footer-col { text-align: left !important; padding: 14px 0 !important; }
    .footer-social-links, .mobile-footer-social-links { justify-content: flex-start !important; }

    #home_header.hero-premium .hero-overlay .container { padding: 0 18px !important; }

    .floating_cta.btn { padding: 11px 16px !important; font-size: 11.5px !important; right: 14px !important; bottom: 78px !important; }
    #back_to_top { right: 14px !important; bottom: 14px !important; width: 42px !important; height: 42px !important; }

    .home-industrial-chemical-cleaning .row > [class*="col-"] {
        flex: 1 1 100% !important; max-width: 100% !important; padding: 0 8px !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .home_slide_boxes .row > [class*="col-"] { width: 50% !important; flex: 0 0 50% !important; max-width: 50% !important; }
}

[style*="width:"][class*="container"] { max-width: 100% !important; }
table { display: block; overflow-x: auto; max-width: 100%; }

/* ==========================================================================
   FORCE-RESET legacy padding-top on #sub_header, #home_header, #left
   (inline CSS in every HTML file injects 70/215/220/227px which breaks layout)
   ========================================================================== */
#sub_header,
#home_header,
#sub_header.hero-premium,
#home_header.hero-premium {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
}
#left,
.col-md-3.col-md-pull-9 #left {
    padding-top: 0 !important;
}
@media (min-width: 992px),
       (min-width: 1337px),
       (min-width: 1393px),
       (min-width: 1620px) {
    #sub_header,
    #home_header { padding-top: 0 !important; }
    #left { padding-top: 0 !important; }
}

/* ==========================================================================
   POLISH PASS — font consistency, smoother carousel, descaler padding,
   bigger footer, hover text fix on product cards
   ========================================================================== */

/* --- A. Global font consistency ------------------------------------------- */
body,
p, li, span, a, div, td, th, label, input, textarea, button,
.footer-col, .footer-col p, .footer-col a,
.mobile-footer-col, .mobile-footer-col p, .mobile-footer-col a,
.home-blue-gray-box, .home-blue-gray-box p, .home-blue-gray-box li,
.blue-bg, .blue-bg p, .blue-bg li, .blue-bg ul,
.gray-bg, .gray-bg p, .gray-bg li, .gray-bg ul,
.home-industrial-chemical-cleaning, .home-industrial-chemical-cleaning p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}
h1, h2, h3, h4, h5, h6,
.hero-title, .footer-col-title,
.home-blue-gray-heading, .industries-served-label,
.overlay-header, .home-industrial-chemical-cleaning-col-heading {
    font-family: 'Montserrat', 'Inter', sans-serif !important;
}

/* Body base size */
body { font-size: 16px !important; line-height: 1.65 !important; }
p, li { font-size: 16px !important; line-height: 1.7 !important; }

/* --- B. FIX: Product card hover — text was disappearing ------------------- */
/* Previously overlay grew to 100% and text moved to vertical center, but
   inherited transitions caused flicker. Lock content position + always show. */
.home-slide-box .home-slide-overlay {
    height: auto !important;
    min-height: 96px !important;
    background: linear-gradient(180deg,
        rgba(15,23,42,0) 0%,
        rgba(15,23,42,0.6) 30%,
        rgba(15,23,42,0.95) 100%) !important;
    transition: background .35s ease !important;
}
.home-slide-box:hover .home-slide-overlay {
    height: auto !important;
    background: linear-gradient(180deg,
        rgba(15,23,42,0.55) 0%,
        rgba(15,23,42,0.92) 100%) !important;
}
.home-slide-box .home-slide-overlay-content {
    position: relative !important;
    bottom: auto !important;
    transform: none !important;
    padding: 18px 20px !important;
    transition: none !important;
}
.home-slide-box:hover .home-slide-overlay-content {
    bottom: auto !important;
    transform: none !important;
}
.overlay-header {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 0 8px !important;
    color: #fff !important;
}
.overlay-text {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    color: rgba(255,255,255,0.92) !important;
    margin: 0 !important;
}

/* --- C. SMOOTHER logo carousel (no jump) ---------------------------------- */
.manufacturer-logos {
    display: flex !important;
    gap: 64px !important;
    overflow: hidden !important;
    width: 100% !important;
    padding: 24px 0 !important;
    align-items: center !important;
    /* Track wraps the cloned children; children no longer animate individually */
}
.manufacturer-logos > * {
    flex: 0 0 auto !important;
    animation: none !important;  /* kill old per-img animation */
}
/* Animate the whole strip */
.manufacturer-logos {
    animation: logoMarquee 40s linear infinite;
    will-change: transform;
}
.manufacturer-logos:hover { animation-play-state: paused; }
@keyframes logoMarquee {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
.manufacturer-logos img {
    max-height: 56px !important;
    width: auto !important;
    margin: 0 !important;
    filter: grayscale(100%) opacity(.65);
    transition: filter .3s ease, transform .3s ease;
}
.manufacturer-logos img:hover {
    filter: grayscale(0) opacity(1);
    transform: scale(1.06);
}

/* --- D. DESCALERS — padding + font consistency ---------------------------- */
.home-blue-gray-row {
    padding: 50px 0 !important;
}
.home-blue-gray-row .container-fluid > .row {
    gap: 28px !important;
    padding: 0 16px !important;
}
.blue-bg, .gray-bg {
    padding: 40px 36px !important;
    border-radius: 20px !important;
}
.blue-bg .home-blue-gray-heading,
.gray-bg .home-blue-gray-heading {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    margin: 0 0 18px !important;
    color: #0f172a !important;
    line-height: 1.3 !important;
    padding: 0 !important;
}
.blue-bg p, .gray-bg p,
.blue-bg li, .gray-bg li {
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #334155 !important;
    margin-bottom: 14px !important;
}
.blue-bg a, .gray-bg a {
    color: #0f172a !important;
    text-decoration: none !important;
    text-decoration-color: #f59e0b !important;
    text-underline-offset: 3px !important;
    text-decoration-thickness: 2px !important;
}
.blue-bg a:hover, .gray-bg a:hover {
    color: #f59e0b !important;
}

/* --- E. FOOTER — bigger, balanced fonts ----------------------------------- */
.footer-main-content,
.mobile-footer-main-content {
    padding: 70px 0 30px !important;
}
.footer-col, .mobile-footer-col,
.footer-col p, .mobile-footer-col p,
.footer-col a, .mobile-footer-col a {
    font-size: 16px !important;
    line-height: 1.8 !important;
}
.footer-col-title {
    font-size: 0.9rem !important;
    margin: 0 0 22px !important;
    padding: 0 0 12px !important;
}
.footer-social-links a,
.mobile-footer-social-links a {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.1rem !important;
}
.footer-social-links i,
.mobile-footer-social-links i { font-size: 1.1rem !important; }
.mobile-footer-copyright {
    font-size: 0.92rem !important;
    margin-top: 42px !important;
    padding-top: 26px !important;
}
.footer-col-img-container img,
.mobile-footer-logo-container img,
.mobile-footer-col-img-container img {
    max-width: 130px !important;
}

/* --- F. Mobile font tweaks ------------------------------------------------ */
@media (max-width: 767px) {
    body, p, li { font-size: 15.5px !important; line-height: 1.65 !important; }
    .blue-bg, .gray-bg { padding: 28px 22px !important; }
    .blue-bg .home-blue-gray-heading,
    .gray-bg .home-blue-gray-heading { font-size: 1.2rem !important; }
    .footer-col, .mobile-footer-col,
    .footer-col p, .mobile-footer-col p,
    .footer-col a, .mobile-footer-col a { font-size: 15.5px !important; }
}

/* ── Hide mobile footer logo container ── */
.mobile-footer-logo-container { display: none !important; }

/* ══════════════════════════════════════════════════════════════════════════════
   POLISH PASS 2 — rounded images, cookie banner modern, card font consistency
   ══════════════════════════════════════════════════════════════════════════════ */

/* --- A. ROUNDED IMAGE EDGES everywhere ------------------------------------ */
.industries-served img,
.industries-served-label-container img {
    border-radius: 14px !important;
    box-shadow: 0 4px 16px -6px rgba(15,23,42,.15) !important;
    transition: transform .4s ease, box-shadow .4s ease !important;
}
.industries-served img:hover {
    transform: scale(1.03) !important;
    box-shadow: 0 8px 24px -8px rgba(15,23,42,.25) !important;
}

.home-slide-box {
    border-radius: 16px !important;
}
.home-slide-box img {
    border-radius: 16px 16px 0 0 !important;
}

.home-industrial-chemical-cleaning img,
.home-industrial-chemical-cleaning-col img {
    border-radius: 12px !important;
}

.blue-bg img, .gray-bg img {
    border-radius: 12px !important;
}

/* General fallback — any content img in main */
#left img,
.content img,
.container img:not([class*="logo"]):not([class*="icon"]):not([width="1"]) {
    border-radius: 10px;
}

/* --- B. COOKIE BANNER — modern HubSpot banner (#cookies_warning) ---------- */
#cookies_warning {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
    background: rgba(255,255,255,0.92) !important;
    backdrop-filter: blur(18px) saturate(1.6) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.6) !important;
    border-top: 1px solid rgba(15,23,42,.08) !important;
    box-shadow: 0 -8px 40px -12px rgba(15,23,42,.18) !important;
    padding: 0 !important;
}
#cookies_warning .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px 24px !important;
}
#cookies_warning .cookies-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    flex-wrap: wrap !important;
}
#cookies_warning .cookies-wrapper p {
    flex: 1 1 auto !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    color: #334155 !important;
}
#cookies_warning .cookies-wrapper p a {
    color: #f59e0b !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    text-underline-offset: 2px !important;
}
#cookies_warning .button-span {
    display: flex !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}
#cookies_warning .button.cookie {
    font-family: 'Inter', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    padding: 11px 24px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all .25s ease !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    border: none !important;
    line-height: 1 !important;
}
#cookies_warning .button.cookie:not(.outline),
#cookies_warning #cookieAcceptAll {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #0f172a !important;
    box-shadow: 0 4px 14px -4px rgba(245,158,11,.45) !important;
}
#cookies_warning .button.cookie:not(.outline):hover,
#cookies_warning #cookieAcceptAll:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.06) !important;
}
#cookies_warning .button.cookie.outline,
#cookies_warning #cookieSetPreferences {
    background: transparent !important;
    color: #0f172a !important;
    border: 1.5px solid rgba(15,23,42,.2) !important;
}
#cookies_warning .button.cookie.outline:hover,
#cookies_warning #cookieSetPreferences:hover {
    background: #0f172a !important;
    color: #fff !important;
}

/* --- C. PRODUCT CARD font consistency (2nd image — decon cards) ------------ */
.home-slide-overlay-content h2,
.home-slide-overlay-content h3,
.overlay-header,
.home-slide-overlay-content .overlay-header {
    font-family: 'Montserrat', 'Inter', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.01em !important;
    color: #fff !important;
    margin: 0 0 8px !important;
}
.home-slide-overlay-content p,
.overlay-text,
.home-slide-overlay-content .overlay-text {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    color: rgba(255,255,255,0.88) !important;
    margin: 0 !important;
}

/* --- .content_row top padding --- */
.content_row { padding-top: 10px !important; }

/* --- KILL HEADER GAP --- */
#desktop-header .container > .row:nth-child(2) {
    /* Hide the row that formerly contained the search bar to eliminate its invisible height and padding */
    display: none !important;
}

#headerLeft, #headerRight {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

#desktop-header {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* --- REMOVE BORDERS / LINES FROM UPPER NAV OPTIONS --- */
#uppernav > ul > li,
#uppernav > ul > li > a {
    border: none !important;
    border-right: none !important;
    border-left: none !important;
}

#uppernav > ul > li::before,
#uppernav > ul > li::after,
#uppernav > ul > li > a::before,
#uppernav > ul > li > a::after {
    display: none !important;
    content: none !important;
}

/* --- FINAL RESPONSIVE OVERRIDES & MODERNIZATION --- */

/* Standardized Footer */
.footer-main-content {
    background: #0a0e1a !important; /* Deep Navy */
    padding: 80px 0 40px !important;
    color: #cbd5e1 !important;
    position: relative;
    border-top: 4px solid #38bdf8;
}

.footer-description {
    margin-top: 25px;
    font-size: 15px;
    line-height: 1.7;
    color: #94a3b8 !important;
}

.footer-col-title {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px !important;
    position: relative;
    padding-bottom: 12px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #38bdf8;
}

.footer-links {
    list-style: none !important;
    padding: 0 !important;
}

.footer-links li {
    margin-bottom: 12px !important;
}

.footer-links a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #38bdf8 !important;
    padding-left: 5px;
}

.contact-info p {
    margin-bottom: 15px !important;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-info i {
    color: #38bdf8;
    font-size: 16px;
    margin-top: 4px;
    width: 20px;
    text-align: center;
}

.company-name {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 17px !important;
    margin-bottom: 20px !important;
}

.footer-social-links {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.footer-social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-links a:hover {
    background: #38bdf8;
    color: #0a0e1a !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

/* Mobile Navigation Premium Look */
@media (max-width: 991px) {
    body.nav-open {
        overflow: hidden;
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: #ffffff !important;
        margin: 0 !important;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        display: block !important;
        z-index: 1001;
        padding: 80px 0 0 0 !important;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        overflow-y: auto;
    }

    .navbar-collapse.in {
        right: 0;
    }

    .nav-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(4px);
        z-index: 1000;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .navbar-nav {
        margin: 0 !important;
    }

    .navbar-nav > li {
        border-bottom: 1px solid #f1f5f9;
    }

    .navbar-nav > li > a {
        padding: 16px 30px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #1e293b !important;
    }

    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        background: #f8fafc;
        box-shadow: none;
        border: none;
        padding: 0 0 0 20px;
        display: none !important;
    }

    .navbar-nav .dropdown.open .dropdown-menu {
        display: block !important;
    }

    .navbar-nav .dropdown-menu > li > a {
        padding: 12px 30px !important;
        color: #64748b !important;
    }

    .btn-quote {
        margin: 20px 30px !important;
        display: block !important;
        text-align: center;
    }

    /* Fixed Hamburger */
    #nav_toggle_modern {
        display: block !important;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 1002;
        width: 45px;
        height: 45px;
        background: #0f172a;
        border-radius: 8px;
        border: none;
        padding: 10px;
        transition: all 0.3s ease;
    }

    #nav_toggle_modern .icon-bar {
        display: block;
        width: 25px;
        height: 2px;
        background: #ffffff;
        margin: 5px auto;
        transition: all 0.3s ease;
    }

    #nav_toggle_modern:not(.collapsed) .icon-bar:nth-child(2) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #nav_toggle_modern:not(.collapsed) .icon-bar:nth-child(3) {
        opacity: 0;
    }

    #nav_toggle_modern:not(.collapsed) .icon-bar:nth-child(4) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Video Play Button */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-play-button::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid #fff;
    margin-left: 5px;
}

.video-premium-card:hover .video-play-button {
    background: rgba(220, 53, 69, 0.9);
}

.video-replacement-image {
    width: 100%;
    max-width: 720px;
    border-radius: inherit;
    overflow: hidden;
    display: block;
}

.video-replacement-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
