/**********************************************************************
 *
 * UTOPIA PUBLIC SITE SHELL
 *
 **********************************************************************/

:root {

    --shell-bg: #f7f2ea;
    --shell-text: #241c17;

    --shell-dark: #1f1410;

    --shell-gold: #d8b36a;
    --shell-gold-dark: #9b6a23;

    --shell-border: rgba(60, 40, 20, .10);

    --shell-white: #fffdf8;

    --shell-transition: .22s ease;

}

/**********************************************************************
 * RESPONSIVE FIT FOUNDATION
 * Preserve the visitor's browser zoom and accessibility preferences while
 * preventing media and form controls from forcing a page wider than its
 * viewport. Component CSS decides whether an image is cropped or contained.
 **********************************************************************/

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
picture,
svg,
video,
canvas {
    display: block;
    max-inline-size: 100%;
}

img,
video {
    block-size: auto;
}

input,
select,
textarea,
button {
    max-inline-size: 100%;
}

/**********************************************************************
 * HEADER
 **********************************************************************/

.site-header {

    position: sticky;
    top: 0;
    z-index: 5000;

    display: grid;
    grid-template-columns: clamp(220px, 14vw, 260px) minmax(0, 1fr) clamp(220px, 14vw, 260px);
    align-items: center;

    min-height: 110px;

    padding: 0 38px;

    background:
        linear-gradient(180deg,
            rgba(33, 20, 16, .98),
            rgba(26, 16, 12, .98));

    border-bottom: 1px solid rgba(255, 255, 255, .05);

    backdrop-filter: blur(18px);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .28);

}

/**********************************************************************
 * BRAND
 **********************************************************************/

.brand {

    display: inline-flex;
    align-items: center;

    color: white;

    text-decoration: none;

    font-size: 2rem;

    letter-spacing: .22em;

    text-transform: uppercase;

    font-weight: 400;

    transition: color var(--shell-transition);

}

.brand-logo {

    width: 210px;
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
    object-position: left center;

}

.brand:hover {

    color: var(--shell-gold);

}

/**********************************************************************
 * NAV
 **********************************************************************/

.site-nav {

    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;

}

.site-nav a {

    position: relative;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 84px;

    padding: 0 clamp(10px, 1vw, 20px);

    box-sizing: border-box;

    touch-action: manipulation;

    -webkit-tap-highlight-color: rgba(216, 179, 106, .22);

    color: rgba(255, 255, 255, .78);

    text-decoration: none;

    font-family: Arial, Helvetica, sans-serif;

    font-size: clamp(1rem, 1.15vw, 1.48rem);

    letter-spacing: .18em;

    text-transform: uppercase;

    cursor: pointer;

    pointer-events: auto;

    transition:
        color var(--shell-transition),
        transform var(--shell-transition);

}

.site-nav a {

    color: rgba(255, 255, 255, .78);

    text-decoration: none;

    font-family: Arial, Helvetica, sans-serif;

    font-size: clamp(1rem, 1.15vw, 1.48rem);

    letter-spacing: .18em;

    text-transform: uppercase;

    transition:
        color var(--shell-transition),
        transform var(--shell-transition);

}

.site-nav a:hover {

    color: white;

    transform: translateY(-1px);

}

.site-nav a:focus-visible,
.brand:focus-visible,
.login-link:focus-visible,
.site-menu-button:focus-visible {

    outline: 2px solid var(--shell-gold);

    outline-offset: 3px;

}

.site-nav a.active,
.site-nav a[aria-current="page"] {

    color: var(--shell-gold);

}

/**********************************************************************
 * LOGIN
 **********************************************************************/

.login-link {

    justify-self: end;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 52px;

    padding: 0 14px;

    box-sizing: border-box;

    touch-action: manipulation;

    color: rgba(255, 255, 255, .85);

    text-decoration: none;

    font-family: Arial, Helvetica, sans-serif;

    font-size: .74rem;

    letter-spacing: .18em;

    text-transform: uppercase;

    transition: color var(--shell-transition);

}

.login-link:hover {

    color: var(--shell-gold);

}

.site-account-controls {

    justify-self: end;

    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 220px;

}

.site-account-controls .login-link {

    justify-self: auto;

}

/* Signed-in users use the same identity treatment as the owner
   configurator: a visible avatar, saved first name, role, and one compact
   account menu. This deliberately replaces the old detached dashboard link
   and sign-out pill. */
.site-account-chip {

    position: relative;

}

.site-account-chip-trigger {

    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-height: 74px;
    min-width: 252px;
    padding: 10px 14px;

    border: 1px solid rgba(143, 116, 61, .35);
    border-radius: 16px;
    background: #f7f4ef;
    color: #1f2427;
    box-shadow: 0 5px 14px rgba(92, 68, 27, .14);
    cursor: pointer;
    text-align: left;

}

.site-account-chip-avatar {

    display: grid;
    place-items: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;

    border-radius: 50%;
    background: #b79a5b;
    color: #fff;
    font: 800 30px/1 Arial, Helvetica, sans-serif;
    letter-spacing: -.04em;
    box-shadow: 0 5px 14px rgba(92, 68, 27, .24);

}

.site-account-chip-copy {

    display: grid;
    gap: 3px;
    min-width: 0;
    flex: 1;

}

.site-account-chip-copy strong,
.site-account-chip-copy span {

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

}

.site-account-chip-copy strong {

    font: 800 18px/1.1 Arial, Helvetica, sans-serif;
    color: #1f2427;

}

.site-account-chip-copy span {

    font: 700 13px/1.2 Arial, Helvetica, sans-serif;
    color: #4b555b;
    letter-spacing: .02em;

}

.site-account-chip-chevron {

    color: #715a2c;
    font: 800 22px/1 Arial, Helvetica, sans-serif;

}

.site-account-chip-menu {

    position: absolute;
    z-index: 1000000;
    right: 0;
    top: calc(100% + 8px);
    display: grid;
    min-width: 252px;
    padding: 6px;

    border: 1px solid rgba(216, 179, 106, .52);
    border-radius: 14px;
    background: #fffdf8;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .26);

}

.site-account-chip-menu[hidden] {

    display: none;

}

.site-account-chip-menu a,
.site-account-chip-menu button {

    min-height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #2b241f;
    font: 800 .69rem/1 Arial, Helvetica, sans-serif;
    letter-spacing: .08em;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;

}

.site-account-chip-menu a:hover,
.site-account-chip-menu a:focus-visible,
.site-account-chip-menu button:hover,
.site-account-chip-menu button:focus-visible {

    background: rgba(216, 179, 106, .22);
    outline: none;

}

.site-account-chip-menu .is-signout {

    color: #8d2b28;

}

.site-account-signout {

    min-height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(216, 179, 106, .55);
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, .88);
    font: 700 .64rem/1 Arial, Helvetica, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;

}

.site-account-signout:hover,
.site-account-signout:focus-visible {

    color: #1b110d;
    background: var(--shell-gold);

}

/**********************************************************************
 * MOBILE BUTTON
 **********************************************************************/

.site-menu-button {

    display: none;

    border: none;

    background: none;

    color: white;

    font-family: Arial, Helvetica, sans-serif;

    letter-spacing: .16em;

    text-transform: uppercase;

    cursor: pointer;

    min-width: 48px;

    min-height: 48px;

    padding: 10px 14px;

    touch-action: manipulation;

}

/**********************************************************************
 * FOOTER
 **********************************************************************/

.site-footer {

    margin-top: 120px;

    padding: 60px 40px;

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 30px;

    border-top: 1px solid var(--shell-border);

    background: linear-gradient(180deg,
            #faf6ef,
            #f2eadf);

}

.site-footer p {

    margin: 0;

    color: #6b5a47;

    font-family: Arial, Helvetica, sans-serif;

    font-size: .74rem;

    letter-spacing: .14em;

    text-transform: uppercase;

}

.site-footer p:last-child {

    justify-self: end;

}

/**********************************************************************
 * FOOTER NAV
 **********************************************************************/

.footer-nav {

    display: flex;

    gap: 24px;

}

.footer-nav a {

    text-decoration: none;

    color: #705b45;

    font-family: Arial, Helvetica, sans-serif;

    font-size: .74rem;

    letter-spacing: .14em;

    text-transform: uppercase;

    transition: color var(--shell-transition);

}

.footer-nav a:hover {

    color: var(--shell-gold-dark);

}

/**********************************************************************
 * MOBILE
 **********************************************************************/

@media (max-width:1280px) {

    .site-header {

        grid-template-columns: 1fr auto;

        padding: 18px 22px;

    }

    .site-menu-button {

        display: block;

    }

    .site-nav {

        display: none;

        position: absolute;

        left: 0;

        right: 0;

        top: 110px;

        padding: 22px;

        flex-direction: column;

        gap: 8px;

        background: #1f1410;

        border-bottom: 1px solid rgba(255, 255, 255, .08);

    }

    .site-nav a {

        width: 100%;

        min-height: 72px;

        padding: 14px 22px;

        font-size: 1.2rem;

        justify-content: flex-start;

    }

    .site-nav.open {

        display: flex;

    }

    .site-account-controls {

        min-width: 0;
        gap: 5px;

    }

    .site-account-chip-trigger {

        min-width: 0;
        max-width: 176px;
        min-height: 42px;
        gap: 7px;
        padding: 4px 8px 4px 5px;

    }

    .site-account-chip-avatar {

        flex-basis: 32px;
        width: 32px;
        height: 32px;
        font-size: .78rem;

    }

    .site-account-chip-copy strong {

        font-size: .7rem;

    }

    .site-account-chip-copy span {

        font-size: .54rem;

    }

    .site-account-controls .login-link {

        display: inline-flex;
        min-height: 38px;
        padding: 0 4px;
        font-size: .58rem;
        letter-spacing: .1em;

    }

    .site-account-signout {

        min-height: 30px;
        padding: 0 7px;
        font-size: .54rem;
        letter-spacing: .08em;

    }

    .site-footer {

        grid-template-columns: 1fr;

        text-align: center;

    }

    .site-footer p:last-child {

        justify-self: center;

    }

    .footer-nav {

        flex-wrap: wrap;

        justify-content: center;

    }

}

/* Force public shell above all page artwork */
.site-header[data-public-shell-header] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999999 !important;
    height: 110px !important;
    background: linear-gradient(180deg, #211410, #1a100c) !important;
}

.site-header[data-public-shell-header] .brand,
.site-header[data-public-shell-header] .site-nav a,
.site-header[data-public-shell-header] .login-link {
    color: rgba(255, 255, 255, 0.88) !important;
}

.site-header[data-public-shell-header] .site-nav a.active,
.site-header[data-public-shell-header] .site-nav a[aria-current="page"] {
    color: #d8b36a !important;
}

/* FORCE PUBLIC HEADER ON ALL PAGES */
header.site-header[data-public-shell-header] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999999 !important;
    min-height: 110px !important;
    background: linear-gradient(180deg, #211410, #1a100c) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: grid !important;
}

body {
    padding-top: 110px;
}

.hero-section,
.wine-hero,
.society-hero {
    margin-top: -110px;
    padding-top: 220px;
}

.site-floating-nav {

    position: fixed;

    right: 22px;

    bottom: 24px;

    display: flex;

    gap: 12px;

    z-index: 99999;

}

.floating-nav-button {

    width: 54px;

    height: 54px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, .18);

    background: rgba(26, 24, 21, .90);

    color: #efe7d7;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    transition: .25s;

    backdrop-filter: blur(12px);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, .28);

}

.floating-nav-button:hover {

    transform: translateY(-3px);

    background: #8d6b2f;

    color: white;

}

.floating-icon {

    width: 22px;

    height: 22px;

}
