/* Modern Financial Advice Website Styles */

:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --light-blue: #dbeafe;
    --accent-green: #10b981;
    --warm-orange: #f59e0b;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 0.5rem 0;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

/* Section Styling */
section {
    margin-bottom: 3rem;
}

section h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-green);
}

section h3 {
    color: var(--secondary-blue);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Lists */
ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

ul li, ol li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.principles-list {
    list-style: none;
    margin-left: 0;
}

.principles-list li {
    background: var(--bg-card);
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-green);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.principles-list li:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.principles-list li strong {
    color: var(--primary-blue);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Steps Section */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--warm-orange);
    text-align: center;
}

.step-card h3 {
    color: var(--warm-orange);
    margin-top: 0;
    margin-bottom: 1rem;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--warm-orange);
    color: white;
    border-radius: 50%;
    line-height: 40px;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Call to Action */
.cta {
    background: linear-gradient(135deg, var(--accent-green) 0%, #059669 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 3rem 0;
    box-shadow: var(--shadow-md);
}

.cta h3 {
    color: white;
    margin-bottom: 1rem;
    border: none;
}

.cta-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.cta-links a {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: background 0.3s;
    font-weight: 500;
}

.cta-links a:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--light-blue);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary-blue);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateX(-100%);
        transition: transform 0.3s;
        box-shadow: var(--shadow-lg);
    }

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

    .mobile-menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    main {
        padding: 1rem;
    }

    section h2 {
        font-size: 1.75rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    nav {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.highlight {
    background: var(--light-blue);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--primary-blue);
    font-weight: 600;
}
