/*
 * Figma Design Implementation Styles
 * Header and Footer from Relume Figma Kit
 */

/* Import Inter font (used in Figma design) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ====================================
   HEADER STYLES
   ==================================== */

.figma-header {
    background-color: #0c0c0c !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10000 !important;
    width: 100% !important;
    display: block !important;
}

.figma-header-bar {
    height: 72px;
    display: flex;
    align-items: center;
}

.figma-header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 24px;
}

/* Logo Space Placeholder */
.figma-header-logo-space {
    width: 150px;
    height: 40px;
    flex-shrink: 0;
}

/* Main Navigation */
.figma-nav {
    display: flex;
    gap: 32px;
    align-items: center;
    flex: 1;
}

.figma-nav-link {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    position: relative !important;
}

.figma-nav-link:hover {
    color: #104e8b !important;
}

/* Extend clickable area of Resources link downward */
.figma-nav-dropdown .figma-nav-link::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.figma-chevron {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    display: none !important; /* Hide chevron since mega menu is disabled */
}

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

/* Navigation Dropdown Container */
.figma-nav-dropdown {
    position: static;
}

/* Mega Menu - with hover bridge */
.figma-mega-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #0c0c0c !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 9999;
    padding-top: 0;
}

/* Create invisible hover area above dropdown to bridge the gap */
.figma-mega-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

/* MEGA MENU DISABLED - Completely hidden on all devices */
.figma-mega-menu {
    display: none !important;
}

/* Hover functionality disabled */
/* .figma-nav-dropdown:hover .figma-mega-menu,
.figma-mega-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
} */

/* Ensure hover bridge area is also interactive */
/* .figma-nav-dropdown:hover .figma-mega-menu::before {
    pointer-events: auto;
} */

.figma-mega-menu-content {
    display: flex;
    padding: 32px 64px;
    gap: 32px;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Mega Menu Columns */
.figma-mega-menu-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.figma-menu-heading {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
    margin: 0 !important;
}

.figma-menu-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

.figma-menu-list li {
    margin: 0 !important;
    display: flex !important;
}

.figma-menu-item {
    display: flex !important;
    gap: 12px !important;
    padding: 8px 0 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    color: #ffffff !important;
    align-items: flex-start !important;
    height: 77px !important;
    box-sizing: border-box !important;
}

.figma-menu-item:hover {
    opacity: 0.8 !important;
}

.figma-menu-icon {
    font-size: 24px !important;
    flex-shrink: 0 !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 12px !important;
}

.figma-menu-item > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    flex: 1 !important;
}

.figma-menu-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
    margin: 0 !important;
}

.figma-menu-desc {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
    margin: 0 !important;
    min-height: 42px !important;
}

/* Mega Menu Sidebar */
.figma-mega-menu-sidebar {
    width: 320px;
    background-color: #242424 !important;
    padding: 32px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    flex-shrink: 0 !important;
}

.figma-menu-quick-links {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.figma-menu-quick-links li {
    margin: 0 !important;
}

.figma-menu-quick-links a {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.figma-menu-quick-links a:hover {
    color: #104e8b !important;
}

/* Header Actions (Login/Register) */
.figma-header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.figma-btn {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    padding: 8px 20px;
    border: 1px solid rgba(12, 12, 12, 0.15);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.figma-btn-secondary {
    background-color: transparent !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.figma-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.figma-btn-primary {
    background-color: #104e8b !important;
    color: #ffffff !important;
    border-color: #104e8b !important;
}

.figma-btn-primary:hover {
    background-color: #0d3d6e !important;
    border-color: #0d3d6e !important;
    color: #ffffff !important;
}

/* Mobile Menu Toggle */
.figma-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    position: relative;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    z-index: 10002;
}

.figma-mobile-toggle span {
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    display: block;
}

/* Mobile Menu Overlay */
.figma-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Better mobile viewport height */
    background-color: #0c0c0c;
    z-index: 10001;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.figma-mobile-menu.active {
    display: flex !important;
    opacity: 1;
}

.figma-mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    padding: 10px 0 30px 0;
}

.figma-mobile-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
}

.figma-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.figma-mobile-nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

.figma-mobile-nav-link.figma-mobile-sublink {
    padding: 12px 0 12px 20px;
    font-size: 16px;
    border-bottom: none;
}

/* Mobile Resources Section */
.figma-mobile-resources-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.figma-mobile-section-heading {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.figma-mobile-resources-content {
    padding: 16px 0;
}

.figma-mobile-subsection-heading {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 16px 0 8px 0;
    padding: 0;
}

.figma-mobile-quick-links {
    background-color: #242424;
    padding: 24px;
    margin-top: 24px;
}

.figma-mobile-quick-links h3 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.figma-mobile-quick-links a {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 0;
}

.figma-mobile-register {
    margin-top: auto;
    padding: 20px 0;
}

.figma-mobile-register .figma-btn-primary {
    width: 100%;
    display: block;
    text-align: center;
}

/* Adjust body padding for fixed header */
body {
    padding-top: 72px;
}

/* ====================================
   FOOTER STYLES
   ==================================== */

.figma-footer {
    background-color: #0c0c0c !important;
    padding: 48px 20px !important;
    display: block !important;
}

.figma-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.figma-footer-card {
    background-color: #242424;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 32px;
    display: flex;
    flex-direction: row;
    gap: 64px;
    align-items: flex-start;
}

/* Footer Left Section - Links */
.figma-footer-left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Footer Right Section - Newsletter */
.figma-footer-right-section {
    flex: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
}

/* Footer Links Section */
.figma-footer-links {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.figma-footer-logo {
    display: flex;
    align-items: center;
}

.figma-footer-logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.figma-footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.figma-footer-column h3 {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
    margin: 0 !important;
}

.figma-footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.figma-footer-column li {
    margin: 0;
}

.figma-footer-column a {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 8px 0 !important;
    display: block !important;
    transition: color 0.3s ease !important;
}

.figma-footer-column a:hover {
    color: #104e8b !important;
}

/* Newsletter Section */
.figma-footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.figma-newsletter-text h3 {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
    margin: 0 0 12px 0 !important;
}

.figma-newsletter-text p {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
    margin: 0 !important;
}

.figma-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.figma-input {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(12, 12, 12, 0.6);
    background-color: rgba(12, 12, 12, 0.05);
    border: 1px solid rgba(12, 12, 12, 0.15);
    padding: 8px 12px;
    width: 100%;
}

.figma-input:focus {
    outline: none;
    border-color: #104e8b;
}

.figma-newsletter-btn {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #0c0c0c;
    background-color: transparent;
    border: 1px solid rgba(12, 12, 12, 0.15);
    padding: 10px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.figma-newsletter-btn:hover {
    background-color: rgba(12, 12, 12, 0.05);
}

.figma-newsletter-disclaimer {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
    margin: 0 !important;
}

/* Footer Bottom */
.figma-footer-bottom {
    padding: 32px 0 0 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

/* Left side: Copyright and legal links in one line */
.figma-footer-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.figma-footer-legal {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

/* Right side: Social icons */
.figma-social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.figma-social-links a {
    width: 24px;
    height: 24px;
    color: #ffffff !important;
    transition: color 0.3s ease;
}

.figma-social-links a:hover {
    color: #104e8b !important;
}

.figma-social-links svg {
    fill: #ffffff !important;
}

.figma-footer-legal a {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
    text-decoration: underline !important;
    transition: color 0.3s ease !important;
}

.figma-footer-legal a:hover {
    color: #104e8b !important;
}

.figma-copyright {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
    margin: 0 !important;
}

/* ====================================
   RESPONSIVE STYLES
   ==================================== */

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

    .figma-mega-menu-content {
        padding: 32px;
        gap: 24px;
    }

    .figma-mega-menu-sidebar {
        width: 240px;
    }
}

@media (max-width: 900px) {
    .figma-mega-menu-content {
        flex-direction: column;
        padding: 24px;
    }

    .figma-mega-menu-sidebar {
        width: 100%;
    }
}

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

    /* Hide desktop navigation and logo space */
    .figma-nav,
    .figma-header-actions,
    .figma-header-logo-space {
        display: none !important;
    }

    /* Show mobile menu toggle */
    .figma-mobile-toggle {
        display: flex !important;
    }

    /* Adjust body padding for mobile */
    body {
        padding-top: 72px;
    }

    /* Mobile footer styles */
    .figma-footer {
        padding: 32px 20px !important;
    }

    .figma-footer-card {
        padding: 32px 24px !important;
        flex-direction: column !important;
        gap: 48px !important;
    }

    .figma-footer-left-section,
    .figma-footer-right-section {
        max-width: 100% !important;
    }

    .figma-footer-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 32px !important;
    }

    .figma-footer-logo {
        margin-bottom: 16px;
    }

    .figma-footer-column h3 {
        font-size: 18px !important;
        margin-bottom: 12px !important;
    }

    .figma-footer-column a {
        font-size: 16px !important;
        padding: 6px 0 !important;
    }

    .figma-footer-newsletter {
        margin-top: 16px;
    }

    /* Stack footer bottom on mobile */
    .figma-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .figma-footer-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        order: 2;
    }

    .figma-social-links {
        order: 1;
    }

    .figma-footer-legal {
        flex-direction: column;
        gap: 12px;
    }
}

/* Desktop: Ensure proper column layout */
@media (min-width: 769px) {
    .figma-footer-links {
        display: grid;
        grid-template-columns: auto 1fr 1fr 1fr;
        gap: 40px;
        align-items: start;
    }

    .figma-footer-logo {
        grid-column: auto;
        margin-bottom: 0;
    }
}
