/* =========================================================
   GS Group - Company logo plates
   Shared by index.html (Verticals list) and service.html (chapters).
   Load AFTER style.css / home.css / pages.css:
   <link rel="stylesheet" href="./css/logos.css">

   Design notes
   - Every logo sits on a fixed square white plate, so any logo stays legible
     in both light and dark themes and all plates line up.
   - Logos are never cropped or upscaled: object-fit: contain with max-width /
     max-height only, so each logo keeps its natural proportions.
   - The company name is a visible caption next to the plate.
   - Missing logo files are hidden by script.js (the tile and, if empty, the
     whole strip), so a company without a logo simply shows nothing yet.
   ========================================================= */

/* ---------- Strip ---------- */
.vlogos,
.vrow__t>span.vlogos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    max-width: none;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: inherit;
}

.vlogos::before {
    content: "Operated by";
    flex: 0 0 100%;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}

.vlogos[hidden],
.vrow__t>span.vlogos[hidden],
.vlogo[hidden] {
    display: none;
}

/* ---------- Tile: plate + company name ---------- */
.vlogo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding-right: 18px;
    border: 1px solid var(--border);
    background: transparent;
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}

.vlogo__plate {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 88px;
    height: 88px;
    padding: 6px;
    background: #fff;
    border-right: 1px solid var(--border);
}

.vlogo__img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.vlogo__name {
    display: block;
    max-width: 19ch;
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--heading);
}

/* Gold corner marks: frame the logo on hover / focus (always visible on touch) */
.vlogo__plate::before,
.vlogo__plate::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border: 0 solid var(--gold);
    opacity: 0;
    transform: scale(.4);
    transition: opacity .3s var(--ease), transform .35s var(--ease);
    pointer-events: none;
}

.vlogo__plate::before {
    top: 6px;
    left: 6px;
    border-top-width: 2px;
    border-left-width: 2px;
    transform-origin: top left;
}

.vlogo__plate::after {
    right: 6px;
    bottom: 6px;
    border-right-width: 2px;
    border-bottom-width: 2px;
    transform-origin: bottom right;
}

.vlogo:hover,
.vrow:hover .vlogo,
.vrow:focus-visible .vlogo {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(46, 6, 13, .14);
}

:root[data-theme="dark"] .vlogo:hover,
:root[data-theme="dark"] .vrow:hover .vlogo,
:root[data-theme="dark"] .vrow:focus-visible .vlogo {
    box-shadow: 0 10px 22px rgba(0, 0, 0, .45);
}

.vlogo:hover .vlogo__plate::before,
.vlogo:hover .vlogo__plate::after,
.vrow:hover .vlogo__plate::before,
.vrow:hover .vlogo__plate::after,
.vrow:focus-visible .vlogo__plate::before,
.vrow:focus-visible .vlogo__plate::after {
    opacity: 1;
    transform: scale(1);
}

@media (hover: none) {

    .vlogo__plate::before,
    .vlogo__plate::after {
        opacity: .9;
        transform: none;
    }
}

/* ---------- Service page: strip sits under the chapter lead ---------- */
.chap__body .vlogos {
    margin-block: clamp(20px, 2.4vw, 30px);
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {

    .vlogos,
    .vrow__t>span.vlogos {
        gap: 10px;
        margin-top: 18px;
        padding-top: 14px;
    }

    .vlogo {
        flex: 1 1 100%;
        gap: 12px;
    }

    .vlogo__plate {
        width: 76px;
        height: 76px;
    }

    .vlogo__name {
        max-width: none;
    }
}

@media (max-width: 360px) {
    .vlogo__plate {
        width: 68px;
        height: 68px;
        padding: 5px;
    }

    .vlogo__name {
        font-size: .8rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .vlogo,
    .vlogo__plate::before,
    .vlogo__plate::after {
        transition: none;
    }
}