/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
    --color-primary: #3a8236;
    --color-primary-dark: #2d6629;
    --color-accent-1: #583682;
    --color-accent-2: #823660;
    --color-background: #fdfbf7;
    --color-text: #2c2c2c;
    --color-text-light: #5a5a5a;
    --color-white: #fff;

    --font-display: "Vast Shadow", serif;
    --font-body: "Lexend Giga", sans-serif;

    --max-width: 800px;
    --spacing: 2rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-background);
    line-height: 1.7;
    font-size: 14px;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

h1,
h2,
h3 {
    font-family: var(--font-body);
    color: var(--color-primary);
    line-height: 1.3;
    font-weight: 500;
}

h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

strong {
    font-weight: 500;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--spacing);
    background: var(--color-background);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-primary);
    letter-spacing: 0.05em;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-contact {
    color: var(--color-primary) !important;
}

.nav-easter {
    opacity: 0.3;
    transition: opacity 0.2s ease;
}

.nav-easter:hover {
    opacity: 1;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

.section {
    padding: 3rem 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        var(--color-primary-dark) 100%
    );
    color: var(--color-white);
    padding: 4rem var(--spacing);
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--color-white);
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
    font-weight: 400;
}

.tagline {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.6;
}

.tagline strong {
    font-weight: 400;
}

/* ==========================================================================
   Features List
   ========================================================================== */
.features {
    list-style: none;
    max-width: 500px;
    margin: 0 auto;
}

.features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.features li:last-child {
    border-bottom: none;
}

.features strong {
    color: var(--color-primary);
}

/* ==========================================================================
   Allocations
   ========================================================================== */
.allocations {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.allocations p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.link-arrow {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.link-arrow::after {
    content: " →";
}

/* ==========================================================================
   Carousel
   ========================================================================== */
.section-carousel {
    padding: 2rem 0;
    background: var(--color-background);
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    overflow-x: auto;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    animation: scroll 25s linear infinite;
}

.carousel-slide {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 2px;
    user-select: none;
    -webkit-user-drag: none;
    cursor: pointer;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.carousel:hover .carousel-track {
    animation-play-state: paused;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 2px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 3rem var(--spacing);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-name {
    font-weight: 500;
    font-size: 1rem;
}

.footer-contact p {
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-zone {
    text-align: right;
    font-size: 0.75rem;
    opacity: 0.7;
}

.footer-zone p:first-child {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    background: var(--color-white);
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.btn:hover {
    background: var(--color-accent-1);
    color: var(--color-white);
}

/* ==========================================================================
   Page Header (for sub-pages)
   ========================================================================== */
.page-header {
    padding: 3rem var(--spacing);
    background: var(--color-primary);
    color: var(--color-white);
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Content (for sub-pages)
   ========================================================================== */
.content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem var(--spacing);
}

.content p {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.content h2:first-child {
    margin-top: 0;
}

/* Wine/Vigneron cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 2px;
}

.card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.card-tag {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

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

    .hero {
        min-height: 35vh;
        padding: 3rem var(--spacing);
    }

    .section {
        padding: 2rem 0;
    }

    .carousel-slide {
        width: 250px;
        height: 250px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

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

@media (max-width: 480px) {
    :root {
        --spacing: 1.25rem;
    }

    .hero h1 {
        letter-spacing: 0.02em;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}
