/* MultiCoolVan UAE - State-of-the-Art Design System */

:root {
    /* Brand Colors - Exact Logo Match Refined */
    --primary: #1c4455;
    /* Logo Dark Slate/Navy */
    --primary-light: #2a5a70;
    --logo-cyan: #7db8c9;
    /* Logo Light Teal/Cyan */
    --logo-cyan-vibrant: #00a2e8;
    /* Previous vibrance for other elements */
    --secondary: #1a202c;
    --accent: #d32f2f;
    --success: var(--logo-cyan);
    /* Replace green with Tech Blue */

    /* Neutral Palette */
    --light: #f4f7f9;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #edf2f7;
    --gray-200: #e2e8f0;
    --gray-600: #4a5568;
    --gray-900: #171923;

    /* Gradients - Updated for Blue/Navy Spectrum */
    --grad-primary: linear-gradient(135deg, #002855 0%, #003e82 100%);
    --grad-premium: linear-gradient(135deg, #002855 0%, #00a2e8 100%);
    --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(244, 247, 249, 1) 100%);
    --grad-premium-alt: linear-gradient(135deg, #00a2e8 0%, #002855 100%);

    /* Shadows & Elevation */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 0 15px rgba(77, 165, 195, 0.2);

    /* Utilities */
    --transition-premium: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-pill: 50px;
    --radius-lg: 24px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--secondary);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Global Selection Styles */
::selection {
    background: var(--logo-cyan);
    color: var(--primary);
}

::-moz-selection {
    background: var(--logo-cyan);
    color: var(--primary);
}

/* Dark Section Selection Override */
.bg-primary ::selection {
    background: var(--white);
    color: var(--primary);
}

.bg-primary ::-moz-selection {
    background: var(--white);
    color: var(--primary);
}

h1,
h2,
h3,
h4,
h5,
h6,
.outfit-font {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Base UI Elements */
.text-gradient {
    background: var(--grad-premium);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-primary h1,
.bg-primary h2,
.bg-primary h3 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bg-premium-gradient {
    background: var(--grad-premium);
}

/* Brand Utility Classes */
.text-logo-teal {
    color: var(--primary);
}

.text-logo-cyan {
    color: var(--logo-cyan);
}

.bg-logo-gradient {
    background: var(--grad-primary);
}

/* Premium Buttons */
.btn-premium {
    background: var(--grad-primary);
    color: white !important;
    border-radius: var(--radius-pill);
    padding: 14px 34px;
    font-weight: 700;
    border: none;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-premium);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition-premium);
    z-index: -1;
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-premium), var(--shadow-glow);
}

.btn-premium:hover::before {
    width: 100%;
}

/* Advanced Card Design */
.card-premium {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition-premium);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-premium:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-premium);
    border-color: var(--logo-cyan);
}

.icon-box-modern {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--gray-50);
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-premium);
}

.card-premium:hover .icon-box-modern {
    background: var(--grad-primary);
    color: white;
    transform: rotate(5deg) scale(1.1);
}

/* Background Patterns */
.bg-grid-light {
    background-image: radial-gradient(var(--gray-200) 1px, transparent 1px);
    background-size: 30px 30px;
}

.hero-section {
    position: relative;
    background-color: var(--white);
}

.hero-organic-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 57%;
    height: 100%;
    background: #f1f6f9;
    border-radius: 0 0 0 350px;
    z-index: 0;
    pointer-events: none;
}

.bg-dot-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230c4355' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

/* Section Header Polishing */
.section-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--logo-cyan);
    margin-bottom: 1rem;
    display: inline-block;
}

/* Custom Navigation UI */
.nav-link {
    transition: var(--transition-premium) !important;
    color: var(--primary) !important;
}

.nav-link:hover {
    color: var(--logo-cyan) !important;
    background: rgba(77, 165, 195, 0.05);
}

/* Hero Enhancements */
.hero-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
}

.hero-shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.hero-shape-divider svg {
    position: relative;
    display: block;
    width: calc(150% + 1.3px);
    height: 90px;
}

.hero-shape-divider .shape-fill {
    fill: #ffffff;
}

.bg-grid-light {
    position: relative;
    z-index: 1;
}

/* Footer Design */
.footer-modern {
    background: #061922;
    color: #e2e8f0;
}

.footer-modern .footer-link {
    color: #a0aec0;
    text-decoration: none;
    transition: var(--transition-premium);
    display: inline-block;
}

.footer-modern .footer-link:hover {
    color: white;
    transform: translateX(5px);
}


.navbar {
    top: 20px;
    z-index: 1050;
}

.navbar.scrolled {
    top: 0px;
}

.navbar.scrolled .navbar-wrapper {
    border-radius: 0 !important;
    width: 100vw !important;
    max-width: 100% !important;
    border: none !important;
    border-bottom: 1px solid #eee !important;
    transition: all 0.4s ease;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* Dropdown Hover Logic */
@media (min-width: 992px) {
    .nav-item.dropdown:hover>.dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }
}

@media (max-width: 991px) {
    .navbar-wrapper {
        border-radius: 20px !important;
        margin: 0 10px;
        width: auto !important;
        /* Fix horizontal scroll */
        max-width: calc(100% - 20px) !important;
    }

    /* Offcanvas Styling */
    .offcanvas .nav-link {
        color: var(--secondary) !important;
        transition: var(--transition-premium);
    }

    .offcanvas .nav-link:hover,
    .offcanvas .nav-link.active {
        background: rgba(77, 165, 195, 0.08);
        color: var(--primary) !important;
    }

    .offcanvas .nav-link i {
        width: 25px;
        font-size: 1.2rem;
    }
}

/* Floating Action Buttons */
.btn-floating {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-premium);
    color: white !important;
    border: none;
    font-size: 1.5rem;
}

.btn-floating.wa {
    background: #25D366;
}

.btn-floating.call {
    background: #007bff;
}

.btn-floating:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Animation Helpers */
.transition-all {
    transition: var(--transition-premium);
}

/* Page Layout Standards */
.section-padding {
    padding: 120px 0;
}

.internal-page-header {
    padding-top: 220px !important;
    /* Increased to clear navbar fully */
    padding-bottom: 100px !important;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

/* Brand Class Overrides */
.bg-primary {
    background-color: var(--primary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

/* Purge Green */
.text-success {
    color: var(--logo-cyan) !important;
}

.bg-success {
    background-color: var(--logo-cyan) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .internal-page-header {
        padding-top: 140px !important;
    }

    h1 {
        font-size: 2.5rem;
    }
}

/* Premium Component Utilities */
.icon-box-sm {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.shadow-xl {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

.hover-up {
    transition: var(--transition-premium);
}

.hover-up:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Category Box Hover Enhancement */
.category-card {
    transition: var(--transition-premium);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    background-color: var(--primary) !important;
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium) !important;
}

.category-card:hover span,
.category-card:hover h6,
.category-card:hover p {
    color: white !important;
}

/* Glassmorphism Fleet Cards */
.glass-card-fleet {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition-premium);
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.glass-card-fleet:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-premium), 0 0 30px rgba(28, 68, 85, 0.1);
    border-color: var(--logo-cyan);
}

.fleet-icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--grad-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-premium);
}

.glass-card-fleet:hover .fleet-icon-wrapper {
    transform: rotate(10deg) scale(1.1);
    background: var(--grad-premium);
    box-shadow: var(--shadow-glow);
}

.fleet-temp-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(125, 184, 201, 0.1);
    color: var(--primary);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border: 1px solid rgba(125, 184, 201, 0.2);
    transition: var(--transition-premium);
}

.glass-card-fleet:hover .fleet-temp-badge {
    background: var(--logo-cyan);
    color: var(--primary);
    border-color: transparent;
}

.fleet-card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.fleet-card-desc {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.fleet-card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
}

/* Custom shadow for premium look */
.shadow-premium {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02) !important;
}

@media (min-width: 992px) {
    .border-start-lg {
        border-left: 1px solid #dee2e6 !important;
    }
}

/* Stats Strip Refined */
.stats-strip-container {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.stats-strip {
    background: var(--white);
    border-radius: 100px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 1rem 2.5rem;
}

.stats-strip-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 25px;
    border-right: 1px solid #f0f0f0;
}

.stats-strip-item:last-child {
    border-right: none;
}

.stats-strip-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.stats-strip-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0;
    font-weight: 700;
    color: var(--primary);
}

.stats-strip-content p {
    font-size: 0.7rem;
    margin-bottom: 0;
    color: var(--secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 991px) {
    .stats-strip {
        border-radius: 20px;
        padding: 1rem;
    }

    .stats-strip-item {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 12px 0;
        justify-content: flex-start;
    }

    .stats-strip-item:last-child {
        border-bottom: none;
    }
}

/* Global Contact & Map Section */
.global-contact-section {
    position: relative;
    padding-bottom: 0;
}

.map-wrapper {
    transition: var(--transition-premium);
    overflow: hidden;
}

.map-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.custom-hours-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.custom-hours-table tbody tr {
    transition: var(--transition-premium);
}

.custom-hours-table tbody tr:hover {
    background-color: rgba(125, 184, 201, 0.05);
}

.custom-hours-table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.custom-hours-table tr:last-child td {
    border-bottom: none;
}

.contact-quick-fact {
    transition: var(--transition-premium);
    padding: 1.5rem;
    height: 100%;
}

.contact-quick-fact:hover {
    background: white;
    box-shadow: var(--shadow-soft);
    border-radius: 1rem;
    transform: translateY(-3px);
}

.text-logo-cyan {
    color: var(--logo-cyan);
}