/* Variáveis de cores baseadas na logo do CajuChat */
:root {
    --primary-color: #4CAF50; /* Verde do balão de chat */
    --secondary-color: #FF8C00; /* Laranja do caju */
    --accent-color: #8BC34A; /* Verde claro da castanha */
    --dark-color: #005500; /* Verde escuro do contorno */
    --light-color: #F5F0E1; /* Bege claro do fundo */
    --white: #FFFFFF;
    --gray: #666666;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
}

/* Reset e estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-color);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

a {
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

/* Botão pequeno otimizado */
.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

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

.btn-primary:hover {
    background-color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #E67E00;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    max-width: 100vw;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 10px 0;
    overflow-x: hidden;
}

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

.logo {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.logo img {
    width: auto;
    height: 60px;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.5rem;
    margin-left: 10px;
    color: var(--dark-color);
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-weight: bold;
}

/* Menu de navegação */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    font-weight: 500;
    position: relative;
}

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

nav ul li a:hover::after {
    width: 100%;
}

.btn-contato {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
}

.btn-contato:hover {
    background-color: var(--dark-color);
}

/* Menu Mobile - Otimizado */
.menu-mobile-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
    padding: 8px;
}

.menu-mobile-btn:focus {
    outline: none;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

/* Animação otimizada */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background-color: var(--light-color);
}

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

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero h1, .hero h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--gray);
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.highlight {
    font-size: 0.85rem;
    font-weight: normal;
    opacity: 0.9;
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
    background-color: var(--white);
}

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

.benefit-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Ícone do card de benefícios - Otimizado */
.benefit-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.benefit-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--light-color);
}

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

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Imagem do card de serviços - Otimizado */
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 20px 20px 10px;
    color: var(--dark-color);
}

.service-card p {
    padding: 0 20px 20px;
    color: var(--gray);
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background-color: var(--white);
}

/* Subtítulo da seção de preços - Otimizado */
.pricing-subtitle {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.pricing-guarantee {
    margin-top: 40px;
    text-align: center;
    background-color: rgba(76, 175, 80, 0.1);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-guarantee i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.pricing-guarantee p {
    font-size: 1rem;
    color: var(--dark-gray);
    margin: 0;
}

.pricing-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    padding-bottom: 70px;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
    position: relative;
}

/* Badge de destaque - Otimizado */
.pricing-card.featured::before {
    content: 'Mais Popular';
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    font-size: 0.8rem;
    border-bottom-left-radius: 10px;
}

.pricing-header {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 30px 20px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
}

.pricing-features {
    padding: 30px 20px;
}

.pricing-features ul li {
    margin-bottom: 15px;
    color: var(--dark-gray);
}

/* Ícones da lista de recursos - Otimizado */
.pricing-features ul li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.pricing-card .btn {
    margin-bottom: 30px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 20px;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: var(--light-color);
}

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

.testimonial-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--gray);
    position: relative;
    text-align: justify;
}

.testimonial-content p::before {
    content: '\201C';
    font-size: 4rem;
    position: absolute;
    left: -20px;
    top: -20px;
    color: var(--primary-color);
    opacity: 0.2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: auto;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.testimonial-author p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--white);
}

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

.contact-content {
    padding-right: 30px;
}

.contact-content .section-title {
    text-align: left;
}

.contact-content .section-title::after {
    margin-left: 0;
}

.contact-content p {
    margin-bottom: 30px;
    color: var(--gray);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-gray);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

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

.contact-card {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.social-media {
    grid-column: span 2;
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.social-media h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--dark-color);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo h3 {
    margin-top: 10px;
    font-size: 1.5rem;
    font-family: 'Grotesk S SH', sans-serif;
    font-weight: bold;
}

.footer-logo p {
    margin-top: 10px;
    color: #ccc;
    font-size: 0.9rem;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    margin-top: 10px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-newsletter h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-newsletter h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    margin-top: 10px;
}

.footer-newsletter p {
    margin-bottom: 20px;
    color: #ccc;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-family: 'Poppins', sans-serif;
}

.footer-newsletter button {
    border-radius: 0 5px 5px 0;
}

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

.footer-bottom p {
    font-size: 0.9rem;
    color: #ccc;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    font-size: 0.9rem;
    color: #ccc;
}

.footer-legal a:hover {
    color: var(--secondary-color);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #25D366; /* Cor oficial do WhatsApp */
    transform: scale(1.1);
}

.form-disclaimer {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 15px;
    text-align: center;
}

.form-disclaimer a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }

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

    .contact-content {
        padding-right: 0;
    }

    .contact-content .section-title {
        text-align: center;
    }

    .contact-content .section-title::after {
        margin: 15px auto 0;
    }
}

/* Media query específica para corrigir o menu entre 770px e 858px */
@media (max-width: 858px) and (min-width: 769px) {
    nav ul li {
        margin: 0 8px;
    }
    
    nav ul li a {
        font-size: 0.9rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .logo img {
        height: 50px;
    }
    
    .btn-contato {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    header {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    header .container {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .logo img {
        width: auto;
        height: 50px;
        object-fit: contain;
    }

    .menu-mobile-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1000;
        padding: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
    }

    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        overflow: visible;
    }

    nav ul {
        flex-direction: column;
        margin: 0;
        padding: 20px 0;
        width: 100%;
        background-color: var(--white);
    }

    nav ul li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

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

    .pricing-card.featured {
        transform: scale(1);
    }

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

    .footer-legal {
        margin-top: 15px;
        justify-content: center;
    }
}

/* Media query específica para dispositivos como Samsung S20 FE */
@media screen and (min-width: 360px) and (max-width: 450px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    header {
        width: 100%;
        max-width: 100vw;
    }
    
    .container {
        width: 100%;
        padding: 0 10px;
    }
    
    .logo {
        margin-right: 10px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo h1 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

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

    .social-media {
        grid-column: span 1;
    }

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

    .footer-logo {
        align-items: center;
        margin-bottom: 30px;
    }

    .footer-links h4,
    .footer-newsletter h4 {
        text-align: center;
    }

    .footer-links h4::after,
    .footer-newsletter h4::after {
        margin: 10px auto 0;
    }

    .footer-links ul {
        text-align: center;
    }
}