/* Biblical Finance Website - Global Styles */
/* Color Palette: Navy, Gold, Cream/White */

/* Google Fonts - Outfit */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --navy: #1e3a5f;
    --navy-dark: #142a45;
    --gold: #d4af37;
    --gold-light: #e6c963;
    --cream: #faf8f3;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
}

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

body {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--cream);
}

/* Fix for sticky navbar covering anchor link targets */
[id] {
    scroll-margin-top: 80px;
}

/* Modern Navbar */
.navbar {
    background-color: #faf8f5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.navbar-brand h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--cream);
    font-weight: 600;
    line-height: 1.2;
}

.navbar-brand .tagline {
    font-size: 0.85rem;
    color: var(--gold-light);
    font-style: italic;
    font-weight: normal;
    margin-top: 2px;
}

.navbar-logo {
    height: 60px;
    width: auto;
    display: block;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    margin: 0;
}

.navbar-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #1a2744;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.navbar-menu a:hover {
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--gold-light);
}

.navbar-menu a.active {
    background-color: #1a2744;
    color: #faf8f5;
    font-weight: 600;
}

/* Mobile Menu Toggle */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: #1a2744;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-toggle:hover {
    color: var(--gold);
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.subtitle {
    font-size: 1.1rem;
    font-weight: normal;
    color: var(--text-light);
    font-style: italic;
}

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

h2 {
    color: var(--navy);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    text-align: center;
}

h3 {
    color: var(--navy-dark);
    font-size: 1.4rem;
    margin: 1.5rem 0 0.75rem;
}

p {
    margin-bottom: 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
    margin: 0 0 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-headline {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--cream);
    line-height: 1.2;
}

.hero-tagline {
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-bottom: 2rem;
    font-style: italic;
    line-height: 1.5;
}

.hero-verse {
    font-size: 1.3rem;
    font-style: italic;
    margin: 2rem auto 1rem;
    max-width: 800px;
    line-height: 1.7;
    color: rgba(250, 248, 243, 0.95);
}

.hero-reference {
    color: var(--gold);
    font-weight: bold;
    margin-top: 1rem;
    display: block;
    font-size: 1.1rem;
}

.hero-cta {
    margin-top: 2.5rem;
}

.hero-cta .btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--gold);
    color: var(--navy-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.hero-cta .btn:hover {
    background-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

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

.card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card h3 {
    color: var(--navy);
    margin-top: 0;
}

.card p {
    color: var(--text-light);
}

.card a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--gold);
    color: var(--navy);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.card a:hover {
    background-color: var(--gold-light);
}

/* Scripture Section Styles */
.topic-section {
    background: var(--white);
    border-left: 5px solid var(--gold);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.topic-section h3 {
    margin-top: 0;
    color: var(--navy);
}

.verse {
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--cream);
}

.verse-text {
    font-style: italic;
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.7;
}

.verse-reference {
    font-weight: bold;
    color: var(--gold);
    display: block;
    margin-top: 0.5rem;
}

/* Search Bar */
.search-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.search-box {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid var(--navy);
    border-radius: 50px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box:focus {
    border-color: var(--gold);
}

.search-info {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
    text-align: center;
}

/* Calculator Styles */
.calculator-hub {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.calc-link {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--navy);
    border: 3px solid transparent;
}

.calc-link:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.calc-link h3 {
    margin: 0.5rem 0;
}

.calc-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Lesson Styles */
.lesson-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.lesson-content h2,
.lesson-content h3,
.lesson-content h4 {
    color: var(--navy);
}

.lesson-content ul,
.lesson-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.lesson-content li {
    margin-bottom: 0.5rem;
}

.lesson-content blockquote {
    border-left: 5px solid var(--gold);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: var(--navy-dark);
    color: var(--cream);
    margin-top: 4rem;
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h4 {
    color: var(--cream);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--cream);
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    text-align: center;
}

.footer-bottom p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.footer-credit {
    font-size: 0.9rem;
    opacity: 0.8;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    /* Mobile Navbar */
    .navbar-toggle {
        display: block;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--navy-dark);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }

    .navbar-menu a {
        padding: 1rem 1.5rem;
        border-radius: 0;
    }

    .navbar-logo {
        height: 50px;
    }

    .navbar-brand h1 {
        font-size: 1.25rem;
    }

    .navbar-brand .tagline {
        font-size: 0.75rem;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

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

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

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

    .hero-cta .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

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

    .lesson-content {
        padding: 1.5rem;
    }

    /* Footer Mobile Responsive */
    footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-section {
        min-width: 100%;
        text-align: center;
    }

    .footer-section ul {
        text-align: center;
    }
}

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

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

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

.hidden {
    display: none;
}
