/* ========== FINANCE STYLE DESIGN SYSTEM - EXACT COLORS MATCHING FINANCIAL PARTNERS ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1E3A8A;
    --primary-light: #3B82F6;
    --primary-dark: #1E40AF;
    --secondary: #10B981;
    --accent: #F59E0B;
    --foreground: #111827;
    --foreground-light: #374151;
    --background: #FFFFFF;
    --light-grey: #F9FAFB;
    --grey: #E5E7EB;
    --dark-grey: #6B7280;
    --header-offset: 110px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--foreground);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
}

/* ========== CONTAINER ========== */
.container {
    width: 100%;
    max-width: 100rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== ANIMATIONS ========== */
.animate-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulseSlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* ========== PROGRESS BAR ========== */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 1001;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    width: 0%;
    transition: width 0.3s ease;
}

/* ========== HEADER - MATCHING FINANCIAL PARTNERS EXACTLY ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.hidden {
    transform: translateY(-100%);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--foreground);
    letter-spacing: -0.02em;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.4s ease;
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-left: auto;
}

.nav-link {
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--foreground);
    transition: width 0.4s ease;
}

.nav-link:hover {
    color: var(--foreground);
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 100%;
}

.cta-button {
    background: linear-gradient(135deg, var(--foreground) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    font-family: 'Nunito Sans', sans-serif;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.3);
}

/* ========== DROPDOWN MENU ========== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--foreground);
    transition: transform 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    z-index: 1002;
}

.menu-toggle:hover {
    background: var(--light-grey);
    transform: rotate(90deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 1.5rem;
    background-color: white;
    min-width: 250px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
    z-index: 1001;
    animation: fadeIn 0.3s ease-out;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--foreground);
    border-bottom: 1px solid #F9FAFB;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.dropdown-item:hover {
    background: var(--light-grey);
    padding-left: 2rem;
    color: var(--foreground);
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    min-height: 60vh;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding-top: 120px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('https://static.wixstatic.com/media/3d4c2a_2f337be5b7da445db58a7946af6d1fe4~mv2.jpg');
    background-size: auto 75%;
    background-position: 0 0;
    background-attachment: fixed;
    background-repeat: repeat-x;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.blueprint-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
    color: var(--primary);
}

.parallax-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.hero-circle-1 {
    position: absolute;
    top: 25%;
    left: 25%;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(30, 58, 138, 0.05);
    border-radius: 50%;
    opacity: 0.2;
    animation: spin 60s linear infinite;
}

.hero-circle-2 {
    position: absolute;
    bottom: 25%;
    right: 25%;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(30, 58, 138, 0.1);
    border-radius: 50%;
    opacity: 0.2;
    animation: spin-reverse 40s linear infinite;
    animation-delay: 1s;
}

.hero-circle-3 {
    position: absolute;
    top: 60%;
    left: 10%;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(30, 58, 138, 0.05);
    border-radius: 50%;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
    animation-delay: 2s;
}

.hero-circle-4 {
    position: absolute;
    top: 15%;
    right: 15%;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(30, 58, 138, 0.05);
    border-radius: 50%;
    opacity: 0.15;
    animation: float 10s ease-in-out infinite;
    animation-delay: 3s;
}

.hero-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
}

.hero-svg path {
    stroke: #1E3A8A;
}

.hero-content {
    position: relative;
    z-index: 20;
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
    width: 100%;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--foreground) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 5rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--dark-grey);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

/* ========== LEGAL CONTENT SECTION ========== */
.legal-content-section {
    position: relative;
    padding: 5rem 0;
    background: white;
    overflow: hidden;
}

.section-wrapper {
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 20;
}

.legal-container {
    max-width: 820px;
    margin: 0 auto;
    background: white;
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--grey);
    position: relative;
    z-index: 20;
    width: 100%;
}

.legal-item {
    margin-bottom: 3rem;
}

.legal-item:last-child {
    margin-bottom: 0;
}

.legal-item h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.legal-item h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 2px;
}

.legal-item p {
    font-size: 1.1rem;
    color: var(--foreground-light);
    line-height: 1.8;
    margin-bottom: 0;
}

.legal-item ul {
    margin-left: 1.5rem;
    margin-bottom: 0;
}

.legal-item li {
    font-size: 1.1rem;
    color: var(--foreground-light);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-item li:last-child {
    margin-bottom: 0;
}

/* ========== FOOTER - WITH CENTERED ALIGNMENT ========== */
.footer {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: white;
    padding: 5rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h3 {
    font-size: 1.75rem;
    color: white;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
}

.footer h4 {
    font-size: 1.1rem;
    color: var(--primary-light);
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
    opacity: 0.5;
}

.footer p {
    color: #9CA3AF;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer a {
    color: #9CA3AF;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.footer a:hover {
    color: white;
    transform: translateX(5px);
}

.footer a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer a:hover::before {
    opacity: 1;
    left: -15px;
}

/* ===== CENTERED FOOTER BOTTOM WITH COPYRIGHT AND SOCIAL ===== */
.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-align: center;
    gap: 1.5rem;
}

.footer-bottom p {
    color: #9CA3AF;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.25rem;
    color: #9CA3AF;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-links a:hover {
    color: white;
    background: var(--primary);
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.social-links a::before {
    display: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .nav-links {
        display: none !important;
    }
    
    .menu-toggle {
        display: block !important;
    }
}

@media (min-width: 1025px) {
    .menu-toggle {
        display: none !important;
    }
    
    .nav-links {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .legal-container {
        padding: 2rem;
    }
    
    .legal-item h2 {
        font-size: 1.5rem;
    }
    
    .legal-item p,
    .legal-item li {
        font-size: 1rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .legal-container {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }
    
    .legal-item h2 {
        font-size: 1.3rem;
    }
    
    .legal-item h2::after {
        width: 30px;
        height: 2px;
    }
    
    .footer h3 {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ========== EXACT COLORS FROM FINANCIAL PARTNERS ========== */
.text-primary {
    color: var(--primary) !important;
}

.text-primary-light {
    color: var(--primary-light) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

/* Touch Optimization */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Safe Area Support */
@supports (padding: max(0px)) {
    .header {
        padding-top: max(1rem, env(safe-area-inset-top));
    }
    
    .hero {
        padding-top: max(120px, calc(env(safe-area-inset-top) + 100px));
    }
}
