/* home-preview.css - marketing home (index.html) dark landing layout */

body.home-preview {
    --hp-cream: #f6f1ea;
    --hp-muted: rgba(246, 241, 234, 0.78);
    --hp-gold: #ecc694;
    --hp-wine: #9d5a68;
    --hp-wine-deep: #7a3f4c;
    --hp-surface: #0a090c;
    --hp-surface-2: #141118;
    --hp-line: rgba(236, 198, 148, 0.22);
    --hp-header-h: 4.25rem;
    --hp-radius: 0.35rem;
    --hp-max: 68rem;
    margin: 0;
    color: var(--hp-cream);
    background: var(--hp-surface);
    font-family: 'Outfit', system-ui, -apple-system, "Segoe UI", sans-serif;
    overflow-x: hidden;
    color-scheme: dark;
}

body.home-preview.home-landing {
    background-image: none;
    background-color: var(--hp-surface);
}

.hp-preview-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 400;
    background: #ecc694;
    color: #5c2a35;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    padding: 0.4rem 1rem;
}

.hp-preview-banner a {
    color: #5c2a35;
    margin-left: 0.75rem;
}

/* Preview banner offset (when present) */
body.home-preview:has(.hp-preview-banner) {
    padding-top: 1.6rem;
}

.hp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    height: var(--hp-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.25rem;
    background: transparent;
    transition: background 0.25s, backdrop-filter 0.25s, border-color 0.25s;
    border-bottom: 1px solid transparent;
    box-sizing: border-box;
}

.hp-header.is-scrolled {
    background: color-mix(in srgb, var(--hp-surface) 82%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--hp-line);
}

.hp-header__brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1 1 auto;
    min-width: 0;
    text-decoration: none;
    color: var(--hp-gold);
    font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: clamp(0.95rem, 2.4vw, 1.2rem);
    line-height: 1.15;
}

.hp-header__brand img {
    display: block;
    height: clamp(2.2rem, 6.5vw, 3.1rem);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.hp-header__nav {
    display: none;
    gap: 1.5rem;
    flex: 0 0 auto;
}

.hp-header__nav a {
    color: rgba(246, 241, 234, 0.88);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hp-header__nav a:hover {
    color: var(--hp-gold);
}

.hp-header__actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 0 0 auto;
}

.hp-menu-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.28rem;
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0.4rem;
}

.hp-menu-btn span {
    display: block;
    height: 2px;
    background: var(--hp-gold);
    border-radius: 1px;
}

body.home-preview:has(.hp-preview-banner) .hp-header {
    top: 1.6rem;
}

.hp-mobile-nav {
    display: none;
    position: fixed;
    top: var(--hp-header-h);
    left: 0;
    right: 0;
    z-index: 290;
    background: color-mix(in srgb, var(--hp-surface) 96%, transparent);
    backdrop-filter: blur(12px);
    padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--hp-line);
}

body.home-preview:has(.hp-preview-banner) .hp-mobile-nav {
    top: calc(1.6rem + var(--hp-header-h));
}

.hp-mobile-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hp-mobile-nav a {
    color: var(--hp-cream);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
}

@media (min-width: 70rem) {
    .hp-header__nav {
        display: flex;
    }

    .hp-menu-btn {
        display: none;
    }

    .hp-header__actions .hp-btn {
        display: inline-flex;
    }
}

.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.45rem;
    border-radius: var(--hp-radius);
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}

.hp-btn:hover {
    transform: translateY(-1px);
}

.hp-btn--wine {
    background: var(--hp-wine);
    color: #fff;
    box-shadow: 0 0.45rem 1.25rem rgba(0, 0, 0, 0.28);
}

.hp-btn--wine:hover {
    background: var(--hp-wine-deep);
    filter: brightness(1.05);
}

.hp-btn--gold {
    background: var(--hp-gold);
    color: #5c2a35;
    border-color: color-mix(in srgb, #5c2a35 20%, transparent);
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.18);
}

.hp-btn--gold:hover {
    filter: brightness(1.04);
}

.hp-btn--sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.84rem;
}

.hp-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    color: var(--hp-cream);
    overflow: hidden;
    isolation: isolate;
}

.hp-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url('images/WandSC-Bottles.png') center center / cover no-repeat;
    transform: scale(1.04);
    animation: hp-hero-drift 18s ease-in-out infinite alternate;
}

@keyframes hp-hero-drift {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.08) translate3d(-1.2%, -0.8%, 0); }
}

.hp-hero__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(8, 6, 8, 0.88) 0%, rgba(8, 6, 8, 0.62) 38%, rgba(8, 6, 8, 0.35) 68%, rgba(8, 6, 8, 0.5) 100%),
        linear-gradient(180deg, rgba(8, 6, 8, 0.4) 0%, rgba(8, 6, 8, 0.18) 35%, rgba(8, 6, 8, 0.8) 100%);
}

.hp-hero__inner {
    width: min(100% - 2.5rem, 36rem);
    margin: 0 auto 0 8vw;
    padding: calc(var(--hp-header-h) + 3rem) 0 4.5rem;
}

.hp-hero__brand {
    display: block;
    width: min(100%, 36rem);
    height: auto;
    margin: 0 0 1.35rem;
    filter: drop-shadow(0 0.35rem 1rem rgba(0, 0, 0, 0.35));
    animation: hp-fade-up 0.9s ease both;
}

.hp-hero__title {
    margin: 0 0 0.85rem;
    font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    font-weight: 400;
    line-height: 1.12;
    color: #fff;
    text-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.45);
    animation: hp-fade-up 0.9s ease 0.08s both;
}

.hp-hero__lede {
    margin: 0 0 1.75rem;
    max-width: 28rem;
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    line-height: 1.55;
    color: var(--hp-muted);
    animation: hp-fade-up 0.9s ease 0.16s both;
}

.hp-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    animation: hp-fade-up 0.9s ease 0.24s both;
}

.hp-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    color: var(--hp-gold);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.85;
}

.hp-hero__scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 1.6rem;
    margin: 0.45rem auto 0;
    background: currentColor;
    animation: hp-scroll-pulse 1.6s ease-in-out infinite;
}

@keyframes hp-scroll-pulse {
    0%, 100% { opacity: 0.35; transform: scaleY(0.85); }
    50% { opacity: 1; transform: scaleY(1); }
}

@keyframes hp-fade-up {
    from { opacity: 0; transform: translateY(1.1rem); }
    to { opacity: 1; transform: translateY(0); }
}

.hp-band {
    padding: clamp(3.5rem, 8vw, 6rem) 1.5rem;
    color: var(--hp-cream);
}

.hp-band--ink {
    background: var(--hp-surface);
}

.hp-band--paper,
.hp-band--alt {
    background: var(--hp-surface-2);
}

.hp-band__inner {
    width: min(100%, var(--hp-max));
    margin: 0 auto;
}

.hp-kicker {
    display: block;
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hp-gold);
}

.hp-band__title {
    margin: 0 0 1rem;
    font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--hp-cream);
}

.hp-band__body {
    margin: 0;
    max-width: 40rem;
    font-size: 1.25rem;
    line-height: 1.65;
    color: var(--hp-muted);
}

.hp-band__body strong {
    color: var(--hp-cream);
    font-weight: 700;
}

.hp-split {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.hp-split__copy {
    max-width: 34rem;
}

.hp-split__visual {
    margin: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.35);
    aspect-ratio: 4 / 3;
    width: 100%;
    max-width: 34rem;
    justify-self: center;
    background: #111 center / cover no-repeat;
}

.hp-split__visual--bar {
    background-image: url('images/WandSC-AppChampagne.png');
    background-position: center center;
}

.hp-split__visual--pour {
    background-image: url('images/WandSC-RedPour.png');
    background-position: center center;
}

@media (min-width: 56rem) {
    .hp-split {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 3.5rem;
    }

    .hp-split__visual {
        max-width: none;
        justify-self: stretch;
    }
}

/* Stacked / mid widths: keep About photo from spanning the full band */
@media (max-width: 55.99rem) {
    .hp-split__visual {
        max-width: min(100%, 22rem);
        aspect-ratio: 5 / 4;
    }
}

.hp-features {
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
}

@media (min-width: 48rem) {
    .hp-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hp-feature {
    padding: 1.35rem 1.25rem 1.5rem;
    border-top: 2px solid var(--hp-gold);
    background: color-mix(in srgb, #fff 5%, transparent);
}

.hp-feature h3 {
    margin: 0 0 0.55rem;
    font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--hp-cream);
}

.hp-feature p {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--hp-muted);
}

/* Closing CTA: same split as About, but image first (left) / copy second (right). */
.hp-close {
    padding-top: clamp(3rem, 7vw, 5rem);
    padding-bottom: clamp(3rem, 7vw, 5rem);
}

.hp-footer {
    padding: 2rem 1.5rem 2.75rem;
    background: #050408;
    color: rgba(246, 241, 234, 0.78);
    font-size: 0.88rem;
    text-align: center;
}

.hp-footer a,
.hp-footer button {
    color: var(--hp-gold);
}

.hp-footer .site-footer {
    margin-top: 0.75rem;
    opacity: 0.9;
}

.hp-reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hp-reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .hp-hero__media {
        animation: none;
        transform: none;
    }

    .hp-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hp-hero__brand,
    .hp-hero__title,
    .hp-hero__lede,
    .hp-hero__ctas {
        animation: none;
    }
}

@media (max-width: 69.99rem) {
    .hp-hero__inner {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
        width: auto;
        max-width: 36rem;
    }

    .hp-header__brand img {
        /* Line logo is a single wide PNG - scale down so flag + menu keep room. */
        height: clamp(1.55rem, 4.2vw, 2.35rem);
    }

    .hp-header__brand span {
        max-width: 7.5rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Below full desktop width: Sign Up / Sign in live in the hamburger drawer. */
    .hp-header__actions .hp-btn {
        display: none;
    }
}
