/* =========================================================================
   Companion Wines — Global Stylesheet
   Shared across all pages (header, footer, nav, layout, utilities)
   ========================================================================= */

:root {
    --color-dark: #323232;
    --color-cream: #f9f7f4;
    --color-wine: #3d2827;
    --color-tan: #b99272;
    --color-grey: #b7b7b7;
    --color-white: #ffffff;

    --font-serif: 'Times New Roman', Times, serif;
    --font-sans: 'Roboto', 'Helvetica Neue', Arial, sans-serif;

    --container-max: 1662px;
    --gutter: 129px;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-dark);
    background: var(--color-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, p { margin: 0; }

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

/* =========================================================================
   PAGE LOADER
   ========================================================================= */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .8s var(--ease-out-expo), visibility .8s;
}
.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-wine {
    width: 3px;
    height: 40px;
    background: var(--color-tan);
    border-radius: 2px;
    animation: loaderPulse 1s ease-in-out infinite;
}
@keyframes loaderPulse {
    0%, 100% { transform: scaleY(0.4); opacity: .4; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* =========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================= */
.reveal {
    opacity: 0;
    transition: opacity .9s var(--ease-out-expo), transform .9s var(--ease-out-expo);
}
.reveal[data-reveal="up"] { transform: translateY(50px); }
.reveal[data-reveal="left"] { transform: translateX(-60px); }
.reveal[data-reveal="right"] { transform: translateX(60px); }
.reveal[data-reveal="fade"] { transform: none; }
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* =========================================================================
   SHARED LAYOUT
   ========================================================================= */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(24px, 6.7vw, var(--gutter));
}

.section-pad {
    padding-block: clamp(40px, 4vw, 75px);
}

.eyebrow {
    font-family: var(--font-serif);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: clamp(14px, 1.7vw, 32px);
    color: var(--color-dark);
    margin-bottom: 0.15em;
}
.eyebrow--light { color: var(--color-cream); }

.section-title {
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 400;
    font-size: clamp(28px, 3.3vw, 64px);
    line-height: 1.05;
    color: var(--color-dark);
}
.section-title--light { color: var(--color-cream); }

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-serif);
    font-style: italic;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
}
.btn--buy {
    background: var(--color-tan);
    color: var(--color-cream);
    font-size: clamp(16px, 1.7vw, 32px);
    padding: 0.35em 2em;
    line-height: 1.5;
    letter-spacing: 0.04em;
    transition: opacity .3s ease;
}
.btn--buy:hover {
    opacity: 0.85;
}
.btn--buy:active {
    opacity: 0.7;
}

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
    position: relative;
    background: #000;
    color: var(--color-white);
    min-height: min(56.25vw, 1080px);
    overflow: hidden;
}

/* Inner page header — no hero, compact dark bar */
.site-header--inner {
    min-height: auto;
    background: var(--color-dark);
}

.header-inner {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px clamp(24px, 4vw, 80px);
    transition: background .5s var(--ease-out-expo),
                padding .5s var(--ease-out-expo),
                box-shadow .5s var(--ease-out-expo);
}

/* Inner page header bar — static, dark bg */
.header-inner--dark {
    position: relative;
    background: var(--color-dark);
    padding: 20px clamp(24px, 4vw, 80px);
}

.header-inner.is-sticky {
    position: fixed;
    top: 0;
    background: rgba(50, 50, 50, .95);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    padding: 14px clamp(24px, 4vw, 80px);
    box-shadow: 0 4px 30px rgba(0,0,0,.15);
}
.header-inner.is-sticky .brand-logo {
    width: clamp(130px, 11vw, 200px);
}

/* Brand logo */
.brand {
    display: inline-block;
    line-height: 0;
    transition: opacity .3s ease;
}
.brand:hover {
    opacity: .85;
}
.brand-logo {
    width: clamp(180px, 17.3vw, 331px);
    height: auto;
    transition: width .5s var(--ease-out-expo);
}

/* Primary nav */
.main-nav {
    position: fixed;
    right: clamp(24px, 4vw, 80px);
    top: 28px;
    z-index: 100;
    transition: top .5s var(--ease-out-expo);
}
.main-nav.nav--sticky {
    top: 10px;
}
.nav-toggle.toggle--sticky {
    top: 20px;
}
.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: clamp(24px, 3vw, 56px);
    margin: 0; padding: 0;
}

/* Nav links */
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: clamp(12px, 1.2vw, 22px);
    color: var(--color-white);
    position: relative;
    padding: 8px 0;
    transition: opacity .3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-tan);
    transition: width .4s var(--ease-out-expo);
}
.nav-link:hover::after,
.has-dropdown:hover .nav-link::after {
    width: 100%;
}
.nav-chevron {
    width: 10px;
    height: auto;
    transition: transform .3s var(--ease-out-expo);
}
.has-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
}

/* Dropdown menus */
.has-dropdown {
    position: relative;
}
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 180px;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: none;
    border-radius: 0;
    padding: 20px 0 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s var(--ease-out-expo), transform .3s var(--ease-out-expo), visibility .3s;
}
/* Invisible bridge so mouse doesn't lose hover crossing the gap */
.dropdown::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}
.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.dropdown__link {
    display: block;
    padding: 8px 28px;
    font-family: var(--font-sans);
    font-size: clamp(10px, 0.94vw, 14px);
    font-weight: 400;
    color: rgba(255,255,255,.65);
    transition: color .25s ease, letter-spacing .3s var(--ease-out-expo);
    letter-spacing: 0.06em;
    white-space: nowrap;
    text-align: center;
}
.dropdown__link:hover {
    color: var(--color-tan);
    letter-spacing: 0.1em;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: clamp(48px, 5vw, 100px) clamp(24px, 5.3vw, 101px) 20px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: clamp(40px, 5vw, 90px);
}

.brand--footer .brand-logo {
    width: clamp(220px, 20vw, 382px);
}

.footer-nav {
    display: flex;
    gap: clamp(28px, 3.5vw, 68px);
    flex-wrap: wrap;
}
.footer-nav a {
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: clamp(15px, 1.4vw, 26px);
    position: relative;
    transition: opacity .3s ease;
}
.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-tan);
    transition: width .4s var(--ease-out-expo);
}
.footer-nav a:hover { opacity: .85; }
.footer-nav a:hover::after { width: 100%; }

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-block: clamp(30px, 4vw, 60px) 0;
}

.footer-col--address { display: flex; flex-direction: column; gap: 28px; }
.footer-address {
    font-style: normal;
    font-size: clamp(14px, 1.06vw, 20px);
    line-height: 1.5;
    opacity: .48;
    letter-spacing: 0.02em;
    transition: opacity .3s ease;
}
.footer-address:hover { opacity: .7; }

.footer-social {
    display: flex;
    gap: 16px;
    align-items: center;
}
.social-icon {
    display: inline-flex;
    transition: transform .4s var(--ease-out-expo), opacity .3s ease;
}
.social-icon svg {
    width: clamp(32px, 2.5vw, 38px);
    height: auto;
}
.social-icon circle {
    transition: fill .4s var(--ease-out-expo);
}
.social-icon:hover {
    transform: translateY(-3px);
}
.social-icon:hover circle {
    fill: var(--color-tan);
}

.footer-col--subscribe { max-width: 691px; margin-left: auto; }
.footer-heading {
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: clamp(15px, 1.4vw, 26px);
    margin-bottom: 0.7em;
}
.footer-sub-copy {
    font-size: clamp(12px, 0.9vw, 17px);
    line-height: 1.35;
    letter-spacing: 0.02em;
    margin-bottom: 1.2em;
}

.subscribe-field {
    position: relative;
    max-width: 450px;
}
.subscribe-field input {
    width: 100%;
    height: 48px;
    background: var(--color-grey);
    border: 0;
    border-radius: 13px;
    padding: 0 60px 0 24px;
    font-family: var(--font-sans);
    font-size: clamp(14px, 1.1vw, 19px);
    color: #2a2a2a;
    transition: background .3s ease, box-shadow .3s ease;
}
.subscribe-field input::placeholder { color: #ffffff; transition: opacity .3s ease; }
.subscribe-field input:focus {
    outline: none;
    background: #c4c4c4;
    box-shadow: 0 0 0 2px var(--color-tan), 0 8px 24px rgba(0,0,0,.15);
}
.subscribe-field input:focus::placeholder { opacity: .5; }
.subscribe-field button {
    position: absolute;
    right: 16px; top: 50%;
    transform: translateY(-50%);
    background: none; border: 0; padding: 8px;
    cursor: pointer;
    line-height: 0;
    transition: transform .3s var(--ease-out-expo), opacity .3s ease;
}
.subscribe-field button:hover {
    transform: translateY(-50%) translateX(4px);
    opacity: .7;
}
.subscribe-field button img { width: 38px; height: auto; }
.subscribe-msg {
    min-height: 1.2em;
    margin-top: 10px;
    font-size: 12px;
    color: var(--color-tan);
}
.subscribe-field.is-success input {
    background: rgba(185, 146, 114, .25);
}

/* Hide reCAPTCHA badge — required notice is inline instead */
.grecaptcha-badge { visibility: hidden !important; }
.subscribe-recaptcha-notice {
    font-size: 10px;
    color: rgba(255,255,255,.35);
    margin-top: 6px;
}
.subscribe-recaptcha-notice a {
    color: rgba(255,255,255,.5);
    text-decoration: underline;
}

.footer-rule {
    border: 0;
    border-top: 1px solid rgba(255,255,255,.2);
    margin: clamp(12px, 1.5vw, 20px) 0;
}

.footer-bottom {
    display: flex;
    justify-content: flex-end;
    gap: clamp(24px, 3vw, 56px);
}
.footer-legal {
    font-size: clamp(13px, 1.1vw, 22px);
    opacity: .52;
    letter-spacing: 0.02em;
    position: relative;
    transition: opacity .3s ease;
}
.footer-legal::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(255,255,255,.4);
    transition: width .4s var(--ease-out-expo);
}
.footer-legal:hover { opacity: .85; }
.footer-legal:hover::after { width: 100%; }

/* =========================================================================
   MOBILE NAV
   ========================================================================= */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px; height: 20px;
    background: none; border: 0; padding: 0;
    cursor: pointer;
    position: fixed;
    right: clamp(24px, 4vw, 40px);
    top: 36px;
    z-index: 10000;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-white);
    border-radius: 1px;
    transition: transform .4s var(--ease-out-expo), opacity .3s ease, width .3s var(--ease-out-expo);
    transform-origin: center;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
    .award { grid-template-columns: 1fr; }
    .award__image img { aspect-ratio: 16 / 10; }
}

/* Dropdown toggle — hidden on desktop, shown on mobile */
.dropdown-toggle {
    display: none;
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; }

    /* Hide desktop chevron, show separate toggle button */
    .nav-chevron--desktop { display: none; }
    .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        padding: 20px 0 20px 20px;
        color: var(--color-white);
    }
    .dropdown-toggle .nav-chevron {
        transition: transform .3s ease;
    }
    .has-dropdown.is-open .dropdown-toggle .nav-chevron {
        transform: rotate(180deg);
    }
    .has-dropdown > .nav-link {
        justify-content: flex-start;
        flex: 1;
    }
    .has-dropdown {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    .has-dropdown > .dropdown {
        width: 100%;
        flex-basis: 100%;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: #140e0d;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity .4s var(--ease-out-expo), visibility .4s;
        z-index: 9998;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
    }
    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 32px;
        width: 100%;
    }
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,.1);
    }
    .main-nav li:first-child {
        border-top: 1px solid rgba(255,255,255,.1);
    }
    .nav-link {
        font-size: 20px;
        padding: 20px 0;
        width: 100%;
        justify-content: space-between;
    }
    .nav-link::after { display: none; }

    .has-dropdown {
        position: static;
    }
    .dropdown,
    .has-dropdown:hover .dropdown {
        position: static !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        background: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        min-width: 0 !important;
        width: 100% !important;
        max-height: 0;
        overflow: hidden;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        padding: 0;
        transition: max-height .4s var(--ease-out-expo);
    }
    .has-dropdown.is-open .dropdown {
        max-height: 400px;
        padding: 4px 0 16px 0;
    }
    .dropdown__link {
        display: block !important;
        padding: 10px 0 10px 20px !important;
        font-size: 14px !important;
        color: rgba(255,255,255,.5) !important;
        white-space: normal !important;
        background: none !important;
        text-align: left !important;
    }
    .dropdown__link:hover {
        padding-left: 20px !important;
        background: none !important;
        color: var(--color-white) !important;
    }

    .footer-main { grid-template-columns: 1fr; gap: 48px; text-align: center; }
    .footer-top { justify-content: center; text-align: center; }
    .footer-nav { justify-content: center; }
    .footer-bottom { justify-content: center; }
    .footer-col--address { align-items: center; }
    .footer-col--subscribe { margin-left: auto; margin-right: auto; }
    .footer-social { justify-content: center; }
		.site-header {
    min-height: min(111.25vw, 1080px) !important;

}
	.container p {
    line-height: 170% !important;
}
}

@media (max-width: 640px) {
	
    .image-duo__item img { aspect-ratio: 4 / 3; }
    .footer-bottom { flex-direction: column; align-items: center; gap: 12px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .reveal {
        transform: none !important;
        transition: opacity .6s ease !important;
    }
    .reveal.is-visible {
        transform: none !important;
    }

    .btn,
    .nav-link::after,
    .footer-nav a::after,
    .footer-legal::after,
    .dropdown,
    .subscribe-field input,
    .subscribe-field button {
        transition-duration: .3s !important;
    }

    .image-duo__item:hover img { transform: none; }
    .award__image:hover img { transform: none; }
    .social-icon:hover { transform: none; }

    .hero-video { transform: none !important; }
    .image-duo__item img { transform: none !important; }

    .hero-scroll-hint { animation: none; opacity: 1; }
    .hero-scroll-hint span { animation: none; }
    .loader-wine { animation: none; opacity: 1; transform: none; }

    .page-loader {
        transition: opacity .4s ease, visibility .4s !important;
    }
}

@keyframes formShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
