/* ==========================================================
   INDO NATURA EXPORTER
   SUSTAINABILITY.CSS
   Ultimate Premium ESG & Eco-Export Design
   Version: 2.0 (Fully Refined)
========================================================== */

/*=========================
ROOT VARIABLES
=========================*/
:root {
    --green: #0F3D2E;
    --green2: #145A32;
    --green3: #1F8A55;
    --light: #F8FAF9;
    --gold: #D4AF37;
    --gold2: #C89B3C;
    --white: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;

    --shadow: 0 20px 50px rgba(15, 61, 46, 0.07);
    --shadow-hover: 0 30px 60px rgba(15, 61, 46, 0.15);
    --gold-glow: 0 0 20px rgba(212, 175, 55, 0.3);
    --radius: 24px;
}

/*=========================
GLOBAL SECTION STYLING
=========================*/
.sustainability-section {
    position: relative;
    overflow: hidden;
    background: #fff;
}

.sustainability-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(31, 138, 85, 0.03);
    border-radius: 50%;
    top: -250px;
    right: -200px;
    z-index: 0;
}

.sustainability-section::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(212, 175, 55, 0.04);
    border-radius: 50%;
    bottom: -220px;
    left: -180px;
    z-index: 0;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--green);
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.8;
}

/*=========================
BADGE UTILITIES
=========================*/
.green-badge {
    display: inline-block;
    background: rgba(31, 138, 85, 0.1);
    color: var(--green);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: .5px;
    border: 1px solid rgba(31, 138, 85, 0.2);
}

/*=========================
IMPACT CARD (PREMIUM ESG)
=========================*/
.impact-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 45px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.impact-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--green), var(--gold));
    left: 0;
    top: 0;
}

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(212, 175, 55, 0.3);
}

.impact-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--green3));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 38px;
    color: #fff;
    transition: transform 0.5s ease;
    box-shadow: 0 10px 20px rgba(15, 61, 46, 0.2);
}

.impact-card:hover .impact-icon {
    transform: rotate(360deg) scale(1.05);
}

.impact-card h3 {
    font-size: 1.85rem;
    color: var(--green);
    font-weight: 800;
    margin-bottom: 15px;
}

.impact-card p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/*=========================
ROADMAP / TIMELINE (ENHANCED)
=========================*/
.roadmap-section {
    background-color: var(--light);
    position: relative;
    padding: 80px 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, var(--green), var(--gold), var(--green3));
    transform: translateX(-50%);
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding-right: 45px;
    box-sizing: border-box;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-right: 0;
    padding-left: 45px;
}

.timeline-item .year {
    position: absolute;
    right: -70px;
    top: 20px;
    background: var(--gold);
    color: var(--green);
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 50px;
    box-shadow: var(--gold-glow);
    z-index: 2;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.timeline-item:nth-child(even) .year {
    right: auto;
    left: -70px;
}

.timeline-item .content {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.35s ease;
    border-top: 4px solid var(--green);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.timeline-item .content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold);
}

.timeline-item .content h4 {
    color: var(--green);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.timeline-item .content p {
    color: var(--muted);
    margin-bottom: 0;
    line-height: 1.7;
    font-size: 0.95rem;
}

/*=========================
IMPACT MAP & LIST GROUP
=========================*/
.impact-map {
    background-color: #fff;
    padding: 80px 0;
}

.impact-map .list-group-item {
    border: 1px solid var(--border);
    border-left: 5px solid var(--green);
    margin-bottom: 14px;
    border-radius: 12px !important;
    padding: 20px 25px;
    background: var(--light);
    color: var(--text);
    font-weight: 600;
    transition: all 0.3s ease;
}

.impact-map .list-group-item:hover {
    background: #fff;
    border-left-color: var(--gold);
    transform: translateX(8px);
    box-shadow: var(--shadow);
}

/*=========================
LIVE COUNTER
=========================*/
.counter-area {
    background: linear-gradient(135deg, #0F3D2E, #1F8A55);
    border-radius: 30px;
    padding: 70px 50px;
    color: #fff;
    box-shadow: var(--shadow-hover);
    position: relative;
    overflow: hidden;
}

.counter-box {
    text-align: center;
}

.counter-box h2 {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 5px;
}

.counter-box span {
    font-size: 1.05rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/*=========================
COMMITMENT BOX
=========================*/
.commitment-box {
    background: #fff;
    border-left: 6px solid var(--green);
    border-radius: 18px;
    padding: 35px;
    box-shadow: var(--shadow);
    transition: all 0.35s ease;
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.commitment-box:hover {
    border-left-color: var(--gold);
    transform: translateX(8px);
    box-shadow: var(--shadow-hover);
}

.commitment-box h4 {
    color: var(--green);
    font-weight: 700;
}

.commitment-box p {
    color: var(--muted);
}

/*=========================
CARBON FLOW & BUTTONS
=========================*/
.flow-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.flow-item {
    width: 180px;
    height: 180px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
    transition: all 0.35s ease;
    border: 1px solid var(--border);
}

.flow-item:hover {
    transform: scale(1.08);
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.flow-item i {
    font-size: 42px;
    margin-bottom: 12px;
    color: var(--gold);
    transition: color 0.3s ease;
}

.flow-item:hover i {
    color: var(--white);
}

.flow-arrow {
    font-size: 38px;
    color: var(--green);
}

.btn-green {
    background: var(--green);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.35s ease;
    border: none;
    box-shadow: 0 10px 20px rgba(15, 61, 46, 0.2);
}

.btn-green:hover {
    background: var(--gold);
    color: var(--green);
    transform: translateY(-4px);
    box-shadow: var(--gold-glow);
}

.btn-outline-green {
    border: 2px solid var(--green);
    color: var(--green);
    border-radius: 50px;
    padding: 15px 40px;
    transition: all 0.35s ease;
    background: transparent;
    font-weight: 600;
}

.btn-outline-green:hover {
    background: var(--green);
    color: #fff;
}

/*=========================
ANIMATIONS
=========================*/
@keyframes floating {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

.float {
    animation: floating 4s ease infinite;
}

@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(31, 138, 85, 0.5); }
    100% { box-shadow: 0 0 0 25px rgba(31, 138, 85, 0); }
}

.pulse {
    animation: pulseGreen 2s infinite;
}

/*=========================
NAVIGATION ACTIVE STATE
=========================*/
.main-nav .nav-links li a.active {
    color: var(--gold);
    font-weight: 700;
    position: relative;
}

.main-nav .nav-links li a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 3px;
    background: var(--gold);
    border-radius: 20px;
}

/*=========================
RESPONSIVE DESIGN FIXES
=========================*/
@media (max-width: 991px) {
    .section-title {
        font-size: 2.2rem;
    }

    .flow-arrow {
        display: none;
    }

    .flow-item {
        width: 150px;
        height: 150px;
    }

    .counter-box {
        margin-bottom: 35px;
    }

    .timeline::before {
        left: 25px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
    }

    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 60px;
        padding-right: 0;
    }

    .timeline-item .year,
    .timeline-item:nth-child(even) .year {
        left: 0;
        right: auto;
        top: -12px;
        font-size: 0.8rem;
        padding: 4px 12px;
    }
}

@media (max-width: 768px) {
    .counter-area {
        padding: 45px 20px;
    }

    .impact-card {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .commitment-box {
        padding: 25px;
    }
}