/**
 * HymnWise Homepage Styles
 * Inspired by Grace Church - clean, sophisticated, traditional-modern
 */

:root {
    --navy: #1a2a3a;
    --navy-light: #2d3e50;
    --white: #ffffff;
    --off-white: #f9f9f9;
    --light-gray: #f4f4f4;
    --medium-gray: #e5e5e5;
    --dark-gray: #666666;
    --text-primary: #222222;
    --text-secondary: #555555;
    --accent-blue: #3d6b99;
}

/* Base */
.hymn-homepage {
    background: var(--white);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section - Full width, minimal */
.hero-section {
    background: var(--navy);
    color: var(--white);
    padding: 150px 20px 130px;
    text-align: center;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero background image */
.hero-section.has-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section.has-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 42, 58, 0.75);
}

.hero-section .hero-content {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-tagline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 25px;
    font-weight: 500;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.hero-content p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 50px;
    line-height: 1.7;
    font-weight: 400;
}

/* Search Box - Clean, minimal */
.hero-search {
    max-width: 500px;
    margin: 0 auto;
}

.hero-search form {
    display: flex;
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
}

.search-input::placeholder {
    color: var(--dark-gray);
}

.search-btn {
    background: var(--navy-light);
    color: var(--white);
    border: none;
    padding: 16px 28px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-btn:hover {
    background: var(--accent-blue);
}

/* Scripture Section */
.scripture-section {
    background: var(--off-white);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid var(--medium-gray);
}

.scripture-quote {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
}

.scripture-ref {
    display: block;
    margin-top: 20px;
    font-size: 0.875rem;
    color: var(--dark-gray);
    font-style: normal;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Features Section */
.features-section {
    padding: 80px 20px;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--navy);
    font-weight: 300;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.features-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--navy);
}

.feature-item h3 {
    font-size: 1.125rem;
    color: var(--navy);
    margin-bottom: 10px;
    font-weight: 500;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Hymns Section */
.hymns-section {
    padding: 80px 20px;
    background: var(--light-gray);
}

.hymns-grid {
    max-width: 1000px;
    margin: 0 auto 50px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.hymn-card {
    background: var(--white);
    border: 1px solid var(--medium-gray);
    padding: 28px 30px;
    text-decoration: none;
    transition: all 0.2s;
    display: block;
}

.hymn-card:hover {
    border-color: var(--navy);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.hymn-card h3 {
    color: var(--navy);
    font-size: 1.125rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.hymn-card .hymn-meta {
    display: flex;
    gap: 20px;
    font-size: 0.8125rem;
    color: var(--dark-gray);
}

.view-all {
    text-align: center;
}

/* Topics Section */
.topics-section {
    padding: 80px 20px;
    background: var(--white);
    border-top: 1px solid var(--medium-gray);
}

.topics-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.topic-tag {
    background: var(--light-gray);
    border: 1px solid var(--medium-gray);
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.topic-tag:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.topic-tag .count {
    color: var(--dark-gray);
    font-size: 0.75rem;
    margin-left: 6px;
}

.topic-tag:hover .count {
    color: rgba(255,255,255,0.7);
}

/* CTA Section */
.cta-section {
    padding: 100px 20px;
    text-align: center;
    background: var(--navy);
    color: var(--white);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.cta-section p {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--white);
    color: var(--navy);
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--light-gray);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.4);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

/* Footer Note */
.footer-note {
    background: var(--off-white);
    padding: 25px 20px;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--dark-gray);
    border-top: 1px solid var(--medium-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 20px 70px;
    }

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

    .hero-search form {
        flex-direction: column;
    }

    .search-btn {
        padding: 14px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .section-header h2 {
        font-size: 1.625rem;
    }
}
