/* Partner / brand logos — equal visual weight across aspect ratios */

.logo-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.logo-tile__link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* WOW.js can leave later logo tiles at opacity:0 if scroll/Lenis never triggers them */
.logo-grid .wow {
    visibility: visible !important;
    opacity: 1 !important;
    animation-name: none !important;
}

.logo-tile__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 120px;
    margin-bottom: 0;
    padding: 8px 6px;
    overflow: hidden !important;
    background: none !important;
    background-image: none !important;
    background-size: auto !important;
}

/*
 * Equal optical size: cap height so square marks are not huge, and wide
 * wordmarks can use full column width up to that height. Never overflow the cell.
 */
.logo-tile__mark img,
img.logo-mark {
    display: block;
    box-sizing: border-box;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 88px !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: none !important;
    transform: none !important;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.logo-grid,
.logo-grid > [class*="col-"],
.logo-tile,
.logo-tile__link {
    overflow: visible !important;
}

.logo-tile h4 {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
    word-break: break-word;
}

.logo-tile h4 a {
    text-decoration: none;
}

/* Experience / timeline logos (About)
 * Shared slot: every mark fits inside the same max-width × max-height box
 * (object-fit: contain). Height-only sizing made squares optically huge and
 * padded/wide assets look uneven. */
.logo-mark-sm {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 200px;
    height: 64px;
    margin-bottom: 14px;
}

.logo-mark-sm img,
img.logo-mark-sm {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 200px !important;
    max-height: 64px !important;
    object-fit: contain;
    object-position: left center;
}

.exp-role .logo-mark-sm {
    width: 220px;
    height: 72px;
    margin-bottom: 16px;
}

.exp-role .logo-mark-sm img,
.exp-role img.logo-mark-sm {
    max-width: 220px !important;
    max-height: 72px !important;
}

/* Footer social logos (LinkedIn · Facebook · WhatsApp · Email) */
footer ul.social-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 22px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

footer ul.social-logos li {
    margin: 0;
    padding: 0;
}

footer ul.social-logos li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    line-height: 0;
    opacity: 0.92;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

footer ul.social-logos li a:after,
footer ul.social-logos li a:before {
    display: none !important;
    content: none !important;
}

footer ul.social-logos li a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

footer ul.social-logos img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* About — Experience roles (resume-complete) */
.exp-role {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 8px;
}

.exp-role:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.exp-role__skills {
    font-size: 0.9em;
    opacity: 0.75;
    margin-bottom: 0.65rem;
}

.exp-role__bullets {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
}

.exp-role__bullets li {
    margin-bottom: 0.35rem;
}

/* Legacy partners-grid (if reused) */
.partners-intro {
    max-width: 720px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 20px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.partner-logo img {
    max-width: 100%;
    max-height: 48px;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

.partner-logo .partner-name {
    margin-top: 12px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #666;
    text-align: center;
    line-height: 1.3;
}

@media (max-width: 991px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .logo-tile__mark {
        height: 108px;
        padding: 6px 4px;
    }

    .logo-tile__mark img,
    img.logo-mark {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 80px !important;
    }
}

@media (max-width: 575px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .logo-tile__mark {
        height: 92px;
        margin-bottom: 0;
        padding: 4px 3px;
    }

    .logo-tile__mark img,
    img.logo-mark {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 68px !important;
    }

    .logo-tile h4 {
        font-size: 12px;
        line-height: 1.3;
        letter-spacing: 0;
    }

    .logo-mark-sm {
        width: 160px;
        height: 48px;
        margin-bottom: 8px;
    }

    .logo-mark-sm img,
    img.logo-mark-sm {
        max-width: 160px !important;
        max-height: 48px !important;
    }

    .exp-role .logo-mark-sm {
        width: 180px;
        height: 56px;
        margin-bottom: 12px;
    }

    .exp-role .logo-mark-sm img,
    .exp-role img.logo-mark-sm {
        max-width: 180px !important;
        max-height: 56px !important;
    }

    /* Tighter logo columns on phones — keep marks from colliding */
    .logo-grid.row {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1.25rem;
    }

    .logo-grid > [class*="col-"] {
        margin-bottom: 0;
    }
}
