/**
 * Brand cards: how the base cards block looks on this site, and two card
 * types of its own. Project styles (PPL Logistiikka) on top of
 * css/blocks/cards.css.
 *
 * All cards: square corners, hairline border, the section's neutral surface
 * (ice on white, white on ice). No wrapper-extra-color on the card.
 *
 * Variants (on the .card):
 *   card--path    one of the two audiences on the front page: display-size
 *                 title (Lavat / Paketit), p.card-audience, text,
 *                 p.card-proof (a customer's comment + span with the name)
 *                 above a hairline, an outlined button
 *   card--price   p.sub-heading, p.card-price (figure + span.card-price-unit),
 *                 text
 * Row: cards--2 and the default three columns come from the base block.
 */

.cards .card {
    padding: clamp(22px, 2.8vw, 34px);
    border: 1px solid var(--border-clr);
    border-radius: 0;
    background-color: var(--neutral-clr);
    overflow: visible;
}

.card p {
    font-size: 0.95em;
}

.card .sub-heading {
    margin-bottom: 0;
    font-size: 12px;
}

.card--path h3 {
    font-size: clamp(2.6rem, 4.6vw, 3.8rem);
    font-weight: var(--heading-weight-large);
    line-height: 1;
}

.card--path .card-audience {
    margin-top: -2px;
    font-size: 1em;
    font-weight: 700;
    color: var(--heading-clr);
}

/* A customer's comment at the foot of a card: quote, then span with the name */
.card .card-proof {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-clr);
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1.4;
    color: var(--heading-clr);
}

.card-proof span {
    display: block;
    margin-top: 4px;
    font-size: 0.85em;
    font-weight: 400;
    color: var(--font-clr);
}

.card--path .gb-button {
    align-self: flex-start;
    margin-top: 8px;
}

.card-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    font-family: var(--title-font);
    font-size: 1.9em !important;
    font-weight: var(--heading-weight-large);
    line-height: 1;
    text-transform: uppercase;
    color: var(--heading-clr);
}

.card-price-unit {
    font-family: var(--code-font);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--link-clr);
}
