/* ============================================
   B R Cohn Winery — Styles
   Palette: Charcoal (#1A1A1A) + Coral (#E8735A)
   Fonts: Cormorant Garamond + Inter
   ============================================ */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    color: #1A1A1A;
    background: #FAFAF8;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ── Utility ───────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Typography ────────────────────────────── */
.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #E8735A;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #1A1A1A;
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    color: #555;
    max-width: 480px;
}

/* ── Buttons ───────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary {
    background: #E8735A;
    color: #fff;
}

.btn-primary:hover {
    background: #D4604A;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(232, 115, 90, 0.25);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* ── Navigation ────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 26, 26, 0.08);
}

.nav.scrolled .nav-logo-text {
    color: #1A1A1A;
}

.nav.scrolled .nav-link {
    color: #1A1A1A;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.nav-logo-mark {
    width: 28px;
    height: 28px;
    background: #E8735A;
    border-radius: 50%;
    display: block;
}

.nav-logo-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #fff;
    transition: color 0.4s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #E8735A;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #fff;
}

.nav.scrolled .nav-link:hover {
    color: #E8735A;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-bar {
    width: 22px;
    height: 1.5px;
    background: #fff;
    transition: all 0.3s ease;
    display: block;
}

.nav.scrolled .nav-toggle-bar {
    background: #1A1A1A;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* ── Hero ──────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, #1A1A1A 0%, #2D1F1A 30%, #4A2020 55%, #E8735A 100%);
    z-index: 0;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(26, 26, 26, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    padding: 0 24px;
}

.hero-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 28px;
}

.hero-headline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 28px;
}

.hero-accent {
    color: #E8735A;
    font-style: italic;
}

.hero-sub {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.7);
    max-width: 520px;
    margin: 0 auto 44px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero-scroll span {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ── Heritage ──────────────────────────────── */
.heritage {
    padding: 140px 0;
    background: #FAFAF8;
}

.heritage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.heritage-text p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.heritage-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 42px;
    font-weight: 300;
    color: #1A1A1A;
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #999;
}

.heritage-image {
    position: relative;
}

.heritage-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.heritage-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 1px solid #E8735A;
    border-radius: 2px;
    z-index: -1;
}

/* ── Wines ─────────────────────────────────── */
.wines {
    padding: 120px 0;
    background: #F5F4F0;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

.wine-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.wine-card {
    background: #FAFAF8;
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
}

.wine-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(26, 26, 26, 0.08);
}

.wine-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.wine-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.wine-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #E8735A;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 1px;
}

.wine-card-info {
    padding: 24px 20px;
}

.wine-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    color: #1A1A1A;
    margin-bottom: 10px;
}

.wine-desc {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.7;
    color: #777;
    margin-bottom: 16px;
}

.wine-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wine-vineyard,
.wine-age {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #aaa;
}

/* ── Visit ─────────────────────────────────── */
.visit {
    padding: 120px 0;
    background: #FAFAF8;
}

.visit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.visit-info .section-subtitle {
    margin-bottom: 32px;
}

.visit-desc {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
}

.visit-detail-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #E8735A;
    display: block;
    margin-bottom: 6px;
}

.visit-detail-value {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: #1A1A1A;
}

.visit-phone {
    transition: color 0.3s ease;
}

.visit-phone:hover {
    color: #E8735A;
}

.visit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

/* ── Newsletter ────────────────────────────── */
.newsletter {
    padding: 120px 0;
    background: #1A1A1A;
}

.newsletter-inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

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

.newsletter-desc {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 40px;
}

.newsletter-form {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-right: none;
    border-radius: 2px 0 0 2px;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

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

.newsletter-form input:focus {
    border-color: #E8735A;
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-form .btn {
    border-radius: 0 2px 2px 0;
    white-space: nowrap;
}

.newsletter-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
}

.newsletter-success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    color: #E8735A;
    font-size: 14px;
    font-weight: 400;
}

.newsletter-success.show {
    display: flex;
}

/* ── Footer ────────────────────────────────── */
.footer {
    padding: 80px 0 40px;
    background: #141414;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo-mark {
    width: 24px;
    height: 24px;
    background: #E8735A;
    border-radius: 50%;
    display: block;
}

.footer-logo-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #fff;
}

.footer-tagline {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.6;
}

.footer-heading {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.footer-contact p {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-phone {
    font-size: 14px;
    font-weight: 300;
    color: #E8735A;
    transition: color 0.3s ease;
}

.footer-phone:hover {
    color: #F09080;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #E8735A;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 12px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.25);
}

.footer-disclaimer {
    max-width: 360px;
    text-align: right;
}

/* ── Scroll Animations ─────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 1024px) {
    .wine-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .heritage-grid,
    .visit-layout {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(250, 250, 248, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }
    
    .nav-links.open {
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-links .nav-link {
        font-size: 14px;
        color: #1A1A1A;
    }
    
    .heritage-grid,
    .visit-layout {
        grid-template-columns: 1fr;
    }
    
    .heritage-image {
        order: -1;
    }
    
    .heritage-image-accent {
        display: none;
    }
    
    .wine-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .heritage-stats {
        gap: 32px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-right: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 2px;
    }
    
    .newsletter-form .btn {
        border-radius: 2px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
    
    .footer-disclaimer {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .heritage,
    .wines,
    .visit {
        padding: 80px 0;
    }
    
    .newsletter {
        padding: 80px 0;
    }
    
    .heritage-stats {
        flex-direction: column;
        gap: 24px;
    }
}

/* ── Reduced Motion ────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
