﻿/* Reset și setări de bază */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.body-cenusa {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    border-bottom: 1px solid #2a2a2a; /* Linia adăugată */
    margin-bottom: 20px;
}

/* Clasa de utilitate pentru culoarea brandului */
.brand-red {
    color: #c10206;
}

/* Codul CORECTAT */
.ash-comparison-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Poți păstra justify-content sau îl poți elimina dacă vrei conținutul sus */
    /* min-height: 100vh; */ /* <-- Linie comentată sau ștearsă */
    padding: 2rem 1rem 2rem; /* Am pus înapoi un padding pentru a nu fi totul lipit */

}

/* ================================================= */
/* STILURI PENTRU ANTET (HEADER) - VARIANTĂ FINALĂ   */
/* ================================================= */

/* Containerul general al antetului */
.section-header-cenusa {
    text-align: center;
    margin-bottom: 1rem;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Containerul pentru iconiță și titlu */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

    /* Stilizarea iconiței din antet */
    .section-title svg {
        width: 3rem;
        height: 3rem;
        stroke: #fff;
        flex-shrink: 0;
    }

/* H1 - Acum un container simplu pentru textul stivuit */
h1.title-text-stacked-cenusa {
    text-align: center;
    margin: 0;
    padding: 0;
    font-weight: normal; /* Anulăm stilul implicit, îl setăm pe span */
}

    /* Stilizarea fiecărei linii (span) din titlu */
    h1.title-text-stacked-cenusa span {
        display: block; /* Forțează fiecare span să ocupe un rând nou */
        font-family: 'Inter', sans-serif;
        font-size: 1.2rem;
        font-weight: 900;
        line-height: 1.4;
    }

/* Stilizarea paragrafului de sub titlu */
.section-header p {
    font-size: 1rem !important;
    color: #999;
}


/* ================================================= */
/* STILURI PENTRU SECȚIUNEA DE COMPARAȚIE     */
/* ================================================= */

/* Containerul grilei de comparație */
.comparison-container {
    display: grid;
    grid-template-columns: 1fr; /* O singură coloană pe mobil */
    gap: 1rem;
    width: 100%;
    max-width: 1100px;
}

.comparison-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Stilurile pentru sfera de cenușă */
.ash-sphere {
    position: relative;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 0rem;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
}

    /* Umbra de sub sferă */
    .ash-sphere::after {
        content: '';
        position: absolute;
        bottom: 10%;
        left: 20%;
        right: 20%;
        height: 10px;
        background-color: rgba(0,0,0,0.4);
        border-radius: 50%;
        filter: blur(10px);
    }

.apacks-sphere {
    background: radial-gradient(circle, #222 0%, #111 70%);
}

.others-sphere {
    background: radial-gradient(circle, #3a3a3a 0%, #2a2a2a 70%);
}

/* Conținutul din interiorul sferei */
.sphere-content {
    text-align: center;
}

    .sphere-content .percentage {
        font-size: 4.5rem;
        font-weight: 900;
        line-height: 1;
        color: #888888;
    }

    .sphere-content .description {
        display: block;
        font-size: 1.5rem;
        font-weight: 700;
        color: #a0a0a0;
    }

.apacks-sphere .description {
    color: #ffffff;
}

/* Cardul cu beneficii */
.benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 1rem;
}

.apacks-card {
    border-left: 3px solid #c10206;
}

.others-card {
    border-left: 3px solid #4a4a4a;
}

.icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.apacks-icon {
    background-color: #c10206;
}

.others-icon {
    background-color: #4a4a4a;
}

.icon-wrapper .icon {
    width: 18px;
    height: 18px;
    color: #ffffff;
}

.text-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.others-card .text-content h3 {
    color: #d1d1d1;
}

.text-content p {
    font-size: 0.9rem;
    color: #888888;
}


/* ================================================= */
/* MEDIA QUERIES (RESPONSIVE DESIGN)        */
/* ================================================= */

@media (min-width: 768px) {
    /* Mărește titlul și iconița pe ecrane de tabletă și mai mari */
    .section-title .icon {
        width: 3.5rem;
        height: 3.5rem;
    }

    h1.title-text-stacked-cenusa span { /* Selectorul a fost corectat aici */
        font-size: 3rem;
    }

    /* Trece comparația pe două coloane */
    .comparison-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .sphere-content .percentage {
        font-size: 5rem;
    }
}

@media (min-width: 1024px) {
    /* Mărește spațiul dintre coloane pe ecrane mari */
    .comparison-container {
        gap: 4rem;
    }
}

.impact-image-cantitateCenusa {
    width: 100%;
    /* NOU: Setăm raportul de aspect dorit. Înălțimea va fi calculată automat. */
    aspect-ratio: 4 / 5;
    /* ELIMINAT: Renunțăm la înălțimea fixă pentru a permite responsivitatea. */
    /* height: 250px; */

    background: linear-gradient(180deg, rgba(10, 10, 10, 0.6) 0%, transparent 70%), url('/images/CantiateCenusa-scor100.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    /* Am modificat alinierea pentru a potrivi mai bine formatului portret */
    align-items: flex-end; /* Aliniază textul la bază */
    justify-content: center;
    margin: 0 0;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    padding: 20px; /* Adăugăm padding pentru a controla spațiul intern al textului */
    margin-top: 10px;
    margin-bottom: 45px;
}