/* ===================================================================
   SJLC Daily Bible Readings - Main Stylesheet
   =================================================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --accent-color: #72abbf;
    --accent-hover: #5a96a8;
    --accent-dark: #4a8090;

    --text-primary: #424547;
    --text-secondary: #5e6266;
    --text-tertiary: #9a9fa3;

    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #dce0e3;

    --success-color: #4caf50;
    --footnote-color: #c07830;
    --crossref-color: #3a8fb7;

    /* Typography */
    --font-serif: "Sentinel", "Gentium Plus", Georgia, Times, serif;
    --font-sans: "Gotham", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;

    /* Sizing */
    --max-width: 1200px;
    --nav-height: 60px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

ul {
    list-style: none;
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    z-index: 9999;
    font-weight: 500;
}

.skip-link:focus {
    left: 0;
}

:focus {
    outline: 3px solid rgba(114, 171, 191, 0.5);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 3px solid rgba(114, 171, 191, 0.5);
    outline-offset: 2px;
}

/* ===== HEADER & BANNER ===== */
.site-header {
    position: relative;
    width: 100%;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    text-align: center;
    padding: var(--spacing-md);
}

.site-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: var(--spacing-xs);
}

.site-subtitle {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ===== NAVIGATION ===== */
.main-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-sm) var(--spacing-md);
    max-width: var(--max-width);
    margin: 0 auto;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--accent-color);
    background: var(--bg-light);
}

.nav-link.active {
    color: var(--accent-color);
    font-weight: 600;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform var(--transition-fast);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* Mobile Nav Open State */
.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(114, 171, 191, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-dark) 100%);
    box-shadow: 0 6px 16px rgba(114, 171, 191, 0.4);
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: var(--spacing-xl) var(--spacing-lg);
    background: linear-gradient(135deg, rgba(114, 171, 191, 0.08) 0%, rgba(242, 243, 245, 0.9) 100%);
    text-align: center;
}

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

.hero-tagline {
    font-size: 1.4rem;
    color: var(--accent-color);
    font-weight: 600;
    font-family: var(--font-serif);
    font-style: italic;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: var(--spacing-xl) var(--spacing-lg);
    background: var(--bg-white);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.features-row {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-light);
    border-radius: 8px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    flex: 0 0 auto;
    max-width: 200px;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.feature-text span {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* ===== WORSHIP SECTION ===== */
.worship-section {
    padding: var(--spacing-xl) var(--spacing-lg);
    background: var(--bg-light);
}

.worship-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

.worship-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.worship-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.worship-times li {
    padding: 0.3rem 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

.worship-times li strong {
    color: var(--text-primary);
}

.worship-note {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: var(--spacing-md) 0;
}

.worship-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.map-container {
    margin-bottom: var(--spacing-sm);
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    display: block;
}

.location-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.location-info p {
    margin: 0.3rem 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: var(--spacing-xl) var(--spacing-lg);
    background: var(--bg-white);
    text-align: center;
}

.cta-content {
    max-width: 500px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.cta-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* ===== FOOTER ===== */
.site-footer {
    padding: var(--spacing-lg);
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0.3rem 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Header */
    .banner-container {
        height: 150px;
    }

    .site-title {
        font-size: 1.8rem;
    }

    .site-subtitle {
        font-size: 0.95rem;
    }

    /* Navigation */
    .nav-toggle {
        display: block;
        position: absolute;
        right: var(--spacing-sm);
        top: 50%;
        transform: translateY(-50%);
    }

    .main-nav {
        position: relative;
        padding: var(--spacing-sm);
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-sm) 0 0 0;
        text-align: center;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        display: block;
        padding: var(--spacing-sm);
        border-bottom: 1px solid var(--border-color);
    }

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

    /* Hero */
    .hero-section {
        padding: var(--spacing-lg) var(--spacing-md);
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Features */
    .features-section {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .section-title {
        font-size: 1.5rem;
    }

    .features-row {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .feature-item {
        width: 100%;
    }

    /* Worship */
    .worship-section {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .worship-content {
        grid-template-columns: 1fr;
    }

    .worship-buttons {
        flex-direction: column;
    }

    .worship-buttons .btn {
        width: 100%;
    }

    /* CTA */
    .cta-section {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .cta-title {
        font-size: 1.5rem;
    }

    /* Footer */
    .site-footer {
        padding: var(--spacing-md);
        font-size: 0.85rem;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .features-row {
        gap: var(--spacing-md);
    }

    .feature-item {
        padding: var(--spacing-sm);
    }
}
