/* ============================================================
   What Next – three-panel section (Delivery / Storage / Sell)
   ============================================================ */

.what-next__heading {
    font-family: 'The Seasons', the-seasons, serif;
    font-size: 3rem;
    font-weight: 400;
    font-style: normal;
    color: #422486;
    text-align: center;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

/* ---- Panels grid ------------------------------------------- */

.what-next__panels {
    display: grid;
    grid-template-columns: 2fr 3fr 2fr;
    gap: 1rem;
    align-items: stretch;
}

/* ---- Panel base -------------------------------------------- */

.what-next__panel {
    border-radius: 1rem;
    overflow: hidden;
    max-width: 62rem;
}

/* ---- Side panels: Delivery & Sell -------------------------- */

.what-next__panel--delivery,
.what-next__panel--sell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 0;
}

.what-next__panel--delivery .what-next__panel-title,
.what-next__panel--sell .what-next__panel-title {
    font-family: 'The Seasons', the-seasons, serif;
    font-size: 2.5rem;
    font-style: normal;
    color: #422486;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.what-next__panel--delivery .what-next__panel-subtitle,
.what-next__panel--sell .what-next__panel-subtitle {
    font-family: 'Source Sans Pro', 'Source Sans 3', source-sans-3, sans-serif;
    font-size: 1.5rem;
    color: #422486;
    text-transform: uppercase;
    margin: 0 0 1.25rem;
    line-height: 1.3;
}

.what-next__panel--delivery .what-next__panel-image,
.what-next__panel--sell .what-next__panel-image {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
    margin: 1rem 0 0 0;
}

.what-next__panel--delivery .what-next__panel-image img,
.what-next__panel--sell .what-next__panel-image img {
    width: 100%;
    height: 237px;
    object-fit: cover;
    display: block;
}

.what-next__panel--delivery .what-next__panel-body,
.what-next__panel--sell .what-next__panel-body {
    font-family: 'Source Sans Pro', 'Source Sans 3', source-sans-3, sans-serif;
    font-size: 1.5rem;
    color: #422486;
    margin: 1.25rem 0.5rem;
    flex: 1;
    line-height: 1.5;
}

/* ---- Featured / Storage panel ------------------------------ */

.what-next__panel--storage {
    position: relative;
    background: #2c035a;
}

.what-next__panel--storage .what-next__panel-image {
    width: 100%;
    height: 100%;
    min-height: 420px;
}

.what-next__panel--storage .what-next__panel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.what-next__panel--storage .what-next__panel-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background: rgba(44, 3, 90, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 2rem 1.5rem;
    min-height: 5.5rem;
    border-bottom: 1px solid rgba(248, 243, 236, 0.3);
}

.what-next__panel--storage .what-next__panel-title {
    font-family: 'The Seasons', the-seasons, serif;
    font-size: 2.5rem;
    font-style: normal;
    color: #f8f3ec;
    margin: 0;
    line-height: 1.2;
}

.what-next__panel--storage .what-next__panel-subtitle {
    font-family: 'Source Sans Pro', 'Source Sans 3', source-sans-3, sans-serif;
    font-size: 1.5rem;
    color: #f8f3ec;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.3;
}

.what-next__panel--storage .what-next__panel-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background: rgba(44, 3, 90, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1.5rem 2rem 1.75rem;
    min-height: 4rem;
}

.what-next__panel--storage .what-next__panel-body {
    font-family: 'Source Sans Pro', 'Source Sans 3', source-sans-3, sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #f8f3ec;
    text-align: center;
    margin: 0 0 3rem;
    line-height: 1.5;
}

/* ---- Buttons ----------------------------------------------- */

.what-next__panel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 58px;
    padding: 0 1.75rem;
    border: 1px solid #422486;
    border-radius: 1000px;
    color: #422486;
    font-family: 'Source Sans Pro', 'Source Sans 3', source-sans-3, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.what-next__panel-button:hover {
    background-color: #422486;
    color: #fff;
    text-decoration: none;
}

.what-next__panel--storage .what-next__panel-button {
    border-color: #f8f3ec;
    color: #f8f3ec;
}

.what-next__panel--storage .what-next__panel-button:hover {
    background-color: #f8f3ec;
    color: #2c035a;
}

/* ---- Tab navigation (mobile only) ------------------------- */

.what-next__tab-nav {
    display: none;
}

/* ---- Responsive -------------------------------------------- */

@media (max-width: 900px) {
    .what-next__heading {
        margin: 0 0 0.5rem;
    }


    /* Tab navigation */

    .what-next__tab-nav {
        display: flex;
        height: 4rem;
        align-items: flex-end;
        position: relative;
        margin-bottom: 0;
        border-bottom: 2px solid rgba(66, 36, 134, 0.15);
    }

    .what-next__tab {
        flex: 1;
        background: none;
        border: none;
        padding: 0.5rem 0.25rem 0.75rem;
        font-family: 'Source Sans Pro', 'Source Sans 3', source-sans-3, sans-serif;
        font-size: 1.5rem;
        font-weight: 400;
        color: #6d6d6d;
        text-align: center;
        cursor: pointer;
        position: relative;
        transition: color 0.2s, font-size 0.2s, font-weight 0.2s;
        line-height: 1.2;
    }

    .what-next__tab.is-active {
        font-size: 2rem;
        font-weight: 400;
        color: #422486;
    }

    .what-next__tab.is-active::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0%;
        right: 0%;
        height: 4px;
        background: #422486;
    }

    .what-next__tab:focus {
        background-color: #1e103d;
        border-top-left-radius: 1rem;
        border-top-right-radius: 1rem;
        outline: none;
        color: #fff;
    }

    /* Panel visibility (progressive enhancement — only when JS has run) */

    .what-next.tabs-ready .what-next__panel {
        display: none;
    }

    .what-next.tabs-ready .what-next__panel.is-active {
        display: block;
    }

    /* On mobile, panel titles are shown in the tab nav instead */

    .what-next.tabs-ready .what-next__panel--delivery .what-next__panel-title,
    .what-next.tabs-ready .what-next__panel--sell .what-next__panel-title {
        display: none;
    }

    .what-next.tabs-ready .what-next__panel--storage .what-next__panel-title {
        display: none;
    }

    /* Fallback: stacked layout when JS is unavailable */

    .what-next__panels {
        grid-template-columns: 1fr;
    }

    .what-next__panel {
        margin: 0 auto 1rem;
    }

    .what-next__panel--storage .what-next__panel-image {
        min-height: 580px;
    }

    .what-next__panel--delivery .what-next__panel-image img,
    .what-next__panel--sell .what-next__panel-image img {
        height: 350px;
    }
}

@media (max-width: 600px) {
    .what-next__panel--delivery .what-next__panel-image img,
    .what-next__panel--sell .what-next__panel-image img {
        height: 200px;
    }
}