/* ==========================================================================
   recycle.report — Seapunk Vintage Harbor Stylesheet
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    line-height: 1.85;
    color: #384048;
    background-color: #F6F2EA;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Ocean Wave SVG Pattern (Full-page background) --- */
.wave-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- City Skyline SVG (Fixed bottom background) --- */
.city-skyline {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 0;
    pointer-events: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

#hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(40px, 8vh, 80px) clamp(24px, 5vw, 80px);
}

.hero-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: #607880;
    border: 1px solid rgba(96, 120, 128, 0.25);
    padding: 6px 18px;
    margin-bottom: 32px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.hero-title {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: #182028;
    letter-spacing: 0.08em;
    line-height: 1.2;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.title-dot {
    color: #607880;
}

.hero-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.8rem, 0.95vw, 0.9rem);
    color: #607880;
    line-height: 1.9;
    max-width: 580px;
    margin: 0 auto 48px;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
}

/* --- Hero Statistics Cards --- */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
}

.stat-card {
    background: #FBF8F2;
    border: 1px solid rgba(96, 120, 128, 0.12);
    padding: 28px 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: border-color 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(96, 120, 128, 0.35);
}

.stat-icon {
    margin-bottom: 8px;
    opacity: 0.7;
}

.stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    color: #182028;
    line-height: 1.1;
}

.stat-unit {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: #607880;
}

.stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: 0.7rem;
    color: #6A6A78;
    letter-spacing: 0.05em;
}

/* --- Scroll Indicator --- */
.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.2s forwards;
}

.scroll-text {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: #90A8B0;
}

.scroll-arrow {
    animation: scrollBounce 2s ease-in-out infinite;
}

/* ==========================================================================
   REPORT SECTIONS (shared)
   ========================================================================== */

.report-section {
    position: relative;
    z-index: 1;
    padding: clamp(40px, 8vh, 80px) clamp(24px, 5vw, 80px);
}

.report-section-alt {
    background: rgba(251, 248, 242, 0.7);
}

.section-inner {
    max-width: 800px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: #90A8B0;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: #182028;
    letter-spacing: 0.04em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.8rem, 0.95vw, 0.9rem);
    color: #607880;
    line-height: 1.85;
    max-width: 600px;
}

/* ==========================================================================
   SECTION 01: Material Recovery Breakdown
   ========================================================================== */

.breakdown-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.breakdown-item {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.breakdown-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.breakdown-bar-wrapper {
    margin-bottom: 8px;
}

.breakdown-bar {
    height: 6px;
    background: rgba(96, 120, 128, 0.08);
    position: relative;
    overflow: hidden;
}

.bar-fill {
    display: block;
    height: 100%;
    background: #607880;
    width: 0;
    transition: width 1.2s ease-out;
}

.breakdown-item.visible .bar-fill {
    width: var(--bar-width);
}

.breakdown-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.breakdown-label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.8rem, 0.95vw, 0.9rem);
    color: #182028;
}

.breakdown-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    color: #607880;
}

.breakdown-tonnage {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: 0.7rem;
    color: #90A8B0;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   SECTION 02: Environmental Impact
   ========================================================================== */

.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.impact-card {
    background: #FBF8F2;
    border: 1px solid rgba(96, 120, 128, 0.1);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, border-color 0.3s ease;
}

.impact-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.impact-card:hover {
    border-color: rgba(96, 120, 128, 0.3);
}

.impact-icon {
    margin-bottom: 8px;
    opacity: 0.8;
}

.impact-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    color: #182028;
    line-height: 1.1;
}

.impact-unit {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: #607880;
}

.impact-label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.75rem;
    color: #384048;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.impact-detail {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: 0.7rem;
    color: #6A6A78;
    line-height: 1.7;
    margin-top: 4px;
}

/* ==========================================================================
   SECTION 03: Urban Infrastructure
   ========================================================================== */

.infra-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.infra-item {
    padding: 28px 20px;
    border: 1px solid rgba(96, 120, 128, 0.08);
    background: #FBF8F2;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, border-color 0.3s ease;
}

.infra-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.infra-item:hover {
    border-color: rgba(96, 120, 128, 0.3);
}

.infra-number {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    color: #182028;
    line-height: 1.1;
    margin-bottom: 6px;
}

.infra-label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: #607880;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.infra-detail {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: 0.7rem;
    color: #6A6A78;
    line-height: 1.7;
}

/* ==========================================================================
   SECTION 04: Quarterly Trends Table
   ========================================================================== */

.trends-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.trends-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'JetBrains Mono', monospace;
}

.trends-table thead th {
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: #90A8B0;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid rgba(96, 120, 128, 0.15);
}

.trends-table tbody tr {
    border-bottom: 1px solid rgba(96, 120, 128, 0.08);
    transition: background-color 0.2s ease;
}

.trends-table tbody tr:hover {
    background-color: rgba(96, 120, 128, 0.03);
}

.trends-table tbody td {
    padding: 14px 16px;
    font-size: 0.8rem;
    color: #384048;
    font-weight: 400;
}

.mono-data {
    font-weight: 700;
    color: #182028;
}

.trend-up {
    color: #4a8060;
    font-weight: 700;
}

.trend-neutral {
    color: #90A8B0;
    font-weight: 400;
}

.status-badge {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    padding: 3px 10px;
    text-transform: uppercase;
}

.status-exceeds {
    color: #4a8060;
    background: rgba(74, 128, 96, 0.08);
    border: 1px solid rgba(74, 128, 96, 0.2);
}

.status-meets {
    color: #607880;
    background: rgba(96, 120, 128, 0.08);
    border: 1px solid rgba(96, 120, 128, 0.2);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

#report-footer {
    position: relative;
    z-index: 1;
    padding: clamp(40px, 6vh, 60px) clamp(24px, 5vw, 80px);
    border-top: 1px solid rgba(96, 120, 128, 0.12);
}

.footer-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-title {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1rem;
    color: #182028;
    letter-spacing: 0.08em;
}

.footer-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: 0.7rem;
    color: #90A8B0;
    letter-spacing: 0.05em;
}

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

.footer-item {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 0.65rem;
    color: #6A6A78;
    letter-spacing: 0.05em;
}

.footer-legal {
    padding-top: 16px;
    border-top: 1px solid rgba(96, 120, 128, 0.08);
}

.footer-copyright {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: 0.6rem;
    color: #90A8B0;
    letter-spacing: 0.03em;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

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

    .trends-table thead th,
    .trends-table tbody td {
        padding: 10px 10px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        letter-spacing: 0.04em;
    }

    .section-title {
        letter-spacing: 0.02em;
    }
}
