/* ==================================================
   DESIGN SYSTEM & VARIABLES
   ================================================== */
:root {
    --primary-blue: #2563EB;
    --dark-navy: #0F172A;
    --light-bg: #F8FAFC;
    --border-color: #E2E8F0;
    --body-text: #334155;
    --white: #FFFFFF;
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-button: 10px;
    --container-width: 1200px;
}

/* ==================================================
   GLOBAL RESET & BASE
   ================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--body-text);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* ==================================================
   BUTTONS
   ================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 28px;
    border-radius: var(--radius-button);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}


/* ==================================================
   HEADER (DESKTOP)
   ================================================== */
header {
    position: fixed; /* Changed from sticky to fixed */
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

/* Reserve space for the injected header to prevent layout shift */
#header-placeholder {
    height: 80px; /* Changed to a fixed height for consistency */
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-logo {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links > a, .nav-links .nav-link-wrapper > a {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    color: var(--body-text);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-navy);
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn i, .mobile-menu-btn svg,
.mobile-close-btn i, .mobile-close-btn svg {
    pointer-events: none;
}

.btn-header-small {
    padding: 8px 24px; 
    font-size: 14px;   
    height: 40px; 
    transition: none !important ;
    transform: none!important;    
}
.btn-header-small:hover {
    transform: none !important;
}

/* ==================================================
   DROPDOWN MENUS WITH ICONS
   ================================================== */
.nav-links .has-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 80px;
}

.nav-link-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dd-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    transition: color 0.3s ease;
}

.dd-toggle:hover {
    color: var(--primary-blue);
}

.dropdown-menu {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    pointer-events: none;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 20px;
    width: 600px;
}

.dropdown-single {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 300px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.dd-icon {
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--body-text);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.dropdown-item:hover {
    background: var(--light-bg);
    color: inherit !important;
}

.dropdown-item:hover .dd-icon {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: #EFF6FF;
}

.dropdown-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-title {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    color: #111111;
}

.dropdown-desc {
    font-family: var(--font-body);
    font-size: 13.5px;
    color: #64748B;
    font-weight: 400;
    line-height: 1.4;
}

/* ==========================================================================
   MOBILE MENU OVERLAY CSS
   ========================================================================== */
body.mobile-menu-open {
    overflow: hidden;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    background-color: #ffffff;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #ffffff;
    border-bottom: 1px solid #E5E7EB;
}

.mobile-menu-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 1px;
    color: #111;
}

.mobile-close-btn {
    background: #FBE6D6;
    color: #2563EB;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-content {
    padding: 0;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-accordion, .mobile-standalone-link {
    background: #ffffff;
    border: none;
    border-bottom: 1px solid #E5E7EB;
    border-radius: 0;
    overflow: hidden;
    color: #111;
    text-decoration: none;
    display: block;
    flex-shrink: 0;
}

.mobile-accordion-header, .mobile-standalone-link {
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
}

.mobile-accordion-header a {
    flex: 1;
}

.acc-toggle-btn {
    padding: 4px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.acc-toggle-btn .acc-icon {
    color: #2563EB;
    transition: transform 0.3s ease;
}

.mobile-accordion.open .acc-toggle-btn .acc-icon {
    transform: rotate(90deg);
}

.mobile-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #F8FAFC;
}

.mobile-accordion.open .mobile-accordion-body {
    max-height: 2000px;
}

.mobile-accordion-body a {
    display: block;
    padding: 14px 24px 14px 40px;
    font-size: 15px;
    font-weight: 500;
    color: #4B5563;
    border-bottom: 1px solid #E5E7EB;
    text-decoration: none;
    background: #F8FAFC;
}

.mobile-accordion-body a:last-child {
    border-bottom: none;
}

.mobile-menu-footer {
    padding: 24px;
    background: #ffffff;
    border-top: 1px solid #E5E7EB;
}

.mobile-get-started-btn {
    display: block;
    width: 100%;
    background: #2563EB;
    color: #fff;
    text-align: center;
    padding: 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1200px) {
    .dropdown-grid { width: 600px; }
    .dropdown-single { width: 320px; }
}

@media (max-width: 1024px) {
    .container { padding: 0 30px; }
}

@media (max-width: 991px) {
    .header-contact-btn { display: none !important; }
    .nav-links { display: none !important; }
    .mobile-menu-btn { display: block; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
}
