/* ==========================================================================
   1. MASTER CORE CONFIGURATION & STYLING ARCHITECTURE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

:root {
    --primary: #7B2CBF;
    --primary-glow: rgba(123, 44, 191, 0.25);
    --bg-dark: #ffffff;
    --bg-deep: #f8f9fa;
    --bg-card: #ffffff;
    --border: #e5e7eb;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html,
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-stack);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-padding {
    padding: 120px 0;
}

.ui-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.ui-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 25px;
}

/* ==========================================================================
   2. HEADER & NAVIGATION DECK
   ========================================================================== */
.site-header {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding-left: 40px;
}

@media (max-width: 768px) {
    .header-flex {
        padding-left: 20px;
    }
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: var(--text-main);
    text-decoration: none;
    font-family: monospace;
    flex-shrink: 0;
}

.site-logo {
    height: 60px;
    /* Forces the logo to fit perfectly in the header */
    width: auto;
    /* Maintains the correct aspect ratio so it doesn't squish */
    max-width: 250px;
    /* Prevents extremely wide logos from breaking the menu */
    display: block;
    object-fit: contain;
}

.logo span {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav-navbar-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1;
    height: 100%;
}

.nav-navbar {
    display: flex;
    align-items: center;
    gap: 35px;
    margin-right: 45px;
}

@media (max-width: 1024px) {
    .nav-navbar {
        display: none;
    }
}

.nav-navbar a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.25s ease;
}

.nav-navbar a:hover,
.nav-navbar a.active-link {
    color: var(--primary);
}

/* Dropdowns */
.nav-dropdown-wrapper {
    position: relative;
    display: inline-block;
    height: 100%;
}

.nav-dropdown-wrapper .dropdown-trigger-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    /*height: 90px;*/
    height: 25px;
    gap: 6px;
}

.nav-dropdown-wrapper .dropdown-trigger-link::after {
    content: '▾';
    font-size: 0.8rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown-wrapper:hover .dropdown-trigger-link::after {
    transform: rotate(180deg);
    color: var(--primary);
}

.nav-dropdown-deck {
    position: absolute;
    top: 85px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: #ffffff;
    min-width: 240px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
    border-top: 4px solid var(--primary);
}

.nav-dropdown-deck::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--primary);
}

.nav-dropdown-deck a {
    color: var(--text-main) !important;
    padding: 14px 24px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
}

.nav-dropdown-deck a:hover {
    background-color: rgba(123, 44, 191, 0.06);
    color: var(--primary) !important;
    border-left: 3px solid var(--primary);
    padding-left: 28px;
}

.nav-dropdown-wrapper:hover .dropdown-trigger-link {
    color: var(--primary);
}

.nav-dropdown-wrapper:hover .nav-dropdown-deck {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}











/* ==========================================================================
   4. GLOBAL CONTACT RIBBON & MEGA FOOTER
   ========================================================================== */
.global-contact-ribbon {
    background-color: var(--primary);
    color: #ffffff;
    padding: 40px 0;
}

.ribbon-container-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.ribbon-data-node {
    flex: 1;
    min-width: 280px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.25rem;
    font-weight: 600;
}

.ribbon-circle-icon {
    background-color: rgba(255, 255, 255, 0.16);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #ffffff;
}

.ribbon-data-node a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.ribbon-data-node a:hover {
    opacity: 0.8;
}

.mega-footer-section {
    background-color: var(--bg-deep);
    border-top: 1px solid var(--border);
    padding: 100px 0;
}

.footer-system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 60px;
}

.footer-data-col h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 35px;
    color: var(--text-main);
    position: relative;
    text-transform: uppercase;
}

.footer-data-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-data-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-data-col ul {
    list-style: none;
}

.footer-data-col ul li {
    margin-bottom: 16px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.footer-data-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-data-col ul li a:hover {
    color: var(--primary);
}

.footer-arrow {
    color: var(--primary);
    margin-right: 12px;
    font-weight: bold;
}

.baseline-copyright-bar {
    background-color: #ffffff;
    padding: 35px 0;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;

}
/* ==========================================================================
   RESPONSIVE GLOBAL NAVIGATION BAR STYLES
   ========================================================================== */
/* Reduced padding from 20px to 5px */
.main-site-header { background-color: #ffffff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 2000; padding: 5px 0; }
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.site-logo { font-size: 1.5rem; font-weight: 900; color: #0f172a; text-decoration: none; }
.site-logo span { color: var(--primary); }

/* Desktop View Layout */
.nav-links-menu { display: flex; align-items: center; gap: 30px; }
.nav-links-menu a { text-decoration: none; color: #475569; font-weight: 700; font-size: 0.95rem; transition: 0.3s; }
/* Forces the dropdown links to match the bold styling of the main links */
.dropdown-trigger-link { 
    font-weight: 700 !important; 
    color: #475569 !important; 
}
.nav-links-menu a:hover { color: var(--primary); }
.header-cta-nav { background-color: var(--primary); color: #ffffff !important; padding: 10px 22px; border-radius: 4px; }
.header-cta-nav:hover { background-color: #5A189A; }

/* Hide Mobile Hamburger on Desktop Screens */
.mobile-menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 6px; }
.mobile-menu-toggle span { display: block; width: 28px; height: 3px; background-color: #0f172a; transition: 0.3s; }

/* ==========================================================================
   MOBILE MENU TRANSFORMATION QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .mobile-menu-toggle { display: flex; z-index: 2100; }
    
    .nav-links-menu { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background-color: #ffffff; box-shadow: -10px 0 30px rgba(0,0,0,0.05); flex-direction: column; align-items: flex-start; padding: 100px 40px; gap: 25px; transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
    
    .nav-links-menu.is-active { right: 0; }
    .nav-links-menu a { font-size: 1.2rem; width: 100%; }
    .header-cta-nav { text-align: center; }

    .mobile-menu-toggle.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .mobile-menu-toggle.is-active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}
/* ==========================================================================
   RESPONSIVE GLOBAL NAVIGATION BAR STYLES
   ========================================================================== */
.main-site-header { background-color: #ffffff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 2000; padding: 0; }
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.site-logo { font-size: 1.5rem; font-weight: 900; color: #0f172a; text-decoration: none; }
.site-logo span { color: var(--primary); }

/* Desktop View Layout */
.nav-links-menu { display: flex; align-items: center; gap: 30px; }
.nav-links-menu a { text-decoration: none; color: #475569; font-weight: 700; font-size: 0.95rem; transition: 0.3s; }
.nav-links-menu a:hover { color: var(--primary); }
.header-cta-nav { background-color: var(--primary); color: #ffffff !important; padding: 10px 22px; border-radius: 4px; }
.header-cta-nav:hover { background-color: #5A189A; }

/* Hide Mobile Hamburger on Desktop Screens */
.mobile-menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 6px; }
.mobile-menu-toggle span { display: block; width: 28px; height: 3px; background-color: #0f172a; transition: 0.3s; }

/* ==========================================================================
   HEADER DROPDOWN MENUS (DESKTOP)
   ========================================================================== */
.nav-dropdown-wrapper {
    position: relative; 
    display: flex;
    align-items: center;     
    padding: 0;
}
.nav-dropdown-deck {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2500;
}

/* Force hide the lingering purple triangles from your old template */
.nav-dropdown-deck::before, .nav-dropdown-deck::after { display: none !important; }

/* Show dropdown on hover */
.nav-dropdown-wrapper:hover .nav-dropdown-deck {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-deck a {
    display: block !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    color: #475569 !important;
    transition: 0.2s;
    font-weight: 600;
    text-align: left;
}
.nav-dropdown-deck a:hover {
    background-color: #f8fafc;
    color: var(--primary) !important;
    padding-left: 25px !important;
}

/* ==========================================================================
   MOBILE MENU TRANSFORMATION & DROPDOWN FIX
   ========================================================================== */
@media (max-width: 992px) {
    .mobile-menu-toggle { display: flex; z-index: 2100; }
    
    .nav-links-menu { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background-color: #ffffff; box-shadow: -10px 0 30px rgba(0,0,0,0.05); flex-direction: column; align-items: flex-start; padding: 70px 40px; gap: 15px; transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1); overflow-y: auto; }
    .nav-links-menu.is-active { right: 0; }
    /* Forces ALL main links and wrappers to have the exact same spacing and behavior */
    /* Forces absolutely identical spacing on all menu items */
    .nav-links-menu > a, 
    .nav-links-menu > .nav-dropdown-wrapper,
    .dropdown-trigger-link { 
        font-size: 1.2rem !important; 
        width: 100% !important; 
        padding: 0 !important;
        margin: 0 !important;
        line-height: 1.2 !important;
        min-height: auto !important;
        display: block !important;
    }

    /* Keeps the purple button looking like a button but removes extra spacing */
    .header-cta-nav {
        margin-top: 5px !important;
        padding: 12px 20px !important;
    }

    /* Animated Close Icon */
    .mobile-menu-toggle.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .mobile-menu-toggle.is-active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Fix Mobile Dropdown Stacking */
    .nav-dropdown-wrapper { 
        width: 100%; 
        padding: 0; 
        display: flex; 
        flex-direction: column; /* Forces links to stack vertically instead of side-by-side */
    }
    
    .dropdown-trigger-link { font-size: 1.2rem !important; }

    /* 1. Force the wrapper to only be as tall as the visible link */
    .nav-dropdown-wrapper {
        height: auto !important;
        min-height: 0 !important;
    }

    /* 2. Completely destroy the invisible ghost spacing of the hidden menu */
    .nav-dropdown-deck {
        display: none !important; 
        position: static !important;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* 3. Bring the menu back with correct spacing ONLY when tapped */
    .nav-dropdown-wrapper.is-expanded .nav-dropdown-deck {
        display: block !important;
        border-left: 2px solid #e2e8f0 !important;
        margin-top: 15px !important;
        margin-left: 15px !important;
        padding-left: 10px !important;
    }

    .nav-dropdown-deck a {
        padding: 10px 15px !important;
        font-size: 1.05rem !important;
    }
}