/* ===================================================================
   DEBMEDIA TECHNOLOGIES - GLOBAL HEADER STYLES
   Updated with logo image support
   Version: 2.1
=================================================================== */

/* ========== HEADER BASE ========== */
.site-header {
    background: #0A1B4D;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: height 0.3s ease;
}

/* Scrolled state */
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.site-header.scrolled .header-container {
    height: 70px;
}

/* ========== LOGO ========== */
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.site-logo:hover {
    opacity: 0.9;
}

/* Logo Image Support */
.logo-image {
    height: 45px;
    width: auto;
    max-width: 250px;
    transition: transform 0.3s ease;
}

.site-logo:hover .logo-image {
    transform: scale(1.02);
}

/* WordPress Custom Logo Support */
.custom-logo-link {
    display: flex;
    align-items: center;
}

.custom-logo {
    height: 45px;
    width: auto;
    max-width: 250px;
}

/* Legacy Icon/Text Logo (fallback) */
.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #D4AF37 0%, #F4C430 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #0A1B4D;
    transition: transform 0.3s ease;
}

.site-logo:hover .logo-icon {
    transform: scale(1.05);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-left: 12px;
}

.logo-text span {
    color: #D4AF37;
}

/* ========== MAIN NAVIGATION ========== */
.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #D4AF37;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4AF37;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Navigation item with mega menu or dropdown */
.nav-item-with-mega,
.nav-item-with-dropdown {
    position: relative;
}

.nav-link.has-dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.nav-link.has-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* ========== MEGA MENU ========== */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 1200px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    margin-top: 20px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
    pointer-events: all;
}

.mega-menu-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 30px;
    padding: 40px 35px;
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
}

.mega-column-title {
    font-size: 13px;
    font-weight: 700;
    color: #0A1B4D;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mega-menu-link {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mega-menu-link:hover {
    background: rgba(212, 175, 55, 0.08);
}

.link-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.link-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.link-content strong {
    font-size: 15px;
    font-weight: 600;
    color: #0A1B4D;
    transition: color 0.3s ease;
}

.mega-menu-link:hover .link-content strong {
    color: #D4AF37;
}

.link-desc {
    font-size: 12px;
    color: #5A6C7D;
    line-height: 1.4;
}

.mega-menu-link.simple {
    padding: 8px 10px;
    font-size: 14px;
    color: #2C3E50;
    font-weight: 500;
}

.mega-menu-link.simple:hover {
    color: #D4AF37;
}

/* Mega CTA Column */
.mega-cta-column {
    background: linear-gradient(135deg, #0A1B4D 0%, #152a5e 100%);
    border-radius: 12px;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
}

.mega-cta-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mega-cta-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.mega-cta-text {
    font-size: 14px;
    color: #B8C5D6;
    line-height: 1.6;
    margin-bottom: 25px;
}

.mega-cta-btn {
    display: block;
    text-align: center;
    background: #D4AF37;
    color: #0A1B4D;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.mega-cta-btn:hover {
    background: #F4C430;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.mega-cta-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-feature {
    font-size: 13px;
    color: #D4AF37;
    font-weight: 500;
}

/* ========== STANDARD DROPDOWN MENU (About) ========== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    margin-top: 20px;
    transition: all 0.3s ease;
    pointer-events: none;
    padding: 10px 0;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
    pointer-events: all;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #2C3E50;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: rgba(212, 175, 55, 0.08);
    color: #D4AF37;
}

/* ========== HEADER CTA BUTTON ========== */
.header-cta-btn {
    background: #D4AF37;
    color: #0A1B4D;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-cta-btn:hover {
    background: #F4C430;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* ========== MOBILE MENU TOGGLE ========== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    background: #0A1B4D;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Mobile logo image support */
.mobile-logo .logo-image,
.mobile-logo .custom-logo {
    height: 40px;
    width: auto;
    max-width: 200px;
}

.mobile-logo .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
}

.mobile-logo .logo-text {
    margin-left: 10px;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-content {
    background: #ffffff;
    height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 25px;
}

.mobile-cta-btn {
    display: block;
    text-align: center;
    background: #D4AF37;
    color: #0A1B4D;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    margin-bottom: 25px;
}

.mobile-whatsapp-btn {
    display: block;
    text-align: center;
    background: #25D366;
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    margin-top: 20px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav-link {
    color: #0A1B4D;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    padding: 15px 10px;
    border-bottom: 1px solid #E8EAF0;
}

/* Mobile Accordion */
.mobile-accordion {
    border-bottom: 1px solid #E8EAF0;
}

.mobile-accordion-trigger {
    width: 100%;
    background: none;
    border: none;
    color: #0A1B4D;
    text-align: left;
    font-size: 17px;
    font-weight: 600;
    padding: 15px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-arrow {
    transition: transform 0.3s ease;
}

.mobile-accordion-trigger.active .accordion-arrow {
    transform: rotate(180deg);
}

.mobile-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-accordion-content.active {
    max-height: 1500px;
}

.mobile-mega-section {
    padding: 15px 10px;
    border-bottom: 1px solid rgba(232, 234, 240, 0.5);
}

.mobile-mega-section:last-child {
    border-bottom: none;
}

.mobile-mega-section h5 {
    font-size: 12px;
    font-weight: 700;
    color: #5A6C7D;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.mobile-mega-section a {
    display: block;
    color: #2C3E50;
    text-decoration: none;
    font-size: 15px;
    padding: 10px 0;
    font-weight: 500;
}

.mobile-mega-section a:hover {
    color: #D4AF37;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .main-nav {
        gap: 22px;
    }

    .mega-menu-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .mega-cta-column {
        grid-column: span 2;
    }
}

@media (max-width: 1024px) {
    .main-nav,
    .header-cta-btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mega-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
        height: 70px;
    }

    .site-header.scrolled .header-container {
        height: 65px;
    }

    .logo-image,
    .custom-logo {
        height: 40px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .logo-text {
        font-size: 20px;
    }

    .mobile-menu-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
    }

    .logo-image,
    .custom-logo {
        height: 35px;
        max-width: 180px;
    }

    .logo-text {
        font-size: 18px;
    }
}