﻿/* ==========================================================================
   FINLEX — SHARED FOUNDATION STYLESHEET
   Global Typography, Theme Variables, Navigation, Footer & Common Components
   ========================================================================== */

:root {
    --primary: #071527;
    --navy: #071527;
    --navy-surface: #0d1f36;
    --navy-card: #112744;
    --navy-card-border: rgba(197, 160, 89, 0.2);
    --white: #ffffff;
    --paper: #f8f9fa;
    --paper-card: #ffffff;
    --grey: #5a6679;
    --grey-light: #8c9ba5;
    --line: rgba(7, 21, 39, 0.08);
    --dark-line: rgba(255, 255, 255, 0.12);

    --gold: #c5a059;
    --gold-light: #dfb76c;
    --gold-dim: rgba(197, 160, 89, 0.12);
    --gold-glow: rgba(197, 160, 89, 0.25);
    --gold-border: rgba(197, 160, 89, 0.35);
    --accent-bronze: #c5a059;

    --container: min(1280px, calc(100% - 60px));
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--navy);
    color: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}

.preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-logo {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(197, 160, 89, 0.4));
    animation: loaderPulse 2s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.05); opacity: 1; }
}

.loader-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: "DM Sans", sans-serif;
}

.loader-bottom span {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--gold-light);
    font-weight: 600;
}

.loader-bottom strong {
    font-family: "Manrope", sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 94px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9000;
    color: #fff;
    transition: background 0.4s var(--ease), height 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
    background: rgba(7, 21, 39, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar.scrolled {
    height: 82px;
    background: rgba(7, 21, 39, 0.96);
    border-bottom: 1px solid var(--gold-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    display: flex;
    align-items: center;
    width: auto;
    height: auto;
}

/* =====================================================
   DESKTOP HEADER LOGO — PROMINENT, BOLD & PRESTIGIOUS
===================================================== */
.brand-logo.desktop,
.logo-link .logo-desktop,
.logo-desktop {
    display: flex;
    align-items: center;
    height: 82px;
    width: auto;
}

.brand-logo.desktop img,
.logo-link .logo-desktop,
.logo-desktop {
    height: 78px;
    max-height: 80px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    transition: height 0.35s var(--ease), max-height 0.35s var(--ease), transform 0.35s var(--ease);
}

.navbar.scrolled .brand-logo.desktop,
.navbar.scrolled .logo-link .logo-desktop,
.navbar.scrolled .logo-desktop,
.header.scrolled .logo-desktop {
    height: 64px;
}

.navbar.scrolled .brand-logo.desktop img,
.navbar.scrolled .logo-link .logo-desktop,
.navbar.scrolled .logo-desktop,
.header.scrolled .logo-desktop {
    height: 60px;
    max-height: 62px;
}

/* Mobile Header Logo */
.brand-logo.mobile,
.logo-link .logo-mobile,
.logo-mobile {
    display: none;
    align-items: center;
    height: 48px;
    width: auto;
}

.brand-logo.mobile img,
.logo-link .logo-mobile,
.logo-mobile {
    height: 46px;
    width: auto;
    object-fit: contain;
}

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

.desktop-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.desktop-nav a span {
    font-size: 10px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.04em;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: #fff;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s var(--ease);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy);
    background: #fff;
    border: 1px solid #fff;
    text-decoration: none;
    transition: all 0.3s var(--ease);
}

/* =====================================================
   HEADER & TOPBAR STYLES (Insights & Legal Pages)
===================================================== */
.topbar {
    background: #040c17;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: var(--grey-light);
    padding: 8px 0;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-link {
    color: var(--grey-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.topbar-link:hover {
    color: var(--gold);
}

.office-pill {
    background: rgba(197, 160, 89, 0.15);
    color: var(--gold);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
}

.topbar-wa {
    color: #25d366;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

header.header {
    background: rgba(7, 21, 39, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 9000;
}

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

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.consult-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--gold);
    color: #071527;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: background 0.3s ease, transform 0.3s ease;
}

.consult-btn:hover {
    background: #dfb76c;
    transform: translateY(-2px);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.nav-cta:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.35);
}

.menu-button {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    padding: 10px;
    z-index: 9005;
}

.menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--navy);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s var(--ease), opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-top span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--gold);
    text-transform: uppercase;
}

#closeMenu {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 14px;
    border-radius: 999px;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 40px 0;
}

.mobile-links a {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 24px;
    font-weight: 700;
    font-family: "Manrope", sans-serif;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.mobile-links a small {
    font-size: 13px;
    color: var(--gold);
    font-weight: 600;
}

.mobile-links a:hover,
.mobile-links a.active {
    color: var(--gold-light);
    transform: translateX(6px);
}

.mobile-menu-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.mobile-menu-footer a {
    color: var(--gold-light);
    text-decoration: none;
}

/* ==========================================================================
   PROGRAM STATUS BADGES (NO EMOJIS)
   ========================================================================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
}

.status-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.status-badge.badge-new {
    background: rgba(30, 144, 255, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.status-badge.badge-new::before {
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
}

.status-badge.badge-closed {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.status-badge.badge-closed::before {
    background: #f87171;
    box-shadow: 0 0 8px #f87171;
}

.status-badge.badge-limited {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-badge.badge-limited::before {
    background: #fbbf24;
    box-shadow: 0 0 8px #fbbf24;
}

.status-badge.badge-gold {
    background: rgba(197, 160, 89, 0.14);
    color: var(--gold-light);
    border: 1px solid var(--gold-border);
}

.status-badge.badge-gold::before {
    background: var(--gold);
}

/* ==========================================================================
   TABLES & COMPARISON MATRICES (NO EMOJIS)
   ========================================================================== */
.table-responsive-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 25px 0;
    border-radius: 14px;
    border: 1px solid rgba(197, 160, 89, 0.25);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.dark-theme-table .table-responsive-wrap {
    background: var(--navy-surface);
    border: 1px solid var(--navy-card-border);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}

.finlex-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.finlex-data-table th {
    background: var(--navy);
    color: #ffffff;
    padding: 16px 20px;
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--gold);
    white-space: nowrap;
}

.finlex-data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(7, 21, 39, 0.08);
    color: #334155;
    vertical-align: middle;
}

.dark-theme-table .finlex-data-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
}

.finlex-data-table tr:hover td {
    background: rgba(197, 160, 89, 0.04);
}

.table-pill-yes {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 11px;
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
    padding: 3px 10px;
    border-radius: 999px;
}

.table-pill-no {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 11px;
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
    padding: 3px 10px;
    border-radius: 999px;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-accordion-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 30px 0;
}

.faq-card {
    background: #ffffff;
    border: 1px solid rgba(7, 21, 39, 0.1);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dark-theme .faq-card {
    background: var(--navy-card);
    border: 1px solid var(--navy-card-border);
}

.faq-card.active {
    border-color: var(--gold);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.15);
}

.faq-question-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    transition: color 0.3s ease;
}

.dark-theme .faq-question-btn {
    color: #ffffff;
}

.faq-card:hover .faq-question-btn {
    color: var(--gold);
}

.faq-icon-indicator {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.12);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.faq-card.active .faq-icon-indicator {
    transform: rotate(45deg);
    background: var(--gold);
    color: #ffffff;
}

.faq-answer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.3s ease;
    padding: 0 26px;
    font-size: 14px;
    line-height: 1.8;
    color: #475569;
}

.dark-theme .faq-answer-content {
    color: rgba(255, 255, 255, 0.8);
}

.faq-card.active .faq-answer-content {
    max-height: 1200px;
    padding-bottom: 24px;
}

/* ==========================================================================
   FOOTER (UNIVERSAL)
   ========================================================================== */
.footer {
    background: var(--navy);
    color: #fff;
    padding: 70px 0 35px 0;
    border-top: 1px solid var(--gold-border);
    position: relative;
    z-index: 20;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.footer-brand img {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.footer-tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
    letter-spacing: 0.04em;
}

.footer-action-pills {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gold);
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.footer-btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.45);
}

.footer-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gold);
    color: var(--gold-light);
}

.footer-middle {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding: 45px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column span.col-title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-column p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
}

.footer-column a {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-column a:hover {
    color: var(--gold-light);
    transform: translateX(3px);
}

.footer-disclaimer-box {
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-disclaimer-box p {
    font-size: 11.5px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.55);
}

.footer-disclaimer-box strong {
    color: var(--gold-light);
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0 10px 0;
}

.footer-legal-links a {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 25px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 24px;
    }
    .desktop-nav {
        gap: 20px;
    }
    .footer-middle {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .desktop-nav,
    .nav-cta,
    .brand-logo.desktop,
    .logo-desktop {
        display: none !important;
    }
    .brand-logo.mobile,
    .logo-mobile,
    .menu-button {
        display: flex !important;
    }
    .brand-logo.mobile img,
    .logo-mobile {
        display: block !important;
        height: 46px !important;
        width: auto !important;
    }
    .navbar {
        height: 78px;
        padding: 0 20px;
    }
    .footer-middle {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-middle {
        grid-template-columns: 1fr;
    }
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-action-pills {
        width: 100%;
    }
    .footer-btn-primary,
    .footer-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
