:root {
    --primary: #3d0101;
    /* Deep Burgundy */
    --secondary: #1a1a1a;
    /* Rich Charcoal */
    --accent: #d2a63c;
    /* Soft Gold/Champagne */
    --bg-light: #fffcf9;
    /* Cream */
    --text-dark: #1a1a1a;
    --text-light: #fffcf9;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
.serif {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
}

p {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    /* color: var(--text-dark); */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.section-label {
    font-family: var(--font-serif);
    color: var(--accent);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: clamp(0.7rem, 0.8vw, 0.85rem);
    margin-bottom: 15px;
    display: block;
    font-weight: 600;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    /* padding: 0 40px; */
}

/* --- Navigation --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    /* background-color: var(--secondary); */

}

#navbar.scrolled {
    padding: 15px 0;
    background: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#navbar .logo {
    display: none;
}

.logo {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    letter-spacing: 2px;
    color: var(--text-light);
    text-transform: uppercase;
    max-width: 350px;
}

.logo2 {
    display: block;
    max-width: 350px;
}

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

.nav-links a {
    color: var(--text-light);
    font-size: clamp(0.8rem, 0.9vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

#navbar.scrolled .nav-links a {
    color: #3d0101;
}

#navbar.scrolled .logo2 {
    display: none;
    max-width: 300px;
}

#navbar.scrolled .logo {
    display: block;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}

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

/* --- Mobile Menu Toggle --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.scrolled .menu-toggle span {
    
    background: #1a1a1a;

}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5)),
        url('images/banner.jpg') center/cover no-repeat;
    z-index: -1;
    transform: scale(1.1);
    animation: zoomOut 20s infinite alternate;
}

@keyframes zoomOut {
    from {
        transform: scale(1.2);
    }

    to {
        transform: scale(1);
    }
}

/* 
.hero-content {
    max-width: 800px;
}

.hero-content {
    max-width: 800px;
} */

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-content p {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.8s;
}

/* --- Reveal Animations --- */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

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

/* --- Section Styling --- */
section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}



.section-title .divider {

    margin: 0 auto;
    margin-bottom: 5px;
}

/* --- Heritage Section --- */
.heritage {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    align-items: center;
}


.heritage-content h2 {
    color: #3d0101;
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 20px;
}

.heritage-img {
    position: relative;
    /* border-radius: 5px; */
    overflow: hidden;
    /* box-shadow: 10px 10px 31px var(--secondary); */
}


.divider {
    margin: 0 0 5px 0;
    width: 40px;
    height: 2px;
    background: #d2a63c;
}

.heritage-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item .stat-value {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    color: var(--primary);
}

.stat-item .stat-label {
    font-size: clamp(0.65rem, 0.75vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Collection Section --- */
.collection-section {
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.collection-title {
    /* font-family: 'Cormorant Garamond', serif; */
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    /* font-weight: 600; */
    color: #fff;
}

.collection-divider {
    width: 40px;
    height: 1px;
    background: var(--accent);
    margin: 30px auto 0;
}

.collection-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 40px;
}

.wine-card {
    padding: 0;
    text-align: center;
    transition: var(--transition);
    cursor: default;
    width: 30%;
}

.wine-image-container {
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 35px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
}

.wine-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.wine-image-container:hover img {
    transform: scale(1.1);
}

.wine-card-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
}

.wine-card-desc {
    font-family: var(--font-sans);
    color: rgba(255, 255, 255, 0.6);
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.4;
}

/* --- Soul Section --- */
.soul-section {
    padding: 0;
    position: relative;
    height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.soul-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('images/The-Soul-of-the-Soil.jpg') center/cover no-repeat;
    z-index: -1;
}

.soul-section h2 {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 20px;
}

.soul-section p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.2rem;
}

.wine-card .price {
    color: var(--accent);
    font-weight: 600;
}

/* --- Footer --- */
.site-footer {
    background: #050505;
    color: var(--accent);
    padding: 80px 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

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

.footer-brand h3 {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 5px;
    color: var(--accent);
}

.footer-brand .estate {
    font-size: clamp(0.6rem, 0.8vw, 0.8rem);
    text-transform: uppercase;
    letter-spacing: 8px;
    opacity: 0.8;
}

.footer-icon {
    width: 40px;
    height: 40px;
    opacity: 0.3;
}

.footer-nav {
    text-align: center;
    margin-bottom: 60px;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-nav a {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #fff;
    opacity: 0.7;
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    font-size: clamp(0.6rem, 0.75vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
    color: #fff;
}

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

.bottom-right {
    text-align: right;
}

/* --- Responsive --- */

@media (max-width: 1500px){
    #navbar .container{
        padding: 0 20px;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .heritage {
        gap: 40px;
    }
}

@media (max-width: 991px) {

    .collection-grid{
        gap: 30px;
    }
    .wine-card {
  
    width: 47%;
}
}

@media (max-width: 768px) {
    br {
        display: none;
    }

    section {
        padding: 80px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: var(--transition);
        z-index: 1000;
        padding: 40px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }


    #navbar.scrolled .nav-links a {
    color: #fff;
}   

    .menu-toggle.active span{
        background-color: #fff ;
    }

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

    /* .heritage-img {
        box-shadow: 10px 10px 0 var(--secondary);
    } */


    .wine-card {
  
    width: 100%;
}

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

    .footer-top {
        flex-direction: column;
        gap: 30px;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }

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

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }
}