/* AWARDS — section #2 (after HERO)
   Figma: 1376 × 397 content area, centered in 1920 canvas.
   Structure:
   - Gold border SVG (1375x341) with a GAP at the top (x=418 to x=957)
   - Title + leaves sit IN the gap at the top (leaves cap the border line ends)
   - 7 award badges inside the border */

.awards {
    position: relative;
    width: 100%;
    background: #fff;
    padding: 56px 24px 56px;
    overflow: hidden;
}

.awards__frame {
    position: relative;
    max-width: 1376px;
    margin: 0 auto;
    aspect-ratio: 1376 / 397;
}

/* ===== Gold border SVG (the "Subtract" frame with gap at top) ===== */
.awards__border {
    position: absolute;
    top: 14.1%;                      /* = 56/397 */
    left: 0;
    width: 100%;
    height: 85.9%;                   /* = 341/397 */
    z-index: 1;
    pointer-events: none;
    display: block;
}

/* ===== Title + leaves wrap (in the gap) ===== */
.awards__title-wrap {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: #fff;                /* white "punch" through the border gap */
    padding: 8px 12px;
}

.awards__title {
    margin: 0;
    font-family: var(--ff-he);
    font-weight: 400;
    font-size: 44px;
    line-height: 48px;
    color: var(--c-blk);
    text-align: center;
    white-space: nowrap;
}
.awards__title-text,
.awards__title-line2 {
    display: block;
}

/* Leaves on each side of the title — SWAP positions (per Figma) so each leaf
   faces outward from the title. The SVG is asymmetric; mirroring with scaleX
   on ONE leaf makes them face opposite directions like olive branches.
   No vertical flip — keep stems at bottom (natural). */
.awards__leaf {
    width: 38px;                     /* tuned per user feedback (was 50 too big, 36 too small) */
    height: auto;
    flex: 0 0 auto;
    display: block;
}
/* In a flex row inside RTL container, DOM order → visual right-to-left.
   .awards__leaf--left is DOM 1st → visually RIGHT side.
   .awards__leaf--right is DOM 3rd → visually LEFT side.
   SWAP per user feedback: each goes to the OPPOSITE side, no transforms. */
.awards__leaf--left {
    /* visually appears on RIGHT side of title in RTL flex */
    transform: scaleX(-1);
}
.awards__leaf--right {
    /* visually appears on LEFT side of title — natural orientation */
}

/* ===== Cards row (inside the border) ===== */
.awards__cards {
    position: absolute;
    top: 39.8%;                      /* = 158/397 */
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 0 22px;
}

.awards__card {
    flex: 0 0 auto;
    width: 12.9%;
    max-width: 177.527px;
    aspect-ratio: 1;
    background: #fff;
    border-radius: 9.918px;
    box-shadow: 0 0 9.918px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow: hidden;                /* clip any image that overflows past border-radius */
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.awards__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.awards__card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;                     /* let aspect ratio decide width */
    height: auto;
    object-fit: contain;
    display: block;
}

/* ===== MOBILE responsive ===== */
@media (max-width: 1024px) {
    .awards {
        padding: 40px 16px;
    }
    .awards__frame {
        aspect-ratio: auto;
        max-width: 100%;
    }
    /* Hide the desktop frame border (proportions break on narrow widths) */
    .awards__border {
        display: none;
    }
    /* Title+leaves: inline row with smaller leaves */
    .awards__title-wrap {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 0;
        margin: 0 auto 28px;
        gap: 12px;
    }
    .awards__title {
        font-size: 22px;
        line-height: 28px;
        white-space: normal;
    }
    .awards__leaf {
        width: 22px;
        height: 66px;
    }
    /* Cards: 3-3-1 grid */
    .awards__cards {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        flex-wrap: wrap;
        gap: 10px;
        padding: 0;
    }
    .awards__card {
        width: calc(33.333% - 8px);
        max-width: 110px;
    }
}

@media (max-width: 480px) {
    .awards__title {
        font-size: 20px;
        line-height: 26px;
    }
    .awards__leaf {
        width: 18px;
        height: 54px;
    }
}
