/* /app/static/significantstories_com/css/home.css */
/* Homepage-specific styles */

/* --- Hero Section --- */
.hero {
    position: relative;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

/* --- Hero Logo Background --- */
.hero-logo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
    padding: 0.25rem;
    padding-left: 20%;
}

.hero-logo .site-logo {
    max-width: 600px;
    max-height: 100%;
    width: auto;
    height: auto;
}

.hero-logo .logo-star {
    /* Start faint blue, will animate to gold after flourish completes */
    fill: #3498db;
    opacity: 0.08;
    transition: opacity 1.2s ease-out, fill 1.2s ease-out;
}

.hero-logo .logo-star.animate-to-gold {
    fill: #d4a537;
    opacity: 0.35;
}

.hero-logo .logo-flourish {
    /* Reveal animation from bottom to top using clip-path */
    fill: #3498db;
    opacity: 0.08;
    clip-path: inset(100% 0 0 0);
    animation: reveal-flourish 2s ease-out 0.3s forwards;
}

@keyframes reveal-flourish {
    from {
        clip-path: inset(100% 0 0 0); /* Hidden - clipped from top */
    }
    to {
        clip-path: inset(0 0 0 0); /* Fully visible */
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-logo .logo-flourish {
        animation: none;
        clip-path: none;
    }
    .hero-logo .logo-star {
        transition: none;
        fill: #d4a537;
        opacity: 0.35;
    }
}

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

.hero-title {
    font-family: var(--serif-font);
    font-size: 3rem;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.hero-tagline {
    font-size: 1.25rem;
    color: #5a6a7a;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(52, 152, 219, 0.35);
}

.hero-cta:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.45);
    text-decoration: none;
    color: white;
}

/* --- Home Features Section --- */
.home-features {
    padding: 3rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.home-features-title {
    font-family: var(--serif-font);
    font-size: 1.75rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.feature-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background-color: #e8f4fc;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card-icon svg {
    width: 28px;
    height: 28px;
    stroke: #3498db;
}

.feature-card-title {
    font-family: var(--serif-font);
    font-size: 1.15rem;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.feature-card-text {
    font-size: 0.95rem;
    color: #5a6a7a;
    margin: 0;
    line-height: 1.5;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1.5rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

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

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

    .home-features {
        padding: 2rem 1rem;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }
}
