/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold-primary: #D4AF37;
    --gold-light: #E8D5A3;
    --gold-dark: #B8941F;
    --green-primary: #2D5016;
    --green-light: #4A7C2E;
    --green-dark: #1A3309;
    --green-accent: #6B8E3D;
    --white: #FFFFFF;
    --cream: #F5F1E8;
    --text-dark: #2C2C2C;
    --text-light: #666666;
    --border-color: #E0D9C7;
    
    --font-primary: 'Cormorant Garamond', serif;
    --font-secondary: 'Lato', sans-serif;
    
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
    color: var(--white);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.logo a:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.logo h1 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin: 0;
    cursor: pointer;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gold-primary);
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold-primary);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    color: var(--green-primary);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-secondary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: var(--green-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
}

.btn-secondary:hover {
    background: var(--green-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4);
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--cream);
    border-radius: 10px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.feature-card h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--green-primary);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Intro Section */
.intro {
    padding: 4rem 0;
    background: var(--cream);
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--green-primary);
    margin-bottom: 2rem;
}

.intro-content p {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.intro-image {
    width: 100%;
    max-width: 800px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* CTA Section */
.cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gold-primary);
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--cream);
}

/* Page Content */
.page-header {
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-primary);
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gold-primary);
}

.page-header p {
    font-size: 1.125rem;
    color: var(--gold-light);
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: 4rem 0;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--green-primary);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--gold-primary);
    padding-bottom: 0.5rem;
}

.content-section p {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Link Styles */
a:not(.btn):not(.nav-menu a):not(.footer-section a) {
    color: var(--green-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    font-weight: 500;
}

a:not(.btn):not(.nav-menu a):not(.footer-section a):hover {
    color: var(--gold-primary);
    border-bottom-color: var(--gold-primary);
}

.content-section img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Varieties Grid */
.varieties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.variety-card {
    background: var(--cream);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
}

.variety-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.variety-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.variety-card-content {
    padding: 1.5rem;
}

.variety-card h3 {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    color: var(--green-primary);
    margin-bottom: 1rem;
}

.variety-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.variety-features {
    list-style: none;
    margin-top: 1rem;
}

.variety-features li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.variety-features li:last-child {
    border-bottom: none;
}

/* Process Steps */
.process-steps {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
    padding: 2rem;
    background: var(--cream);
    border-radius: 10px;
    border-left: 4px solid var(--gold-primary);
}

.process-step-number {
    font-family: var(--font-primary);
    font-size: 3rem;
    color: var(--gold-primary);
    font-weight: 700;
}

.process-step-content h3 {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    color: var(--green-primary);
    margin-bottom: 1rem;
}

.process-step-content p {
    color: var(--text-dark);
    line-height: 1.8;
}

/* Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--cream);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--green-primary);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    cursor: pointer;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--green-primary);
}

.form-group.checkbox-group {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.form-group.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.6;
    flex: 1;
}

.form-group.checkbox-group a {
    color: var(--green-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--green-primary);
    transition: var(--transition);
}

.form-group.checkbox-group a:hover {
    color: var(--gold-primary);
    border-bottom-color: var(--gold-primary);
}

/* Footer */
.footer {
    background: var(--green-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--gold-light);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--gold-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--gold-light);
}

/* Tasting Diagram Styles */
.tasting-diagram {
    background: var(--cream);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.tasting-wheel {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 500px;
    margin: 0 auto;
}

.tasting-attribute {
    position: absolute;
    padding: 0.5rem 1rem;
    background: var(--gold-primary);
    color: var(--white);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.tasting-attribute:hover {
    background: var(--gold-dark);
    transform: scale(1.1);
}

/* Pairing Visualizer */
.pairing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pairing-card {
    background: var(--cream);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.pairing-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.pairing-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pairing-card-content {
    padding: 1.5rem;
}

.pairing-card h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--green-primary);
    margin-bottom: 0.5rem;
}

.pairing-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Modal Styles */
.pairing-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pairing-modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pairing-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.pairing-modal-close:hover {
    color: var(--green-primary);
}

.pairing-modal-content h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--green-primary);
    margin-bottom: 1rem;
}

.pairing-modal-content p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.pairing-tip {
    background: var(--cream);
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid var(--gold-primary);
    margin-top: 1rem;
    font-style: italic;
    color: var(--green-primary);
}

.pairing-card.active {
    border-color: var(--gold-primary);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

img.loaded {
    opacity: 1;
    transition: opacity 0.3s;
}

img[loading="lazy"] {
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo a {
        display: inline-block;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        flex-direction: column;
        background: var(--green-dark);
        width: 100%;
        max-width: 320px;
        min-height: 100vh;
        padding: 5rem 0 2rem;
        gap: 0;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
        pointer-events: none;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: left;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1.1rem;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(212, 175, 55, 0.1);
        padding-left: 2.5rem;
    }
    
    .hero {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .features-grid,
    .varieties-grid,
    .pairing-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .intro-content h2,
    .content-section h2 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}
