:root {
    /* Refined color palette inspired by CD - lighter, more elegant */
    --color-bg: #e8e4f0;
    /* Soft lavender-gray background */
    --color-bg-alt: #f5f3f8;
    /* Very light lavender-white */
    --color-primary: #f04cad;
    /* Main Pink */
    --color-secondary: #5c45a5;
    /* Secondary Purple */
    --color-accent: #6bc749;
    /* Fresh Green */
    --color-text: #040606;
    /* Deep Black */
    --color-text-muted: #3943a1;
    /* Deep Blue for muted text - providing contrast but keeping color */

    /* Elegant serif for headings, clean sans for body */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto Flex', sans-serif;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --container-width: 1200px;
    --border-radius: 4px;
    /* More subtle radius */
}

/* Section Styles */
.section {
    padding: 6rem 0;
}

.about-section {
    background-color: var(--color-bg);
}

.wines-section {
    background-color: var(--color-bg);
    background-image: url('../assets/backgrounds/pattern_2.png');
    background-size: cover;
    background-blend-mode: soft-light;
}

.vineyard-teaser {
    background-color: var(--color-bg-alt);
    background-image: url('../assets/backgrounds/pattern_3.png');
    background-size: cover;
    background-blend-mode: soft-light;
}

.contact-section {
    background-color: var(--color-bg);
}

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

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

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

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

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

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

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    border: 1px solid transparent;
    border-radius: 2px;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(138, 107, 138, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}


.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(240, 76, 173, 0.3);
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin-top: 1rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(245, 243, 248, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(138, 107, 138, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

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

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    position: relative;
    padding-bottom: 2px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

/* Subtle wavy background inspired by CD */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg,
            rgba(138, 107, 138, 0.12) 0%,
            transparent 50%,
            rgba(107, 91, 149, 0.12) 100%);
    z-index: -1;
    overflow: hidden;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 40px,
            rgba(138, 107, 138, 0.06) 40px,
            rgba(138, 107, 138, 0.06) 80px);
    animation: wave-drift 60s linear infinite;
}

@keyframes wave-drift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(10%, 10%) rotate(5deg);
    }
}

.hero-logo {
    max-width: 380px;
    margin: 0 auto 2.5rem;
    animation: gentle-float 8s ease-in-out infinite;
    filter: drop-shadow(0 4px 20px rgba(138, 107, 138, 0.25));
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-style: italic;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

@keyframes gentle-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 2.75rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 400;
    letter-spacing: 1px;
}

/* .section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--color-primary) 20%,
            var(--color-primary) 80%,
            transparent);
    margin: 1.5rem auto 0;
} */

/* About */
.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.about-text p {
    margin-bottom: 1.75rem;
}

/* Wines */
.wines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.wine-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(138, 107, 138, 0.15);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.wine-card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.wine-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--color-primary),
            transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.wine-card:hover::before {
    transform: translateX(100%);
}

.wine-card:hover {
    transform: translateY(-6px);
    border-color: rgba(138, 107, 138, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.wine-grid-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.wine-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.wine-card h3 a {
    color: inherit;
    text-decoration: none;
}

.wine-card h3 a:hover {
    opacity: 0.8;
}

.wine-card:hover {
    transform: translateY(-6px);
    border-color: rgba(138, 107, 138, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info address {
    font-style: normal;
    font-size: 1.1rem;
    line-height: 2;
    margin-top: 2rem;
    color: var(--color-text-muted);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: white;
    border: 1px solid rgba(138, 107, 138, 0.25);
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(138, 107, 138, 0.1);
}

/* Footer */
.site-footer {
    background-color: rgba(245, 243, 248, 0.9);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
    border-top: 1px solid rgba(138, 107, 138, 0.2);
}

.newsletter-section {
    text-align: center;
    margin-bottom: 3rem;
}

.newsletter-section h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(138, 107, 138, 0.25);
    background-color: white;
    color: var(--color-text);
    width: 320px;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: white;
}

.footer-links {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.meta-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    margin-bottom: 1rem;
}

.copyright {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-bg-alt);
        padding: 80px 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

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

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        z-index: 1001;
    }

    .mobile-menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--color-primary);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

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

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

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

    .contact-layout {
        grid-template-columns: 1fr;
    }

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

    .hero-tagline {
        font-size: 1.5rem;
    }
}

/* Vineyard Page specific styles */
.vineyard-hero {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.vineyard-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.vineyard-hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Slight dark overlay for text contrast */
}

.hero-content-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-family: var(--font-body);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.intro-grid,
.vines-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.vines-split {
    margin-top: 2rem;
}

.intro-text p,
.vines-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.intro-image img,
.vines-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.gallery-grid img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {

    .intro-grid,
    .vines-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* Newsletter CTA Section - Redesign */
.newsletter-cta-section {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #4a3788 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 0;
    /* More padding for prominence */
}

/* Subtle pattern overlay */
.newsletter-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(45deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.03) 20px,
            rgba(255, 255, 255, 0.03) 40px);
    pointer-events: none;
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.newsletter-cta-section h2 {
    font-size: 3.5rem;
    /* Larger and louder */
    margin-bottom: 1.5rem;
    color: white;
    font-family: var(--font-heading);
}

.newsletter-cta-section p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.6;
}

.newsletter-form-wide {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form-wide input[type="email"] {
    flex: 1;
    padding: 1.2rem 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.newsletter-form-wide input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form-wide input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 4px rgba(240, 76, 173, 0.3);
}

.newsletter-form-wide button {
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
    white-space: nowrap;
    background-color: var(--color-primary);
    color: white;
    border: none;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.newsletter-form-wide button:hover {
    background-color: #d63da8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .newsletter-cta-section {
        padding: 5rem 0;
    }

    .newsletter-form-wide {
        flex-direction: column;
        padding: 0 1rem;
    }

    .newsletter-form-wide input,
    .newsletter-form-wide button {
        width: 100%;
    }

    .newsletter-cta-section h2 {
        font-size: 2.25rem;
    }
}

/* Language Switcher */
.lang-switch-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-switch-item a {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.lang-switch-item a:hover {
    opacity: 1;
}

.lang-switch-item strong {
    color: var(--color-primary);
}

.lang-switch-item .sep {
    opacity: 0.3;
}

/* FAQ Section Styles */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 3rem;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
}

.faq-item p {
    line-height: 1.7;
    color: var(--color-text);
    font-size: 1rem;
}

.faq-item a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--color-primary);
}

.faq-item a:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .faq-item h3 {
        font-size: 1.25rem;
    }

    .faq-item {
        margin-bottom: 2.5rem;
    }
}

/* Quick Facts Styles */
.facts-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem 2rem;
}

.facts-list dt {
    font-weight: 600;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.facts-list dd {
    color: var(--color-text);
    margin-left: 0;
}

@media (max-width: 768px) {
    .facts-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .facts-list dt {
        margin-top: 1rem;
        margin-bottom: 0.25rem;
    }
}

/* Update newsletter form styles for checkbox alignment */
.newsletter-form-wide {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.newsletter-input-group input {
    flex: 1;
    padding: 1.2rem 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.newsletter-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 4px rgba(240, 76, 173, 0.3);
}

.newsletter-input-group button {
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
    white-space: nowrap;
    background-color: var(--color-primary);
    color: white;
    border: none;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.newsletter-input-group button:hover {
    background-color: #d63da8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.newsletter-consent {
    width: 100%;
    text-align: left;
    margin-top: 0.5rem;
}

.newsletter-consent label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-consent input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-top: 0.1rem;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.newsletter-consent input[type="checkbox"]:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.newsletter-consent input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
}

.newsletter-consent a {
    color: white;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

.newsletter-consent a:hover {
    color: var(--color-primary);
}

@media (max-width: 600px) {
    .newsletter-input-group {
        flex-direction: column;
    }

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

    .newsletter-consent label {
        justify-content: center;
    }
}