/* =========================================
   HEADER
========================================= */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #1A2CA3;
    z-index: 999;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================================
   LOGO / BRANDING - TEXT STYLES
========================================= */
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 16px;
    font-weight: 700;
    color: #FFB300;
    letter-spacing: 0.5px;
}

.logo-tagline {
    font-size: 10px;
    font-weight: 500;
    color: #FFFFFF;
    opacity: 0.8;
    letter-spacing: 0.3px;
}

/* =========================================
   MENU ITEMS
========================================= */
.nav-menu {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
    list-style: none;
}

.nav-menu li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: 0.3s ease;
    position: relative;
    white-space: nowrap;
    padding: 8px 0;
    display: inline-block;
}

.nav-menu li a:hover {
    color: #FFB300;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #FFB300;
    transition: 0.3s;
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* =========================================
   DROPDOWN MENU
========================================= */
nav ul li .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1A2CA3;
    min-width: 220px;
    list-style: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 999;
    border-radius: 8px;
    padding: 8px 0;
}

nav ul li:hover .dropdown {
    display: block;
}

nav ul li .dropdown li a {
    display: block;
    padding: 10px 18px;
    color: #fff;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav ul li .dropdown li:last-child a {
    border-bottom: none;
}

nav ul li .dropdown li a:hover {
    background: #FFB300;
    color: #1A2CA3;
    padding-left: 24px;
}

/* Dropdown arrow */
.has-dropdown>a::after {
    content: " ▼";
    font-size: 10px;
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.2s;
}

.has-dropdown:hover>a::after {
    transform: rotate(180deg);
}

/* =========================================
   HAMBURGER
========================================= */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 5px;
    transition: 0.3s;
}

/* Mobile call button (hidden on desktop) */
.header-call-btn {
    display: none;
}

/* =========================================
   MOBILE MENU OVERLAY
========================================= */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   TABLET & MOBILE RESPONSIVE (max-width: 1024px)
========================================= */
@media (max-width: 1024px) {
    .main-header .container {
        width: 92%;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative;
    }

    /* Logo styling */
    .logo {
        order: 1;
        flex: 1;
    }
    .logo-main {
        font-size: 16px;
    }
    .logo-sub {
        font-size: 13px;
    }
    .logo-tagline {
        font-size: 8px;
    }

    /* Hamburger */
    .hamburger {
        order: 3;
        display: flex !important;
        z-index: 1001;
    }

    /* Hide desktop call button */
    .btn-call {
        display: none !important;
    }

    /* Mobile Navigation */
    .navbar {
        position: fixed !important;
        display: flex !important;
        top: 0;
        left: -100%;
        width: 80% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: #1A2CA3 !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding: 80px 25px 30px !important;
        transition: left 0.35s ease;
        z-index: 999;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }

    .navbar.active {
        left: 0 !important;
    }

    .nav-menu {
        flex-direction: column !important;
        align-items: flex-start;
        gap: 0 !important;
        width: 100%;
        padding: 0;
        margin: 0 0 20px 0;
    }

    .nav-menu li {
        width: 100% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
        padding-bottom: 0 !important;
    }

    .nav-menu li a {
        font-size: 18px !important;
        width: 100%;
        white-space: normal !important;
        padding: 12px 0 !important;
        display: block;
    }

    /* Mobile Dropdown */
    .has-dropdown > .dropdown {
        position: static;
        display: none;
        background: rgba(0, 0, 0, 0.2);
        margin-left: 15px;
        margin-top: 0;
        padding: 8px 0;
        box-shadow: none;
        border-radius: 8px;
        width: calc(100% - 15px);
    }

    .has-dropdown > .dropdown.show {
        display: block;
    }

    .has-dropdown:hover > .dropdown {
        display: none;
    }

    .has-dropdown > .dropdown li a {
        padding: 8px 15px !important;
        font-size: 14px !important;
    }

    /* Mobile Call Button inside menu */
    .header-call-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background-color: #fff;
        color: #1A2CA3;
        font-weight: bold;
        font-size: 14px;
        padding: 12px 20px;
        border-radius: 50px;
        text-decoration: none;
        margin-top: 30px !important;
        margin-bottom: 20px;
        width: 100%;
    }

    .header-call-btn:hover {
        background: #1A2CA3;
        color: #fff;
        transform: translateY(-2px);
    }

    .header-call-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* =========================================
   EXTRA SMALL DEVICES (≤ 480px)
========================================= */
@media (max-width: 480px) {
    .logo-main {
        font-size: 14px;
    }
    .logo-sub {
        font-size: 11px;
    }
    .logo-tagline {
        font-size: 7px;
    }
    .hamburger span {
        width: 24px;
        height: 2.5px;
    }
    .navbar {
        width: 85% !important;
        padding: 70px 20px 25px !important;
    }
}

/* =========================================
   HAMBURGER ACTIVE ANIMATION
========================================= */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 480px) {
    .hamburger.active span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg) !important;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg) !important;
    }
}

/* =========================================
   DESKTOP (1025px and above)
========================================= */
@media (min-width: 1025px) {
    .hamburger {
        display: none !important;
    }
    .navbar {
        display: flex !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
        left: auto !important;
    }
    .nav-menu {
        flex-direction: row !important;
    }
    .header-call-btn {
        display: none !important;
    }
    .btn-call {
        display: inline-flex !important;
    }
}