/* Leader Tuoteryhmat block
   Grid of square cards: one intro card + link cards with images. */

.leader-tg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0;
    margin: 0;
}

/* Every cell is a perfect square */
.leader-tg__item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

/* Link fills the whole square for both card types */
.leader-tg__link {
    display: flex;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* ── Intro card ─────────────────────────────────────── */

.leader-tg__item--intro .leader-tg__link {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem;
    background: #000;
    color: #fff;
    box-sizing: border-box;
}

.leader-tg__logo {
    flex-shrink: 0;
    width: 100%;
}

.leader-tg__logo-img {
    display: block;
    width: 100%;
    height: auto;
}

.leader-tg__logo--placeholder {
    width: 100%;
    height: 40px;
    background: #e0e0e0;
    border-radius: 4px;
}

.leader-tg__intro-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
}

.leader-tg__intro-title {
    display: block;
    font-weight: 400;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: #fff;
}

.leader-tg__intro-subtitle {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #fff;
}

/* ── Link cards ─────────────────────────────────────── */

.leader-tg__item--card .leader-tg__link {
    position: relative;
    color: #fff;
}

.leader-tg__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.leader-tg__image--placeholder {
    background: #c0c0c0;
}

.leader-tg__item--card:hover .leader-tg__image {
    transform: scale(1.05);
}

/* Gradient overlay so the title is readable over any photo */
.leader-tg__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 55%);
    pointer-events: none;
}

.leader-tg__title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 1.25rem 3rem;
    color: #fff;
    font-weight: 800;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-align: center;
}

/* ── Responsive ─────────────────────────────────────── */

/* Tablet: two cards per row */
@media (min-width: 768px) and (max-width: 991px) {
    .leader-tg {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: one card per row */
@media (max-width: 767px) {
    .leader-tg {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .leader-tg__item--intro .leader-tg__link {
        padding: 1.5rem;
    }

    .leader-tg__title {
        padding: 0 1rem 2rem;
        font-size: 2.2rem;
    }
}
