/* ============================================================================
   MediaWithLinks — JP-342 "Media mit Links" module
   Figma after-spec: node 351:7455 "Links+Media-Desktop 1441".

   Two-column section: decorative blob-icon cluster (3 author-picked icons)
   on the left; overline + heading + body + pill link rows on the right.

   Design tokens (no Phase 2.2 SCSS tokens file yet — hex literals, per the
   JP-83 / JP-116 precedent):
     #0b1b45  JTL Dark Blue    #2722f8  JTL Tech Blue
     #89d2ff  JTL Light Blue   #fb581f  JTL Orange
     #ffffff  white            #eeeee7  JTL Light Sand (row bg, not set here)

   This file is plain CSS (valid SCSS) — style.css is an identical copy, so
   no preprocessing step is required. `node build.js` recompiles it 1:1.
   ============================================================================ */

/* Self-contained section — Light Sand band + vertical rhythm (Figma frame
   "Links+Media-Desktop 1441": bg #eeeee7, px 64, py 80). */
.media-with-links-section {
    background-color: #eeeee7; /* JTL Light Sand */
    padding: 80px 0;
}

.media-with-links {
    max-width: 1312px;
    margin: 0 auto;
    padding: 0 64px;
    display: flex;
    align-items: center;
    gap: 32px;
}

/* ── Left: decorative blob-icon cluster ──────────────────────────────────── */
.media-with-links__media {
    flex: 0 0 auto;
    width: 640px;
    max-width: 50%;
}

.media-with-links__cluster {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 440px;
    margin: 0 auto;
}

.media-with-links__blob {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Organic blob silhouettes — asymmetric border-radius (8 values) for an
   irregular, hand-drawn feel rather than plain ellipses. */
.media-with-links__blob--1 {
    top: 0;
    left: 7%;
    width: 210px;
    height: 196px;
    background-color: #2722f8; /* JTL Tech Blue */
    border-radius: 63% 37% 47% 53% / 58% 63% 37% 42%;
}

.media-with-links__blob--2 {
    top: 78px;
    right: 0;
    width: 188px;
    height: 188px;
    background-color: #89d2ff; /* JTL Light Blue */
    border-radius: 38% 62% 64% 36% / 49% 41% 59% 51%;
}

.media-with-links__blob--3 {
    bottom: 0;
    left: 3%;
    width: 224px;
    height: 190px;
    background-color: #89d2ff; /* JTL Light Blue */
    border-radius: 54% 46% 35% 65% / 63% 52% 48% 37%;
}

.media-with-links__icon {
    display: block;
    width: 68px;
    height: 68px;
    object-fit: contain;
}

/* ── Right: text + link rows ─────────────────────────────────────────────── */
.media-with-links__text {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 46px 46px 46px 0;
}

.media-with-links__head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.media-with-links__overline {
    margin: 0;
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: #2722f8; /* JTL Tech Blue */
}

.media-with-links__heading {
    margin: 0;
    font-family: "Kurdis", "Kurdis Wide", Inter, sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 46px;
    letter-spacing: 0.64px;
    color: #0b1b45; /* JTL Dark Blue */
}

/* Suppress the theme's decorative h2::after underline — not in the Figma.
   !important per CLAUDE.md rule 10: the theme applies the underline with
   higher specificity than a single class, so a plain override loses. */
.media-with-links__heading::after {
    content: none !important;
    display: none !important;
}

.media-with-links__body {
    margin: 0;
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #0b1b45; /* JTL Dark Blue */
}

.media-with-links__links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Pill link row — white card, label + orange arrow */
.media-links-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    background-color: #ffffff;
    border-radius: 24px;
    text-decoration: none;
    transition: box-shadow 0.15s ease;
}

.media-links-item:hover,
.media-links-item:focus {
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(11, 27, 69, 0.08);
}

.media-links-item__label {
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    color: #0b1b45; /* JTL Dark Blue */
}

.media-links-item__arrow {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    transition: transform 0.15s ease;
}

.media-links-item__arrow svg {
    display: block;
}

.media-links-item:hover .media-links-item__arrow,
.media-links-item:focus .media-links-item__arrow {
    transform: translateX(4px);
}

/* ── Tablet / mobile — stack the two columns ─────────────────────────────── */
@media (max-width: 991px) {
    .media-with-links-section {
        padding: 56px 0;
    }

    .media-with-links {
        flex-direction: column;
        gap: 24px;
        padding: 0 24px;
    }

    .media-with-links__media {
        width: 100%;
        max-width: 100%;
    }

    .media-with-links__cluster {
        max-width: 380px;
        height: 360px;
    }

    .media-with-links__text {
        padding: 0;
    }

    .media-with-links__heading {
        font-size: 26px;
        line-height: 36px;
    }
}

@media (max-width: 575px) {
    .media-with-links__cluster {
        max-width: 300px;
        height: 300px;
    }

    .media-with-links__blob--1 {
        width: 158px;
        height: 148px;
    }

    .media-with-links__blob--2 {
        width: 142px;
        height: 142px;
    }

    .media-with-links__blob--3 {
        width: 168px;
        height: 143px;
    }

    .media-links-item__label {
        font-size: 18px;
    }
}
