/* ==========================================================================
   Pop-up Wijnbar – landing page
   Editorial wine-bar aesthetic. No Divi modules used.
   ========================================================================== */

:root {
    --uw-popup-ink: #1b0b0e;
    --uw-popup-wine: #8a1029;
    --uw-popup-wine-dark: #4a0613;
    --uw-popup-wine-deep: #2c050f;
    --uw-popup-rose: #f1d9d0;
    --uw-popup-cream: #fbf3e8;
    --uw-popup-paper: #fff;
    --uw-popup-gold: #c89254;
    --uw-popup-muted: #7a5d5f;
    --uw-popup-line: rgba(74, 6, 19, .14);
    --uw-popup-radius-lg: 20px;
    --uw-popup-radius-md: 14px;
    --uw-popup-radius-sm: 999px;
    --uw-popup-shadow-sm: 0 1px 0 rgba(74, 6, 19, .04), 0 10px 28px rgba(74, 6, 19, .06);
    --uw-popup-shadow-md: 0 1px 0 rgba(74, 6, 19, .04), 0 22px 48px rgba(74, 6, 19, .09);
}

body.page-template-page-pop-up-wijnbar #main-content {
    background: var(--uw-popup-cream);
}

.uw-popup-page {
    color: var(--uw-popup-ink);
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
    overflow: hidden;
}

.uw-popup-page * {
    box-sizing: border-box;
}

.uw-popup-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.uw-popup-section {
    padding: clamp(56px, 7vw, 104px) 0;
    position: relative;
}

/* --------------------------------------------------------------------------
   Typography primitives
   -------------------------------------------------------------------------- */

.uw-popup-eyebrow,
.uw-popup-kicker {
    margin: 0 0 16px;
    color: var(--uw-popup-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.uw-popup-hero h1,
.uw-popup-page h2,
.uw-popup-event-card__title,
.uw-popup-closing p {
    font-family: 'BourtonBase-web', Georgia, serif;
    font-weight: 400;
    letter-spacing: -.015em;
}

.uw-popup-page h2 {
    margin: 0;
    padding: 0;
    max-width: 22ch;
    color: var(--uw-popup-wine-dark);
    font-size: clamp(36px, 5.2vw, 68px);
    line-height: .95;
}

.uw-popup-copy {
    color: var(--uw-popup-ink);
    font-size: clamp(17px, 1.25vw, 19px);
    line-height: 1.7;
}

.uw-popup-copy--large {
    font-size: clamp(18px, 1.45vw, 21px);
    line-height: 1.68;
}

.uw-popup-copy p {
    margin: 0 0 1.1em;
    padding: 0;
}

.uw-popup-copy p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.uw-popup-hero {
    position: relative;
    min-height: clamp(540px, 72vh, 760px);
    display: flex;
    align-items: flex-end;
    background: var(--uw-popup-wine-deep);
    color: #fff;
    isolation: isolate;
}

.uw-popup-hero__image,
.uw-popup-hero__overlay {
    position: absolute;
    inset: 0;
}

.uw-popup-hero__image {
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    filter: saturate(1.05) contrast(1.04);
    z-index: -3;
}

.uw-popup-hero__overlay {
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 248, 239, .12), transparent 38%),
        linear-gradient(92deg, rgba(27, 11, 14, .9) 0%, rgba(74, 6, 19, .55) 50%, rgba(27, 11, 14, .15) 100%),
        linear-gradient(0deg, rgba(27, 11, 14, .96) 0%, rgba(27, 11, 14, .1) 62%);
    z-index: -2;
}

.uw-popup-hero__content {
    padding: clamp(120px, 14vw, 180px) 0 clamp(58px, 8vw, 104px);
    max-width: 760px;
}

.uw-popup-hero h1 {
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: clamp(64px, 11vw, 144px);
    line-height: .82;
    text-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

.uw-popup-hero__lead {
    margin: 28px 0 0;
    max-width: 520px;
    color: #fff;
    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: 600;
    line-height: 1.2;
}

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

.uw-popup-button,
.uw-popup-event-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: var(--uw-popup-radius-sm);
    background: #fff;
    color: var(--uw-popup-wine-dark) !important;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}

.uw-popup-button:hover,
.uw-popup-event-card__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .16);
    background: var(--uw-popup-rose);
}

/* --------------------------------------------------------------------------
   Intro section
   -------------------------------------------------------------------------- */

.uw-popup-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.uw-popup-intro__header h2 {
    max-width: 12ch;
}

/* --------------------------------------------------------------------------
   "What can you expect" panel
   -------------------------------------------------------------------------- */

.uw-popup-expect {
    background:
        radial-gradient(circle at 88% 0%, rgba(200, 146, 84, .22), transparent 36%),
        linear-gradient(135deg, var(--uw-popup-wine-deep), var(--uw-popup-wine));
    color: #fff;
}

.uw-popup-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.uw-popup-expect h2,
.uw-popup-expect .uw-popup-copy,
.uw-popup-expect .uw-popup-kicker {
    color: #fff;
}

.uw-popup-expect h2 {
    color: #fff;
}

.uw-popup-expect .uw-popup-kicker {
    color: var(--uw-popup-gold);
}

.uw-popup-expect .uw-popup-panel__content > h2 {
    margin-bottom: 24px;
}

.uw-popup-callout {
    position: relative;
    padding: clamp(26px, 3vw, 36px);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--uw-popup-radius-lg);
    background: rgba(255, 248, 239, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 24px 60px rgba(0, 0, 0, .22);
    backdrop-filter: blur(10px);
}

.uw-popup-callout__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    color: var(--uw-popup-gold);
    font-size: 16px;
    font-weight: 700;
}

.uw-popup-callout p {
    margin: 0;
    color: #fff;
    font-size: clamp(17px, 1.3vw, 20px);
    line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Section heading (single-column editorial)
   -------------------------------------------------------------------------- */

.uw-popup-section-heading {
    display: block;
    max-width: 720px;
    margin: 0 0 clamp(32px, 4.5vw, 56px);
}

/* --------------------------------------------------------------------------
   Events
   -------------------------------------------------------------------------- */

.uw-popup-events {
    background: var(--uw-popup-paper);
}

.uw-popup-event-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.uw-popup-event-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--uw-popup-line);
    border-radius: var(--uw-popup-radius-lg);
    background: var(--uw-popup-paper);
    box-shadow: var(--uw-popup-shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.uw-popup-event-card:hover {
    transform: translateY(-3px);
    border-color: rgba(74, 6, 19, .22);
    box-shadow: var(--uw-popup-shadow-md);
}

.uw-popup-event-card__image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 38%, rgba(200, 146, 84, .18), transparent 60%),
        var(--uw-popup-cream);
}

.uw-popup-event-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.uw-popup-event-card:hover .uw-popup-event-card__image img {
    transform: scale(1.04);
}

.uw-popup-event-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 22px 24px;
}

.uw-popup-event-card__date {
    margin: 0 0 10px;
    color: var(--uw-popup-wine);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.uw-popup-event-card__title {
    margin: 0;
    padding: 0;
    color: var(--uw-popup-wine-dark);
    font-size: clamp(22px, 1.7vw, 26px);
    line-height: 1.04;
}

.uw-popup-event-card__title a {
    color: inherit;
    text-decoration: none;
}

/* Meta block (price + status) */

.uw-popup-event-card__meta {
    margin: 18px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--uw-popup-line);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.uw-popup-event-card__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
}

.uw-popup-event-card__meta dt {
    margin: 0;
    color: var(--uw-popup-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.uw-popup-event-card__meta dd {
    margin: 0;
    color: var(--uw-popup-ink);
    font-size: 15px;
    font-weight: 700;
    text-align: right;
}

.uw-popup-event-card__price {
    color: var(--uw-popup-wine-dark);
    font-size: 17px;
}

.uw-popup-event-card__price .woocommerce-Price-amount,
.uw-popup-event-card__price bdi {
    font-weight: 800;
}

.uw-popup-event-card__price del {
    margin-right: 6px;
    color: var(--uw-popup-muted);
    font-weight: 500;
}

.uw-popup-event-card__price ins {
    text-decoration: none;
}

/* Status pill with dot */

.uw-popup-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 11px 5px 9px;
    border-radius: 999px;
    background: rgba(74, 6, 19, .06);
    color: var(--uw-popup-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1;
}

.uw-popup-status__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.uw-popup-status--available {
    color: #1f6d3f;
    background: rgba(31, 109, 63, .12);
}

.uw-popup-status--sold-out {
    color: var(--uw-popup-wine);
    background: rgba(138, 16, 41, .1);
}

.uw-popup-event-card__link {
    width: 100%;
    margin-top: 22px;
    border-color: transparent;
    background: var(--uw-popup-wine-dark);
    color: #fff !important;
}

.uw-popup-event-card__link:hover {
    background: var(--uw-popup-wine);
    color: #fff !important;
}

/* --------------------------------------------------------------------------
   Hours
   -------------------------------------------------------------------------- */

.uw-popup-hours {
    background: linear-gradient(180deg, var(--uw-popup-paper) 0%, var(--uw-popup-cream) 100%);
}

.uw-popup-hours-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.uw-popup-hour-card {
    display: flex;
    flex-direction: column;
    min-height: 168px;
    padding: 22px;
    border: 1px solid var(--uw-popup-line);
    border-radius: var(--uw-popup-radius-md);
    background: var(--uw-popup-paper);
    box-shadow: var(--uw-popup-shadow-sm);
}

.uw-popup-hour-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--uw-popup-wine);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.uw-popup-hour-card strong {
    display: block;
    color: var(--uw-popup-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.uw-popup-hour-card time {
    display: block;
    margin-top: auto;
    padding-top: 16px;
    color: var(--uw-popup-wine-dark);
    font-family: 'BourtonBase-web', Georgia, serif;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -.01em;
    line-height: 1;
}

.uw-popup-hour-card--extra {
    background: var(--uw-popup-rose);
    border-color: rgba(138, 16, 41, .14);
}

.uw-popup-hour-card--extra time {
    color: var(--uw-popup-wine-dark);
}

/* --------------------------------------------------------------------------
   Closing
   -------------------------------------------------------------------------- */

.uw-popup-closing {
    padding: clamp(56px, 7vw, 96px) 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(200, 146, 84, .18), transparent 50%),
        var(--uw-popup-wine-deep);
    text-align: center;
}

.uw-popup-closing p {
    margin: 0;
    color: #fff;
    font-size: clamp(40px, 6vw, 84px);
    line-height: 1;
}

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

@media (max-width: 1100px) {
    .uw-popup-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .uw-popup-hours-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .uw-popup-intro__grid,
    .uw-popup-panel {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .uw-popup-intro__header h2,
    .uw-popup-page h2 {
        max-width: none;
    }

    .uw-popup-hero {
        min-height: 580px;
    }

    .uw-popup-hero__overlay {
        background:
            linear-gradient(0deg, rgba(27, 11, 14, .96) 0%, rgba(27, 11, 14, .42) 70%),
            linear-gradient(90deg, rgba(27, 11, 14, .82), rgba(27, 11, 14, .22));
    }

    .uw-popup-hero h1 {
        font-size: clamp(58px, 14vw, 108px);
    }
}

@media (max-width: 680px) {
    .uw-popup-shell {
        width: min(100% - 32px, 1180px);
    }

    .uw-popup-section {
        padding: 52px 0;
    }

    .uw-popup-event-grid,
    .uw-popup-hours-grid {
        grid-template-columns: 1fr;
    }

    .uw-popup-hero {
        min-height: 560px;
    }

    .uw-popup-hero__content {
        padding-top: 110px;
        padding-bottom: 56px;
    }

    .uw-popup-copy,
    .uw-popup-copy--large {
        font-size: 17px;
    }

    .uw-popup-hour-card {
        min-height: auto;
    }

    .uw-popup-event-card__body {
        padding: 20px 20px 22px;
    }
}
