/* ==========================================================================
   recycle.reviews — Evolved-Minimal Earthy Review
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.9;
    color: #4A3828;
    background-color: #FAF4EA;
    overflow-x: hidden;
}

/* --- Marble Texture Background ---
   Layered radial-gradient in warm-cream tones at 3% opacity */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(138,104,56,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(138,104,56,0.025) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 80%, rgba(176,136,80,0.02) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 60%, rgba(106,90,72,0.02) 0%, transparent 40%),
        radial-gradient(ellipse at 30% 30%, rgba(138,104,56,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 90%, rgba(176,136,80,0.015) 0%, transparent 60%);
}

/* --- Review Sections (Full-Bleed) --- */
.review-section {
    position: relative;
    width: 100vw;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(60px, 10vh, 120px) 0;
    /* Slide-reveal: start off-screen right */
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.review-section.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Alternating section backgrounds for linen variation */
.review-section:nth-child(even) {
    background-color: #FFF8EE;
}

.review-section:nth-child(odd) {
    background-color: #FAF4EA;
}

/* --- Section Content Container --- */
.section-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    width: 100%;
    padding: 0 clamp(24px, 5vw, 80px);
}

/* --- City-Urban Divider SVGs --- */
.city-urban-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.city-urban-divider svg {
    width: 100%;
    height: 100%;
    fill: #6A5A48;
    opacity: 0.04;
}

/* Hero-specific city divider is taller */
#city-divider-hero {
    height: 120px;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    justify-content: center;
    text-align: center;
}

.site-title {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: clamp(2.8rem, 6vw, 5rem);
    color: #1A1408;
    letter-spacing: 0.08em;
    line-height: 1.15;
    margin-bottom: 28px;
}

.site-tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: #6A5A48;
    line-height: 1.8;
    max-width: 540px;
    margin: 0 auto 60px;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

.scroll-text {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 0.7rem;
    color: #B08850;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, #B08850, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Review Header --- */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(176,136,80,0.2);
}

.review-category {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 0.72rem;
    color: #8A6838;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.review-date {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #6A5A48;
}

/* --- Review Title --- */
.review-title {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    color: #1A1408;
    line-height: 1.2;
    margin-bottom: 30px;
}

/* --- Review Score Block --- */
.review-score-block {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 40px;
}

.review-score {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: #8A6838;
    line-height: 1;
}

.review-score-label {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: #B08850;
}

/* --- Review Body --- */
.review-body p {
    margin-bottom: 24px;
    color: #4A3828;
}

.review-body p:last-child {
    margin-bottom: 40px;
}

/* --- Review Verdict --- */
.review-verdict {
    border-top: 2px solid #8A6838;
    padding-top: 24px;
    margin-top: 10px;
}

.verdict-label {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 0.72rem;
    color: #8A6838;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 12px;
}

.verdict-text {
    font-family: 'Merriweather', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: #1A1408;
    line-height: 1.75;
    font-style: italic;
}

/* --- Footer Section --- */
.footer-section {
    min-height: 50vh;
    text-align: center;
    background-color: #1A1408;
}

.footer-section .section-content {
    max-width: 600px;
}

.footer-brand {
    margin-bottom: 40px;
}

.footer-title {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #FAF4EA;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.footer-description {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: #B08850;
    line-height: 1.8;
}

.footer-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-item {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 0.65rem;
    color: #6A5A48;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-separator {
    color: #6A5A48;
    font-size: 0.8rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .review-section {
        min-height: auto;
        padding: clamp(40px, 8vh, 80px) 0;
    }

    .hero-section {
        min-height: 100vh;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .footer-meta {
        flex-direction: column;
        gap: 8px;
    }

    .footer-separator {
        display: none;
    }

    .site-title {
        letter-spacing: 0.04em;
    }
}

/* --- Stagger children within revealed sections --- */
.review-section.revealed .review-header,
.review-section.revealed .review-title,
.review-section.revealed .review-score-block,
.review-section.revealed .review-body,
.review-section.revealed .review-verdict {
    animation: fadeUp 600ms ease-out both;
}

.review-section.revealed .review-header { animation-delay: 100ms; }
.review-section.revealed .review-title { animation-delay: 200ms; }
.review-section.revealed .review-score-block { animation-delay: 300ms; }
.review-section.revealed .review-body { animation-delay: 400ms; }
.review-section.revealed .review-verdict { animation-delay: 500ms; }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Initial state for staggered children */
.review-section .review-header,
.review-section .review-title,
.review-section .review-score-block,
.review-section .review-body,
.review-section .review-verdict {
    opacity: 0;
}

/* Hero children don't need stagger, they animate with section */
.hero-section .site-title,
.hero-section .site-tagline,
.hero-section .scroll-indicator {
    opacity: 0;
}

.hero-section.revealed .site-title,
.hero-section.revealed .site-tagline,
.hero-section.revealed .scroll-indicator {
    animation: fadeUp 700ms ease-out both;
}

.hero-section.revealed .site-title { animation-delay: 100ms; }
.hero-section.revealed .site-tagline { animation-delay: 300ms; }
.hero-section.revealed .scroll-indicator { animation-delay: 500ms; }

/* Footer children */
.footer-section .footer-brand,
.footer-section .footer-meta {
    opacity: 0;
}

.footer-section.revealed .footer-brand,
.footer-section.revealed .footer-meta {
    animation: fadeUp 700ms ease-out both;
}

.footer-section.revealed .footer-brand { animation-delay: 100ms; }
.footer-section.revealed .footer-meta { animation-delay: 300ms; }

/* --- Score counter animation --- */
.review-score {
    transition: opacity 300ms ease;
}

/* --- Marble vein accent lines --- */
.review-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(138,104,56,0.08) 20%,
        rgba(138,104,56,0.12) 50%,
        rgba(138,104,56,0.08) 80%,
        transparent
    );
    pointer-events: none;
}

.footer-section::after {
    display: none;
}
