/* sections.css — homepage IA (0.29.0).
 *
 * Shared styles for the four-section homepage and the per-section card
 * grids used by Coming Soon + Seasonal. Section-card markup is rendered
 * by section-cards.js (window.sgSectionCard.render) and reused on both
 * the homepage section and the standalone /coming-soon.html and
 * /seasonal.html pages.
 *
 * Per-season theming is driven by --section-color, scoped per .seasonal-
 * panel via inline `style="--section-color: <hex>"` set by seasons-home.js.
 * The default fallback is brand pink so untheme'd seasons match the rest
 * of the site.
 */

/* --- Hero jump-to chips ------------------------------------------- */

.hero__jumps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
    margin-bottom: var(--space-3);
}

.hero-jump {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 9px 17px;        /* 0.30.2: -1px each axis to absorb the +1px border */
    background: #fff;
    border: 2px solid var(--color-primary, #ef5190);  /* brand-pink outline (UI element, 3:1 sufficient) */
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    /* 0.74.28: text uses the dark variant for WCAG AA (4.5:1+ on white) while
       the 2px outline keeps the brand-pink chip identity. */
    color: var(--color-primary-dark, #b02a60);
    text-decoration: none;
    transition: background 120ms ease, color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

/* The author-stylesheet `.hero-jump { display: inline-flex }` rule wins
   the specificity tie against the UA `[hidden] { display: none }` rule
   by source-order, so a chip with `hidden` attribute would still show.
   Force `display: none` on hidden chips so the homepage starts with only
   the chips whose sections actually have content. */
.hero-jump[hidden] { display: none !important; }

.hero-jump:hover {
    /* 0.74.28: hover bg uses the dark variant so white-on-bg passes WCAG AA. */
    background: var(--color-primary-dark, #b02a60);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(176,42,96,0.30);
}

.hero-jump__arrow {
    display: inline-block;
    color: inherit;          /* follow chip text colour: pink at rest, white on hover */
    font-weight: 700;
    transition: transform 120ms ease;
}

.hero-jump:hover .hero-jump__arrow {
    transform: translateY(2px);
}

.hero__signup {
    text-align: center;
    margin-top: var(--space-2);
}

/* Mobile: chips wrap; on very narrow screens, stack full-width to keep
   text readable + tap-targets fat. */
@media (max-width: 480px) {
    .hero-jump {
        width: 100%;
        justify-content: space-between;
    }
}

/* --- Section heading + grid (shared by Coming Soon + Seasonal) ---- */

.section-heading {
    margin-bottom: var(--space-4);
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}
@media (min-width: 600px)  { .section-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .section-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .section-grid { grid-template-columns: repeat(5, 1fr); } }

/* --- Section card (shared) ---------------------------------------- */

.section-card {
    border: 1px solid var(--color-border, #ddd);
    border-radius: var(--radius-md, 6px);
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.section-card:hover {
    border-color: var(--section-color, var(--color-accent, #ef5190));
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.section-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fff5f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.section-card__media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.section-card__placeholder {
    /* 0.74.28: was #d4598a — too light on the #fff5f8 media bg (~3.5:1).
       --color-primary-dark on #fff5f8 ≈ 6.5:1 ✓ */
    color: var(--color-primary-dark, #b02a60);
    text-align: center;
    font-size: 13px;
    padding: var(--space-3);
}

.section-card__eta-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255,255,255,0.95);
    color: var(--section-color, var(--color-accent, #ef5190));
    border: 1px solid var(--section-color, var(--color-accent, #ef5190));
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.section-card__source-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--section-color, var(--color-accent, #ef5190));
    color: #fff;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.section-card__source-badge--tease {
    /* 0.74.29: was #999 — white-on-#999 ≈ 2.84:1. #595959 ≈ 7:1 white-on-it
       and reads as a neutral, less-shouty alternative to the season-coloured
       primary badge. */
    background: #595959;
}

.section-card__body {
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    flex: 1;
}

.section-card__title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.section-card__meta {
    font-size: 12px;
    color: var(--color-text-muted, #666);
}

.section-card__price {
    font-size: 16px;
    font-weight: 700;
    margin-top: var(--space-1);
    color: var(--color-text, #222);
}
.section-card__price-vat {
    font-size: 11px;
    font-weight: 400;
    color: var(--color-text-muted, #666);
    margin-left: 4px;
}
.section-card__price--tbc {
    color: var(--color-text-muted, #666);
    font-style: italic;
}

.section-card__cta {
    margin-top: auto;
    padding-top: var(--space-2);
}
.section-card__cta .btn {
    width: 100%;
    text-align: center;
}
.section-card__cta-tease {
    margin-top: auto;
    padding-top: var(--space-2);
    color: var(--color-text-muted, #666);
    font-size: 12px;
    font-style: italic;
    text-align: center;
}

/* 0.33.0 — Shoppable tease card: deposit hint + qty stepper + Add-to-basket
   button. .section-card--shoppable applies on top of .section-card--tease so
   the hover/border treatment from the tease look stays. */
.section-card__deposit {
    margin: var(--space-2) 0;
    line-height: 1.4;
}
.section-card__tease-form {
    /* 0.74.9 — mirror the brand-tile tier-row look: grey rounded
       container with --space-4 internal padding around the qty
       stepper + button stack. Qty + button each take 100% of the
       inner content area so they align consistently across all
       cards in the row. Section-cards now match brand cards site-wide. */
    margin-top: auto;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    align-items: stretch;
}
.section-card__tease-form .qty-input {
    flex: 0 0 auto;
    width: 100%;
}
.section-card__tease-form .btn {
    flex: 0 0 auto;
    width: 100%;
    text-align: center;
}
.section-card--shoppable {
    /* Re-enable hover lift since these cards ARE actionable, unlike the
       info-only tease cards. Keeps parity with the .section-card hover
       treatment that the article variant suppresses. */
    cursor: default;
}
.section-card--shoppable:hover {
    border-color: var(--color-primary, #ef5190);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* --- Empty / loading states --------------------------------------- */

.section-empty {
    padding: var(--space-6) var(--space-4);
    text-align: center;
    color: var(--color-text-muted, #666);
    background: #fafafa;
    border: 1px dashed var(--color-border, #ddd);
    border-radius: var(--radius-md, 6px);
}

/* --- Seasonal tabs ------------------------------------------------ */

.seasonal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border, #eee);
    padding-bottom: var(--space-2);
}

.seasonal-tab {
    background: transparent;
    border: 1px solid var(--color-border, #ddd);
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text, #333);
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.seasonal-tab:hover {
    border-color: var(--section-color, var(--color-accent, #ef5190));
}
.seasonal-tab[aria-selected="true"] {
    /* 0.74.28: fallback (when no per-season --section-color is set) uses the
       dark variant so white-on-pill passes WCAG AA. Per-season hex values
       set inline by seasons-home.js own their own contrast. */
    background: var(--section-color, var(--color-primary-dark, #b02a60));
    color: #fff;
    border-color: var(--section-color, var(--color-primary-dark, #b02a60));
}

.seasonal-panel {
    /* Per-season theming target — seasons-home.js sets
       style="--section-color: <hex>" inline on the active panel so the
       tab pill, h3 underline, badges, and card hover all pick up the
       theme color. */
}

.seasonal-panel__hero {
    margin-bottom: var(--space-4);
    border-radius: var(--radius-md, 6px);
    overflow: hidden;
    background: #fff5f8;
}
.seasonal-panel__hero img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 320px;
    object-fit: cover;
}

.seasonal-panel__h3 {
    margin: 0 0 var(--space-1);
    border-bottom: 4px solid var(--section-color, var(--color-accent, #ef5190));
    padding-bottom: var(--space-2);
    display: inline-block;
}

.seasonal-panel__subtitle {
    color: var(--color-text-muted, #666);
    margin: 0 0 var(--space-3);
}

.seasonal-panel__countdown {
    display: inline-block;
    padding: 6px 14px;
    background: var(--section-color, var(--color-accent, #ef5190));
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    margin: var(--space-2) 0 var(--space-3);
}
.seasonal-panel__countdown--ended {
    background: #999;
}
