/* ============================================================
   Partners - page-level CSS (T11)
   Figma: desktop 1407:89594, mobile 1407:89972. No tablet frame: 768-1024
   follows the mobile frame.

   The partner grid and the join band are built here (no other template uses
   them); everything else is a shared class that carries its own look. Every
   neighbour differs in background, so each section pads --space-section-alt
   (80 / 48); the reviews pad themselves.
   ============================================================ */

.partners__section--grid,
.partners__section--why,
.partners__section--cases {
    padding-top: var(--space-section-alt);
    padding-bottom: var(--space-section-alt);
}
/* The persona band: the gallery class reserves the photos' pop-out room, so the
   frame's 80 comes to 59 above and below */
.partners__section--personas { padding-top: 59px; padding-bottom: 59px; }
@media (max-width: 1024px) {
    .partners__section--personas { padding-top: var(--space-section-alt); padding-bottom: var(--space-section-alt); }
}

/* ── Partner grid (1407:89635, mobile 1407:90012) ─────────── */
.partners__section--grid {
    padding-left: var(--space-gutter);
    padding-right: var(--space-gutter);
}
.partner-grid__inner {
    max-width: var(--layout-content-max-w);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.partner-grid__head {
    display: flex;
    flex-direction: column;
    align-items: center;   /* the frames centre the heading block */
    gap: 10px;
    text-align: center;
}
.partner-grid__head .eyebrow { margin: 0; }
.partner-grid__heading {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: var(--weight-medium);
    font-size: var(--text-h2);
    line-height: var(--leading-h2);
    color: var(--color-text);
    text-transform: capitalize;
}

.partner-grid__item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
    border-radius: 16px;
    background: var(--color-surface-tint);   /* "Primary Accent" */
    color: var(--color-text);
}
.partner-grid__logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 70px;
}
.partner-grid__logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.partner-grid__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.partner-grid__name {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: var(--weight-medium);
    font-size: var(--text-h3);   /* Futura PT Demi 30 in the frame, no style; built as H3 */
    line-height: var(--leading-h3);
}
.partner-grid__description {
    font-family: var(--font-body);
    font-weight: var(--weight-medium);
    font-size: var(--text-body);
    line-height: var(--leading-body);
}

/* The join band: a wide gradient card with the gold pill and a faded arrow */
.partner-grid__join {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 32px;
    border-radius: 16px;
    background: var(--gradient-secondary);   /* "Secondary Gradient" */
    color: var(--color-text-inverse);
}
.partner-grid__join-mark {
    position: absolute;
    right: -150px;
    bottom: -180px;
    width: 550px;
    height: 550px;
    color: var(--color-surface-tint);
    opacity: 0.2;
    pointer-events: none;
    rotate: 315deg;
}
.partner-grid__join-text { position: relative; display: flex; flex-direction: column; gap: 12px; }
.partner-grid__join-heading {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: var(--weight-medium);
    font-size: var(--text-mobile-h2);   /* Futura Medium 32 in the frame, no style */
    line-height: var(--leading-mobile-h2);
    color: var(--color-text-inverse);
}
.partner-grid__join-body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: var(--weight-medium);
    font-size: var(--text-body);
    line-height: var(--leading-body);
}
.partner-grid__join-cta { position: relative; }

/* Desktop: the cards three across (389 wide, 20 apart across, 10 down), the band
   spanning two columns after them. The swiper wrappers add no box of their own. */
@media (min-width: 1025px) {
    .partner-grid__body {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 20px;
        row-gap: 10px;
    }
    .partner-grid__swiper,
    .partner-grid__swiper .partner-grid__list { display: contents; }
    .partner-grid__item.swiper-slide { width: auto; height: auto; }
    .partner-grid__join { grid-column: span 2; justify-content: center; }
}

/* ── Tablet and mobile: a swipe row (320 wide, 16 apart), the band under it ── */
@media (max-width: 1024px) {
    .partners__section--grid {
        padding-left: var(--space-gutter);
        padding-right: var(--space-gutter);
    }
    .partner-grid__join-mark {
    right: -120px;
    bottom: -140px;
    width: 440px;
    height: 440px;
}
    .partner-grid__inner { gap: 40px; }
    .partner-grid__heading {
        font-size: var(--text-mobile-h2);
        line-height: var(--leading-mobile-h2);
    }
    .partner-grid__body { display: flex; flex-direction: column; gap: 40px; }   /* the frame puts 40 between the row and the band */
    .partner-grid__swiper {
        min-width: 0;   /* a flex item: without this the 13 slides stretch it to their full width */
        margin-left: 0;   /* Swiper's own auto margin would stop the flex item stretching */
        margin-right: calc(var(--space-gutter) * -1);   /* the row bleeds off the right edge */
        overflow: hidden;
    }
    .partner-grid__swiper:focus-visible {
        outline: 2px solid var(--color-focus-ring);
        outline-offset: 2px;
    }
    .partner-grid__item.swiper-slide {
        width: 320px;
        height: auto;
    }
    .partner-grid__logo { height: 64px; }
    .partner-grid__join { padding: 32px 24px; }
}

@media (max-width: 768px) {
    .partner-grid__join-mark {
       bottom: -80px;
    }
}
