/* ========================================
   Fazenda IP Fittipaldi - Main Stylesheet
   ======================================== */

/* -------------------- CSS Variables -------------------- */
:root {
    /* Cores Primarias - Verde */
    --verde-escuro: #1B5E20;
    --verde-medio: #2E7D32;
    --verde-claro: #8BC34A;
    --verde-limao: #9CCC65;
    --verde-hover: #145218;

    /* Cores Secundarias - Bordo/Vinho */
    --bordo: #722F37;
    --vinho: #8B1A4A;
    --vinho-claro: #A94064;
    --bordo-hover: #5a252c;

    /* Neutros */
    --branco: #FFFFFF;
    --branco-off: #F8F9FA;
    --cinza-claro: #E8E8E8;
    --cinza-medio: #9E9E9E;
    --cinza-escuro: #424242;
    --preto: #212121;

    /* Sombras */
    --sombra-leve: 0 2px 10px rgba(0, 0, 0, 0.1);
    --sombra-media: 0 4px 20px rgba(0, 0, 0, 0.15);
    --sombra-forte: 0 8px 30px rgba(0, 0, 0, 0.2);

    /* Transicoes */
    --transicao-rapida: all 0.3s ease;
    --transicao-media: all 0.5s ease;

    /* Espacamentos */
    --espacamento-secao: 100px;
    --espacamento-mobile: 60px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--cinza-escuro);
    background-color: var(--branco);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--verde-escuro);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

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

ul {
    list-style: none;
}

/* -------------------- Utility Classes -------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--espacamento-secao) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--verde-claro), var(--bordo));
    border-radius: 2px;
}

.section-header p {
    color: var(--cinza-medio);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

.text-center { text-align: center; }
.text-white { color: var(--branco); }
.text-verde { color: var(--verde-escuro); }
.text-bordo { color: var(--bordo); }

.bg-white { background-color: var(--branco); }
.bg-off { background-color: var(--branco-off); }
.bg-verde { background-color: var(--verde-escuro); }
.bg-bordo { background-color: var(--bordo); }

/* -------------------- Buttons -------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transicao-rapida);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--verde-escuro);
    color: var(--branco);
    border-color: var(--verde-escuro);
}

.btn-primary:hover {
    background-color: var(--verde-hover);
    border-color: var(--verde-hover);
    transform: translateY(-3px);
    box-shadow: var(--sombra-media);
}

.btn-secondary {
    background-color: var(--bordo);
    color: var(--branco);
    border-color: var(--bordo);
}

.btn-secondary:hover {
    background-color: var(--bordo-hover);
    border-color: var(--bordo-hover);
    transform: translateY(-3px);
    box-shadow: var(--sombra-media);
}

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

.btn-outline:hover {
    background-color: var(--branco);
    color: var(--verde-escuro);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--branco);
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background-color: #1da851;
    border-color: #1da851;
    transform: translateY(-3px);
    box-shadow: var(--sombra-media);
}

/* -------------------- Header & Navigation -------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transicao-rapida);
    background-color: transparent;
}

.header.scrolled {
    background-color: var(--branco);
    box-shadow: var(--sombra-leve);
    padding: 10px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
    transition: var(--transicao-rapida);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header.scrolled .logo img {
    height: 50px;
    width: 50px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--branco);
    position: relative;
    padding: 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header.scrolled .nav-link {
    color: var(--cinza-escuro);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--verde-claro);
    transition: var(--transicao-rapida);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header.scrolled .nav-link::after {
    background-color: var(--verde-escuro);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--branco);
    border-radius: 2px;
    transition: var(--transicao-rapida);
}

.header.scrolled .nav-toggle span {
    background-color: var(--verde-escuro);
}

/* -------------------- Hero Section -------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.85), rgba(114, 47, 55, 0.75)),
                url('../images/hero-vineyard.jpg') center/cover no-repeat;
    color: var(--branco);
    text-align: center;
    padding: 120px 20px;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.hero-content h1 {
    color: var(--branco);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content .subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-bottom: 15px;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-content .tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--branco);
    font-size: 2rem;
}

/* -------------------- About Section -------------------- */
.about {
    background-color: var(--branco);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--sombra-forte);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--verde-claro);
    border-radius: 10px;
    z-index: -1;
}

.about-content h2 {
    margin-bottom: 25px;
}

.about-content p {
    color: var(--cinza-escuro);
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--verde-claro), var(--verde-medio));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--branco);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.feature-text {
    font-weight: 600;
    color: var(--cinza-escuro);
}

/* -------------------- Products Section -------------------- */
.products {
    background-color: var(--branco-off);
}

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

.product-card {
    background-color: var(--branco);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--sombra-leve);
    transition: var(--transicao-rapida);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-forte);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transicao-media);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--bordo);
    color: var(--branco);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-content {
    padding: 25px;
}

.product-content h3 {
    margin-bottom: 10px;
    color: var(--verde-escuro);
}

.product-content p {
    color: var(--cinza-medio);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-feature {
    background-color: var(--branco-off);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--verde-escuro);
    font-weight: 500;
}

/* -------------------- Certifications Section -------------------- */
.certifications {
    background: linear-gradient(135deg, var(--verde-escuro), var(--verde-medio));
    color: var(--branco);
}

.certifications .section-header h2 {
    color: var(--branco);
}

.certifications .section-header h2::after {
    background: linear-gradient(90deg, var(--verde-claro), var(--branco));
}

.certifications .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.cert-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transicao-rapida);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cert-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.cert-icon {
    width: 80px;
    height: 80px;
    background-color: var(--branco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--verde-escuro);
}

.cert-card h4 {
    color: var(--branco);
    margin-bottom: 10px;
}

.cert-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* -------------------- Gallery Section -------------------- */
.gallery {
    background-color: var(--branco);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transicao-media);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 94, 32, 0.8), transparent);
    opacity: 0;
    transition: var(--transicao-rapida);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--branco);
    font-weight: 600;
}

/* -------------------- Sustainability Section -------------------- */
.sustainability {
    background-color: var(--branco-off);
}

.sustainability-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sustainability-content h2 {
    margin-bottom: 25px;
}

.sustainability-list {
    margin-top: 30px;
}

.sustainability-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--branco);
    border-radius: 10px;
    box-shadow: var(--sombra-leve);
    transition: var(--transicao-rapida);
}

.sustainability-item:hover {
    transform: translateX(10px);
    box-shadow: var(--sombra-media);
}

.sustainability-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--verde-claro), var(--verde-medio));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--branco);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.sustainability-text h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.sustainability-text p {
    color: var(--cinza-medio);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.sustainability-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--sombra-forte);
}

.sustainability-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* -------------------- Contact Section -------------------- */
.contact {
    background: linear-gradient(135deg, var(--bordo), var(--vinho));
    color: var(--branco);
}

.contact .section-header h2 {
    color: var(--branco);
}

.contact .section-header h2::after {
    background: linear-gradient(90deg, var(--verde-claro), var(--branco));
}

.contact .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-text h4 {
    color: var(--branco);
    margin-bottom: 5px;
}

.contact-text p,
.contact-text a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.contact-text a:hover {
    color: var(--verde-claro);
}

.contact-form {
    background-color: var(--branco);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--sombra-forte);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--cinza-escuro);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--cinza-claro);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transicao-rapida);
    background-color: var(--branco);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--verde-medio);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
}

/* -------------------- Footer -------------------- */
.footer {
    background-color: var(--preto);
    color: var(--branco);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand img {
    height: 80px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--branco);
    transition: var(--transicao-rapida);
}

.footer-social a:hover {
    background-color: var(--verde-medio);
    transform: translateY(-3px);
}

.footer-column h4 {
    color: var(--branco);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transicao-rapida);
}

.footer-column ul li a:hover {
    color: var(--verde-claro);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-bottom a {
    color: var(--verde-claro);
}

/* -------------------- WhatsApp Float Button -------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    color: var(--branco);
    font-size: 2rem;
    box-shadow: var(--sombra-media);
    transition: var(--transicao-rapida);
    animation: pulse 2s infinite;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: var(--sombra-forte);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

/* -------------------- Responsive Design -------------------- */
@media (max-width: 1024px) {
    .about-grid,
    .sustainability-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image::before {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 200px);
    }

    .gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }

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

@media (max-width: 768px) {
    :root {
        --espacamento-secao: 60px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--verde-escuro);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        transition: var(--transicao-rapida);
        box-shadow: var(--sombra-forte);
    }

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

    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        display: block;
        padding: 15px 0;
        color: var(--branco) !important;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero {
        padding: 100px 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-item,
    .gallery-item:first-child {
        grid-column: span 1;
        grid-row: span 1;
        height: 250px;
    }

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

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

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

    .contact-form {
        padding: 30px 20px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float a {
        width: 55px;
        height: 55px;
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.3rem; }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

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

    .sustainability-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}
