/* Base Styles & Mobile-First */
:root {
    --primary-color: #007bff; /* Azul para CTAs e destaques */
    --secondary-color: #6c757d; /* Cinza para textos secundários */
    --dark-color: #343a40; /* Cor escura para textos principais e background */
    --light-color: #f8f9fa; /* Cor clara para fundos */
    --white: #ffffff;
    --success-color: #28a745; /* Para o botão do WhatsApp */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

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

h1, h2, h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    text-align: center;
}

h1 {
    font-size: 1.8em;
}

h2 {
    font-size: 1.5em;
    margin-top: 30px;
}

h3 {
    font-size: 1.2em;
}

p {
    margin-bottom: 10px;
    text-align: justify;
}

ul {
    list-style: none;
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    text-decoration: underline;
}

.btn-primary {
    display: inline-block;
    background-color: var(--success-color); /* Verde para o WhatsApp */
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    text-align: center;
}

.btn-primary:hover {
    background-color: #218838; /* Um tom mais escuro de verde */
    text-decoration: none;
}

/* Header */
.header {
    background-color: var(--white);
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}

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

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--dark-color);
}

.logo img {
    height: 40px; /* Tamanho da logo */
    margin-right: 10px;
}

.main-nav {
    display: none; /* Esconde o menu por padrão no mobile */
    width: 100%;
    margin-top: 15px;
}

.main-nav.active {
    display: block; /* Mostra quando o menu-toggle é clicado */
}

.main-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-nav ul li {
    margin: 10px 0;
}

.main-nav ul li a {
    color: var(--dark-color);
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.main-nav ul li a:hover {
    background-color: var(--light-color);
    text-decoration: none;
}

.main-nav .cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
}

.main-nav .cta-button:hover {
    background-color: #0056b3;
}

.header-info {
    font-size: 0.9em;
    color: var(--secondary-color);
    margin-top: 10px;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 80px 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay escuro */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.hero-section h1 {
    color: var(--white);
    font-size: 2.2em;
    margin-bottom: 15px;
}

.hero-section p {
    color: var(--white);
    font-size: 1.1em;
    margin-bottom: 30px;
    text-align: center;
}

/* General Section Styling */
section {
    padding: 40px 0;
    text-align: center;
}

section:nth-child(even) { /* Alterna cores de fundo para legibilidade */
    background-color: var(--white);
}

/* About Section */
.about-section p {
    max-width: 800px;
    margin: 0 auto 20px auto;
    text-align: center; /* Centraliza o texto sobre nós */
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: 1fr; /* Uma coluna no mobile */
    gap: 20px;
    margin-top: 20px;
}

.service-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: left;
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: left;
}

.service-item p {
    text-align: left;
}

.service-highlight {
    font-weight: bold;
    color: var(--success-color);
    margin-top: 20px;
    text-align: center;
}

/* Carousel Section */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.carousel-slide {
    display: none; /* Esconde os slides por padrão */
    width: 100%;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 25px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.6);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.carousel-dots {
    text-align: center;
    padding: 10px 0;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active-dot, .dot:hover {
    background-color: #717171;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}


/* Area de Atendimento */
.area-atendimento-section ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.area-atendimento-section ul li {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--light-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr; /* Uma coluna no mobile */
    gap: 20px;
    margin-top: 20px;
}

.testimonial-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 10px;
    text-align: center;
}

.testimonial-item .author {
    font-weight: bold;
    color: var(--secondary-color);
}

/* Final CTA Section */
.cta-final-section ul {
    max-width: 600px;
    margin: 20px auto;
    text-align: left;
}

.cta-final-section ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.cta-final-section ul li::before {
    content: '✓';
    color: var(--success-color);
    position: absolute;
    left: 0;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 30px 0 10px 0;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr; /* Uma coluna no mobile */
    gap: 30px;
    text-align: center;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 10px;
}

.footer-logo span {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
}

.footer-contact h3,
.footer-links h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.footer-contact p,
.footer-links ul li {
    margin-bottom: 5px;
}

.footer-contact a,
.footer-links ul li a {
    color: var(--white);
    transition: color 0.3s ease;
}

.footer-contact a:hover,
.footer-links ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--success-color);
    color: var(--white);
    border-radius: 50px;
    text-align: center;
    font-size: 1.1em;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1001;
    transition: all 0.3s ease;
}

.whatsapp-float img {
    width: 30px;
    height: 30px;
    margin-right: 8px;
}

.whatsapp-float span {
    display: none; /* Esconde o texto por padrão no mobile */
}

.whatsapp-float:hover {
    background-color: #218838;
    transform: scale(1.05);
}


/* Media Queries for larger screens (Tablet and Desktop) */
@media (min-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    h3 {
        font-size: 1.5em;
    }

    .header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .header-top {
        width: auto; /* Permite que o logo e o menu-toggle se ajustem naturalmente */
    }

    .main-nav {
        display: block; /* Mostra o menu no desktop */
        width: auto;
        margin-top: 0;
    }

    .main-nav ul {
        flex-direction: row;
    }

    .main-nav ul li {
        margin: 0 10px;
    }

    .header-info {
        margin-top: 0;
        margin-left: auto; /* Empurra o horário para a direita */
    }

    .menu-toggle {
        display: none; /* Esconde o menu-toggle no desktop */
    }

    .hero-section {
        padding: 120px 0;
        min-height: 500px;
    }

    .hero-section h1 {
        font-size: 3em;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-section p {
        font-size: 1.3em;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 2 ou mais colunas */
    }

    .testimonial-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 2 ou mais colunas */
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr); /* Três colunas no desktop */
        text-align: left;
    }

    .whatsapp-float {
        padding: 12px 20px;
        border-radius: 50px; /* Mantém o formato arredondado */
        width: auto; /* Largura automática para o conteúdo */
    }

    .whatsapp-float span {
        display: inline; /* Mostra o texto no desktop */
    }
}

/* Desktop specific adjustments */
@media (min-width: 1024px) {
    .container {
        padding: 20px 0;
    }

    h1 {
        font-size: 3.5em;
    }

    h2 {
        font-size: 2.5em;
    }
}
