.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 28px;
    max-width: 1320px;
    margin: 0 auto;
    gap: 20px;
}

/* Nav + CTA grouped on the right */
.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

/* ── Logo ──────────────────────────────────────────────────── */
.header-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo img {
    height: 60px;
    width: auto;
    display: block;
}

/* ── Nav ───────────────────────────────────────────────────── */
.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav>li {
    position: relative;
}

.header-nav>li.has-dropdown::after {
    content: "";
    position: absolute;
    left: -18px;
    right: -18px;
    top: 100%;
    height: 18px;
    display: block;
}

.header-nav>li>a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #1a2b45;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
    white-space: nowrap;
    cursor: pointer;
}

.header-nav>li>a:hover,
.header-nav>li>a.active {
    background: rgba(0, 99, 186, 0.07);
    color: #0063ba;
}

.header-nav>li>a .menu-arrow {
    font-size: 11px;
    transition: transform 0.22s ease;
    margin-top: 1px;
}

.header-nav>li:hover>a .menu-arrow,
.header-nav>li:focus-within>a .menu-arrow,
.header-nav>li.is-open>a .menu-arrow {
    transform: rotate(180deg);
}

/* ── Dropdown ──────────────────────────────────────────────── */
.header-nav>li .dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 280px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 4px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 999;
}

.header-nav>li:hover .dropdown-panel,
.header-nav>li:focus-within .dropdown-panel,
.header-nav>li.is-open .dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-panel a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.16s ease;
}

.dropdown-panel a:hover {
    background: #f0f6ff;
}

.dropdown-panel .submenu-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(0, 99, 186, 0.09);
    color: #0063ba;
    display: grid;
    place-items: center;
    font-size: 15px;
    flex: 0 0 auto;
}

.dropdown-panel .submenu-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.dropdown-panel .submenu-subtitle {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.35;
    margin-top: 2px;
}

/* ── CTA Button ────────────────────────────────────────────── */
.header-cta {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.header-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: #2946f3;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(41, 70, 243, 0.35);
    letter-spacing: 0.01em;
}

.header-cta a:hover {
    background: #1a32d4;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(41, 70, 243, 0.45);
    color: #fff !important;
}

.header-cta a i {
    font-size: 12px;
}

/* ── Hamburger ─────────────────────────────────────────────── */
.header-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.18s;
    flex: 0 0 auto;
}

.header-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.header-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1a2b45;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.header-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.header-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile drawer ─────────────────────────────────────────── */
.header-mobile-drawer {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 999;
    overflow-y: auto;
    padding: 16px 20px 36px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-mobile-drawer.open {
    transform: translateX(0);
}

.mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav li {
    border-bottom: 1px solid #f1f5f9;
}

.mobile-nav li:last-child {
    border-bottom: none;
}

.mobile-nav>li>a,
.mobile-nav>li>button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 4px;
    font-size: 16px;
    font-weight: 600;
    color: #1a2b45;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.mobile-nav .mobile-submenu {
    list-style: none;
    padding: 0 0 10px 12px;
    margin: 0;
    display: none;
}

.mobile-nav .mobile-submenu.open {
    display: block;
}

.mobile-nav .mobile-submenu li {
    border: none;
}

.mobile-nav .mobile-submenu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 4px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f8fafc;
}

.mobile-nav .mobile-submenu a:last-child {
    border-bottom: none;
}

.mobile-nav .mobile-submenu .submenu-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: rgba(0, 99, 186, 0.09);
    color: #0063ba;
    display: grid;
    place-items: center;
    font-size: 13px;
    flex: 0 0 auto;
}

.mobile-nav .mobile-submenu .submenu-title {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

.mobile-nav .mobile-submenu .submenu-subtitle {
    font-size: 14px;
    color: #9ca3af;
    margin-top: 1px;
}

.mobile-cta {
    margin-top: 24px;
}

.mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: #2946f3;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(41, 70, 243, 0.35);
}

.mobile-chevron {
    font-size: 12px;
    transition: transform 0.25s ease;
    color: #9ca3af;
}

.mobile-chevron.open {
    transform: rotate(180deg);
}

/* ── Responsive breakpoints ────────────────────────────────── */
@media (max-width: 991px) {
    .header-right {
        display: none !important;
    }

    .header-toggle {
        display: flex !important;
    }

    .header-mobile-drawer {
        display: block;
    }

    .header-inner {
        padding: 0 16px;
    }
}

@media (min-width: 992px) {
    .header-mobile-drawer {
        display: none !important;
    }
}

/* ── Body offset so content isn't hidden behind fixed header ── */
/* body { padding-top: 72px; } */

/* Override if the hero section already has top padding */
.hero-section {
    padding-top: 128px !important;
}