/* ========================================
   Beringer Vineyards — Custom Styles
   Palette: Plum (#5B2C6F) + Amber (#C8960C)
   Fonts: Playfair Display + Lato
   ======================================== */

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

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

body {
    font-family: 'Lato', 'Segoe UI', sans-serif;
    color: #2D1F3D;
    background-color: #FDF8F4;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

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

/* ---------- Skip Link ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: #5B2C6F;
    color: #fff;
    padding: 8px 16px;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    font-weight: 700;
}
.skip-link:focus {
    top: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    line-height: 1.2;
    color: #2D1F3D;
}

.section-eyebrow {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #C8960C;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: #2D1F3D;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #5A4A6A;
    max-width: 560px;
    margin: 0 auto;
}

.section-lead {
    font-size: 1.1rem;
    color: #5A4A6A;
    margin-bottom: 24px;
}

.text-center {
    text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-amber {
    background: #C8960C;
    color: #1A0F2E;
    border-color: #C8960C;
}
.btn-amber:hover {
    background: #B0840A;
    border-color: #B0840A;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 150, 12, 0.3);
}

.btn-plum-outline {
    background: transparent;
    color: #5B2C6F;
    border-color: #5B2C6F;
}
.btn-plum-outline:hover {
    background: #5B2C6F;
    color: #fff;
    transform: translateY(-2px);
}

.btn-light {
    background: #fff;
    color: #5B2C6F;
    border-color: #fff;
}
.btn-light:hover {
    background: #F5E6D0;
    border-color: #F5E6D0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(91, 44, 111, 0.1);
    transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(91, 44, 111, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: #5B2C6F;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}
.logo-mark::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid #C8960C;
    border-radius: 50%;
}
.logo-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #C8960C;
    border-radius: 50%;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2D1F3D;
    letter-spacing: 0.02em;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.primary-nav a {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2D1F3D;
    letter-spacing: 0.04em;
    transition: color 0.3s ease;
    position: relative;
}
.primary-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C8960C;
    transition: width 0.3s ease;
}
.primary-nav a:not(.btn):hover {
    color: #5B2C6F;
}
.primary-nav a:not(.btn):hover::after {
    width: 100%;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}
.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: #2D1F3D;
    position: relative;
    transition: all 0.3s ease;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #2D1F3D;
    left: 0;
    transition: all 0.3s ease;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.mobile-menu-btn[aria-expanded="true"] .hamburger {
    background: transparent;
}
.mobile-menu-btn[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.mobile-menu-btn[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #1A0F2E;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}
.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 15, 46, 0.92) 0%, rgba(91, 44, 111, 0.75) 50%, rgba(26, 15, 46, 0.6) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 120px 0 80px;
}

.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #C8960C;
    margin-bottom: 20px;
}

.hero-headline {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-subheadline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-frame {
    position: relative;
}
.hero-image-frame img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
}

.hero-badge {
    position: absolute;
    bottom: -24px;
    left: -24px;
    background: #5B2C6F;
    color: #fff;
    padding: 20px 24px;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(91, 44, 111, 0.4);
}
.badge-year {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #C8960C;
}
.badge-text {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* ---------- Heritage ---------- */
.heritage {
    padding: 120px 0;
    background: #FDF8F4;
}

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

.heritage-text p {
    color: #5A4A6A;
    margin-bottom: 20px;
}

.heritage-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(91, 44, 111, 0.15);
}

.stat {
    text-align: center;
}
.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #5B2C6F;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 0.85rem;
    color: #7A6A8A;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.heritage-images {
    position: relative;
    height: 700px;
}
.heritage-img-main {
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    height: 80%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(91, 44, 111, 0.15);
}
.heritage-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.heritage-img-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55%;
    height: 45%;
    border-radius: 8px;
    overflow: hidden;
    border: 6px solid #FDF8F4;
    box-shadow: 0 16px 32px rgba(91, 44, 111, 0.12);
}
.heritage-img-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Collections ---------- */
.collections {
    padding: 120px 0;
    background: #F5E6D0;
}

.collections .section-header {
    margin-bottom: 64px;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.collection-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(91, 44, 111, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(91, 44, 111, 0.15);
}

.collection-img {
    height: 240px;
    overflow: hidden;
}
.collection-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.collection-card:hover .collection-img img {
    transform: scale(1.05);
}

.collection-body {
    padding: 32px;
}

.collection-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C8960C;
    background: rgba(200, 150, 12, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.collection-name {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #2D1F3D;
}

.collection-desc {
    font-size: 0.95rem;
    color: #5A4A6A;
    line-height: 1.7;
    margin-bottom: 24px;
}

.collections-note {
    font-size: 0.95rem;
    color: #5A4A6A;
}
.collections-note a {
    color: #5B2C6F;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(91, 44, 111, 0.3);
    text-underline-offset: 4px;
    transition: text-decoration-color 0.3s ease;
}
.collections-note a:hover {
    text-decoration-color: #5B2C6F;
}

/* ---------- Experience ---------- */
.experience {
    padding: 120px 0;
    background: #2D1F3D;
    color: #fff;
}

.experience .section-eyebrow {
    color: #C8960C;
}

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

.experience .section-subtitle {
    color: rgba(255,255,255,0.7);
}

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

.experience-images {
    position: relative;
    height: 500px;
}
.exp-img-large {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 80%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0,0,0,0.3);
}
.exp-img-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.exp-img-small {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 50%;
    border-radius: 8px;
    overflow: hidden;
    border: 6px solid #2D1F3D;
    box-shadow: 0 16px 32px rgba(0,0,0,0.3);
}
.exp-img-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-features {
    margin: 32px 0 40px;
}
.experience-features li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
}
.experience-features li:last-child {
    border-bottom: none;
}
.feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(200, 150, 12, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C8960C;
    margin-top: 2px;
}

/* ---------- Visit ---------- */
.visit {
    padding: 120px 0;
    background: #FDF8F4;
}

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

.visit-detail {
    display: flex;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(91, 44, 111, 0.12);
}
.visit-detail:first-child {
    padding-top: 0;
}
.visit-detail:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(91, 44, 111, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5B2C6F;
}
.detail-icon svg {
    width: 22px;
    height: 22px;
}

.visit-detail h3 {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C8960C;
    margin-bottom: 8px;
}
.visit-detail p {
    color: #5A4A6A;
    line-height: 1.7;
}
.visit-detail a {
    color: #5B2C6F;
    font-weight: 700;
    transition: color 0.3s ease;
}
.visit-detail a:hover {
    color: #C8960C;
}

.visit-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(91, 44, 111, 0.12);
    height: 100%;
    min-height: 400px;
}
.map-placeholder iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* ---------- Contact ---------- */
.contact {
    padding: 120px 0;
    background: #F5E6D0;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-text {
    padding-top: 16px;
}

.contact-text .section-subtitle {
    text-align: left;
    margin: 0;
}

.contact-form-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 16px 48px rgba(91, 44, 111, 0.1);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2D1F3D;
    margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(91, 44, 111, 0.2);
    border-radius: 6px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #2D1F3D;
    background: #FDF8F4;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5B2C6F;
    box-shadow: 0 0 0 4px rgba(91, 44, 111, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #A898B8;
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    text-align: center;
    padding: 48px 24px;
}
.form-success svg {
    color: #5B2C6F;
    margin: 0 auto 20px;
}
.form-success h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: #2D1F3D;
}
.form-success p {
    color: #5A4A6A;
    font-size: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #1A0F2E;
    color: rgba(255,255,255,0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
    color: #fff;
}
.footer-brand .footer-tagline {
    margin-top: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C8960C;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 12px;
}
.footer-links a {
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: #fff;
}

.footer-contact p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.footer-contact a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}
.footer-contact a:hover {
    color: #C8960C;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-disclaimer {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ---------- Scroll to Top ---------- */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: #5B2C6F;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(91, 44, 111, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.3s ease;
    z-index: 50;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    background: #C8960C;
    color: #1A0F2E;
    transform: translateY(-4px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-inner {
        gap: 40px;
    }
    .heritage-grid,
    .experience-grid,
    .visit-grid,
    .contact-inner {
        gap: 48px;
    }
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 140px 0 100px;
    }
    .hero-subheadline {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-image-frame {
        display: none;
    }

    .heritage-grid,
    .experience-grid,
    .visit-grid,
    .contact-inner {
        grid-template-columns: 1fr;
    }
    .heritage-images {
        height: 450px;
        order: -1;
    }
    .experience-images {
        height: 350px;
        order: -1;
    }

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

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

@media (max-width: 768px) {
    .primary-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #FDF8F4;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        box-shadow: -8px 0 32px rgba(0,0,0,0.15);
        transition: right 0.3s ease;
        z-index: 105;
    }
    .primary-nav.open {
        right: 0;
    }
    .primary-nav a {
        font-size: 1.1rem;
    }
    .mobile-menu-btn {
        display: block;
    }

    .hero {
        min-height: auto;
        padding-top: 80px;
    }
    .hero-inner {
        padding: 100px 0 80px;
    }
    .hero-headline {
        font-size: clamp(1.8rem, 6vw, 2.6rem);
    }

    .heritage-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

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

    .contact-form-wrapper {
        padding: 32px 24px;
    }
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-actions .btn {
        width: 100%;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .collection-card:hover {
        transform: none;
    }
    .btn:hover {
        transform: none;
    }
}
