/*===================================== 
APPLE.COM STYLE HEADER - EXACT REPLICA
======================================*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Top Contact Bar - Modern Design */
.top-contact-bar {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #ffffff;
    padding: 0;
    font-size: 11px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
}

.top-contact-left {
    display: flex;
    gap: 24px;
    align-items: center;
}

.top-contact-left .contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.top-contact-left .contact-item:hover {
    opacity: 0.8;
}

.top-contact-left .contact-item i {
    color: #ffffff;
    font-size: 11px;
    opacity: 0.9;
}

.top-contact-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-contact-right .whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 9px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.top-contact-right .whatsapp-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.top-contact-right .whatsapp-link i {
    font-size: 13px;
}

.top-contact-right .brochure-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 9px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.top-contact-right .brochure-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.top-contact-right .brochure-link i {
    font-size: 13px;
}

.desktop-nav .brochure-nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
}

.desktop-nav .brochure-nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
}

.desktop-nav .brochure-nav-link i {
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .top-contact-bar {
        display: none;
    }
    
    .apple-header {
        top: 0 !important;
    }
    
    body {
        padding-top: 47px !important;
    }
    
    .video-hero-section {
        margin-top: -47px !important;
    }
}

/* Fixed Header Container */
.apple-header {
    position: fixed;
    top: 44px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000;
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Scrolled State - Keep White */
.apple-header.is-scrolled {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Header Container */
.apple-header .header-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 47px;
    position: relative;
}

/* Logo */
.apple-header .logo {
    display: flex;
    align-items: center;
    height: 47px;
    padding: 0;
    order: 0;
}

.apple-header .logo img {
    height: 45px;
    width: auto;
    max-width: none;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: none;
    transform: scale(1.08, 1);
    transform-origin: left center;
}

.apple-header .logo:hover img {
    opacity: 0.8;
}

/* Desktop Navigation */
.apple-header .desktop-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1;
}

/* Hide mobile nav on desktop */
.apple-header .mobile-nav {
    display: none;
}

.apple-header .mobile-overlay {
    display: none;
}

.apple-header .desktop-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.apple-header .desktop-nav li {
    margin: 0;
    padding: 0;
    position: relative;
}

/* Ensure parent li has relative positioning for dropdown */
.apple-header .desktop-nav > ul > li {
    position: relative;
}

.apple-header .desktop-nav li > a {
    color: #000000;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    padding: 0 14px;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
    font-family: Outfit, Arial, Geneva, sans-serif;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apple-header .desktop-nav li > a:hover {
    color: rgba(0, 0, 0, 0.7);
}

/* Scrolled State Nav Links - Keep Black on White */
.apple-header.is-scrolled .desktop-nav li > a {
    color: #000000;
}

.apple-header.is-scrolled .desktop-nav li > a:hover {
    color: rgba(0, 0, 0, 0.7);
}

/* Dropdown Menus */
.apple-header .desktop-nav .sub-menu {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(0) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    padding: 8px 0 !important;
    margin-top: 0 !important;
    min-width: 200px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    list-style: none !important;
    z-index: 10001 !important;
    pointer-events: none !important;
    display: block !important;
}

.apple-header .desktop-nav li:hover .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
    pointer-events: auto !important;
}

/* Keep dropdown visible when hovering over dropdown itself */
.apple-header .desktop-nav .sub-menu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
    pointer-events: auto !important;
    margin-top: 0 !important;
}

.apple-header .desktop-nav .sub-menu li {
    border-bottom: none;
    padding: 0;
    display: block;
    width: 100%;
}

.apple-header .desktop-nav .sub-menu li a {
    color: rgba(0, 0, 0, 0.85) !important;
    font-size: 13px;
    padding: 8px 20px;
    display: block;
    transition: background 0.2s ease, padding-left 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    width: 100%;
}

.apple-header .desktop-nav .sub-menu li a:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: rgba(0, 0, 0, 1) !important;
    padding-left: 25px;
}

/* Ensure dropdown stays visible when hovering over it */
.apple-header .desktop-nav li:hover .sub-menu,
.apple-header .desktop-nav .sub-menu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
    pointer-events: auto !important;
    margin-top: 0 !important;
}

/* Hamburger Menu Button */
.apple-header .mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 100001;
    order: 2;
    margin-left: auto;
}

.apple-header .mobile-toggle .icon-bar {
    width: 18px;
    height: 1.5px;
    background: #000000;
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.apple-header.is-scrolled .mobile-toggle .icon-bar {
    background: #000000;
}

.apple-header .mobile-toggle.active .icon-bar-first {
    transform: translateY(9px) rotate(45deg);
}

.apple-header .mobile-toggle.active .icon-bar-two {
    opacity: 0;
    transform: scale(0);
}

.apple-header .mobile-toggle.active .icon-bar-three {
    transform: translateY(-9px) rotate(-45deg);
}

/* Body Padding for Fixed Header */
body {
    padding-top: 91px;
}

/* Mobile Styles */
@media (max-width: 991px) {
    /* CRITICAL: Hide duplicate headers, menus, and overlays */
    .apple-header ~ .apple-header {
        display: none !important;
    }
    
    .mobile-nav ~ .mobile-nav {
        display: none !important;
    }
    
    .mobile-overlay ~ .mobile-overlay {
        display: none !important;
    }
    
    /* Show Hamburger */
    .apple-header .mobile-toggle {
        display: flex;
        margin-left: auto;
        z-index: 100003;
        position: relative;
    }
    
    /* Hide toggle when menu is open */
    .apple-header .mobile-toggle.active {
        z-index: 100003;
    }
    
    /* Hide toggle button when menu is showing */
    body.menu-open .apple-header .mobile-toggle {
        opacity: 0;
        pointer-events: none;
    }
    
    /* Ensure logo stays on left */
    .apple-header .logo {
        order: 0;
    }
    
    /* Hide Desktop Nav */
    .apple-header .desktop-nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Mobile Menu Overlay */
    .apple-header .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 99998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .apple-header .mobile-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    
    /* Mobile Menu - Apple.com Style Dropdown Animation */
    .apple-header .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        z-index: 100001;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.28, 0.11, 0.32, 1), opacity 0.3s ease, visibility 0.3s ease;
        opacity: 0;
        visibility: hidden;
        display: block;
    }
    
    .apple-header .mobile-nav.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        display: block !important;
    }
    
    /* Apple.com style - Smooth fade in for menu items */
    .apple-header .mobile-nav.show ul > li {
        animation: appleFadeIn 0.4s cubic-bezier(0.28, 0.11, 0.32, 1) backwards;
    }
    
    .apple-header .mobile-nav.show ul > li:nth-child(1) { animation-delay: 0.05s; }
    .apple-header .mobile-nav.show ul > li:nth-child(2) { animation-delay: 0.08s; }
    .apple-header .mobile-nav.show ul > li:nth-child(3) { animation-delay: 0.11s; }
    .apple-header .mobile-nav.show ul > li:nth-child(4) { animation-delay: 0.14s; }
    .apple-header .mobile-nav.show ul > li:nth-child(5) { animation-delay: 0.17s; }
    .apple-header .mobile-nav.show ul > li:nth-child(6) { animation-delay: 0.2s; }
    
    @keyframes appleFadeIn {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Mobile Menu List */
    .apple-header .mobile-nav ul {
        flex-direction: column;
        padding: 0;
        margin: 0;
        width: 100%;
        list-style: none;
        background: #ffffff;
    }
    
    /* Add padding to first level ul only */
    .apple-header .mobile-nav > ul {
        padding-top: 44px;
    }
    
    /* Mobile Menu Items */
    .apple-header .mobile-nav li {
        width: 100%;
        margin: 0;
        padding: 0;
        border-bottom: 0.5px solid rgba(0, 0, 0, 0.15);
    }
    
    .apple-header .mobile-nav li:last-child {
        border-bottom: none;
    }
    
    /* Mobile Menu Links */
    .apple-header .mobile-nav li > a {
        display: block;
        color: #1d1d1f;
        font-size: 17px;
        font-weight: 400;
        line-height: 1.47059;
        letter-spacing: -0.022em;
        padding: 17px 22px;
        width: 100%;
        text-align: left;
        font-family: Outfit, Arial, Geneva, sans-serif;
        -webkit-font-smoothing: antialiased;
        text-decoration: none;
        transition: background-color 0.15s ease;
    }
    
    .apple-header .mobile-nav li > a:active {
        background-color: rgba(0, 0, 0, 0.05);
    }
    
    /* Dropdown Indicator - Only for items with submenus */
    .apple-header .mobile-nav li.has-submenu > a::after {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        border-right: 1.5px solid #1d1d1f;
        border-bottom: 1.5px solid #1d1d1f;
        transform: rotate(-45deg);
        margin-left: 8px;
        transition: transform 0.3s ease;
        vertical-align: middle;
        float: right;
    }
    
    .apple-header .mobile-nav li.has-submenu.active > a::after {
        transform: rotate(45deg);
    }
    
    /* Ensure no arrow appears incorrectly on first menu item if it has submenu */
    .apple-header .mobile-nav > ul > li:first-child.has-submenu > a::after {
        display: none !important;
    }
    
    /* Mobile Submenu */
    .apple-header .mobile-nav .sub-menu {
        background: #f5f5f7;
        position: static;
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border: none;
        visibility: visible;
        transform: none;
        display: block;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s cubic-bezier(0.28, 0.11, 0.32, 1), opacity 0.3s ease;
        list-style: none;
    }
    
    .apple-header .mobile-nav li.active .sub-menu {
        max-height: 500px;
        opacity: 1;
    }
    
    .apple-header .mobile-nav .sub-menu li {
        border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
        margin: 0;
        padding: 0;
    }
    
    .apple-header .mobile-nav .sub-menu li:last-child {
        border-bottom: none;
    }
    
    .apple-header .mobile-nav .sub-menu li a {
        display: block;
        color: #6e6e73;
        font-size: 15px;
        font-weight: 400;
        line-height: 1.47059;
        letter-spacing: -0.016em;
        padding: 12px 22px 12px 44px;
        width: 100%;
        text-align: left;
        font-family: Outfit, Arial, Geneva, sans-serif;
        -webkit-font-smoothing: antialiased;
        text-decoration: none;
        transition: background-color 0.15s ease, color 0.15s ease;
    }
    
    .apple-header .mobile-nav .sub-menu li a:active {
        background-color: rgba(0, 0, 0, 0.05);
        color: #1d1d1f;
    }
    
    /* Mobile Close Button */
    .apple-header .mobile-close {
        position: fixed;
        top: 12px;
        right: 16px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 100002;
        background: transparent;
        border: none;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    /* Show close button when menu is open */
    body.menu-open .apple-header .mobile-close {
        opacity: 1;
        visibility: visible;
    }
    
    /* Hide duplicate close buttons */
    .apple-header .mobile-close ~ .mobile-close {
        display: none !important;
    }
    
    .apple-header .mobile-close::before,
    .apple-header .mobile-close::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 1.5px;
        background: #1d1d1f;
        border-radius: 1px;
        transition: background 0.2s ease;
    }
    
    .apple-header .mobile-close::before {
        transform: rotate(45deg);
    }
    
    .apple-header .mobile-close::after {
        transform: rotate(-45deg);
        display: block !important;
    }
    
    .apple-header .mobile-close:active::before,
    .apple-header .mobile-close:active::after {
        background: #86868b;
    }
    
    /* Prevent Body Scroll */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    /* Mobile Contact Section */
    .mobile-contact-section {
        margin-top: 15px;
        padding: 15px 22px;
        background: #f5f5f7;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        animation: appleFadeIn 0.4s cubic-bezier(0.28, 0.11, 0.32, 1) 0.25s backwards;
    }
    
    .mobile-contact-header h3 {
        font-size: 15px;
        font-weight: 600;
        color: #1d1d1f;
        margin: 0 0 10px 0;
        font-family: Outfit, Arial, Geneva, sans-serif;
    }
    
    .mobile-contact-info {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 15px;
    }
    
    .mobile-contact-item {
        display: flex;
        align-items: center;
        padding: 8px 12px;
        background: #ffffff;
        border-radius: 6px;
        border-left: 3px solid #1e3a8a;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
        transition: all 0.25s ease;
        cursor: pointer;
    }
    
    .mobile-contact-item:hover {
        transform: translateX(4px);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        background: #f8f9fa;
    }
    
    .mobile-contact-item i {
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
        color: #ffffff;
        font-size: 10px;
        border-radius: 4px;
        margin-right: 10px;
        flex-shrink: 0;
    }
    
    .mobile-contact-item a,
    .mobile-contact-item span {
        color: #1d1d1f;
        text-decoration: none;
        font-size: 12px;
        font-weight: 400;
        line-height: 1.4;
        flex: 1;
    }
    
    .mobile-contact-item a {
        transition: color 0.2s ease;
    }
    
    .mobile-contact-item a:hover {
        color: #1e3a8a;
    }
    
    /* Specific styling for WhatsApp */
    .mobile-contact-item:has(.fa-whatsapp) {
        border-left-color: #25D366;
    }
    .mobile-contact-item:has(.fa-whatsapp) i {
        background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    }
    .mobile-contact-item:has(.fa-whatsapp) a,
    .mobile-contact-item:has(.fa-whatsapp) span {
        font-size: 10px;
    }
    
    /* Specific styling for email */
    .mobile-contact-item:has(.fa-envelope) {
        border-left-color: #ea4335;
    }
    .mobile-contact-item:has(.fa-envelope) i {
        background: linear-gradient(135deg, #ea4335 0%, #c5221f 100%);
    }
    
    /* Specific styling for phone */
    .mobile-contact-item:has(.fa-phone) {
        border-left-color: #34a853;
    }
    .mobile-contact-item:has(.fa-phone) i {
        background: linear-gradient(135deg, #34a853 0%, #2d8f47 100%);
    }
    
    /* Specific styling for location */
    .mobile-contact-item:has(.fa-map-marker) {
        border-left-color: #fbbc04;
    }
    .mobile-contact-item:has(.fa-map-marker) i {
        background: linear-gradient(135deg, #fbbc04 0%, #f9ab00 100%);
    }
    
    .mobile-map-container {
        width: 100%;
        border-radius: 6px;
        overflow: hidden;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        animation: appleFadeIn 0.4s cubic-bezier(0.28, 0.11, 0.32, 1) 0.3s backwards;
    }
    
    .mobile-map-container iframe {
        width: 100%;
        height: 150px;
        border: 0;
        display: block;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Smaller Mobile Screens */
@media (max-width: 767px) {
    .apple-header .header-container {
        padding: 0 16px;
    }
    
    .apple-header .logo img {
        height: 35px;
    }
    
    .apple-header .mobile-nav li > a {
        font-size: 16px;
        padding: 14px 22px;
    }
    
    .apple-header .mobile-nav .sub-menu li a {
        font-size: 14px;
        padding: 12px 22px 12px 40px;
    }
    
    .apple-header .mobile-close {
        top: 10px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
    
    .apple-header .mobile-toggle {
        width: 40px;
        height: 40px;
    }
    
    /* Smaller contact items on very small screens */
    .mobile-contact-item {
        padding: 7px 10px;
    }
    
    .mobile-contact-item i {
        width: 16px;
        height: 16px;
        font-size: 9px;
        margin-right: 8px;
    }
    
    .mobile-contact-item a,
    .mobile-contact-item span {
        font-size: 11px;
    }
}

/* Hide legacy color palette / style switcher everywhere */
.styleswitcher,
.styleswitcher *,
.switcher-btn-bx,
.switcher-btn-bx * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

