/* ================================================================
   /why: the sales page. Loaded only by why.html, on top of melia.css.
   Built on the homepage's own components (.melia-hero, .melia-pillar,
   .melia-press); this file only adds what the site has no component for:
   the numbers band, the "in the box" grid, and figure/caption treatment.
   Everything here is prefixed .mw-.
   ================================================================ */

/* The homepage's eyebrow (.melia-theme-showcase__eyebrow), reusable. */
.mw-eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--melia-primary-light);
}

/* ── Hero additions ───────────────────────────────────────────── */
.mw-hero-lede {
    max-width: 40rem;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--melia-text-muted);
}

.mw-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.mw-fine {
    margin: 1rem 0 0;
    font-size: 0.9rem;
    color: var(--melia-text-muted);
}

/* ── Numbers ──────────────────────────────────────────────────── */
.mw-numbers__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin: 0;
}

.mw-stat {
    padding-top: 1.25rem;
    border-top: 1px solid #d4d8de;
}

.mw-stat__value {
    margin: 0 0 0.5rem;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--melia-primary);
}

.mw-stat__label {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--melia-text-muted);
}

.mw-stat__label a {
    color: var(--melia-primary);
    font-weight: 500;
}

@media (max-width: 991.98px) {
    .mw-numbers__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .mw-numbers__grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

/* ── Figures inside pillars ───────────────────────────────────── */
.mw-figure {
    margin: 0;
}

.mw-figure figcaption {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    text-align: center;
    color: var(--melia-text-muted);
}

.melia-pillar--dark .mw-figure figcaption {
    color: #8aa6c8;
}

.mw-shot {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--melia-radius-md);
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.2)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.mw-shot.melia-compare {
    overflow: hidden;
}

/* A tall, narrow pane shown as a strip that fades out, rather than a
   1700px-tall image dominating the row. */
.mw-tall {
    max-width: 340px;
    max-height: 520px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--melia-radius-md);
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
    mask-image: linear-gradient(to bottom, #000 72%, transparent);
}

.mw-tall img {
    display: block;
    width: 100%;
    height: auto;
}

/* ── In the box ───────────────────────────────────────────────── */
.mw-section-head {
    text-align: center;
    margin-bottom: 3rem;
}

.mw-section-head h2 {
    font-size: 2.4rem;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0;
}

.mw-box__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mw-box__item {
    padding-top: 1.25rem;
    border-top: 1px solid var(--melia-border);
}

.mw-box__item p {
    margin: 0;
    line-height: 1.6;
    color: var(--melia-text-muted);
}

.mw-box__item .melia-pillar__tag {
    margin-bottom: 0.6rem;
}

.mw-strip {
    display: grid;
    grid-template-columns: 1.9fr 0.95fr 1fr;
    align-items: end;
    gap: 2rem;
    margin-top: 4rem;
}

.mw-strip figure {
    margin: 0;
}

.mw-strip figcaption {
    margin-top: 0.8rem;
    font-size: 0.88rem;
    text-align: center;
    color: var(--melia-text-muted);
}

@media (max-width: 991.98px) {
    .mw-box__list {
        grid-template-columns: repeat(2, 1fr);
    }
    .mw-strip {
        grid-template-columns: 1fr 1fr;
    }
    .mw-strip figure:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .mw-box__list,
    .mw-strip {
        grid-template-columns: 1fr;
    }
}

/* ── Price ────────────────────────────────────────────────────── */
.mw-price-sub {
    max-width: 34rem;
    margin: 0.75rem auto 2rem;
    font-size: 1.1rem;
    color: var(--melia-text-muted);
}
