/* home.css - marketing home page (index.html) scrolling layout */

body.home2 {
    --home2-hero-bg: linear-gradient(145deg, #2a1520 0%, #4a2030 38%, #1a2238 100%);
    --home2-hero-text: #faf7f2;
    --home2-hero-muted: rgba(250, 247, 242, 0.82);
    --home2-hero-brand-color: #ecc694;
    --home2-hero-min-height: 75svh;
    --home2-feature-card-min: 18rem;
    --home2-features-max-width: calc(4 * var(--home2-feature-card-min) + 3 * 1rem);
    --home2-accent: #c45c6a;
    --home2-accent-hover: #a84a58;
    --home2-section-alt: color-mix(in srgb, var(--card-bg) 92%, var(--wine-text) 8%);
    --home2-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.12);
    --home2-radius: 1rem;
    --home2-header-h: 4.25rem;
    overflow-x: hidden;
}

body.home2.dark-mode {
    --home2-hero-bg: linear-gradient(145deg, #080c18 0%, #151b2e 45%, #2a1520 100%);
    --home2-hero-brand-color: #ecc694;
    --home2-accent: #9d5a68;
    --home2-accent-hover: #b86b7a;
    --home2-section-alt: color-mix(in srgb, var(--card-bg) 88%, #000 12%);
    --home2-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.35);
}

body.home2.home-landing:not(.dark-mode) {
    background-image: none;
    background-color: var(--bg-color);
}

body.home2.home-landing.dark-mode {
    background-image: none;
}

/* --- Header --- */
.home2-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: var(--home2-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.25rem;
    background: color-mix(in srgb, var(--card-bg) 78%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid color-mix(in srgb, var(--border-color) 35%, transparent);
    box-sizing: border-box;
}

.home2-header.is-scrolled {
    background: color-mix(in srgb, var(--card-bg) 94%, transparent);
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}

body.home2.dark-mode .home2-header.is-scrolled {
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.28);
}

.home2-header__brand {
    font-family: 'Eagle Lake', Georgia, 'Times New Roman', serif;
    font-size: clamp(1rem, 2.8vw, 1.35rem);
    color: var(--wine-text);
    text-decoration: none;
    white-space: nowrap;
    margin: 0;
    line-height: 1.2;
}

/* Hero carries the product name on phone; header keeps nav controls only. */
@media (max-width: 51.99rem) {
    .home2-header {
        justify-content: flex-end;
    }

    .home2-header__brand {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

.home2-header__nav {
    display: none;
    align-items: center;
    gap: 1.75rem;
}

.home2-header__nav a {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-color);
    opacity: 0.88;
    transition: color 0.2s, opacity 0.2s;
}

.home2-header__nav a:hover,
.home2-header__nav a:focus-visible {
    color: var(--wine-text);
    opacity: 1;
    outline: none;
}

.home2-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home2-header__menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--border-color) 50%, transparent);
    border-radius: 0.5rem;
    background: var(--input-bg);
    cursor: pointer;
}

.home2-header__menu-btn span {
    display: block;
    height: 2px;
    width: 1.1rem;
    margin: 0 auto;
    background: var(--text-color);
    border-radius: 1px;
    transition: transform 0.25s, opacity 0.25s;
}

.home2-header__menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.home2-header__menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.home2-header__menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

.home2-mobile-nav {
    display: none;
    position: fixed;
    top: var(--home2-header-h);
    left: 0;
    right: 0;
    z-index: 190;
    padding: 1rem 1.25rem 1.25rem;
    background: color-mix(in srgb, var(--card-bg) 96%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid color-mix(in srgb, var(--border-color) 40%, transparent);
    flex-direction: column;
    gap: 0.35rem;
}

.home2-mobile-nav.is-open {
    display: flex;
}

.home2-mobile-nav a {
    display: block;
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 0.5rem;
}

.home2-mobile-nav a:hover {
    background: var(--input-bg);
    color: var(--wine-text);
}

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

    .home2-header__menu-btn {
        display: none;
    }

    .home2-mobile-nav {
        display: none !important;
    }
}

/* --- Buttons --- */
.home2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.7rem 1.25rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    white-space: nowrap;
}

.home2-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.home2-btn--primary {
    background: var(--home2-accent);
    color: #fff;
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.18);
}

.home2-btn--primary:hover {
    background: var(--home2-accent-hover);
}

.home2-btn--ghost {
    background: transparent;
    color: var(--home2-hero-text);
    border: 1.5px solid color-mix(in srgb, var(--home2-hero-text) 55%, transparent);
}

.home2-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.home2-btn--outline {
    background: transparent;
    color: var(--wine-text);
    border: 1.5px solid color-mix(in srgb, var(--wine-text) 55%, transparent);
}

.home2-btn--outline:hover {
    background: color-mix(in srgb, var(--wine-text) 8%, transparent);
}

.home2-btn--sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

.home2-btn--lg {
    padding: 0.85rem 1.6rem;
    font-size: 1.05rem;
}

/* --- Hero --- */
.home2-hero {
    position: relative;
    min-height: var(--home2-hero-min-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--home2-header-h) + 2rem) 1.5rem 4rem;
    background: var(--home2-hero-bg);
    color: var(--home2-hero-text);
    box-sizing: border-box;
    overflow: hidden;
}

.home2-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(196, 92, 106, 0.22), transparent 60%),
        radial-gradient(ellipse 60% 40% at 85% 70%, rgba(236, 198, 148, 0.12), transparent 55%);
    pointer-events: none;
}

.home2-hero__inner {
    position: relative;
    max-width: 52rem;
    text-align: center;
    z-index: 1;
}

.home2-hero__brand {
    font-family: 'Eagle Lake', Georgia, 'Times New Roman', serif;
    font-size: clamp(26px, 6.5vw, 42px);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 auto 1rem;
    padding: 0 0.25rem;
    max-width: min(96vw, 100%);
    color: var(--home2-hero-brand-color);
    text-wrap: balance;
    text-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.35);
}

@media (min-width: 40rem) {
    .home2-hero__brand {
        white-space: nowrap;
        text-wrap: unset;
        font-size: clamp(24px, 3.5vw, 36px);
    }
}

.home2-hero__eyebrow {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--home2-hero-muted);
}

.home2-hero__title {
    font-family: 'Eagle Lake', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.35rem, 4.5vw, 2rem);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 1rem;
    color: var(--home2-hero-text);
}

.home2-hero__tagline {
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    line-height: 1.55;
    color: var(--home2-hero-muted);
    max-width: 40rem;
    margin: 0 auto 2rem;
}

.home2-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
}

.home2-hero__scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(250, 247, 242, 0.55);
    text-decoration: none;
    animation: home2-bob 2.2s ease-in-out infinite;
}

.home2-hero__scroll-icon {
    width: 1.25rem;
    height: 1.25rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: 0.15rem;
}

@keyframes home2-bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(0.35rem); }
}

/* --- Stats strip --- */
.home2-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    max-width: 56rem;
    margin: -2.5rem auto 0;
    padding: 0 1.25rem;
    position: relative;
    z-index: 2;
}

@media (min-width: 40rem) {
    .home2-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.home2-stat {
    background: var(--card-bg);
    border: 1px solid color-mix(in srgb, var(--border-color) 45%, transparent);
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: var(--home2-shadow);
}

.home2-stat:first-child {
    border-radius: var(--home2-radius) 0 0 var(--home2-radius);
}

.home2-stat:last-child {
    border-radius: 0 var(--home2-radius) var(--home2-radius) 0;
}

@media (max-width: 39.99rem) {
    .home2-stat:nth-child(1) { border-radius: var(--home2-radius) 0 0 0; }
    .home2-stat:nth-child(2) { border-radius: 0 var(--home2-radius) 0 0; }
    .home2-stat:nth-child(3) { border-radius: 0 0 0 var(--home2-radius); }
    .home2-stat:nth-child(4) { border-radius: 0 0 var(--home2-radius) 0; }
}

.home2-stat__value {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--wine-text);
    line-height: 1.1;
}

.home2-stat__label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.75;
    line-height: 1.3;
}

/* --- Sections --- */
.home2-section {
    padding: 4.5rem 1.5rem;
    box-sizing: border-box;
    scroll-margin-top: calc(var(--home2-header-h) + 0.5rem);
}

.home2-section--alt {
    background: var(--home2-section-alt);
}

.home2-section__inner {
    max-width: 56rem;
    margin: 0 auto;
}

.home2-section__label {
    display: block;
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wine-text);
}

.home2-section__title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--wine-text);
}

.home2-section__body {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text-color);
    max-width: 44rem;
}

.home2-section__body strong {
    color: var(--wine-text);
    font-weight: 600;
}

/* Wider track so up to four ~18rem cards fit (same width as the old horizontal-scroll cards). */
#features .home2-section__inner {
    max-width: min(95%, var(--home2-features-max-width));
}

/* --- Feature card grid (1 col mobile, auto columns up to 4) --- */
.home2-features-wrap {
    margin-top: 2rem;
}

.home2-features-scroll {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--home2-feature-card-min)), 1fr));
    padding: 0.5rem 0 0;
}

.home2-feature-card {
    background: var(--card-bg);
    border: 1px solid color-mix(in srgb, var(--border-color) 40%, transparent);
    border-radius: var(--home2-radius);
    padding: 1.35rem 1.25rem;
    box-shadow: var(--home2-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

@media (hover: hover) {
    .home2-feature-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 1.25rem 2.75rem rgba(0, 0, 0, 0.14);
    }

    body.home2.dark-mode .home2-feature-card:hover {
        box-shadow: 0 1.25rem 2.75rem rgba(0, 0, 0, 0.38);
    }
}

.home2-feature-card h3 {
    margin: 0 0 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--wine-text);
    line-height: 1.3;
}

.home2-feature-card p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.55;
    opacity: 0.92;
}

.home2-scroll-hint {
    display: none;
}

/* --- Privacy band --- */
.home2-privacy-card {
    background: var(--card-bg);
    border: 1px solid color-mix(in srgb, var(--border-color) 40%, transparent);
    border-radius: var(--home2-radius);
    padding: 2rem 1.75rem;
    box-shadow: var(--home2-shadow);
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
}

.home2-privacy-card .home2-section__body {
    margin: 0 auto;
}

/* --- CTA band --- */
.home2-cta-band {
    padding: 4rem 1.5rem 5rem;
    text-align: center;
    background: var(--home2-hero-bg);
    color: var(--home2-hero-text);
    scroll-margin-top: var(--home2-header-h);
}

.home2-cta-band__title {
    font-family: 'Eagle Lake', Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin: 0 0 0.75rem;
    color: var(--home2-hero-text);
}

.home2-cta-band__text {
    margin: 0 auto 1.75rem;
    max-width: 28rem;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--home2-hero-muted);
}

.home2-cta-band__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* --- Footer --- */
.home2-page-footer {
    padding: 0 1.5rem 2rem;
    text-align: center;
}

.home2-page-footer .site-footer {
    padding-top: 1rem;
}

/* --- Scroll reveal --- */
.home2-reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.home2-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .home2-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .home2-hero__scroll {
        animation: none;
    }

    .home2-btn:hover,
    .home2-feature-card:hover {
        transform: none;
    }
}
