/* ============================================
   Pagina Sustenabilitate — Sustainability Styles
   Matches Istorie page style system
   ============================================ */

/* ── Page overrides — transparent header over the hero ── */
.page-template-page-sustenabilitate .site-header {
    background-color: transparent;
}
.page-template-page-sustenabilitate .site-header.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
}

/* ── Hero (matches Istorie hero) ──────────── */
.sus-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}
.sus-hero__overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}
.sus-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 16px;
}
.sus-hero__title {
    font-family: var(--font-display);
    font-size: calc(40px + 80 * (100vw / 1308));
    font-weight: 400;
    text-transform: uppercase;
    color: var(--color-white);
    line-height: 1.21;
    margin: calc(15px + 25 * (100vw / 1308)) 0;
}
@media (min-width: 1308px) {
    .sus-hero__title {
        font-size: 110px;
        margin: 15px 0;
    }
}

/* ── Content border wrapper (matches Istorie) ── */
.sus-content-border {
    border: 1px solid white;
}

/* ── Section titles (matches Istorie 55px/500) ── */
.sus-section__title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-white);
    margin-bottom: 20px;
}
.sus-section__subtitle {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-white);
    margin-bottom: 16px;
}

/* ── Separator images (full-width like Istorie) ── */
.sus-separator {
    line-height: 0;
    overflow: hidden;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
}
.sus-separator--no-top {
    border-top: none;
}
.sus-separator img {
    width: 100%;
    height: 235px;
    object-fit: cover;
    display: block;
}

/* ── Section: Vineyards (matches Istorie vineyards) ── */
.sus-vineyards {
    padding: 48px 20px;
}
.sus-vineyards__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 75px;
}
.sus-vineyards__col {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 300;
    line-height: 25px;
    color: var(--color-white);
}
.sus-vineyards__col p {
    margin-bottom: 16px;
}

/* ── Section: Organic Wines (matches Istorie production) ── */
.sus-organic {
}
.sus-organic__grid {
    display: grid;
    grid-template-columns: 1fr;
}
.sus-organic__vector-col {
    display: none;
}
.sus-organic__vector {
    width: 100%;
    display: block;
}
.sus-organic__content-col {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.sus-organic__columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}
.sus-organic__col {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 300;
    line-height: 25px;
    color: var(--color-white);
    width: 100%;
}
.sus-organic__col p {
    margin-bottom: 16px;
}

/* ── Section: ECO Certification (matches Istorie lab) ── */
.sus-eco {
    border-top: 1px solid white;
    min-height: 600px;
}
.sus-eco__grid {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 600px;
}
.sus-eco__text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    order: 2;
}
.sus-eco__desc {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 300;
    line-height: 25px;
    color: var(--color-white);
    margin-top: 20px;
}
.sus-eco__desc p {
    margin-bottom: 16px;
}
.sus-eco__gif-col {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    order: 1;
    min-height: 350px;
}
.sus-eco__gif-frame {
    width: 320px;
    height: 320px;
    position: relative;
    z-index: 1;
}
.sus-eco__gif {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.sus-eco__diamond {
    display: none;
}

/* ── Section: Green Energy (matches Vineyards style) ── */
.sus-energy {
    border-top: 1px solid white;
    padding: 48px 20px;
}
.sus-energy__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 75px;
}
.sus-energy__col {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 300;
    line-height: 25px;
    color: var(--color-white);
}
.sus-energy__col p {
    margin-bottom: 16px;
}

/* ══════════════════════════════════════════
   Desktop (768px+)
   ══════════════════════════════════════════ */
@media (min-width: 768px) {
    /* Hero — centered */
    .sus-hero__inner {
        padding: 0 32px;
        justify-content: center;
    }

    .sus-section__title {
        font-size: 26px;
    }
    .sus-section__subtitle {
        font-size: 26px;
    }

    /* Vineyards — 2 col with offset like Istorie */
    .sus-vineyards {
        padding: 48px 47px;
    }
    .sus-vineyards__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .sus-vineyards__col:last-child {
        margin-top: 100px;
    }

    /* Separator */
    .sus-separator img {
        height: 235px;
    }

    /* Organic — vector column like Istorie production */
    .sus-organic__grid:has(.sus-organic__vector-col) {
        grid-template-columns: 262px 1fr;
        grid-template-rows: 1fr;
    }
    .sus-organic__vector-col {
        display: block;
        position: relative;
        overflow: hidden;
        border-right: 1px solid white;
        height: 800px;
        margin-top: -1px;
    }
    .sus-organic__vector {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .sus-organic__content-col {
        padding: 60px 47px;
    }
    .sus-organic__columns {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .sus-organic__col--offset {
        margin-top: 144px;
    }

    /* ECO — like Istorie lab section */
    .sus-eco__grid {
        grid-template-columns: 1fr 1fr;
    }
    .sus-eco__text-col {
        order: 1;
        padding: 60px 47px;
        border-right: 1px solid white;
    }
    .sus-eco__gif-col {
        order: 2;
    }
    .sus-eco__diamond {
        display: block;
        position: absolute;
        border: 1px solid white;
        max-width: 500px;
        width: 100%;
        height: 500px;
        transform: rotate(45deg);
        top: 50%;
        left: 50%;
        margin-top: -250px;
        margin-left: -250px;
    }

    /* Energy — like Vineyards with offset */
    .sus-energy {
        padding: 80px 47px 48px;
    }
    .sus-energy__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .sus-energy__col:last-child {
        margin-top: 100px;
    }
}

/* ══════════════════════════════════════════
   Mobile (max 767px)
   ══════════════════════════════════════════ */
@media (max-width: 767px) {
    /* Hero */
    .sus-hero {
        height: auto;
        min-height: 70vh;
    }
    .sus-hero__title {
        font-size: 36px;
        text-align: center;
        margin: 10px 0;
    }
    .sus-hero__inner {
        justify-content: center;
        padding: 100px 15px 40px;
    }

    /* Titles */
    .sus-section__title {
        font-size: 20px;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }
    .sus-section__subtitle {
        font-size: 18px;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }

    /* Vineyards */
    .sus-vineyards {
        padding: 30px 15px;
    }
    .sus-vineyards__grid {
        margin-bottom: 20px;
        gap: 16px;
    }
    .sus-vineyards__col {
        font-size: 14px;
        line-height: 22px;
    }

    /* Separator */
    .sus-separator img {
        height: 80px;
    }

    /* Organic */
    .sus-organic__content-col {
        padding: 25px 15px;
    }
    .sus-organic__columns {
        gap: 16px;
    }
    .sus-organic__col {
        font-size: 14px;
        line-height: 22px;
    }
    .sus-organic__col--offset {
        margin-top: 0;
    }

    /* ECO */
    .sus-eco {
        min-height: auto;
    }
    .sus-eco__grid {
        min-height: auto;
    }
    .sus-eco__text-col {
        padding: 25px 15px;
        order: 2;
    }
    .sus-eco__gif-col {
        min-height: 235px;
        padding: 10px;
        order: 1;
    }
    .sus-eco__gif-frame {
        width: 180px;
        height: 180px;
    }
    .sus-eco__desc {
        font-size: 14px;
        line-height: 22px;
    }

    /* Energy */
    .sus-energy {
        padding: 30px 15px;
    }
    .sus-energy__grid {
        margin-bottom: 20px;
        gap: 16px;
    }
    .sus-energy__col {
        font-size: 14px;
        line-height: 22px;
    }
    .sus-energy__col:last-child {
        margin-top: 0;
    }

    /* Content border — slight padding on mobile */
    .sus-content-border {
        margin: 0 -1px;
    }
}
