/* ============================================================
   Header Styles — Windsurf-Style 3-Column Layout
   ============================================================ */

/* Google Font: Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Base ──────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    min-height: 70px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s ease;
    width: 100%;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.dark .site-header {
    background: rgba(10, 10, 20, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Scroll-aware shadow */
.site-header.is-sticky {
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.09), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.dark .site-header.is-sticky {
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body {
    overflow-x: hidden;
}

/* ── Header Inner: 3-column grid ─────────────────────────── */
/*   [Logo]   [Nav — centered]   [Actions] */
.header-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0 0 2rem; /* no right padding — Hire Us button fills to the edge */
    height: 100%;          /* fill the full .site-header height */
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: stretch;
    gap: 1.5rem;
}

@media (min-width: 1280px) {
    .header-inner {
        padding-left: calc((100% - 80rem) / 2 + 2rem);
    }
}

/* ── Logo ─────────────────────────────────────────────────── */
.brand-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.brand-logo:hover {
    opacity: 0.8;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 2.25rem;
    width: auto;
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #1d4ed8, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark .logo-text {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Desktop Nav — hidden mobile, centered desktop ────────── */
.desktop-nav {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        align-self: center;
    }
}

/* ── Nav Links ────────────────────────────────────────────── */
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.9rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.01em;
    transition: background 0.18s ease, color 0.18s ease;
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #111827;
}

.dark .nav-link {
    color: #cbd5e1;
}

.dark .nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #f1f5f9;
}

/* Active state */
.nav-link.active {
    color: #1d4ed8;
    font-weight: 600;
    background: rgba(29, 78, 216, 0.07);
}

.dark .nav-link.active {
    color: #93c5fd;
    background: rgba(99, 102, 241, 0.12);
}

/* Chevron for Resources dropdown */
.nav-chevron {
    font-size: 0.6rem;
    opacity: 0.55;
    transition: transform 0.2s ease, opacity 0.2s ease;
    margin-left: 0.05rem;
}

.nav-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
    opacity: 0.9;
}

/* ── Dropdown ─────────────────────────────────────────────── */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    min-width: 230px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.14), 0 2px 8px -2px rgba(0, 0, 0, 0.06);
    border-radius: 0.9rem;
    z-index: 1001;
    padding: 0.5rem;
}

.dark .dropdown-menu {
    background: #1e1e2e;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.5), 0 2px 8px -2px rgba(0, 0, 0, 0.3);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 0.55rem;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.dropdown-menu a i {
    width: 15px;
    text-align: center;
    font-size: 0.78rem;
    color: #6b7280;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.dropdown-menu a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1d4ed8;
    transform: translateX(2px);
}

.dropdown-menu a:hover i { color: #1d4ed8; }

.dropdown-menu a.active {
    background: rgba(29, 78, 216, 0.08);
    color: #1d4ed8;
    font-weight: 600;
}

/* Dark dropdown text — fixed */
.dark .dropdown-menu a { color: #cbd5e1 !important; }
.dark .dropdown-menu a i { color: #94a3b8 !important; }
.dark .dropdown-menu a:hover {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #a5b4fc !important;
}
.dark .dropdown-menu a:hover i { color: #a5b4fc !important; }
.dark .dropdown-menu a.active {
    background: rgba(99, 102, 241, 0.15) !important;
    color: #a5b4fc !important;
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.07);
    margin: 0.3rem 0.5rem;
    border-radius: 1px;
}

.dark .dropdown-divider {
    background: rgba(255, 255, 255, 0.08);
}

/* ── Header Right (CTA + mobile button) ───────────────────── */
.header-right {
    display: flex;
    align-items: stretch; /* children fill full header height */
    gap: 0;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* ── Hire Us CTA — full-height flush button like Windsurf DOWNLOAD ── */
.hire-us-btn {
    display: none; /* hidden on mobile — accessible via mobile menu */
}

@media (min-width: 1024px) {
    a.hire-us-btn,
    a.hire-us-btn:link,
    a.hire-us-btn:visited,
    a.hire-us-btn:hover,
    a.hire-us-btn:active,
    a.hire-us-btn.active {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0 2.2rem;
        align-self: stretch;
        border-radius: 0;
        font-size: 0.82rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #ffffff !important;
        text-decoration: none !important;
        background: #f97316;
        border: none;
        box-shadow: none;
        transition: background 0.2s ease;
        flex-shrink: 0;
        white-space: nowrap;
        cursor: pointer;
    }

    a.hire-us-btn:hover,
    a.hire-us-btn:focus {
        background: #ea580c;
        color: #ffffff !important;
    }

    a.hire-us-btn:active {
        background: #c2410c;
        color: #ffffff !important;
    }
}

.hire-us-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

a.hire-us-btn:hover .hire-us-arrow {
    transform: translateX(3px);
}

/* ── Mobile Menu Button ───────────────────────────────────── */
.mobile-menu-button {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.09);
    color: #374151;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center; /* don't stretch — stay as a square */
    transition: all 0.22s ease;
    cursor: pointer;
    border-radius: 0.6rem;
    padding: 0;
    flex-shrink: 0;
    margin-right: 1rem; /* breathing room from the right edge on mobile */
}

/* Hide on desktop */
@media (min-width: 1024px) {
    .mobile-menu-button {
        display: none !important;
    }
}

.mobile-menu-button:hover {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.07);
    color: #f97316;
}

.dark .mobile-menu-button {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
}

.dark .mobile-menu-button:hover {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

/* Hamburger */
.hamburger {
    width: 18px;
    height: 13px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu-button:hover .hamburger span:nth-child(2) {
    width: 70%;
}

.mobile-menu-button.active .hamburger span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

.mobile-menu-button.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active .hamburger span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-menu-button.active {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.08);
    color: #f97316;
}

/* ── Mobile Dropdown Menu ─────────────────────────────────── */
.mobile-menu-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.1);
}

.mobile-menu-dropdown.active {
    max-height: 100vh;
    overflow-y: auto;
}

.dark .mobile-menu-dropdown {
    background: #0f0f1a;
    border-top-color: rgba(255, 255, 255, 0.07);
}

.mobile-nav-dropdown-content {
    padding: 0.75rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

/* Mobile nav links */
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    min-height: 48px;
    transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
    position: relative;
}

.mobile-nav-link:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #111827;
    transform: translateX(3px);
}

.mobile-nav-link i:first-child {
    width: 20px;
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: opacity 0.18s ease, color 0.18s ease;
}

.mobile-nav-link:hover i:first-child { opacity: 1; }

.dark .mobile-nav-link { color: #cbd5e1; }
.dark .mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
}

.mobile-nav-link.active {
    background: rgba(249, 115, 22, 0.07);
    color: #ea580c;
    font-weight: 600;
}

.mobile-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 55%;
    background: linear-gradient(to bottom, #f97316, #ea580c);
    border-radius: 0 2px 2px 0;
}

.mobile-nav-link.active i:first-child {
    opacity: 1;
    color: #ea580c;
}

.dark .mobile-nav-link.active {
    background: rgba(249, 115, 22, 0.1);
    color: #fb923c;
}

/* Mobile Hire Us row */
.mobile-hire-us {
    margin-top: 0.5rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(234, 88, 12, 0.08));
    color: #ea580c !important;
    font-weight: 600;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.mobile-hire-us:hover {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(234, 88, 12, 0.14)) !important;
}

.dark .mobile-hire-us {
    color: #fb923c !important;
    border-color: rgba(249, 115, 22, 0.25);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(234, 88, 12, 0.1)) !important;
}

/* Mobile dropdown sub-menu */
.mobile-nav-dropdown { width: 100%; }

.mobile-dropdown-toggle { cursor: pointer; }

.mobile-dropdown-toggle .fa-chevron-down {
    transition: transform 0.22s ease;
}

.mobile-dropdown-toggle .fa-chevron-down.rotate-180 {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin: 0.2rem 0 0.2rem 1rem;
    border-left: 2px solid rgba(249, 115, 22, 0.18);
    border-radius: 0 0 0.6rem 0.6rem;
    background: rgba(0, 0, 0, 0.02);
}

.dark .mobile-dropdown-menu {
    background: rgba(255, 255, 255, 0.03);
    border-left-color: rgba(249, 115, 22, 0.2);
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem 0.6rem 1.2rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    border-radius: 0 0.5rem 0.5rem 0;
}

.mobile-dropdown-item:hover,
.mobile-dropdown-item.active {
    background: rgba(249, 115, 22, 0.06);
    color: #ea580c;
    transform: translateX(3px);
}

.dark .mobile-dropdown-item { color: #94a3b8; }
.dark .mobile-dropdown-item:hover,
.dark .mobile-dropdown-item.active {
    background: rgba(249, 115, 22, 0.08);
    color: #fb923c;
}

.mobile-nav-dropdown-content .mobile-dropdown-menu {
    margin-left: 0.5rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0 0 0.6rem 0.6rem;
}

.dark .mobile-nav-dropdown-content .mobile-dropdown-menu {
    background: rgba(255, 255, 255, 0.03);
}

.mobile-nav-dropdown-content .mobile-dropdown-item {
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
}

/* ── Social icons ─────────────────────────────────────────── */
.social-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    color: #4b5563;
    transition: all 0.22s ease;
}

.social-icon-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.dark .social-icon-link {
    background: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
}

.social-icon-link .fa-whatsapp { color: #25D366; }
.social-icon-link:hover .fa-whatsapp { color: #128C7E; }

.mobile-social-icons {
    padding: 1rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 1rem;
}

.mobile-social-icons .social-icon-link { width: 40px; height: 40px; }

.dark .mobile-social-icons {
    border-top-color: rgba(255, 255, 255, 0.05);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.dark .mobile-social-icons .social-icon-link {
    background: rgba(255, 255, 255, 0.08);
}