/* Selah — Chapel Foyer Aesthetic */

:root {
    --bg: #faf9f7;
    --bg-alt: #f3f1ed;
    --text: #2c2c2c;
    --text-soft: #5a5a5a;
    --text-muted: #8a8a8a;
    --accent: #7d6b5d;
    --accent-light: #a89b8c;
    --white: #ffffff;
}

/* Dark Mode */
body.dark-mode {
    --bg: #1a1a1a;
    --bg-alt: #242424;
    --text: #e8e6e3;
    --text-soft: #b5b3b0;
    --text-muted: #7a7876;
    --accent: #a89b8c;
    --accent-light: #7d6b5d;
    --white: #2c2c2c;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-alt);
    border: 1px solid var(--text-muted);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 100;
}

.theme-toggle:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.theme-toggle:hover .icon {
    filter: brightness(1.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    position: relative;
    /* For pseudo-element absolute positioning */
}

/* Background Overlay Cross (Truly in the back) */
.bg-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vmin;
    height: 60vmin;
    background-image: url('cross-bg.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.05;
    /* Extremely subtle 5% */
    z-index: -1;
    /* Behind everything */
    pointer-events: none;
}

/* Polished Dark Mode Visibility */
body.dark-mode .bg-overlay {
    filter: invert(1);
    opacity: 0.03;
}

/* Ensure backgrounds are semi-transparent so the cross shows through */
.hero,
.section,
footer {
    background-color: transparent !important;
}

.section.alt,
footer {
    background-color: rgba(0, 0, 0, 0.02) !important;
    /* Extremely faint tint for 'alt' sections */
}

body.dark-mode .section.alt,
body.dark-mode footer {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Removed linear gradient as it's opaque */
}

.hero h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 4.5rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.hero-logo {
    width: 180px;
    height: auto;
    margin-bottom: 1.5rem;
}

.hero .tagline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-soft);
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section.alt {
    background-color: var(--bg-alt);
}

.section h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 1.5rem;
    text-align: center;
}

.section p {
    color: var(--text-soft);
    text-align: center;
    margin-bottom: 1rem;
}

.section p:last-child {
    margin-bottom: 0;
}

/* Hebrew */
.hebrew {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 3rem;
    text-align: center;
    color: var(--accent-light);
    margin-bottom: 0.5rem;
}

/* Feature List */
.feature-list {
    list-style: none;
    max-width: 320px;
    margin: 0 auto 2rem;
}

.feature-list li {
    color: var(--text-soft);
    padding: 0.5rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-list li:last-child {
    border-bottom: none;
}

.closing-thought {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--accent);
    margin-top: 1.5rem;
}

/* Support Section */
.section.support {
    background-color: var(--bg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.section.support p {
    font-size: 0.95rem;
}

.section.support .note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.support-btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent);
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.support-btn:hover {
    background-color: var(--accent-light);
}

/* Ko-fi Widget Container */
.kofi-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

/* Dark mode filter for Ko-fi widget */
body.dark-mode .kofi-container iframe {
    filter: invert(0.9) hue-rotate(180deg);
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    background-color: var(--bg-alt);
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero .tagline {
        font-size: 1.25rem;
    }

    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 1.5rem;
    }
}