/* ============================================================
   Sustainability page — built to match Figma frame 191-182
   Dedicated stylesheet, loaded from app/Views/sustainability.php
   Palette: #f16e21/#f26f25 orange, #8b3a0f dark, #c45a00 mid,
            #fdeee4 peach, #f5f5f5 grey, #2a2a28/#3d3d3d text,
            #1e4389 blue accent
   ============================================================ */

.sus-page { color: #2a2a28; font-family: inherit; }
.sus-wrap { max-width: 1248px; margin: 0 auto; padding: 0 24px; }

.sus-h2 { font-size: 24px; font-weight: 900; color: #f16e21; margin: 0 0 24px; }
.sus-kicker { font-size: 14px; font-weight: 700; color: #1e4389; text-align: center; margin: 0 0 6px; letter-spacing: .3px; }

/* ---------- Hero ---------- */
.sus-hero {
    position: relative;
    min-height: 480px;
    background: #000 center/cover no-repeat;
    display: flex;
    align-items: flex-end;
}
.sus-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.sus-hero .sus-wrap { position: relative; z-index: 2; padding-bottom: 56px; width: 100%; }
.sus-hero h1 { color: #fff; font-size: 32px; font-weight: 700; max-width: 560px; line-height: 1.25; margin: 0; }

/* ---------- Breadcrumb ---------- */
.sus-breadcrumb { background: #f5f5f5; }
.sus-breadcrumb .sus-wrap { padding-top: 8px; padding-bottom: 8px; }
.sus-breadcrumb a, .sus-breadcrumb span { font-size: 13px; color: #2a2a28; text-decoration: none; }
.sus-breadcrumb a:hover { color: #f16e21; }

/* ---------- Intro ---------- */
.sus-intro { padding: 56px 0; }
.sus-intro h2 { font-size: 24px; font-weight: 800; color: #f16e21; margin: 0 0 20px; }
.sus-intro p { font-size: 16px; line-height: 1.7; color: #2a2a28; margin: 0; }

/* ---------- Emissions ---------- */
.sus-emissions { display: flex; flex-wrap: wrap; background: #f5f5f5; }
.sus-emissions__panel {
    flex: 0 0 33.333%; max-width: 33.333%; background: #f26f25; color: #fff;
    padding: 56px 48px; display: flex; flex-direction: column; justify-content: center;
}
.sus-emissions__panel h3 { font-size: 24px; font-weight: 700; line-height: 1.25; margin: 0 0 14px; text-transform: uppercase; }
.sus-emissions__panel .rule { width: 96px; height: 2px; background: #fff; margin-bottom: 24px; }
.sus-emissions__panel .lead { font-size: 20px; font-weight: 400; line-height: 1.4; margin: 0 0 18px; }
.sus-emissions__panel .lead:last-child { margin-bottom: 0; }
.sus-emissions__panel .sub { font-size: 16px; font-weight: 300; line-height: 1.5; margin: 0; }
.sus-emissions__img { flex: 1 1 66.667%; min-width: 0; min-height: 360px; background: #e9e9e9 center/cover no-repeat; }

/* ---------- Our Impact (KPIs) ---------- */
.sus-impact { padding: 64px 0; }
.sus-impact__head { text-align: left; margin-bottom: 28px; }
.sus-impact__head .sus-kicker { text-align: left; text-transform: uppercase; }
.sus-impact__head h2 { font-size: 24px; font-weight: 900; color: #f16e21; margin: 4px 0 0; text-transform: uppercase; }

/* Row 1 bordered card: KPI column + chart, with a full-width caption strip */
.impact-card { border: 1px solid #f3cdb0; border-radius: 10px; overflow: hidden; margin-bottom: 24px; background: #fff; }
.impact-card__row { display: flex; flex-wrap: wrap; }
.impact-kpis { flex: 0 0 40%; max-width: 40%; padding: 24px 28px; border-right: 1px solid #f0f0f0; }
.impact-chartwrap { flex: 1 1 0; min-width: 0; padding: 24px; display: flex; align-items: center; }
.impact-chart { width: 100%; aspect-ratio: 1001 / 364; background: center/contain no-repeat; }
.impact-card__cap {
    background: #fdeee4; color: #c45a00;
    font-size: 16px; font-weight: 700; text-align: center;
    padding: 14px 20px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.impact-card__cap .fa { color: #c45a00; }

.sus-row { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.sus-col-l { flex: 0 0 38%; max-width: 38%; }
.sus-col-r { flex: 1 1 58%; }
.sus-col-r2 { flex: 0 0 38%; max-width: 38%; }
.sus-col-l2 { flex: 1 1 58%; }

/* KPI cards (icon + content) */
.kpi-card { display: flex; align-items: flex-start; gap: 20px; padding: 22px 0; border-bottom: 1px solid #eee; }
.kpi-card:last-child { border-bottom: 0; }
.kpi-ic { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px; }
.kpi-ic.dark { background: #8b3a0f; }
.kpi-ic.mid { background: #c45a00; }
.kpi-ic.orange { background: #f26f25; }
.kpi-num { display: flex; align-items: center; gap: 8px; }
.kpi-num b { font-size: 48px; font-weight: 900; color: #f26f25; line-height: 1; }
.kpi-num .fa { color: #f26f25; font-size: 20px; }
.kpi-card h4 { font-size: 15px; font-weight: 700; color: #3d3d3d; margin: 10px 0 0; }
.kpi-card .unit { font-size: 13px; font-weight: 700; color: #3d3d3d; margin: 2px 0 0; }
.kpi-card p { font-size: 16px; color: #3d3d3d; margin: 8px 0 0; line-height: 1.4; }
.kpi-card .title-strong { font-size: 18px; font-weight: 900; color: #f26f25; margin: 0; }

/* Image block + caption strip */
.sus-imgblock { display: flex; flex-direction: column; height: 100%; }
.sus-imgblock .img { flex: 1 1 auto; min-height: 265px; background: #e9e9e9 center/cover no-repeat; border-radius: 4px; }
.sus-imgblock .strip {
    background: #fdeee4; color: #c45a00; font-size: 16px; font-weight: 700; text-align: center;
    padding: 16px 20px; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.sus-imgblock .strip .fa { color: #c45a00; }

.sus-imgtall { width: 100%; aspect-ratio: 782 / 414; background: center/contain no-repeat; border-radius: 4px; }

/* Stat + statement cards (right column row 2) */
.stat-card { background: #fff8f4; border-radius: 8px; padding: 28px 24px; display: flex; gap: 18px; align-items: flex-start; margin-bottom: 24px; }
.stat-card .ic { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.stat-card .label { font-size: 16px; font-weight: 500; color: #3d3d3d; margin: 0 0 6px; }
.stat-card .value { font-size: 24px; font-weight: 700; color: #f26f25; margin: 0; }
.stat-card .growth { margin-top: 8px; }
.stat-card .growth b { font-size: 20px; font-weight: 700; color: #f26f25; }
.stat-card .growth span { font-size: 12px; color: #f26f25; margin-left: 8px; }

.statement-card { background: #f26f25; border-radius: 8px; padding: 28px 24px; display: flex; gap: 18px; align-items: flex-start; }
.statement-card .ic { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #f26f25; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.statement-card p { font-size: 18px; color: #fff; margin: 0; line-height: 1.4; }

/* Highlight cards (4 across) */
.sus-highlights { display: flex; flex-wrap: wrap; gap: 0; }
.hl-card { flex: 1 1 25%; min-width: 220px; padding: 28px 24px; color: #fff; }
.hl-card .ic { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px; }
.hl-card h5 { font-size: 18px; font-weight: 900; margin: 0 0 6px; }
.hl-card p { font-size: 12px; margin: 0; line-height: 1.4; }
.hl-card.c1 { background: #8b3a0f; } .hl-card.c1 .ic { color: #8b3a0f; }
.hl-card.c2 { background: #c45a00; } .hl-card.c2 .ic { color: #c45a00; }
.hl-card.c3 { background: #f26f25; } .hl-card.c3 .ic { color: #f26f25; }
.hl-card.c4 { background: #fdeee4; color: #6b3a2a; } .hl-card.c4 h5 { color: #f16e21; } .hl-card.c4 .ic { color: #f16e21; }

/* ---------- ISO Certifications (accordion) ---------- */
.sus-iso { padding: 56px 0; }
.acc-item { margin-bottom: 12px; }
.acc-head {
    background: #f26f25; color: #fff; padding: 14px 24px; font-size: 16px; font-weight: 700;
    display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.acc-head .sign { font-size: 20px; font-weight: 700; line-height: 1; }
.acc-body { background: #f6f6f6; padding: 16px; display: none; }
.acc-item.open .acc-body { display: block; }
.acc-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.policy { background: #fff; border-radius: 4px; padding: 16px; flex: 1 1 0; min-width: 180px; text-align: center; }
.policy .name { background: #fdeee4; color: #f26f25; font-size: 14px; font-weight: 700; padding: 14px; border-radius: 4px; margin-bottom: 14px; }
.policy .dl { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #f16e21; color: #f16e21; font-size: 12px; font-weight: 700; padding: 6px 16px; border-radius: 20px; text-decoration: none; }
.policy .dl:hover { background: #f16e21; color: #fff; }

/* ---------- Awards ---------- */
.sus-awards { padding: 56px 0; background: #f5f5f5; }
.sus-awards .sus-h2 { text-transform: uppercase; }
.awards-grid { display: flex; flex-wrap: wrap; gap: 0; }
.awards-list { flex: 0 0 320px; max-width: 320px; }
.award-tab { padding: 18px 20px; font-size: 16px; font-weight: 700; line-height: 1.3; background: #fff; color: #f26f25; cursor: pointer; transition: background .2s, color .2s; }
.award-tab:hover { background: #fff4ee; }
.award-tab.active { background: #f26f25; color: #fff; }
/* Stage: holds the carousel; extra side padding makes room for the arrows.
   min-width:0 lets the flex item shrink instead of wrapping below the list. */
.awards-stage { flex: 1 1 0; min-width: 0; position: relative; background: #fdeee4; padding: 32px; }
.award-panels { overflow: hidden; }
.award-panel { display: none; }
.award-panel.active { display: block; }

/* Slider track: images in a row, moved by the prev/next buttons (no scrolling) */
.awards-track {
    display: flex;
    gap: 16px;
    transform: translateX(0);
    transition: transform .4s ease;
    will-change: transform;
}
/* Image figures — natural width at a fixed height (matches the Figma proportions) */
.award-fig {
    position: relative;
    flex: 0 0 auto;
    height: 312px;
    margin: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #e9e9e9;
}
.award-img {
    display: block;
    height: 312px;
    width: auto;
    min-width: 160px;   /* keeps a slot even if the image is missing (no collapse) */
}
/* Caption bar over an image (e.g. "Best Safety Performer…") */
.award-cap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: #f26f25;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    padding: 10px 14px;
}

/* Circular prev/next arrows, on the sides — shown only when images overflow */
.awards-prev, .awards-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    border: 0; border-radius: 50%;
    background: #ffefe7; color: #f16e21;
    align-items: center; justify-content: center;
    cursor: pointer; z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    transition: background .2s, color .2s;
    display: none;                 /* hidden by default */
}
.awards-stage.has-overflow .awards-prev,
.awards-stage.has-overflow .awards-next { display: flex; }
.awards-prev { left: 16px; }
.awards-next { right: 16px; }
.awards-prev:hover, .awards-next:hover { background: #f16e21; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .sus-col-l, .sus-col-r, .sus-col-l2, .sus-col-r2,
    .sus-emissions__panel, .sus-emissions__img { flex: 1 1 100%; max-width: 100%; }
    .impact-kpis, .impact-chartwrap { flex: 1 1 100%; max-width: 100%; }
    .impact-kpis { border-right: 0; border-bottom: 1px solid #f0f0f0; }
    .hl-card { flex: 1 1 50%; }
    .awards-list { flex: 1 1 100%; max-width: 100%; }
}
@media (max-width: 600px) {
    .sus-hero h1 { font-size: 24px; }
    .sus-intro, .sus-impact, .sus-iso, .sus-awards { padding: 36px 0; }
    .hl-card { flex: 1 1 100%; }
    .kpi-num b { font-size: 38px; }
    .sus-emissions__panel { padding: 36px 24px; }
    .sus-emissions__panel .lead { font-size: 20px; }
    .policy { flex: 1 1 100%; }
    .responsiveimg { width: 100% !important; height: auto !important; }
    .awards-stage { padding: 20px; }
    .award-fig, .award-img { height: 210px; }
}
