:root {
    --bg: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --accent: #8b1d1d;
    --border: #e5e7eb;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto;
    background: var(--bg);
    color: var(--text);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.brand {
    font-weight: 600;
}

.parent-link {
    font-size: 0.9rem;
    color: var(--muted);
    text-decoration: none;
}

/* Hero */
.hero {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.hero-text p {
    max-width: 480px;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 2rem;
}

.accent {
    color: var(--accent);
}

.cta-button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    opacity: 0.85;
}

/* Luther Rose */
.hero-emblem {
    display: flex;
    justify-content: center;
}

.rose-wrapper {
    position: relative;
    width: clamp(240px, 32vw, 360px);
    height: clamp(240px, 32vw, 360px);
    animation: gentle-bounce 6s ease-in-out infinite;
}

.luther-rose {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
}

/* Proper cross-fade */
.rose-one {
    animation: crossfade-one 14s infinite;
}

.rose-two {
    animation: crossfade-two 14s infinite;
}

@keyframes crossfade-one {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    40% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

@keyframes crossfade-two {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    60% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Foundations */
.foundations {
    padding: 5rem 0;
    border-top: 1px solid var(--border);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.card {
    text-align: center;
}

.card img {
    width: 100%;
    max-width: 160px;
    margin-bottom: 1.25rem;
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.card button {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    color: var(--muted);
}

/* Scroll reveal */
.card {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .rose-wrapper {
        animation: none;
    }

    .card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Animations */
@keyframes gentle-bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

/* Mobile */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

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