﻿/* ==========================================================================
   CALLOUT STRIP
   The first thing read after the banner. Restraint is the whole design: a
   photograph, a hook, one line. No borders, no shadows, no cards-on-cards —
   the cream canvas does the separating.
   ========================================================================== */

.callouts {
    background: var(--cream);
    padding-block: var(--sp-7) var(--sp-5);
}

.callouts__heading {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    text-align: center;
    margin-bottom: var(--sp-6);
}

/* ---- Mobile: one card at a time --------------------------------------- */

.callouts__track {
    display: flex;
    gap: var(--sp-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Full-bleed so a card can sit edge to edge, with the gutter restored as
     padding — the same trick the range circles use. */
    margin-inline: calc(var(--sp-4) * -1);
    padding-inline: var(--sp-4);
    scroll-padding-inline: var(--sp-4);
}

    .callouts__track::-webkit-scrollbar {
        display: none;
    }

.cout {
    position: relative; /* the containing block for .cout__link::after */
    flex: 0 0 100%;
    scroll-snap-align: start;
    min-width: 0;
}

/* ---- Tablet and desktop: a grid, snapping off ------------------------- */

@media (min-width: 640px) {
    .callouts__track {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--sp-6) var(--sp-5);
        overflow: visible;
        scroll-snap-type: none;
        margin-inline: 0;
        padding-inline: 0;
    }

    .cout {
        flex: none;
    }
}

@media (min-width: 1024px) {
    .callouts__track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--sp-7) var(--sp-6);
    }
}

/* ---- The card --------------------------------------------------------- */

/* The stretched-link pattern: the anchor lives on the title for screen readers
   and keyboard users, and an invisible layer over the whole card catches the
   click. One element, one tag, no dynamic markup. */
.cout__link {
    color: inherit;
    text-decoration: none;
}

    .cout__link::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
    }

.cout__media {
    position: relative;
    aspect-ratio: 4 / 3; /* reserved space, so nothing shifts as images land */
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--cream-deep);
    display: grid;
    place-items: center;
}

    .cout__media img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform var(--dur-section) var(--ease-brand);
    }

@media (hover: hover) {
    .cout:hover .cout__media img {
        transform: scale(1.04);
    }

    .cout:hover .cout__title {
        color: var(--tbs-green-deep);
    }
}
}

/* No artwork uploaded: a botanical mark on brand green rather than a grey
   hole, so a half-populated section still looks deliberate. */
.cout__mark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(155deg, var(--tbs-green) 0%, var(--tbs-green-deep) 100%);
    color: rgba(200, 169, 106, .55);
}

    .cout__mark svg {
        width: 32%;
        height: auto;
    }

/* A short gold rule above the hook — the one ornament in the section, and the
   thing that ties it to the gold used on the badges and the reel. */
.cout__title {
    position: relative;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    line-height: 1.3;
    letter-spacing: var(--tracking-display);
    color: var(--tbs-green);
    margin: var(--sp-5) 0 var(--sp-2);
    padding-top: var(--sp-3);
    transition: color var(--dur-micro) var(--ease-brand);
}

    .cout__title::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 26px;
        height: 2px;
        background: var(--gold);
    }

.cout__sub {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ink-mute);
    margin: 0;
    /* Two lines, then cut. A card that grows to five lines stops being a hook. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .cout__title {
        font-size: 1.1875rem;
    }

    .cout__sub {
        font-size: 0.9375rem;
    }
}

/* ---- Dots (mobile only) ----------------------------------------------- */

.callouts__dots {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: var(--sp-4);
}

@media (min-width: 640px) {
    /* The grid shows every card at once, so position indicators would be lying. */
    .callouts__dots {
        display: none;
    }
}

.callouts__dot {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    display: grid;
    place-items: center;
}

    .callouts__dot::after {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: rgba(0, 75, 52, .22);
        transition: background var(--dur-micro) var(--ease-brand), transform var(--dur-micro) var(--ease-brand);
    }

    .callouts__dot.is-on::after {
        background: var(--tbs-green);
        transform: scale(1.25);
    }
