/**
 * Aradel — Sustainability Supply Chain
 * File: /wp-content/mu-plugins/aradel-supply-chain/assets/aradel-supply-chain.css
 *
 * Scoped entirely to .ar-sc and .ar-sc-modal — zero bleed.
 * v1.0
 */

/* ═══════════════════════════════════════════════════════════════
   TOP SECTION
═══════════════════════════════════════════════════════════════ */

.ar-sc__top {
    width: 100%;
    background: #fff;
    padding-bottom: 96px;
}

.ar-sc__container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left:  112px;
    padding-right: 112px;
    padding-top:   40px;
    box-sizing: border-box;
}

/* ── Section title ───────────────────────────────────────────── */
.ar-sc__title {
    font-family:    'Nunito Sans', sans-serif;
    font-size:      48px;
    font-weight:    400;
    line-height:    64px;
    letter-spacing: 0.014px;
    color: #000;
    margin: 0 0 40px;
}

/* ── Card composition ────────────────────────────────────────── */
/*
   Layout: primary card on the left at ~65% width,
   secondary card offset to the right and slightly down.
   Uses position: relative on the wrapper + absolute on secondary
   to achieve the composed/layered look from the UI screenshot.
*/
.ar-sc__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 32px;
    padding-bottom: 0;
}

/* ── Both cards base ─────────────────────────────────────────── */
.ar-sc__card {
    border-radius: 20px;
    padding: 65px;
    box-sizing: border-box;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px;

    /* Scroll reveal start state */
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.ar-sc__card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ar-sc__card--pillar {
    position: relative;
}

.ar-sc__card--bg-default { background: transparent; }
.ar-sc__card--bg-muted   { background: #EFEFEF; }
.ar-sc__card--bg-green   { background: #005A4E; }
.ar-sc__card--bg-red     { background: #C1000F; }
.ar-sc__card--bg-dark    { background: #012F39; }

.ar-sc__card--secondary {
    transition-delay: 0.15s;
}

/* ── Card typography ─────────────────────────────────────────── */
.ar-sc__card-title {
    font-family:    'Nunito Sans', sans-serif;
    font-size:      28px;
    font-weight:    600;
    line-height:    32px;
    letter-spacing: 0.006px;
    margin: 0;
    max-width: 20ch;
    text-wrap: balance;
}

.ar-sc__card-body {
    font-family: 'Nunito Sans', sans-serif;
    font-size:   18px;
    font-weight: 400;
    line-height: 27px;
    margin: 0;
    color: #001014;
}

.ar-sc__card-title {
    color: #001014;
}

.ar-sc__card--light-text .ar-sc__card-title,
.ar-sc__card--light-text .ar-sc__card-body {
    color: #FFFFFF;
}

/* ═══════════════════════════════════════════════════════════════
   CTA BAR  — mirrors .ar-ircb__band / .ar-ircb__band-inner exactly
═══════════════════════════════════════════════════════════════ */

.ar-sc__band {
    width: 100%;
    background: #C1000F;
    color: #fff;
}

.ar-sc__band-inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-top:    86px;
    padding-bottom: 86px;
    padding-left:   104px;
    padding-right:  104px;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 48px;
    align-items: center;
}

/* ── Heading ─────────────────────────────────────────────────── */
.ar-sc__band-heading-wrap {
    min-width: 0;
}

.ar-sc__band-heading {
    font-family:    'Nunito Sans', sans-serif;
    font-size:      48px;
    font-weight:    400;
    line-height:    64px;
    letter-spacing: 0.014px;
    color: #fff;
    margin: 0;
    white-space: nowrap;
}

/* ── Subtext ─────────────────────────────────────────────────── */
.ar-sc__band-subtext-wrap {
    min-width: 0;
    padding-left: 24px;
}

.ar-sc__band-subtext {
    font-family:    'Nunito Sans', sans-serif;
    font-size:      24px;
    font-weight:    600;
    line-height:    32px;
    letter-spacing: -0.001px;
    color: #fff;
    margin: 0;
}

.ar-sc__band-subtext a,
.ar-sc__band-subtext a:visited {
    color: #fff;
    text-decoration: none;
}

.ar-sc__band-subtext a:hover,
.ar-sc__band-subtext a:focus-visible {
    color: #000;
    text-decoration: underline;
}

/* ── CTA wrap ────────────────────────────────────────────────── */
.ar-sc__band-cta-wrap {
    flex: 0 0 auto;
}

/* ── ar-action colour override inside the red band ───────────── */
.ar-sc__band-cta.ar-action {
    color: #fff;
    background: transparent;
    border: none;
    padding: 0;
    font-family:  'Nunito Sans', sans-serif;
    font-size:    18px;
    font-weight:  400;
    line-height:  inherit;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   MODAL
   Mirrors ESG Pillars modal architecture with scoped class names.
═══════════════════════════════════════════════════════════════ */

.ar-sc-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ar-sc-modal[hidden] {
    display: flex !important; /* keep in DOM for transition */
}

.ar-sc-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Frosted glass backdrop */
.ar-sc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

/* Panel */
.ar-sc-modal__panel {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.10), 0 4px 16px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;

    transform: scale(0.96) translateY(8px);
    transition: transform 0.25s ease;
}

.ar-sc-modal.is-open .ar-sc-modal__panel {
    transform: scale(1) translateY(0);
}

/* Close button */
.ar-sc-modal__close {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #F3F3F3;
    color: #01303A;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 2;
}

.ar-sc-modal__close:hover {
    background: #01303A;
    color: #ffffff;
}

.ar-sc-modal__close:focus-visible {
    outline: 2px solid #C1000F;
    outline-offset: 3px;
}

/* Inner content */
.ar-sc-modal__inner {
    padding: 56px 56px 64px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Modal title */
.ar-sc-modal__title {
    margin: 0;
    color: #000;
    font-family:    'Nunito Sans', sans-serif;
    font-size:      48px;
    font-weight:    400;
    line-height:    64px;
    letter-spacing: 0.014px;
}

/* Divider */
.ar-sc-modal__divider {
    width: 100%;
    height: 1px;
    background: #000;
    margin: 40px 0;
}

/* Intro */
.ar-sc-modal__intro {
    font-family: 'Nunito Sans', sans-serif;
    font-size:   18px;
    font-weight: 400;
    line-height: 27px;
    color: #000;
    margin: 0 0 32px;
    text-align: justify;
}

/* Note heading */
.ar-sc-modal__note-heading {
    font-family: 'Nunito Sans', sans-serif;
    font-size:   18px;
    font-weight: 600;
    line-height: 27px;
    color: #000;
    margin: 0 0 16px;
}

/* Numbered list */
.ar-sc-modal__note-list {
    margin: 0 0 32px;
    padding-left: 24px;
}

.ar-sc-modal__note-item {
    font-family: 'Nunito Sans', sans-serif;
    font-size:   18px;
    font-weight: 400;
    line-height: 27px;
    color: #000;
    margin-bottom: 10px;
}

.ar-sc-modal__note-item:last-child {
    margin-bottom: 0;
}

/* Manual download link */
/* Modal actions row */
.ar-sc-modal__actions {
    width: 100%;
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px 56px;
}

/* Manual download link + primary CTA */
.ar-sc-modal__manual-link.ar-action,
.ar-sc-modal__primary-cta.ar-action {
    margin-top: 0;
    color: #01303A;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

/* ── Body scroll lock ────────────────────────────────────────── */
body.ar-sc-modal-open {
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   TABLET  (≤ 1024px)
═══════════════════════════════════════════════════════════════ */

@media ( max-width: 1024px ) {

    .ar-sc__container {
        padding-left:  64px;
        padding-right: 64px;
        padding-top:   25px;
    }

    .ar-sc__top {
        padding-bottom: 72px;
    }

    .ar-sc__title {
        font-size:   40px;
        line-height: 52px;
        margin-bottom: 32px;
    }

    .ar-sc__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        padding-bottom: 0;
    }

    .ar-sc__card {
        padding: 48px;
        min-height: 280px;
    }

    .ar-sc__card-title {
        font-size:   24px;
        line-height: 30px;
        max-width: 18ch;
    }

    /* CTA bar */
    .ar-sc__band-inner {
        padding-top:    64px;
        padding-bottom: 64px;
        padding-left:   64px;
        padding-right:  64px;
        gap: 24px 32px;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .ar-sc__band-heading-wrap {
        grid-column: 1;
        grid-row: 1;
    }

    .ar-sc__band-subtext-wrap {
        grid-column: 1;
        grid-row: 2;
        padding-left: 0;
    }

    .ar-sc__band-cta-wrap {
        grid-column: 1;
        grid-row: 3;
        justify-self: start;
        align-self: center;
    }

    .ar-sc__band-heading {
        font-size:   36px;
        line-height: 48px;
        white-space: normal;
    }

    .ar-sc__band-subtext {
        font-size:   18px;
        line-height: 28px;
    }

    /* Modal */
    .ar-sc-modal__inner {
        padding: 48px 40px 56px;
    }

    .ar-sc-modal__title {
        font-size:   36px;
        line-height: 48px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE  (≤ 640px)
═══════════════════════════════════════════════════════════════ */

@media ( max-width: 640px ) {

  .ar-sc__card-body {
    font-family: 'Nunito Sans', sans-serif;
    font-size:   16px;
    font-weight: 400;
    line-height: 24px;
    margin: 0;
}

    .ar-sc__container {
        padding-left:  24px;
        padding-right: 24px;
        padding-top:   0px;
    }

    .ar-sc__top {
        padding-bottom: 48px;
    }

    .ar-sc__title {
        font-size:   32px;
        line-height: 44px;
        margin-bottom: 28px;
    }

    .ar-sc__cards {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 0;
    }

    .ar-sc__card {
        padding: 40px 32px;
        min-height: unset;
        gap: 20px;
    }

    .ar-sc__card--secondary {
        transition-delay: 0.1s;
    }

    .ar-sc__card-title {
        font-size:   22px;
        line-height: 28px;
    }

    /* CTA bar */
    .ar-sc__band-inner {
        padding-top:    48px;
        padding-bottom: 48px;
        padding-left:   24px;
        padding-right:  24px;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ar-sc__band-heading {
        font-size:   32px;
        line-height: 44px;
        white-space: normal;
    }

    .ar-sc__band-subtext {
        font-size:   16px;
        line-height: 26px;
    }

    /* Modal */
    .ar-sc-modal {
        padding: 16px;
        align-items: flex-end;
    }

    .ar-sc-modal__panel {
        max-height: 88vh;
        border-radius: 20px 20px 0 0;
        max-width: 100%;
    }

    .ar-sc-modal__inner {
        padding: 48px 24px 48px;
    }

    .ar-sc-modal__title {
        font-size:   28px;
        line-height: 38px;
    }

    .ar-sc-modal__intro,
    .ar-sc-modal__note-item {
        font-size:   16px;
        line-height: 25px;
        text-align: left;
    }
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════════════════════ */

@media ( prefers-reduced-motion: reduce ) {

    .ar-sc__card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .ar-sc-modal,
    .ar-sc-modal__panel {
        transition: none !important;
    }
}
