/* =============================================
   public/css/header.css
   ============================================= */

:root {
    --navy:           #0B1D51;
    --navy-dark:      #071240;
    --header-bg:      #ffffff;
    --nav-text:       #1a2340;
    --dropdown-bg:    #ffffff;
    --dropdown-border:#e2e8f0;
    --dropdown-shadow:0 8px 32px rgba(11,29,81,0.13);
    --header-height:  68px;
    --font:           'DM Sans','Plus Jakarta Sans','Syne',system-ui,sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Header ────────────────────────────────── */
.site-header {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
    background: var(--header-bg) !important;
    border-bottom: 2px solid var(--navy) !important;
    box-shadow: 0 2px 10px rgba(11,29,81,0.08) !important;
    font-family: var(--font) !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ─── Container ─────────────────────────────── */
.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: var(--header-height);
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
}

/* ─── Logo ──────────────────────────────────── */
.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex: 0 0 auto;
    margin-right: 12px;
}

.logo-icon svg { display: block; }
.logo-label { display: flex; flex-direction: column; line-height: 1.15; }

.logo-brand {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.logo-sub {
    font-size: 8.5px;
    font-weight: 400;
    color: #6b7a9a;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ─── Nav ───────────────────────────────────── */
.header-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
    gap: 0;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 6px 8px;
    font-size: 12.8px;
    font-weight: 500;
    color: var(--nav-text);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: color .18s, background .18s;
    white-space: nowrap;
    font-family: var(--font);
    line-height: 1;
    flex-shrink: 0;
}

.nav-item:hover,
.nav-dropdown:hover > .nav-item { color: var(--navy); background: #f0f3fa; }
.nav-item.nav-active { color: var(--navy); font-weight: 600; }

/* ─── Dropdown ──────────────────────────────── */
.dropdown-arrow { transition: transform .22s ease; flex-shrink: 0; }

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown-toggle[aria-expanded="true"] .dropdown-arrow { transform: rotate(180deg); }

.nav-dropdown { position: relative; flex-shrink: 0; }

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--dropdown-bg);
    border: 1px solid var(--dropdown-border);
    border-radius: 10px;
    box-shadow: var(--dropdown-shadow);
    padding: 6px;
    z-index: 100000;
    animation: dropIn .18s ease forwards;
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: block; }

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 400;
    color: #1a2340;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s;
    font-family: var(--font);
    white-space: nowrap;
    gap: 8px;
    border-radius: 7px;
}

.dropdown-item:hover { background: #f0f3fa; color: var(--navy); }
.dropdown-item.has-submenu { position: relative; }

.submenu {
    display: none;
    position: absolute;
    top: -6px;
    left: calc(100% + 4px);
    min-width: 200px;
    background: var(--dropdown-bg);
    border: 1px solid var(--dropdown-border);
    border-radius: 10px;
    box-shadow: var(--dropdown-shadow);
    padding: 6px;
    z-index: 100100;
    animation: dropIn .18s ease forwards;
}

.dropdown-item.has-submenu:hover .submenu { display: block; }

/* ─── CTA Button ────────────────────────────── */
.header-actions {
    flex: 0 0 auto;
    padding-left: 8px;
    margin-left: 0;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--navy);
    color: #fff;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(11,29,81,0.22);
    transition: background .2s, transform .15s;
}

.btn-cta:hover { background: var(--navy-dark); transform: translateY(-1px); }

/* ─── Hamburger ─────────────────────────────── */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: #f0f3fa;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    flex: 0 0 auto;
    margin-left: auto;
    transition: background .2s;
}

.hamburger-btn:hover { background: #e2e8f0; }

.hamburger-btn .bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all .28s ease;
}

.hamburger-btn.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile Menu ───────────────────────────── */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0; bottom: 0;
    background: #fff;
    z-index: 99998;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease;
    border-top: 1px solid #e2e8f0;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0 40px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #1a2340;
    text-decoration: none;
    border-bottom: 1px solid #f0f3fa;
    transition: background .15s, color .15s;
    font-family: var(--font);
    gap: 8px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active { background: #f0f3fa; color: var(--navy); }

.mobile-section-label {
    font-size: 10px;
    font-weight: 700;
    color: #6b7a9a;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 14px 24px 4px;
}

.mobile-nav-link.sub {
    padding-left: 36px;
    font-size: 13.5px;
    font-weight: 400;
    color: #4a5568;
}

.mobile-nav-link.sub:hover { color: var(--navy); background: #f0f3fa; }

.mobile-nav-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 0;
}

.mobile-nav-link.highlight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 20px 0;
    padding: 13px 20px;
    background: var(--navy);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    border-bottom: none;
}

.mobile-nav-link.highlight:hover { background: var(--navy-dark); }

/* ─── Elementor Override ────────────────────── */
.site-header .elementor-section,
.site-header .elementor-container,
.site-header .elementor-row,
.site-header .elementor-widget-wrap {
    flex-wrap: nowrap !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* ─── Responsive Breakpoints ────────────────── */

/* 1280px */
@media (max-width: 1280px) {
    .nav-item  { font-size: 12.2px; padding: 6px 6px; }
    .btn-cta   { font-size: 12.5px; padding: 9px 13px; }
    .header-logo { margin-right: 8px; }
}

/* 1080px */
@media (max-width: 1080px) {
    .nav-item  { font-size: 11.8px; padding: 5px 5px; }
    .btn-cta   { font-size: 12px;   padding: 8px 11px; }
    .logo-brand { font-size: 12.5px; }
}

/* 960px — hamburger menu starts */
@media (max-width: 960px) {
    .header-nav     { display: none !important; }
    .header-actions { display: none !important; }
    .hamburger-btn  { display: flex !important; }
    .mobile-menu    { display: block; }
}

/* 600px — mobile phone */
@media (max-width: 600px) {
    :root { --header-height: 60px; }
    .header-container { padding: 0 14px; }
    .logo-brand { font-size: 13px; }
    .logo-icon svg { width: 30px; height: 30px; }
    .mobile-menu { top: 60px; }
    .mobile-nav-link { padding: 12px 20px; font-size: 14px; }
    .mobile-nav-link.sub { padding-left: 32px; font-size: 13px; }
    .mobile-section-label { padding: 12px 20px 4px; }
    .hamburger-btn { width: 36px; height: 36px; }
}

/* 380px — very small phones, hide logo text */
@media (max-width: 380px) {
    .logo-label { display: none; }
    .header-logo { margin-right: 0; }
}