/* ===== styles.css - Master CSS file for SmartAsset website ===== */

.smart-logo {
    text-decoration: none;
}

.smart-logo:hover {
    opacity: 0.85;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #E9ECEF;
    color: #1e2a3a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== HEADER STYLES (shared across all pages) ===== */
.topbar {
    background: #0f5a78;
    padding: 12px 0;
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.logo span {
    color: #8cc9e6;
}

.nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav a {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.nav a:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.nav-right {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.btn-outline {
    border: 1px solid #fff;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-orange {
    background: #f26522;
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.btn-orange:hover {
    background: #d45318;
}

/* ===== HEADER RESPONSIVE - FIXES THE BREAKING ISSUE ===== */
@media (max-width: 1100px) {
    .nav {
        gap: 12px;
    }

    .nav a {
        font-size: 11px;
    }
}

@media (max-width: 950px) {
    .topbar-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-right {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .topbar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .nav {
        justify-content: center;
    }

    .nav-right {
        justify-content: center;
    }
}

/* ===== HERO SECTION (shared) ===== */
.hero {
    background: #E9ECEF;
    padding: 40px 0;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    font-size: 48px;
    font-weight: 700;
    color: #1e2a3a;
    margin-bottom: 20px;
}

.author {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #b0c4de;
}

.meta {
    font-size: 14px;
    color: #2c3e50;
}

.meta strong {
    color: #1a6bbf;
}

.disclaimer {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #4a627a;
    max-width: 820px;
}

.disclaimer a {
    color: #1a6bbf;
    text-decoration: none;
}

.disclaimer a:hover {
    text-decoration: underline;
}

/* ===== FOOTER STYLES (shared) ===== */
.footer {
    background: #0f5a78;
    width: 100%;
    margin-top: 40px;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer h4 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    color: #ffffff;
}

.footer a {
    display: block;
    font-size: 13px;
    color: #cfe3ef;
    text-decoration: none;
    margin-bottom: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.footer a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.social-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.fb-icon {
    background: #3b82b1;
}

.x-icon {
    background: #000;
}

.li-icon {
    background: #0a66c2;
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px 20px;
    font-size: 12px;
    line-height: 1.6;
    color: #cfe3ef;
}

.footer-bottom p {
    margin-bottom: 16px;
}

.footer-last {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px 40px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #cfe3ef;
}

/* ===== FOOTER RESPONSIVE ===== */
@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-last {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ===== RESPONSIVE GENERAL ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
}

/* ===== PAGE-SPECIFIC STYLES GO BELOW ===== */
/* These will be different for each page, but you can add them here */