/**
 * Associations — front-end styles
 *
 * Loaded on /associations, single association pages, single product pages and
 * cart/checkout. Follows the site's playful neo-brutalist language: navy hero
 * bands with floating confetti, big Anton numbers with hard navy text-shadow,
 * cream cards with 2px navy borders + hard offset shadows, rotated stamp
 * stickers, mint info strips and per-card accent colours.
 *
 * @package BadgeTaMere
 */

/* ── IMPACT HERO BAND (catalog + single) ─────────────────────────────────── */
.btm-assoc-hero-band {
    position: relative;
    overflow: hidden;
    background: var(--c-navy, #1c1b2e);
    border-bottom: 3px solid var(--c-mint, #b8edd8);
    padding: clamp(2.25rem, 5vw, 3.75rem) 1.25rem;
    text-align: center;
}

.btm-assoc-hero-band__inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.btm-assoc-hero-band__title {
    font-family: "Anton", sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0.25rem 0 0;
    text-wrap: balance;
}

.btm-assoc-hero-band__sub {
    color: rgba(255, 255, 255, 0.62);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 38rem;
    margin: 0.9rem auto 0;
}

/* ── IMPACT STATS ────────────────────────────────────────────────────────── */
.btm-assoc-impact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.25rem, 4vw, 3rem);
    margin-top: 1.9rem;
}

.btm-assoc-impact__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btm-assoc-impact__num {
    font-family: "Anton", sans-serif;
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    line-height: 1;
    letter-spacing: -0.01em;
    text-shadow: 3px 3px 0 var(--c-navy, #1c1b2e);
}

.btm-assoc-impact__num--orange { color: var(--c-orange, #ff6b4a); }
.btm-assoc-impact__num--mint   { color: var(--c-mint, #b8edd8); }
.btm-assoc-impact__num--peach  { color: var(--c-peach, #ffbcab); }

.btm-assoc-impact__label {
    margin-top: 0.45rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

/* ── Catalog grid ────────────────────────────────────────────────────────── */
.btm-assoc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.9rem;
    max-width: 1200px;
    margin: 2.75rem auto 3.5rem;
    padding: 0 clamp(1rem, 3vw, 3rem);
}

.btm-assoc-card {
    --accent: var(--c-peach-mid, #ffe8d6);
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--c-cream, #fff9f5);
    border: 2px solid var(--c-navy, #1c1b2e);
    box-shadow: 5px 5px 0 var(--c-navy, #1c1b2e);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btm-assoc-card:nth-child(3n + 2) { --accent: var(--c-mint, #b8edd8); }
.btm-assoc-card:nth-child(3n + 3) { --accent: var(--c-lavender-light, #e8e4ff); }

.btm-assoc-card:hover {
    transform: translate(-3px, -3px) rotate(-0.6deg);
    box-shadow: 8px 8px 0 var(--c-navy, #1c1b2e);
}

.btm-assoc-card__img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--accent);
    border-bottom: 2px solid var(--c-navy, #1c1b2e);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btm-assoc-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btm-assoc-card:hover .btm-assoc-card__img img {
    transform: scale(1.05);
}

.btm-assoc-card__emoji {
    font-size: 3.5rem;
    line-height: 1;
    filter: drop-shadow(2px 2px 0 rgba(28, 27, 46, 0.18));
}

.btm-assoc-card__body {
    padding: 1.1rem 1.25rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 1;
}

.btm-assoc-card__title {
    font-family: "Anton", sans-serif;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--c-navy, #1c1b2e);
    margin: 0;
}

.btm-assoc-card__desc {
    margin: 0;
    color: var(--c-navy-muted, #3d3b54);
    font-size: 0.92rem;
    line-height: 1.5;
}

.btm-assoc-card__cta {
    margin-top: 0.15rem;
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c-orange, #ff6b4a);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btm-assoc-card__cta span {
    transition: transform 0.2s;
}

.btm-assoc-card:hover .btm-assoc-card__cta span {
    transform: translateX(4px);
}

/* ── Propose-an-association CTA card ──────────────────────────────────────── */
.btm-assoc-card--propose {
    border-style: dashed;
    background:
        repeating-linear-gradient(45deg, var(--c-cream, #fff9f5) 0 12px, #fff 12px 24px);
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 18rem;
}

.btm-assoc-card--propose:hover {
    transform: translate(-3px, -3px) rotate(0.6deg);
}

.btm-assoc-card__propose-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.75rem 1.5rem;
}

.btm-assoc-card__propose-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border: 2px solid var(--c-navy, #1c1b2e);
    border-radius: 50%;
    background: var(--c-mint, #b8edd8);
    font-family: "Anton", sans-serif;
    font-size: 2rem;
    line-height: 1;
    color: var(--c-navy, #1c1b2e);
    box-shadow: 3px 3px 0 var(--c-navy, #1c1b2e);
    transition: transform 0.2s;
}

.btm-assoc-card--propose:hover .btm-assoc-card__propose-plus {
    transform: rotate(90deg) scale(1.08);
}

/* ── Counters (icon + value) ─────────────────────────────────────────────── */
.btm-assoc-counters {
    display: flex;
    gap: 0.7rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.btm-assoc-counter {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--c-mint, #b8edd8);
    border: 2px solid var(--c-navy, #1c1b2e);
    border-radius: 12px;
    padding: 0.5rem 0.8rem;
    flex: 1;
    min-width: 8rem;
}

.btm-assoc-counter--badges {
    background: var(--c-peach-mid, #ffe8d6);
}

.btm-assoc-counter__icon {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
}

.btm-assoc-counter__body {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.btm-assoc-counter__value {
    font-family: "Anton", sans-serif;
    font-weight: 400;
    font-size: 1.4rem;
    color: var(--c-navy, #1c1b2e);
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.btm-assoc-counter__label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-navy-muted, #3d3b54);
    font-weight: 700;
}

/* ── Single association hero variant ─────────────────────────────────────── */
.btm-assoc-hero-band--single .btm-assoc-counters {
    justify-content: center;
    margin-top: 1.4rem;
    max-width: 30rem;
    margin-left: auto;
    margin-right: auto;
}

.btm-assoc-hero-band--single .btm-assoc-counter {
    flex: 0 1 13rem;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}

/* ── Single association body ─────────────────────────────────────────────── */
.btm-assoc-single {
    max-width: 860px;
    margin: 0 auto;
    padding: 2.25rem clamp(1rem, 3vw, 1.25rem) 0;
}

.btm-assoc-cover {
    margin: 0 0 1.75rem;
    border: 2px solid var(--c-navy, #1c1b2e);
    box-shadow: 5px 5px 0 var(--c-navy, #1c1b2e);
    border-radius: 16px;
    overflow: hidden;
}

.btm-assoc-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.btm-assoc-content {
    font-size: 1rem;
    line-height: 1.75;
}

/* ── Donation proofs ─────────────────────────────────────────────────────── */
.btm-assoc-proofs {
    margin: 3rem 0 1.5rem;
}

.btm-assoc-proofs .section-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 1.25rem;
}

.btm-assoc-proofs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1.25rem;
}

.btm-assoc-proof {
    margin: 0;
    border: 2px solid var(--c-navy, #1c1b2e);
    box-shadow: 4px 4px 0 var(--c-navy, #1c1b2e);
    background: #fff;
    overflow: hidden;
    transition: transform 0.18s, box-shadow 0.18s;
}

.btm-assoc-proof:hover {
    transform: translate(-2px, -2px) rotate(-1deg);
    box-shadow: 6px 6px 0 var(--c-navy, #1c1b2e);
}

.btm-assoc-proof img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid var(--c-navy, #1c1b2e);
}

.btm-assoc-proof figcaption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
}

.btm-assoc-proof figcaption strong {
    font-family: "Anton", sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--c-green, #3daa7a);
    letter-spacing: -0.01em;
}

.btm-assoc-proof__date {
    color: var(--c-navy-muted, #3d3b54);
    font-size: 0.8rem;
}

/* ── Supporting-products section (assoc page + catalog) ──────────────────── */
.btm-assoc-supports {
    max-width: 1200px;
    margin: 3.5rem auto 1rem;
    padding: 0 clamp(1rem, 3vw, 3rem);
}

.btm-assoc-supports .btm-section-header {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1.5rem;
}

/* ── Product page support block (mint info strip) ────────────────────────── */
.btm-product-donation {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1rem 0;
    padding: 0.85rem 1.1rem;
    background: var(--c-mint, #b8edd8);
    border: 2px solid var(--c-navy, #1c1b2e);
    border-radius: 10px;
    box-shadow: 3px 3px 0 var(--c-navy, #1c1b2e);
    text-decoration: none;
    color: var(--c-navy, #1c1b2e);
    transition: transform 0.15s, box-shadow 0.15s;
}

.btm-product-donation:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--c-navy, #1c1b2e);
}

.btm-product-donation__icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    line-height: 1;
}

.btm-product-donation__text {
    font-size: 0.92rem;
    line-height: 1.4;
}

/* ── Product card donation pill ──────────────────────────────────────────── */
.btm-card-donation {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    align-self: flex-start;
    margin-top: 0.5rem;
    padding: 0.25rem 0.6rem;
    background: var(--c-mint, #b8edd8);
    border: 2px solid var(--c-navy, #1c1b2e);
    border-radius: 50px;
    font-size: 0.74rem;
    line-height: 1.2;
    color: var(--c-navy, #1c1b2e);
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btm-card-donation:hover {
    transform: translate(-1px, -1px);
    box-shadow: 2px 2px 0 var(--c-navy, #1c1b2e);
}

.btm-card-donation strong {
    font-weight: 800;
}

/* ── Cart / checkout: donation totals row + banner ───────────────────────── */
.btm-cart-donation th,
.btm-cart-donation td {
    color: var(--c-green, #3daa7a);
}

.btm-cart-donation td strong {
    font-weight: 800;
}

.btm-cart-donation-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    padding: 0.85rem 1.1rem;
    background: var(--c-mint, #b8edd8);
    border: 2px solid var(--c-navy, #1c1b2e);
    border-radius: 10px;
    box-shadow: 3px 3px 0 var(--c-navy, #1c1b2e);
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--c-navy, #1c1b2e);
}

.btm-cart-donation-banner__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .btm-assoc-grid {
        grid-template-columns: 1fr;
    }

    .btm-assoc-hero-band--single .btm-assoc-counter {
        flex: 1;
    }
}
