/**
 * David Bruce Winery — Age Gate
 *
 * Palette (DB Brand Guide):
 *   Gold:     #C79B3C
 *   Linen:    #E9E3D5
 *   Burgundy: #6B2223
 *   Brown:    #3E2513
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

/* ── Lock scroll when gate is open ── */
html.db-agegate--locked,
html.db-agegate--locked body {
    overflow: hidden !important;
}

/* ── Container ── */
.db-agegate {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    font-family: "Cormorant Garamond", serif;
}

.db-agegate.is-open {
    display: block;
}

/* ── Background image ── */
.db-agegate__bg {
    position: absolute;
    inset: 0;
    background: #000 center / cover no-repeat;
}

/* ── Dark overlay ── */
.db-agegate__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 18px;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.60) 40%,
        rgba(0, 0, 0, 0.70) 100%
    );
}

/* ── Content panel ── */
.db-agegate__panel {
    width: 100%;
    max-width: 980px;
    text-align: center;
    color: #fff;
    padding: 10px 10px 0;
}

/* ── Brand / logo ── */
.db-agegate__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 44px;
}

.db-agegate__logo {
    max-width: 400px;
    width: auto;
    height: auto;
}

/* ── Question heading ── */
.db-agegate__question {
    font-size: 34px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 22px 0;
    color: rgba(233, 227, 213, 0.95); /* Linen */
}

/* ── Buttons ── */
.db-agegate__actions {
    display: inline-flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 10px 0 6px;
}

.db-agegate__btn {
    font-family: inherit;
    border-radius: 0;
    padding: 14px 34px;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    transition:
        transform 0.08s ease,
        opacity 0.15s ease,
        background-color 0.15s ease,
        border-color 0.15s ease;
}

.db-agegate__btn:active {
    transform: translateY(1px);
}

.db-agegate__btn--yes {
    background: #C79B3C;
    border: 1px solid #C79B3C;
    color: #fff;
}

.db-agegate__btn--yes:hover {
    opacity: 0.92;
}

.db-agegate__btn--leave {
    background: transparent;
    border: 1px solid rgba(199, 155, 60, 0.9);
    color: rgba(233, 227, 213, 0.95);
}

.db-agegate__btn--leave:hover {
    background: rgba(0, 0, 0, 0.18);
}

/* ── Remember checkbox ── */
.db-agegate__remember {
    margin-top: 14px;
}

.db-agegate__rememberlabel {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 18px;
    color: rgba(233, 227, 213, 0.95);
}

.db-agegate__remembercheck {
    width: 16px;
    height: 16px;
    accent-color: #C79B3C;
}

/* ── Underage message ── */
.db-agegate__message {
    display: none;
    margin: 18px auto 0;
    max-width: 720px;
    padding: 14px 16px;
    border: 1px solid rgba(233, 227, 213, 0.35);
    color: rgba(233, 227, 213, 0.95);
    background: rgba(0, 0, 0, 0.25);
    font-size: 20px;
    letter-spacing: 0.5px;
}

.db-agegate__message.is-visible {
    display: block;
}

/* ── Footer ── */
.db-agegate__footer {
    margin-top: 36px;
    font-size: 16px;
    letter-spacing: 0.3px;
    color: rgba(233, 227, 213, 0.8);
}

/* ── Footer link ── */
.db-agegate__footer a {
    color: rgba(233, 227, 213, 0.95);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.db-agegate__footer a:hover {
    color: #fff;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .db-agegate__panel {
        max-width: 520px;
    }

    .db-agegate__brand {
        margin-bottom: 32px;
    }

    .db-agegate__logo {
        max-width: 180px;
    }

    .db-agegate__question {
        font-size: 22px;
        letter-spacing: 3px;
        margin: 18px 0;
    }

    .db-agegate__actions {
        gap: 12px;
    }

    .db-agegate__btn {
        padding: 12px 22px;
        font-size: 14px;
        width: min(320px, 92vw);
    }

    .db-agegate__footer {
        margin-top: 28px;
        font-size: 14px;
    }
}
