/* recycle.report - Styles */
/* Evolved-minimal recycling dashboard aesthetic */

:root {
    /* Palette - Warm Materials */
    --coral-primary: #e07856;
    --sand-light: #f5efe8;
    --bark-deep: #3d2e24;
    --moss-accent: #7a9e6b;
    --amber-glass: #d4a854;
    --cardboard-mid: #c4a882;
    --cream-hover: #faf6f0;
    --charcoal-subtle: #5c4a3e;
    --divider: #e0d5c8;

    /* Spacing - 4px base */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 32px;

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--sand-light);
    color: var(--bark-deep);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Grid Container */
.section__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section__heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
    color: var(--bark-deep);
    margin-bottom: calc(var(--space-8) * 2);
    text-align: center;
}

/* ================================
   HERO SECTION
   ================================ */
.section--hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: calc(var(--space-8) * 4) var(--space-6);
}

.hero__bg-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 800px;
    pointer-events: none;
    z-index: 0;
}

.hero__ripples {
    width: 100%;
    height: auto;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
}

.hero__cycle-arrow {
    width: 200px;
    height: 200px;
}

.cycle-arrow-svg {
    width: 100%;
    height: 100%;
    animation: spin 20s linear infinite;
}

.cycle-arrow-svg--small {
    width: 48px;
    height: 48px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero__isometric {
    perspective: 600px;
}

.iso-container {
    display: flex;
    gap: 40px;
    align-items: flex-end;
    justify-content: center;
    transform: rotateX(15deg) rotateY(-10deg);
    transform-style: preserve-3d;
}

.iso-box {
    width: 60px;
    height: 80px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(60deg) rotateZ(-45deg);
}

.iso-face {
    position: absolute;
    border: 1px solid var(--cardboard-mid);
}

.iso-face--top {
    width: 60px;
    height: 60px;
    top: 0;
    left: 0;
    transform: rotateX(90deg) translateZ(40px);
}

.iso-face--front {
    width: 60px;
    height: 80px;
    top: 0;
    left: 0;
}

.iso-face--right {
    width: 60px;
    height: 80px;
    top: 0;
    right: -30px;
    transform: rotateY(90deg);
}

/* Bottle colors */
.iso-box--bottle .iso-face--top { background: rgba(224, 120, 86, 0.4); }
.iso-box--bottle .iso-face--front { background: rgba(224, 120, 86, 0.6); }
.iso-box--bottle .iso-face--right { background: rgba(224, 120, 86, 0.3); }

/* Paper colors */
.iso-box--paper .iso-face--top { background: rgba(212, 168, 84, 0.4); }
.iso-box--paper .iso-face--front { background: rgba(212, 168, 84, 0.6); }
.iso-box--paper .iso-face--right { background: rgba(212, 168, 84, 0.3); }

/* Glass colors */
.iso-box--glass .iso-face--top { background: rgba(122, 158, 107, 0.4); }
.iso-box--glass .iso-face--front { background: rgba(122, 158, 107, 0.6); }
.iso-box--glass .iso-face--right { background: rgba(122, 158, 107, 0.3); }

.hero__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    letter-spacing: -0.03em;
    color: var(--bark-deep);
    line-height: 1.1;
}

.hero__subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--charcoal-subtle);
    letter-spacing: 0.005em;
    max-width: 400px;
}

.hero__chevron {
    position: absolute;
    bottom: calc(var(--space-8) * 2);
    left: 50%;
    transform: translateX(-50%);
    animation: chevronPulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes chevronPulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.6; }
    50% { transform: translateX(-50%) scale(1.2); opacity: 1; }
}

/* ================================
   MATERIAL FLOW SECTION
   ================================ */
.section--material-flow {
    padding: calc(var(--space-8) * 4) 0;
    overflow: hidden;
}

.lane {
    position: relative;
    padding: calc(var(--space-8) * 2) 0;
    border-bottom: 1px solid var(--divider);
    overflow: hidden;
}

.lane:last-child {
    border-bottom: none;
}

.lane--plastic {
    background: rgba(224, 120, 86, 0.06);
}

.lane--paper {
    background: rgba(212, 168, 84, 0.06);
}

.lane--glass {
    background: rgba(122, 158, 107, 0.06);
}

.lane__label {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal-subtle);
    position: absolute;
    top: var(--space-6);
    left: var(--space-6);
    z-index: 2;
}

.lane__track {
    display: flex;
    gap: 0;
    width: 100%;
    height: 80px;
    position: relative;
}

.lane__item {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.iso-icon {
    width: 48px;
    height: auto;
}

/* Drift animations */
.lane__item--1 {
    animation: drift 18s linear infinite;
    animation-delay: 0s;
}

.lane__item--2 {
    animation: drift 22s linear infinite;
    animation-delay: -6s;
}

.lane__item--3 {
    animation: drift 26s linear infinite;
    animation-delay: -12s;
}

@keyframes drift {
    from { transform: translateY(-50%) translateX(-100px); }
    to { transform: translateY(-50%) translateX(calc(100vw + 100px)); }
}

/* ================================
   DATA NARRATIVE SECTION
   ================================ */
.section--data-narrative {
    padding: calc(var(--space-8) * 4) var(--space-6);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.narrative__column {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--space-8) * 2);
}

.narrative__statement {
    text-align: center;
}

.narrative__statement.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.narrative__statement.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.narrative__numeral {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--coral-primary);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: var(--space-4);
}

.narrative__text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--charcoal-subtle);
    line-height: 1.7;
    letter-spacing: 0.005em;
}

.narrative__separator {
    display: flex;
    align-items: center;
    justify-content: center;
}

.iso-separator {
    width: 40px;
    height: 40px;
    opacity: 0.7;
}

/* ================================
   BUBBLE VISUALIZATION SECTION
   ================================ */
.section--bubbles {
    padding: calc(var(--space-8) * 4) var(--space-6);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bubble-field {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-6);
    max-width: 900px;
    margin: 0 auto;
    justify-items: center;
    align-items: center;
}

.bubble {
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(61, 46, 36, 0.08);
    position: relative;
    text-align: center;
    padding: var(--space-4);
}

.bubble:hover {
    transform: scale(1.15);
}

.bubble__label {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bark-deep);
    opacity: 0;
    transition: opacity 300ms ease;
    line-height: 1.3;
}

.bubble__percent {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--bark-deep);
    opacity: 0;
    transition: opacity 300ms ease;
}

.bubble:hover .bubble__label,
.bubble:hover .bubble__percent {
    opacity: 1;
}

.bubble--active {
    transform: scale(1.15);
}

.bubble--active .bubble__label,
.bubble--active .bubble__percent {
    opacity: 1;
}

/* Bubble sizes */
.bubble--large {
    width: 180px;
    height: 180px;
}

.bubble--medium {
    width: 130px;
    height: 130px;
}

.bubble--small {
    width: 90px;
    height: 90px;
}

.bubble--small .bubble__label {
    font-size: 0.5rem;
}

.bubble--small .bubble__percent {
    font-size: 0.9rem;
}

/* Bubble colors by material */
.bubble:nth-child(1) { background: rgba(212, 168, 84, 0.25); border: 2px solid var(--amber-glass); }
.bubble:nth-child(2) { background: rgba(224, 120, 86, 0.2); border: 2px solid var(--coral-primary); }
.bubble:nth-child(3) { background: rgba(122, 158, 107, 0.2); border: 2px solid var(--moss-accent); }
.bubble:nth-child(4) { background: rgba(122, 158, 107, 0.15); border: 2px solid var(--moss-accent); }
.bubble:nth-child(5) { background: rgba(92, 74, 62, 0.12); border: 2px solid var(--charcoal-subtle); }
.bubble:nth-child(6) { background: rgba(224, 120, 86, 0.15); border: 2px solid var(--coral-primary); }
.bubble:nth-child(7) { background: rgba(196, 168, 130, 0.2); border: 2px solid var(--cardboard-mid); }
.bubble:nth-child(8) { background: rgba(92, 74, 62, 0.1); border: 2px solid var(--charcoal-subtle); }
.bubble:nth-child(9) { background: rgba(196, 168, 130, 0.15); border: 2px solid var(--cardboard-mid); }

/* ================================
   FOOTER SECTION
   ================================ */
.section--footer {
    min-height: 50vh;
    background-color: var(--bark-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--space-8) * 3) var(--space-6);
}

.footer__content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

.footer__cycle-arrow {
    width: 48px;
    height: 48px;
}

.footer__cycle-arrow .cycle-arrow-svg {
    width: 48px;
    height: 48px;
}

.footer__domain {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cardboard-mid);
}

.footer__philosophy {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--charcoal-subtle);
    max-width: 420px;
    line-height: 1.7;
}

/* ================================
   DECORATIVE CIRCLES
   ================================ */
.deco-circle {
    position: fixed;
    border-radius: 50%;
    background: var(--moss-accent);
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.deco-circle--1 {
    width: 12px;
    height: 12px;
    top: 15%;
    left: 5%;
}

.deco-circle--2 {
    width: 8px;
    height: 8px;
    top: 35%;
    right: 8%;
}

.deco-circle--3 {
    width: 16px;
    height: 16px;
    top: 55%;
    left: 3%;
}

.deco-circle--4 {
    width: 10px;
    height: 10px;
    top: 72%;
    right: 4%;
}

.deco-circle--5 {
    width: 14px;
    height: 14px;
    top: 88%;
    left: 7%;
}

/* ================================
   RESPONSIVE - MOBILE FIRST
   ================================ */
@media (max-width: 768px) {
    .iso-container {
        gap: 20px;
    }

    .iso-box {
        width: 40px;
        height: 60px;
    }

    .iso-face--top {
        width: 40px;
        height: 40px;
        transform: rotateX(90deg) translateZ(30px);
    }

    .iso-face--front {
        width: 40px;
        height: 60px;
    }

    .iso-face--right {
        width: 40px;
        height: 60px;
        right: -20px;
    }

    .hero__cycle-arrow {
        width: 140px;
        height: 140px;
    }

    .bubble-field {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: var(--space-4);
    }

    .bubble--large {
        width: 140px;
        height: 140px;
    }

    .bubble--medium {
        width: 100px;
        height: 100px;
    }

    .bubble--small {
        width: 70px;
        height: 70px;
    }

    .lane__track {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .bubble-field {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .bubble {
        border-radius: var(--space-3);
        width: 100% !important;
        height: auto !important;
        padding: var(--space-6);
        flex-direction: row;
        gap: var(--space-4);
    }

    .bubble__label,
    .bubble__percent {
        opacity: 1;
    }

    .bubble__percent {
        font-size: 1.4rem;
    }

    .bubble__label {
        font-size: 0.7rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cycle-arrow-svg {
        animation: none;
    }

    .lane__item--1,
    .lane__item--2,
    .lane__item--3 {
        animation: none;
        position: relative;
        transform: none;
    }

    .hero__chevron {
        animation: none;
    }

    .narrative__statement.fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .bubble {
        transition: none;
    }
}