/* ==========================================================================
   Variáveis e Reset
   ========================================================================== */
:root {
    --primary-color: #004aad;
    /* Azul corporativo, transmite confiança */
    --secondary-color: #d95c14;
    /* Laranja/Coral para CTAs, excelente contraste */
    --text-dark: #333333;
    --text-light: #4a4a4a;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Base para rem */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

/* ==========================================================================
   Utilitários de Acessibilidade
   ========================================================================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    z-index: 1000;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* ==========================================================================
   Botões (CTAs)
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #e07a3e;
    /* Tom mais escuro para contraste no hover */
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover,
.btn-outline:focus {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ==========================================================================
   Cabeçalho e Navegação
   ========================================================================== */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    text-decoration: none;
}

.logo strong {
    font-weight: 800;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--primary-color);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.badge {
    display: inline-block;
    background-color: #e6f0fa;
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    /* Evita que a imagem quadrada fique gigante em telas grandes */
    height: auto;
    aspect-ratio: 1 / 1;
    /* Garante que o navegador reserve um espaço quadrado (combate o CLS) */
    object-fit: cover;
    /* Impede qualquer tipo de distorção (esticamento) */
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
    /* Centraliza a imagem no seu contêiner */
}

/* ==========================================================================
   Sobre Nós
   ========================================================================== */
.about {
    padding: 5rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.check-list {
    list-style: none;
    margin-top: 2rem;
}

.check-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-list i {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

/* ==========================================================================
   Alinhamento de Texto B2B (Justificado com Hifenização)
   ========================================================================== */
.hero-text p,
.about-content p {
    text-align: justify;
    -webkit-hyphens: auto;
    /* Suporte para Safari/Chrome antigos */
    -ms-hyphens: auto;
    /* Suporte para Edge/IE */
    hyphens: auto;
    /* Padrão moderno */
}

/* ==========================================================================
   Serviços
   ========================================================================== */
.services {
    background-color: var(--bg-light);
    padding: 5rem 0;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-top: 4px solid var(--primary-color);
    transition: var(--transition);

    /* Configuração padrão para Mobile (1 card por linha) */
    flex: 1 1 100%;
    max-width: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* ==========================================================================
   Diferenciais
   ========================================================================== */
.differentiators {
    padding: 5rem 0;
}

.diff-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.diff-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.diff-item h4 {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Rodapé & Botão Flutuante
   ========================================================================== */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h3 {
    margin-bottom: 1rem;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover,
.social-links a:focus {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    font-size: 0.875rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    background-color: #128c7e;
    transform: scale(1.05);
    color: #fff;
}

/* ==========================================================================
   Media Queries (Desktop)
   ========================================================================== */
@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero h1 {
        font-size: 3rem;
    }

    /* Removemos o .services-grid daqui e aplicamos a regra direto no card */
    /* Em tablets: 2 cards por linha */
    .service-card {
        flex: 1 1 calc(50% - 2rem);
        max-width: calc(50% - 1rem);
    }

    .diff-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {

    /* Em desktops grandes: 3 na primeira linha, 2 centralizados na segunda */
    .service-card {
        flex: 1 1 30%;
        max-width: 350px;
    }
}

/* ==========================================================================
   Media Queries (Mobile Menu)
   ========================================================================== */
@media (max-width: 767px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        clip-path: circle(0% at 100% 0);
        transition: clip-path 0.4s ease-out;
    }

    .nav-menu.active {
        clip-path: circle(150% at 100% 0);
    }

    .nav-menu ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
}
