/* Header */
.site-header {
    background: #F7F7F9 !important;
    /* Standardized background */
    border-bottom: 1px solid #D4C0CC !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    /* Increased z-index to be safe */
    height: 80px !important;
    /* Desktop height */
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: height 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
    height: 72px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 32px;
    /* Standardized padding */
    max-width: 1400px;
    /* Ensure content doesn't stretch too wide on huge screens */
    margin: 0 auto;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--amp-primary);
    letter-spacing: -0.02em;
    font-family: var(--font-family-logo);
}

.main-nav {
    display: flex;
    gap: 24px;
    /* Standardized spacing */
    height: 100%;
}

.nav-link {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--amp-primary);
}

/* Mobile Header Styles */
@media (max-width: 1024px) {
    .site-header {
        height: 64px !important;
        padding: 0 !important;
    }

    .site-header.scrolled {
        height: 64px !important;
    }

    .nav-container {
        padding: 0 16px;
        /* slightly tighter on small screens */
    }

    .nav-logo {
        font-size: 1.3rem;
    }
}

/* Footer */
.site-footer {
    background-color: #F7F7F9;
    color: var(--text);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 60px;
}

/* Responsiveness for 5 cols */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        /* Better than 3 for tablet */
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        /* Increased gap for visual separation */
    }

    .footer-col {
        text-align: left;
        /* Keep left align as per user request/design, but ensure safe space */
    }
}

.footer-col h4 {
    color: var(--amp-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--amp-primary);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--amp-primary);
    color: var(--amp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--amp-lilac);
    box-shadow: 0 0 10px var(--amp-lilac);
    border-color: var(--amp-lilac);
    color: var(--amp-primary);
}

/* Newsletter */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form input {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: inherit;
}

/* Bottom Row */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-bottom-right {
    text-align: right;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--amp-primary);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-bottom-left {
        flex-direction: column;
    }

    .footer-bottom-right {
        text-align: center;
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0;
    color: var(--white);
    text-align: center;
    overflow: hidden;
    background-color: var(--amp-primary);
    /* Fallback */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hero Overlay */
/* Hero Overlay Removed */
.hero::before {
    display: none;
}

.hero>.container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    max-width: 900px;
    margin: 0 auto var(--spacing-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    color: var(--white);
    font-size: 1.35rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Specific Hero Images */


.hero-mobility {
    background-image: url('../images/mobility_hero.png');
}

.hero-energy {
    background-image: url('../images/energy_hero.png');
}

.hero-enablement {
    background-image: url('../images/enablement_hero.png');
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md);
    }
}

.card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-4px);
}

.card h3 {
    margin-bottom: var(--spacing-sm);
}

/* Section */
.section {
    padding: var(--spacing-xl) 0;
}

/* Parallax Hero */
.hero {
    background-attachment: fixed;
    /* Simple parallax */
}

/* Enhanced Cards */
.card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.icon-box {
    font-size: 2rem;
    color: var(--amp-primary);
    margin-bottom: var(--spacing-md);
    background: var(--bg);
    padding: 12px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    text-align: center;
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--amp-primary);
    margin-bottom: var(--spacing-xs);
}

.stat-card p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Partner Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: var(--spacing-lg) 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    /* Fade edges */
}

.marquee-content {
    display: inline-flex;
    gap: 4rem;
    animation: marquee 30s linear infinite;
}

.partner-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--muted);
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* CTA Section */
.cta-section {
    background: var(--brand-gradient);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.25rem;
}

.cta-section .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

.cta-section .btn-secondary:hover {
    background-color: var(--white);
    color: var(--amp-primary);
}

/* Dropdown Menus */
.dropdown-parent {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
    flex-direction: column;
    z-index: 1000;
    border: 1px solid var(--border);
}

.dropdown-parent:hover .dropdown-menu {
    display: flex;
    animation: fadeInUp 0.2s ease-out;
}

.dropdown-menu a {
    padding: 0.75rem 1.5rem;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s;
    display: block;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: var(--surface);
    color: var(--amp-primary);
}

/* Hero Highlights */
.highlight-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.highlight-chip i {
    font-size: 1.1rem;
}

/* =========================================
   Mega Menu Styles
   ========================================= */

/* Desktop Navigation Item */
.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Mega Menu Container */
.mega-menu-container {
    position: fixed;
    top: 72px;
    /* Height of header */
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 95vw;
    /* Slightly less than full width */
    max-width: 1200px;
    background: #F7F7F9;
    border: 1px solid #D4C0CC;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 12px 32px rgba(31, 11, 106, 0.08);
    /* Indigo soft shadow */
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-out;
    z-index: 1000;
    display: flex;
    gap: 2rem;
    cursor: default;
}

/* Show Mega Menu on Hover */
.nav-item:hover .mega-menu-container {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Mega Menu Layout Columns */
.mega-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mega-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.mega-link-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Mega Menu Links */
.mega-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.1s ease;
}

.mega-link:hover {
    background: rgba(181, 161, 194, 0.15);
    /* Lilac tint */
    color: var(--amp-primary);
}

.mega-link-icon {
    font-size: 1.25rem;
    color: var(--amp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    width: 2rem;
    /* Fixed width for alignment */
    height: 2rem;
    min-width: 2rem;
    /* Prevent shrinking */
    border-radius: 4px;
    flex-shrink: 0;
    /* Ensure icon container never shrinks */
    line-height: 1;
    /* Ensure strict vertical centering */
}

.mega-link-icon i {
    display: block;
    line-height: 1;
}

.mega-link:hover .mega-link-icon {
    /* transform: scale(1.1); REMOVED to prevent shifting */
    color: var(--amp-primary);
    background-color: rgba(181, 161, 194, 0.2);
    /* Subtle background instead of scale */
}

/* Featured Card in Mega Menu */
.mega-feature-card {
    width: 280px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(247, 247, 249, 0.8) 100%);
    border: 1px solid rgba(212, 192, 204, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.mega-feature-card h4 {
    color: var(--amp-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: none;
}

.mega-feature-card p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.mega-feature-card .btn {
    width: 100%;
    font-size: 0.9rem;
}

/* =========================================
   Mobile Drawer Styles
   ========================================= */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    /* Full width as requested */
    max-width: 400px;
    /* Limit width on larger tablets/desktop if opened */
    height: 100vh;
    background: #F7F7F9;
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    /* Smoother bezier */
    transform: translateX(100%);
    /* Use transform for performance */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    right: 0;
    /* Reset right to 0 */
}

.mobile-drawer.active {
    transform: translateX(0);
    /* Slide in */
}

@media (max-width: 480px) {
    .mobile-drawer {
        max-width: 100%;
        /* Full width on phones */
    }
}



.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.drawer-close {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
}

.drawer-content {
    padding: 1.5rem;
    flex: 1;
}

/* Accordion Nav */
.accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--amp-primary);
    cursor: pointer;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 1rem;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    /* Arbitrary large height */
}

.accordion-item.active .accordion-trigger i {
    transform: rotate(180deg);
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
}

.drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Mobile Menu Toggle Button (Visible on Mobile) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--amp-primary);
}

@media (max-width: 1024px) {

    .main-nav,
    .header-actions {
        display: none !important;
        /* Hide desktop nav */
    }

    .menu-toggle {
        display: block;
    }
}

/* Homepage Specific Hero */
.hero-home {
    background: url('../images/homepage.png') center/cover no-repeat #F7F7F9;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Ensure body has no padding that affects header */
body {
    padding-top: 0 !important;
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 120px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* =========================================
   Leadership Card Styles
   ========================================= */

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-content: center;
    max-width: 1100px;
    margin: 3rem auto;
}

.leadership-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.leadership-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
    /* Indigo hint */
}

.leader-image-frame {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    /* Circle looks more modern for profiles usually, or soft rect */
    border: 3px solid white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.leader-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.leader-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.linkedin-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0077b5;
    /* LinkedIn Blue */
    font-size: 1.25rem;
    transition: all 0.2s;
}

.linkedin-btn:hover {
    background-color: #0077b5;
    color: white;
    transform: scale(1.1);
}

.leader-title {
    font-size: 1rem;
    font-weight: 600;
    color: #6366f1;
    /* Primary Indigo */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.leader-bio {
    font-size: 1.05rem;
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 95%;
}

.leader-focus-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.leader-focus-list li {
    font-size: 0.95rem;
    color: #64748b;
    padding: 10px 16px;
    margin-bottom: 8px;
    background: #f8fafc;
    border-radius: 8px;
    display: block;
    /* Full width blocks */
    transition: background 0.2s;
}

.leader-focus-list li:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.leader-focus-list li::before {
    content: none;
}

.leader-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: auto;
}

@media (max-width: 768px) {
    .leadership-grid {
        grid-template-columns: 1fr;
    }

    .leadership-card {
        padding: 20px;
    }

    .leader-image-frame {
        width: 96px;
        height: 96px;
    }
}

.search-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.search-container {
    width: 100%;
    max-width: 800px;
    padding: 0 24px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-modal.active .search-container {
    transform: translateY(0);
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.search-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--muted);
}

.search-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    padding: 0.5rem;
    transition: transform 0.2s;
}

.search-close:hover {
    transform: rotate(90deg);
    color: var(--amp-primary);
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
}

.search-icon-large {
    font-size: 2rem;
    color: var(--muted);
    margin-right: 1rem;
}

.search-input {
    width: 100%;
    border: none;
    background: none;
    font-size: 2.5rem;
    font-weight: 300;
    padding: 1rem 0;
    outline: none;
    color: var(--text);
}

.search-input::placeholder {
    color: #CBD5E1;
}

.suggestions-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.suggestions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.suggestion-chip {
    padding: 0.5rem 1rem;
    background: #F1F5F9;
    color: var(--text);
    text-decoration: none;
    border-radius: 100px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.suggestion-chip:hover {
    background: var(--amp-primary);
    color: white;
    transform: translateY(-2px);
}

/* Brevo Z-Index Fix */
#brevo-conversations {
    z-index: 9999 !important;
}