:root {
    --bg-dark: #121212;
    --bg-darker: #0a0a0a;
    --bg-light: #f8f6f4;
    --text-light: #ffffff;
    --text-dark: #222222;
    --accent: #8b1c31;
    /* Deep wine red */
    --accent-light: #c98a6c;
    /* Gold/copper */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --section-padding: clamp(4rem, 8vw, 8rem) clamp(2rem, 5vw, 6rem);
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem clamp(2rem, 5vw, 6rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background-color 0.4s ease;
    color: var(--text-light);
}

.navbar.scrolled {
    background-color: rgba(18, 18, 18, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.logo {
    height: 70px;
}

.logo img {
    width: 100%;
    height: 100%;
}


.navbar nav ul {
    display: flex;
    gap: clamp(1rem, 2vw, 2.5rem);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar nav a:hover {
    color: var(--accent-light);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    transition: all 0.3s ease;
    transform-origin: left center;
}

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

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

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

/* Hero Section */
.hero {
    height: 100vh;
    background-color: var(--bg-dark);
    color: var(--text-light);
    display: flex;
    align-items: center;
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.5s forwards;
}

.hero p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.8s forwards;
    max-width: 450px;
    color: #ccc;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-image: url('img/hero-bg.png');
    /* Placeholder wine glass */
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0.7;
    -webkit-mask-image: linear-gradient(to right, transparent, black 40%);
    mask-image: linear-gradient(to right, transparent, black 40%);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    right: clamp(2rem, 5vw, 6rem);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
    color: #aaa;
}

.scroll-indicator .line {
    width: 60px;
    height: 1px;
    background-color: #aaa;
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--text-light);
    animation: scrollLine 2s ease-in-out infinite;
}

/* Collections Section */
.collections {
    padding: var(--section-padding);
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.subtitle {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    color: #666;
}

.section-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(2rem, 4vw, 4rem);
}

.card {
    text-align: center;
    cursor: pointer;
}

.card:hover .card-img-placeholder {
    transform: scale(1.03);
}

.card-img-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background-color: #ddd;
    margin-bottom: 2rem;
    transition: transform 0.5s ease;
    background-size: cover;
    background-position: center;
}

/* Using local images for wine bottles */
.card:nth-child(1) .card-img-placeholder {
    background-image: url('img/Napa-Valley-Cabernet-Sauvignon.jpg');
}

.card:nth-child(2) .card-img-placeholder {
    background-image: url('img/Napa-Valley-Chardonnay.jpg');
}

.card:nth-child(3) .card-img-placeholder {
    background-image: url('img/Napa-Valley-Rose.png');
}

.card h3 {
    font-size: clamp(1.5rem, 2vw, 1.8rem);
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.9rem;
    color: #666;
}

/* Philosophy Section */
.philosophy {
    padding: var(--section-padding);
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.philosophy-header {
    margin-bottom: clamp(3rem, 6vw, 5rem);
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.philosophy-header h2 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.philosophy-desc {
    max-width: 500px;
    color: #aaa;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.phil-item {
    text-align: left;
}

.phil-img {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #333;
    margin-bottom: 1.5rem;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.phil-item:hover .phil-img {
    transform: scale(1.05);
}

.phil-item:nth-child(1) .phil-img {
    background-image: url('img/soil.png');
    /* Soil */
}

.phil-item:nth-child(2) .phil-img {
    background-image: url('img/grapes.png');
    /* Grapes */
}

.phil-item:nth-child(3) .phil-img {
    background-image: url('img/Cask.jpg');
    /* Wooden Wine Barrels */
}

.phil-item:nth-child(4) .phil-img {
    background-image: url('img/wine-cellar.png');
    /* Cellar */
}

.phil-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.phil-item p {
    font-size: 0.85rem;
    color: #888;
}

/* Allocation Section */
.allocation {
    padding: var(--section-padding);
    background-color: var(--accent);
    color: var(--text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.allocation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 10px);
    z-index: 1;
}

.allocation-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.allocation h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.allocation p {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.8);
}

/* Footer */
.footer {
    position: relative;
    padding: clamp(3rem, 5vw, 4rem) clamp(2rem, 5vw, 6rem);
    background-color: var(--bg-darker);
    color: var(--text-light);
}

.footer-deco {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
    pointer-events: none;
}

.footer-deco-left {
    left: clamp(2rem, 5vw, 6rem);
}

.footer-deco-right {
    right: clamp(2rem, 5vw, 6rem);
}

.footer-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.footer-logo img {
    height: 50px;
    max-width: 100%;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #bbb;
}

.footer-links a:hover {
    color: var(--text-light);
}

.footer-copyright p {
    font-size: 0.8rem;
    color: #666;
}

@media (max-width: 768px) {
    .footer-deco {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(10, 10, 10, 0.98);
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 99;
    }

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

    .navbar nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        font-size: 1.5rem;
    }

    .hero-bg {
        width: 100%;
        opacity: 0.5;
        -webkit-mask-image: linear-gradient(to bottom, transparent, black 60%);
        mask-image: linear-gradient(to bottom, transparent, black 60%);
    }

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

    .collection-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .philosophy-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .footer-links ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
}

.footer-bottom-bar {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.78);
}

.footer-bottom-bar span {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .footer-bottom-bar {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}



/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollLine {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Emphasized text styling */
em {
    font-style: italic;
    font-weight: 300;
}