/* ==========================================================================
   ECG ROOTS — SUSTAINABILITY PAGE STYLES
   Using Core Website Palette & Shared Typography
   Scoped strictly to .sustainability-roots-page content
   ========================================================================== */

.sustainability-roots-page {
    font-family: 'Outfit', sans-serif;
    color: var(--dark-text, #1a2224);
    background-color: #ffffff;
}

/* Base Section Padding: 80px top/bottom, 20px horizontal */
section {
    padding: 90px 20px;
}

/* Specific H2 Color Overrides per section background */
.roots-metrics-title,
.roots-closing-title {
    color: var(--white);
}

/* Shared Card H3 Styles for Roots Page panels */
.roots-panel-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 10px;
}

/* Note: Universal banner section (.page-banner) is now defined globally in style.css */

/* --------------------------------------------------------------------------
   2. OPENING STATEMENT SECTION
   -------------------------------------------------------------------------- */
.roots-opening-section {
    background-color: #ffffff;
}

.roots-opening-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.roots-opening-lead {
    margin: 0;
    padding-top: 8px;
}

/* --------------------------------------------------------------------------
   3. METRICS BAND SECTION
   -------------------------------------------------------------------------- */
.roots-metrics-section {
    background-color: #062434;
    color: #ffffff;
}

.roots-metrics-header {
    margin-bottom: 50px;
}

.roots-metrics-header .roots-eyebrow {
    color: #21b8c9;
}

.roots-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.roots-metric-card {
    display: flex;
    flex-direction: column;
}

.roots-metric-number {
    font-size: 50px;
    font-weight: 700;
    color: #21b8c9;
    line-height: 1.1;
    margin-bottom: 12px;
}

.roots-metric-label {
    font-size: 0.95rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.roots-metrics-footnote {
    margin-top: 40px;
    font-size: 1.1rem;
    font-style: italic;
    color: #b8e9ef;
    font-weight: 300;
}

/* --------------------------------------------------------------------------
   4. NOURISHROOTS SECTION
   -------------------------------------------------------------------------- */
.roots-nourish-section {
    background-color: #f5f8fa;
}

.roots-nourish-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.roots-nourish-media {
    width: 100%;
}

.roots-nourish-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(6, 36, 52, 0.1);
}

.roots-nourish-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.roots-nourish-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #062434;
    color: #ffffff;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 30px;
    border: 1px solid rgba(33, 184, 201, 0.4);
}

.roots-nourish-content .roots-eyebrow {
    color: #3284af;
}

.roots-nourish-desc {
    margin-bottom: 30px;
}

.roots-nourish-proofs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(6, 36, 52, 0.15);
    border-bottom: 1px solid rgba(6, 36, 52, 0.15);
    padding: 24px 0;
    margin-top: 35px;
}

.proof-item {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    border-right: 1px solid rgba(6, 36, 52, 0.15);
}

.proof-item:first-child {
    padding-left: 0;
}

.proof-item:last-child {
    border-right: none;
    padding-right: 0;
}

.proof-value {
    font-size: 38px;
    font-weight: 500;
    color: #062434;
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: normal;
}

.proof-sub {
    font-size: 14px;
    color: #586c60;
    line-height: 1.3;
}

/* --------------------------------------------------------------------------
   5. ACROSS THE VALUE CHAIN SECTION
   -------------------------------------------------------------------------- */
.roots-chain-section {
    background-color: #ffffff;
}

.roots-chain-header {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: flex-end;
    margin-bottom: 60px;
}

.roots-chain-header .roots-eyebrow {
    color: #3284af;
}

.roots-chain-lead {
    margin: 0;
}

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

.roots-panel-card {
    position: relative;
    height: 440px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 12px 35px rgba(6, 36, 52, 0.12);
}

.roots-panel-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.roots-panel-card:hover .roots-panel-bg {
    transform: scale(1.05);
}

.roots-panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 36, 52, 0.95) 0%, rgba(6, 36, 52, 0.5) 50%, rgba(6, 36, 52, 0.05) 100%);
}

.roots-panel-body {
    position: relative;
    z-index: 2;
    padding: 28px 24px;
}

.roots-panel-tag {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #21b8c9;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.roots-panel-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    margin: 0;
}

/* --------------------------------------------------------------------------
   6. THE ECG STANDARD SECTION
   -------------------------------------------------------------------------- */
.roots-standard-section {
    background-color: #f5f8fa;
    border-top: 1px solid rgba(6, 36, 52, 0.08);
    border-bottom: 1px solid rgba(6, 36, 52, 0.08);
}

.roots-standard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.roots-standard-desc {
    margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   7. CLOSING SECTION
   -------------------------------------------------------------------------- */
.roots-closing-section {
    background-color: #062434;
    color: #ffffff;
    text-align: center;
}

.roots-closing-content {
    max-width: 800px;
    margin: 0 auto;
}

.roots-closing-desc {
    font-size: 1.15rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.roots-gold-btn {
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 34px;
    background: #1cb5c8;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(28, 181, 200, 0.25);
    transition: all 0.3s ease;
}

.roots-gold-btn:hover {
    background: #179ea7;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(28, 181, 200, 0.45);
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .roots-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 992px) {

    .roots-opening-grid,
    .roots-nourish-grid,
    .roots-chain-header,
    .roots-standard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .roots-chain-panels {
        grid-template-columns: 1fr;
    }

    .roots-panel-card {
        height: 380px;
    }

    .roots-opening-title,
    .roots-metrics-title,
    .roots-nourish-title,
    .roots-chain-title,
    .roots-standard-title,
    .roots-closing-title {
        font-size: 35px !important;
    }
}

@media (max-width: 600px) {
    section {
        padding: 60px 20px;
    }

    .roots-metrics-header {
        margin-bottom: 20px;
    }

    .roots-metric-number {
        font-size: 38px;
    }

    .roots-metrics-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .roots-nourish-img {
        height: 280px;
    }

    .roots-nourish-proofs {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px 0;
    }

    .proof-item {
        padding: 0;
        border-right: none;
        border-bottom: 1px solid rgba(6, 36, 52, 0.1);
        padding-bottom: 12px;
    }

    .proof-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .proof-value {
        font-size: 30px;
    }

    .roots-panel-card {
        height: 320px;
    }

    .roots-closing-desc {
        font-size: 1rem;
    }

    /* Fallback for animation class */
    .roots-animate-fade {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* --------------------------------------------------------------------------
   8. PAGE ANIMATIONS & INTERACTIVE TRANSITIONS
   -------------------------------------------------------------------------- */

/* Hero Banner Entry Keyframe Animations */
.roots-banner-eyebrow {
    animation: fadeInDown 0.8s ease forwards;
}

.roots-banner-headline {
    animation: fadeInUp 0.9s ease 0.2s forwards;
    opacity: 0;
}

.roots-banner-content .page-banner-breadcrumb {
    animation: fadeInUp 0.9s ease 0.4s forwards;
    opacity: 0;
}

/* Banner Animations defined globally in style.css */

/* Smooth Scroll Reveal Animations */

/* Stagger delays for grid cards */
.roots-metrics-grid .roots-metric-card:nth-child(1) {
    transition-delay: 0.1s;
}

.roots-metrics-grid .roots-metric-card:nth-child(2) {
    transition-delay: 0.2s;
}

.roots-metrics-grid .roots-metric-card:nth-child(3) {
    transition-delay: 0.3s;
}

.roots-metrics-grid .roots-metric-card:nth-child(4) {
    transition-delay: 0.4s;
}

.roots-chain-panels .roots-panel-card:nth-child(1) {
    transition-delay: 0.1s;
}

.roots-chain-panels .roots-panel-card:nth-child(2) {
    transition-delay: 0.2s;
}

.roots-chain-panels .roots-panel-card:nth-child(3) {
    transition-delay: 0.3s;
}

/* Interactive Hover Animations (Instant hover response) */
.roots-metric-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.roots-metric-card:hover {
    transition-delay: 0s !important;
    transform: translateY(-6px);
}

.roots-nourish-img-wrapper {
    overflow: hidden;
}

.roots-nourish-img {
    transition: transform 0.4s ease;
}

.roots-nourish-img-wrapper:hover .roots-nourish-img {
    transition-delay: 0s !important;
    transform: scale(1.05);
}

.roots-panel-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.roots-panel-card .roots-panel-bg {
    transition: transform 0.35s ease;
}

.roots-panel-card:hover {
    transition-delay: 0s !important;
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(6, 36, 52, 0.3);
}

.roots-panel-card:hover .roots-panel-bg {
    transition-delay: 0s !important;
    transform: scale(1.06);
}