/* ===================================
   Hopland Tasting Room — Styles
   =================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --emerald-950: #042f23;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-100: #d1fae5;
    --emerald-50:  #ecfdf5;

    --cream-50:  #fafaf8;
    --cream-100: #f5f5f0;
    --cream-200: #eae8e0;
    --cream-300: #d4d0c4;

    --stone-950: #0c0e0b;
    --stone-900: #111310;
    --stone-800: #1a1d17;
    --stone-700: #2a2d27;
    --stone-600: #4a4d47;
    --stone-500: #6b6d67;
    --stone-400: #9a9d97;
    --stone-300: #c8c8c2;
    --stone-200: #e2e2dc;
    --stone-100: #f0f0ea;

    --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--stone-800);
    background-color: var(--cream-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    background: var(--emerald-800);
    color: #fff;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    z-index: 200;
    font-size: 0.875rem;
}
.skip-link:focus {
    top: var(--space-md);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
}

.btn-full {
    width: 100%;
}

.btn-emerald {
    background: var(--emerald-800);
    color: #fff;
    border-color: var(--emerald-800);
}
.btn-emerald:hover {
    background: var(--emerald-700);
    border-color: var(--emerald-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 95, 70, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--emerald-800);
    border-color: var(--emerald-800);
}
.btn-outline:hover {
    background: var(--emerald-50);
    transform: translateY(-1px);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cream-200);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 1px 0 var(--cream-200);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--emerald-900);
    letter-spacing: -0.01em;
}

.logo-text-light {
    color: var(--emerald-100);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-list a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--stone-600);
    letter-spacing: 0.02em;
    transition: color var(--transition);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--emerald-700);
    transition: width var(--transition);
}

.nav-list a:hover {
    color: var(--emerald-800);
}
.nav-list a:hover::after {
    width: 100%;
}

/* --- Nav Toggle --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--stone-700);
    transition: var(--transition);
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* --- Hero --- */
.hero {
    padding-top: 140px;
    padding-bottom: var(--space-4xl);
    background: var(--cream-50);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 95, 70, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-3xl);
    align-items: start;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: var(--space-lg);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--stone-900);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xl);
    max-width: 600px;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--stone-500);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* --- Stat Cards --- */
.hero-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding-top: var(--space-xl);
}

.stat-card {
    background: #fff;
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.04);
    border-color: var(--emerald-100);
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--emerald-800);
    letter-spacing: -0.01em;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--stone-500);
    letter-spacing: 0.04em;
}

/* --- Section Labels & Titles --- */
.section-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--stone-900);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xl);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

/* --- About --- */
.about {
    padding: var(--space-4xl) 0;
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-text p {
    color: var(--stone-600);
    margin-bottom: var(--space-lg);
    font-size: 1rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image:hover img {
    transform: scale(1.02);
}

/* --- Products --- */
.products {
    padding: var(--space-4xl) 0;
    background: var(--cream-50);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--cream-200);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    border-color: var(--emerald-100);
}

.product-image {
    overflow: hidden;
    aspect-ratio: 5/4;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-body {
    padding: var(--space-xl);
}

.product-name {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    color: var(--stone-900);
    letter-spacing: -0.01em;
    margin-bottom: var(--space-sm);
}

.product-desc {
    font-size: 0.9375rem;
    color: var(--stone-500);
    line-height: 1.65;
}

/* --- Visit --- */
.visit {
    padding: var(--space-4xl) 0;
    background: #fff;
}

.visit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.visit-detail {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.visit-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-detail strong {
    display: block;
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stone-900);
    margin-bottom: var(--space-xs);
}

.visit-detail p {
    color: var(--stone-500);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.visit-detail a {
    color: var(--emerald-700);
    transition: color var(--transition);
}
.visit-detail a:hover {
    color: var(--emerald-900);
}

.map-placeholder {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 6/5;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.map-overlay span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--stone-800);
}

/* --- Contact --- */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--emerald-900);
    color: #fff;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact .section-label {
    color: var(--emerald-500);
}

.contact .section-title {
    color: #fff;
}

.contact-text p {
    color: rgba(255,255,255,0.65);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.contact-direct {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--emerald-100);
    font-size: 1.125rem;
    font-weight: 400;
    transition: color var(--transition);
}
.contact-link:hover {
    color: #fff;
}

/* --- Form --- */
.contact-form {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--emerald-500);
    background: rgba(255,255,255,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.4);
    margin-top: var(--space-md);
    text-align: center;
}

.form-success {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: #fff;
    margin: var(--space-md) 0 var(--space-sm);
}

.form-success p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9375rem;
}

/* --- Footer --- */
.footer {
    background: var(--stone-950);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
    color: rgba(255,255,255,0.4);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-top: var(--space-md);
    max-width: 280px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    transition: color var(--transition);
}
.footer-links a:hover {
    color: var(--emerald-400);
}

.footer-contact {
    color: rgba(255,255,255,0.4);
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-contact a {
    color: rgba(255,255,255,0.5);
    transition: color var(--transition);
}
.footer-contact a:hover {
    color: var(--emerald-400);
}

.footer-bottom {
    padding-top: var(--space-xl);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.25);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-card {
        flex: 1;
        min-width: 140px;
    }

    .about-grid,
    .visit-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-image {
        order: -1;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 var(--space-lg);
    }

    .nav-toggle {
        display: flex;
    }

    .primary-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 250, 248, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--cream-200);
        padding: var(--space-xl);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

    .primary-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-list {
        flex-direction: column;
        gap: var(--space-lg);
        align-items: flex-start;
    }

    .hero {
        padding-top: 110px;
        padding-bottom: var(--space-3xl);
    }

    .hero-headline {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .hero-stats {
        flex-direction: column;
    }

    .stat-card {
        min-width: auto;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }
}
