/* =========================================================================
   The team page.

   Built to the reference: a portrait, and a white card overlapping the foot
   of it carrying the name and the role. Four across.

   What was there: a 140px circular crop of each portrait, centred on a
   bordered white box with a grey drop shadow — the box was the card and the
   face was an avatar inside it. The reference makes the photograph the card.

   The reference also puts a round share button on each caption. Ours has no
   per-person social links to put behind one, so there is no button.
   ========================================================================= */

/* The section's own padding rule is spelled `.Elite Express Cargo-wrapper-01`
   in style.css — a find-and-replace ran through the stylesheet and rewrote
   the word inside the class name, so the selector matches nothing and the
   section has had no padding since. */
.phl-wrapper-01 {
    padding: 88px 0 96px;
}

/* -------------------------------------------------------------------------
   The heading.
   ------------------------------------------------------------------------- */

.phl-wrapper-01 .quote-wrapper-all h2 {
    margin-bottom: 14px;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--elite-navy, #02135b);
}

.phl-wrapper-01 .quote-wrapper-all .heading-divider {
    display: block;
    width: 54px;
    height: 3px;
    border: 0;
    border-radius: 3px;
    background: var(--elite-red, #e80719);
}

/* -------------------------------------------------------------------------
   Four across.
   ------------------------------------------------------------------------- */

.team-page-wrap {
    margin-top: 48px;
}

.team-page-wrap .row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    margin: 0;
}

.team-page-wrap .row > [class*="col-"] {
    /* Bootstrap 5 sizes these with width: 50% / 25%, and as grid items those
       resolve against their own column — a quarter of a quarter. */
    width: 100%;
    max-width: none;
    padding: 0;
}

/* -------------------------------------------------------------------------
   The card.

   The photograph is the card now, so the box around it goes: its border, its
   shadow and its padding were all drawing a second card around the first.
   ------------------------------------------------------------------------- */

.team-page-wrap .card-1,
.home-team .card-1 {
    padding: 0 !important;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.team-page-wrap .card-1:hover,
.home-team .card-1:hover {
    box-shadow: none;
}

.team-page-wrap .card-02,
.home-team .card-02 {
    /* .text-center is on the element and the caption reads left. */
    text-align: left !important;
}

/* The portrait. It was a 140px circle; the reference frames the person
   rather than cropping them to a badge. */
.team-page-wrap .card-02 img,
.home-team .card-02 img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: top center;
    /* .rounded-circle is on the element in the markup. */
    border-radius: 14px !important;
    transition: transform .5s ease;
}

.team-page-wrap .card-1:hover .card-02 img,
.home-team .card-1:hover .card-02 img {
    transform: scale(1.03);
}

/* Clipped, so the picture cannot grow out past its own corners on hover. */
.team-page-wrap .card-02 {
    overflow: visible;
}

.team-page-wrap .card-02 > img {
    will-change: transform;
}

/* -------------------------------------------------------------------------
   The caption, lifted over the foot of the portrait.
   ------------------------------------------------------------------------- */

.team-page-wrap .team-caption,
.home-team .team-caption {
    position: relative;
    z-index: 2;
    margin: -58px 16px 0;
    padding: 16px 20px 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 36px -20px rgba(2, 19, 91, .45);
    transition: transform .3s ease, box-shadow .3s ease;
}

.team-page-wrap .card-1:hover .team-caption,
.home-team .card-1:hover .team-caption {
    transform: translateY(-4px);
    box-shadow: 0 26px 48px -22px rgba(2, 19, 91, .55);
}

.team-page-wrap .team-caption .team-new-1,
.home-team .team-caption .team-new-1 {
    margin: 0 0 3px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--elite-navy, #02135b);
}

.team-page-wrap .team-caption .text-gray,
.home-team .team-caption .text-gray {
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.4;
    color: #5b6478;
}

/* -------------------------------------------------------------------------
   Nobody to show.

   The teams table is empty, so the page renders a heading over nothing. Left
   as it is rather than papered over: an empty page is the honest signal that
   the content has not been added yet.
   ------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------
   Narrower screens.
   ------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .team-page-wrap .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .phl-wrapper-01 {
        padding: 60px 0 66px;
    }

    .phl-wrapper-01 .quote-wrapper-all h2 {
        font-size: 30px;
    }
}

@media (max-width: 575px) {
    .team-page-wrap .row {
        grid-template-columns: 1fr;
    }

    .team-page-wrap .card-02 img {
        height: 360px;
    }
}

/* =========================================================================
   The same people on the home page, as a strip that scrolls.

   Owl gives each item its own width, so the grid the team page uses does not
   apply here — everything else about the card does, which is why the rules
   above name both.
   ========================================================================= */

.home-team {
    padding: 10px 0 84px;
}

.home-team .quote-wrapper-all h2 {
    margin-bottom: 14px;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--elite-navy, #02135b);
}

.home-team .quote-wrapper-all .heading-divider {
    display: block;
    width: 54px;
    height: 3px;
    border: 0;
    border-radius: 3px;
    background: var(--elite-red, #e80719);
}

.home-team .team-slider {
    margin-top: 44px;
}

/* Room under each slide for the caption's shadow, which owl's stage would
   otherwise cut off at the item's edge. */
.home-team .team-slider .owl-item > div {
    padding-bottom: 18px;
}

.home-team .team-slider .owl-dots {
    margin-top: 14px;
    text-align: center;
}

.home-team .team-slider .owl-dots .owl-dot span {
    display: block;
    width: 9px;
    height: 9px;
    margin: 0 4px;
    background: #d4d9e6;
    border-radius: 50%;
    transition: background .2s ease, width .2s ease;
}

.home-team .team-slider .owl-dots .owl-dot.active span {
    width: 24px;
    border-radius: 6px;
    background: var(--elite-red, #e80719);
}

@media (max-width: 991px) {
    .home-team {
        padding: 0 0 56px;
    }

    .home-team .quote-wrapper-all h2 {
        font-size: 30px;
    }
}
