/* ==================== COMMON STYLES ==================== */
/* Variables */
:root {
    --primary: #1E3A5F;
    --primary-light: #2D5A87;
    --primary-dark: #152A45;
    --secondary: #4A90A4;
    --accent: #FF6B6B;
    --accent-hover: #FF5252;
    --white: #FFFFFF;
    --off-white: #F8FBFD;
    --light-gray: #E8F4FD;
    --gray: #6B7C8F;
    --dark-gray: #3D4F5F;
    --text: #2C3E50;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --container-width: 1200px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 58, 95, 0.08);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark-gray);
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

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

.nav-cta {
    padding: 12px 28px;
    font-size: 15px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 3px 0;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hide mobile menu header on desktop */
.mobile-menu-header {
    display: none;
}

/* ==================== MOBILE STYLES ==================== */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #64748B;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 20px 0 40px;
        gap: 0;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .mobile-menu-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 25px 30px 30px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        margin-bottom: 10px;
        background: #64748B;
    }

    .mobile-menu-header img {
        width: 55px;
        height: 55px;
        margin-bottom: 12px;
    }

    .mobile-menu-header span {
        font-family: var(--font-display);
        font-size: 1.4rem;
        font-weight: 700;
        color: #FFFFFF;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        background: #64748B;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 18px 30px;
        font-size: 17px;
        color: #FFFFFF;
        font-weight: 500;
        background: #64748B;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        background: rgba(255,255,255,0.1);
        color: #FF6B6B;
    }

    .nav-cta {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-brand .logo {
    color: var(--white);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    max-width: 450px;
    margin: 0;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: var(--transition);
}

.footer-legal-links a:hover {
    color: var(--white);
}

.footer-legal-links .divider {
    color: rgba(255, 255, 255, 0.3);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-disclaimer {
    font-size: 13px;
    line-height: 1.7;
}

.affiliate-disclosure {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 968px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ==================== COMMON COMPONENTS ==================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.5);
}
