/* ==========================================================================
   Ziua Vinului — event landing (/{locale}/ziua-vinului)
   Black / white only, on the off-white of the campaign artwork.
   ========================================================================== */

.wine-day-page {
    --wd-ink: #1a1a1a;
    --wd-muted: #6b6b6b;
    --wd-line: #dcdcd4;
    --wd-paper: #f5f5ef;
    --wd-card: #ffffff;
    --wd-radius: 14px;
    --wd-ease: cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--wd-paper);
}

.wd-page {
    /* Same off-white as the bottles artwork, so the image blends in. */
    background: var(--wd-paper);
    color: var(--wd-ink);
    font-family: "Inter", "Segoe UI", sans-serif;
}

.wd-container {
    width: min(1120px, 100% - 32px);
    margin-inline: auto;
}

.wd-center {
    text-align: center;
}

/* ---------- buttons ---------- */
.wd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 40px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s var(--wd-ease), background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.wd-btn:hover {
    transform: translateY(-2px);
}

.wd-btn:active {
    transform: translateY(0);
}

.wd-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.wd-btn--light {
    background: #f5f5ef;
    color: var(--wd-ink);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.wd-btn--light:hover {
    background: #fff;
    color: var(--wd-ink);
}

.wd-btn--dark {
    background: #000;
    color: #fff;
}

.wd-btn--dark:hover {
    background: #2b2b2b;
    color: #fff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.wd-btn--dark:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.wd-btn--block {
    width: 100%;
}

/* ---------- hero ---------- */
.wd-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* full screen, capped so very tall screens still see the next section */
    min-height: min(calc(100svh - var(--announce-height, 0px)), 980px);
    padding: 140px 16px 96px;
    color: #fff;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.7) 100%),
        var(--wd-hero) center / cover no-repeat #111;
    isolation: isolate;
}

.wd-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(32px, 6vh, 64px);
    max-width: 1040px;
}

.wd-hero__title {
    margin: 0;
    color: #fff;
    font-family: inherit;
    font-size: clamp(32px, 5.4vw, 64px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-wrap: balance;
    animation: wd-rise 0.9s var(--wd-ease) both;
}

.wd-hero .wd-btn {
    animation: wd-rise 0.9s 0.15s var(--wd-ease) both;
}

.wd-hero__date {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

@keyframes wd-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- shared section title ---------- */
.wd-title {
    margin: 0 auto;
    max-width: 1000px;
    color: var(--wd-ink);
    font-family: inherit;
    font-size: clamp(26px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
    text-wrap: balance;
}

/* ---------- about (editorial, like the story page) ---------- */
.wd-eyebrow {
    display: block;
    margin: 0 0 14px;
    color: #8a8a8a;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.wd-about {
    padding: clamp(64px, 9vw, 120px) 0;
    background: #fff;
    border-bottom: 1px solid var(--wd-line);
}

.wd-about__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(40px, 7vw, 112px);
    align-items: start;
}

.wd-about__head {
    position: sticky;
    top: 120px;
}

.wd-about__title {
    margin: 0 0 28px;
    color: #111;
    font-family: inherit;
    font-size: clamp(30px, 3.3vw, 44px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.wd-about__lede {
    margin: 0 0 32px;
    color: #3a3a3a;
    font-size: 16px;
    line-height: 1.9;
}

.wd-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--wd-ink);
    color: var(--wd-ink);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
}

.wd-link span {
    transition: transform 0.3s var(--wd-ease);
}

.wd-link:hover {
    color: var(--wd-ink);
}

.wd-link:hover span {
    transform: translateX(4px);
}

.wd-link:focus-visible {
    outline: 2px solid var(--wd-ink);
    outline-offset: 4px;
}

/* key facts: a spec strip with hairlines, no cards */
.wd-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 clamp(48px, 6vw, 72px);
    border-top: 1px solid var(--wd-ink);
    border-bottom: 1px solid var(--wd-line);
}

.wd-fact {
    padding: 22px 20px 24px 0;
}

.wd-fact + .wd-fact {
    padding-left: 20px;
    border-left: 1px solid var(--wd-line);
}

.wd-fact .wd-eyebrow {
    margin-bottom: 10px;
}

.wd-fact__value {
    margin: 0;
    color: #111;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 500;
    line-height: 1.2;
}

.wd-fact__sub {
    margin: 6px 0 0;
    color: #8a8a8a;
    font-size: 13px;
    line-height: 1.5;
}

.wd-about__block + .wd-about__block {
    margin-top: clamp(40px, 5vw, 56px);
}

.wd-about__text {
    margin: 0 0 20px;
    color: #3a3a3a;
    font-size: 16px;
    line-height: 1.8;
}

.wd-about__text strong {
    color: #111;
    font-weight: 600;
}

/* numbered wine list */
.wd-wine-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--wd-line);
}

.wd-wine-list__item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--wd-line);
    transition: padding-left 0.3s var(--wd-ease);
}

.wd-wine-list__item:hover {
    padding-left: 8px;
}

.wd-wine-list__num {
    color: #8a8a8a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
}

.wd-wine-list__name {
    color: #111;
    font-size: 17px;
    font-weight: 500;
}

.wd-wine-list__producer {
    color: #8a8a8a;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-align: right;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ---------- tickets ---------- */
.wd-tickets {
    padding: clamp(24px, 4vw, 48px) 0 clamp(64px, 8vw, 104px);
    scroll-margin-top: 90px;
}

.wd-ticket {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    max-width: 980px;
    margin-inline: auto;
    border-radius: 20px;
    background: var(--wd-card);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.wd-ticket__info {
    padding: clamp(28px, 4vw, 48px);
}

.wd-ticket__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--wd-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wd-ticket__title {
    margin: 0 0 10px;
    color: var(--wd-ink);
    font-family: inherit;
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 600;
    line-height: 1.15;
}

.wd-ticket__meta {
    margin: 0 0 24px;
    color: var(--wd-muted);
    font-size: 15px;
    line-height: 1.55;
}

.wd-prices {
    display: grid;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.wd-price-tier {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--wd-line);
    border-radius: 12px;
    color: var(--wd-muted);
}

.wd-price-tier__amount {
    min-width: 76px;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.wd-price-tier__when {
    font-size: 14px;
}

.wd-price-tier.is-active {
    border-color: var(--wd-ink);
    background: var(--wd-ink);
    color: #fff;
}

.wd-price-tier.is-past .wd-price-tier__amount {
    text-decoration: line-through;
}

.wd-ticket__note {
    margin: 0;
    color: var(--wd-muted);
    font-size: 13px;
    line-height: 1.55;
}

/* perforated stub */
.wd-ticket__buy {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4vw, 48px);
    border-left: 2px dashed var(--wd-line);
    background: #fafaf7;
}

.wd-ticket__buy::before,
.wd-ticket__buy::after {
    content: "";
    position: absolute;
    left: -15px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--wd-paper);
}

.wd-ticket__buy::before {
    top: -14px;
}

.wd-ticket__buy::after {
    bottom: -14px;
}

.wd-ticket__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
}

.wd-ticket__price-current {
    font-size: clamp(34px, 4vw, 44px);
    font-weight: 700;
    line-height: 1;
}

.wd-ticket__price-old {
    color: var(--wd-muted);
    font-size: 18px;
    text-decoration: line-through;
}

.wd-ticket__badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--wd-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.wd-ticket__per {
    margin: 6px 0 22px;
    color: var(--wd-muted);
    font-size: 14px;
}

.wd-ticket__form {
    display: grid;
    gap: 14px;
}

.wd-qty {
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    align-items: center;
    height: 52px;
    border: 1px solid var(--wd-ink);
    border-radius: 999px;
    overflow: hidden;
}

.wd-qty__btn {
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--wd-ink);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wd-qty__btn:hover {
    background: #eeeee8;
}

.wd-qty__btn:focus-visible {
    outline: 2px solid var(--wd-ink);
    outline-offset: -4px;
}

.wd-qty__input {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--wd-ink);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    -moz-appearance: textfield;
}

.wd-qty__input::-webkit-outer-spin-button,
.wd-qty__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wd-ticket__closed {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.wd-closing {
    max-width: 760px;
    margin: clamp(32px, 5vw, 48px) auto 0;
    font-size: clamp(17px, 1.6vw, 20px);
    line-height: 1.6;
    text-align: center;
}

/* ---------- wines ---------- */
.wd-wines {
    padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 112px);
    border-top: 1px solid var(--wd-line);
}

.wd-wines__img {
    display: block;
    width: 100%;
    max-width: 1100px;
    height: auto;
    margin: clamp(24px, 4vw, 40px) auto clamp(28px, 4vw, 40px);
}

/* ---------- responsive ---------- */
@media (max-width: 767.98px) {
    .wd-hero {
        min-height: 88svh;
        padding-top: 120px;
    }

    .wd-hero__title {
        letter-spacing: 0.06em;
    }

    .wd-about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .wd-about__head {
        position: static;
    }

    .wd-facts {
        grid-template-columns: 1fr;
    }

    .wd-fact,
    .wd-fact + .wd-fact {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        column-gap: 12px;
        padding: 16px 0;
        border-left: 0;
    }

    .wd-fact + .wd-fact {
        border-top: 1px solid var(--wd-line);
    }

    .wd-fact .wd-eyebrow {
        grid-row: span 2;
        margin: 6px 0 0;
    }

    .wd-wine-list__item {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .wd-wine-list__producer {
        grid-column: 2;
        text-align: left;
    }

    .wd-ticket {
        grid-template-columns: 1fr;
    }

    .wd-ticket__buy {
        border-left: 0;
        border-top: 2px dashed var(--wd-line);
    }

    .wd-ticket__buy::before,
    .wd-ticket__buy::after {
        top: -15px;
        bottom: auto;
    }

    .wd-ticket__buy::before {
        left: -14px;
    }

    .wd-ticket__buy::after {
        left: auto;
        right: -14px;
    }

    .wd-price-tier {
        flex-direction: column;
        gap: 2px;
    }
}


@media (prefers-reduced-motion: reduce) {
    .wd-hero__title,
    .wd-hero .wd-btn {
        animation: none;
    }

    .wd-btn,
    .wd-link span,
    .wd-wine-list__item {
        transition: none;
    }
}
