/* ==========================================================================
   Sustainability & CSR page
   ========================================================================== */

:root {
    --csr-red: #e10600;
    --csr-red-soft: rgba(225, 6, 0, 0.1);
    --csr-green: #48720c;
    --csr-green-dark: #3a5c0a;
    --csr-ink: #1a1a1a;
    --csr-muted: #555555;
    --csr-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.csr-page__title-accent {
    color: var(--csr-red);
}

.csr-page__title-green {
    color: var(--csr-green);
}

/* Environment heading: vertical label on the far left; title/icon/body sit to its right */
.csr-page__env-heading {
    display: flex;
    align-items: flex-start;
    gap: 56px;
    margin-bottom: 0;
}

.csr-page__env-side-label {
    flex: 0 0 auto;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1;
    color: #9a9a9a;
    white-space: nowrap;
    user-select: none;
    margin-top: 8px;
    margin-left: -4px;
}

.csr-page__env-main {
    flex: 1 1 auto;
    min-width: 0;
}

.csr-page__env-title {
    margin: 0 0 28px;
    padding: 0;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
}

.csr-page--environment .csr-page__section-label {
    margin-top: 0;
}

@media (max-width: 767.98px) {
    .csr-page__env-heading {
        gap: 20px;
    }

    .csr-page__env-side-label {
        font-size: 11px;
        letter-spacing: 0.12em;
        margin-top: 4px;
    }
}

.csr-page__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--csr-ink);
}

.csr-page__eyebrow::before,
.csr-page__eyebrow::after {
    content: '';
    display: block;
    width: 36px;
    height: 1px;
    background: var(--csr-red);
}

.csr-page__title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--csr-ink);
}

.csr-page__divider {
    display: flex;
    margin-top: 18px;
}

.csr-page__divider span {
    position: relative;
    display: block;
    width: 120px;
    height: 1px;
    background: var(--csr-red);
}

.csr-page__divider span::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--csr-red);
    transform: translate(-50%, -50%) rotate(45deg);
}

.csr-page__section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.csr-page__section-label-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--csr-red);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.csr-page__section-label-icon i {
    font-size: 18px;
    line-height: 1;
}

.csr-page__section-label h5 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--csr-ink);
}

.csr-page__lead {
    margin: 0 0 28px;
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    line-height: 1.75;
    color: var(--csr-muted);
}

/* Photo cards — polish raw images with grade, motion, and brand accents */
.csr-page__photo {
    margin: 0;
    position: relative;
}

.csr-page__photo-frame {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    isolation: isolate;
    background: #111;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
    aspect-ratio: 4 / 3;
}

.csr-page__photo--large .csr-page__photo-frame {
    aspect-ratio: 5 / 4;
}

.csr-page__photo--wide .csr-page__photo-frame {
    aspect-ratio: 16 / 11;
    min-height: 320px;
}

.csr-page__photo-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    filter: saturate(0.78) contrast(1.08) brightness(0.94);
    transition:
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.55s ease;
}

.csr-page__photo-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(10, 14, 22, 0.08) 0%, rgba(10, 14, 22, 0.55) 100%),
        radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.14), transparent 55%);
    mix-blend-mode: multiply;
    opacity: 0.9;
    transition: opacity 0.45s ease;
}

.csr-page__photo--green .csr-page__photo-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(135deg, rgba(72, 114, 12, 0.22), transparent 48%, rgba(225, 6, 0, 0.12));
    mix-blend-mode: soft-light;
}

.csr-page__photo--red .csr-page__photo-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.22), transparent 48%, rgba(72, 114, 12, 0.12));
    mix-blend-mode: soft-light;
}

.csr-page__photo-sheen {
    position: absolute;
    inset: -40% auto -40% -35%;
    width: 42%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.18) 45%,
        transparent 70%
    );
    transform: translateX(-120%) skewX(-18deg);
    transition: transform 0.9s ease;
}

.csr-page__photo-corner {
    position: absolute;
    width: 54px;
    height: 54px;
    z-index: 3;
    pointer-events: none;
}

.csr-page__photo-corner--tl {
    top: 14px;
    left: 14px;
    border-top: 3px solid var(--csr-red);
    border-left: 3px solid var(--csr-red);
}

.csr-page__photo-corner--br {
    right: 14px;
    bottom: 14px;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
}

.csr-page__photo--green .csr-page__photo-corner--tl {
    border-color: var(--csr-green);
}

.csr-page__photo figcaption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 4;
    padding: 14px 16px;
    border-radius: 12px;
    color: #fff;
    background: rgba(12, 16, 24, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transform: translateY(8px);
    opacity: 0.92;
    transition: transform 0.4s ease, opacity 0.4s ease, background 0.4s ease;
}

.csr-page__photo-label {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.csr-page__photo figcaption strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.csr-page__photo:hover .csr-page__photo-frame img,
.csr-page__photo:focus-within .csr-page__photo-frame img {
    transform: scale(1.1);
    filter: saturate(1.08) contrast(1.12) brightness(1.02);
}

.csr-page__photo:hover .csr-page__photo-frame::after,
.csr-page__photo:focus-within .csr-page__photo-frame::after {
    opacity: 0.55;
}

.csr-page__photo:hover .csr-page__photo-sheen,
.csr-page__photo:focus-within .csr-page__photo-sheen {
    transform: translateX(320%) skewX(-18deg);
}

.csr-page__photo:hover figcaption,
.csr-page__photo:focus-within figcaption {
    transform: translateY(0);
    opacity: 1;
    background: rgba(12, 16, 24, 0.58);
}

.csr-page__photo-stack {
    display: grid;
    gap: 18px;
}

.csr-page__photo-stack--large {
    gap: 24px;
}

@media (min-width: 768px) {
    .csr-page__photo-stack {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }

    .csr-page__photo-stack .csr-page__photo:last-child {
        margin-top: 0;
    }

    .csr-page__photo-stack--large .csr-page__photo-frame {
        min-height: 420px;
        aspect-ratio: 5 / 4;
    }
}

@media (min-width: 1200px) {
    .csr-page__photo-stack--large .csr-page__photo-frame {
        min-height: 480px;
    }
}

.csr-page__divider--center {
    justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
    .csr-page__photo-frame img,
    .csr-page__photo-sheen,
    .csr-page__photo figcaption {
        transition: none;
    }

    .csr-page__photo:hover .csr-page__photo-frame img {
        transform: none;
    }

    .csr-page__photo:hover .csr-page__photo-sheen {
        transform: none;
    }
}

.csr-page__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.csr-page__badge {
    min-width: 160px;
    padding: 16px 20px;
    border-radius: 8px;
    background: var(--csr-green);
    color: #fff;
    box-shadow: 0 10px 24px rgba(72, 114, 12, 0.22);
}

.csr-page__badge strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.csr-page__badge span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.88;
}

.csr-page__pillar {
    padding: 28px 18px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.csr-page__pillar:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.csr-page__pillar-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 2px solid var(--csr-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--csr-red);
    background: #fff;
}

.csr-page__pillar-icon i {
    font-size: 26px;
    line-height: 1;
}

.csr-page__pillar h5 {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
    color: var(--csr-red);
}

.csr-page__pillar p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--csr-muted);
}

.csr-page__activity {
    padding: 28px 22px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.csr-page__activity:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.csr-page__activity-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--csr-red-soft);
    color: var(--csr-red);
    display: flex;
    align-items: center;
    justify-content: center;
}

.csr-page__activity-icon i {
    font-size: 24px;
    line-height: 1;
}

.csr-page__activity h5 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
    color: var(--csr-green-dark);
}

.csr-page__activity p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--csr-muted);
}

@media (max-width: 1199.98px) {
    .csr-page__pillars > [class*='col-'] {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 991.98px) {
    .csr-page__pillars > [class*='col-'] {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .csr-page__divider {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .csr-page__pillars > [class*='col-'] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .csr-page__badge {
        flex: 1 1 100%;
    }
}
