/* ===================
   RAIZ E VARIÁVEIS
   =================== */
:root {
    --color-black: #0b0b0d;
    --color-gold: #39ae49;
    --color-white: #FFFFFF;

    --color-gray-light: #E0B84E;
    --color-gray-text-dark: #333333;
    --color-gray-text-light: #aeb0b3;
    --color-gray-border: #2a2a2e;

    --gold-400: #39ae49;
    --gold-500: #39ae49;
    --gold-600: #39ae49;
    --gold-700: #39ae49;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    --container-width: 1140px;
    
    /* Altura base menor para mobile (60px) */
    --header-height: 60px;
    
    --border-radius: 8px;
}

/* ===================
   RESET E BASE
   =================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 92%;
}

body {
    font-family: var(--font-secondary);
    font-size: 1.0rem;
    line-height: 1.6;
    background-color: var(--color-black);
    color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-white);
}

h2.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

h2.text-dark {
    color: var(--color-white);
}

p {
    margin-bottom: 1rem;
    max-width: 65ch;
}

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

a:hover {
    opacity: 0.85;
}

ul {
    list-style: none;
}

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

input, button, textarea, select {
    font-family: inherit;
    font-size: 1rem;
}

/* Acessibilidade */
:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 3px;
    border-radius: var(--border-radius);
}

/* ===================
   COMPONENTES / UTILITÁRIOS
   =================== */
.container {
    max-width: var(--container-width);
    margin-inline: auto;
    /* Padding lateral para evitar que o conteúdo cole na borda */
    padding-inline: 1.5rem; 
}

.btn {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    padding: 0.8rem 1.75rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    border: 2px solid transparent;
}

.btn:active {
    transform: translateY(0) scale(.98);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--gold-700);
    border-color: var(--gold-700);
    color: var(--color-black);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
}

.btn-primary:hover, .btn-primary:focus-visible {
    background-color: var(--gold-600);
    border-color: var(--gold-600);
    color: var(--color-black);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.btn-primary:active {
    transform: translateY(0);
    background-color: var(--gold-500);
    border-color: var(--gold-500);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

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

.btn-secondary:hover, .btn-secondary:focus-visible {
    background-color: var(--color-white);
    color: var(--color-black);
    transform: translateY(-2px);
}

.highlight {
    color: var(--color-gold);
    font-weight: 500;
}

.text-link {
    font-weight: 600;
}

section {
    padding: 6rem 0;
}

.benefits, .social-proof, .contact-form {
    background-color: var(--color-black);
    color: var(--color-white);
}

/* ===================
   HEADER
   =================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(11, 11, 13, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-gray-border);
    transition: background-color 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(11, 11, 13, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.site-header .container {
    max-width: none;
    width: 100%;
}

/* Mídia Query Desktop Principal */
@media (min-width: 769px) {
    /* Redefine a altura do header para 90px apenas no desktop */
    :root {
        --header-height: 90px;
    }

    .site-header .container {
        padding-inline: clamp(24px, 6vw, 48px);
    }

    /* GRID LAYOUT: Mantém tudo alinhado */
    .nav-container {
        display: grid;
        grid-template-columns: 1fr auto 1fr; /* Esquerda | Centro (Menu) | Direita */
        align-items: center;
        height: 100%;
        position: relative;
    }

    /* === LOGO COM ZOOM (HEADER DESKTOP) === */
    .logo {
        justify-self: start;
        display: block;
        line-height: 0;
    }

    .logo img {
        height: 60px; 
        width: auto;
        transform: scale(1.4); 
        transform-origin: left center;
        margin-left: 5px;
        display: block;
    }

    .logo:hover {
        opacity: 0.9;
    }

    .nav-menu {
        position: static;
        display: flex;
        align-items: center;
        gap: 2rem;
        white-space: nowrap;
        margin: 0; 
    }

    .nav-list {
        display: flex;
        gap: 2rem;
    }

    .nav-link {
        font-family: var(--font-secondary);
        font-weight: 500;
        font-size: 1rem;
        color: var(--color-white);
        position: relative;
        padding: 0.5rem 0;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--color-gold);
        transition: width 0.3s ease;
    }

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

    .nav-link:hover,
    .nav-link:focus-visible {
        color: var(--color-white);
        opacity: 1;
    }

    .nav-buttons {
        display: flex;
        align-items: baseline;
        gap: 1rem;
        margin-left: 0;
        justify-self: end;
    }

    .nav-toggle {
        display: none;
    }

    .hamburger {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--color-white);
        position: relative;
    }
    
    main {
        padding-top: var(--header-height);
    }
}

/* ===================
   HERO / CARROSSEL
   =================== */
.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    inset: -5%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    transform: scale(1);
    transition: transform 7s linear;
}

.hero-slide.is-active .hero-bg {
    animation: kenburns 15s infinite alternate;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .60), rgba(0, 0, 0, .85));
    z-index: -1;
}

@keyframes kenburns {
    from { transform: scale(1) translate(0, 0); }
    to   { transform: scale(1.1) translate(1%, -1%); }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 1rem;
}

.hero-title {
    font-size: clamp(3rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--color-gray-text-light);
    margin-bottom: 2.5rem;
    margin-inline: auto;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* ===================
   BENEFÍCIOS
   =================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: #15151b;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-gray-border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.benefit-card .icon {
    width: 48px;
    height: 48px;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.3rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--color-gray-text-light);
    margin-bottom: 0;
}

.benefit-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    transition: border-color .25s ease, box-shadow .25s ease;
    pointer-events: none;
}

.benefit-card:hover::after {
    border-color: rgba(212, 175, 55, .35);
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .15);
}

/* ===================
   QUEM SOMOS
   =================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .mission {
    font-size: 1.15rem;
    color: var(--color-gray-text-light);
    margin-bottom: 1.5rem;
}

.about-image {
    position: relative;
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.15); 
    border-radius: var(--border-radius);
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(212, 175, 55, 0.25);
    border-color: rgba(212, 175, 55, 0.6);
}

.about-image img {
    display: block;
    width: 100%;
    border-radius: var(--border-radius);
    object-fit: cover;
    height: 400px;
}

/* ===================
   PROVA SOCIAL
   =================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.testimonial-card {
    background: #15151b;
    border: 1px solid var(--color-gray-border);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-gray-text-light);
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-card p::before {
    content: '“';
    font-family: var(--font-primary);
    font-size: 4rem;
    color: var(--color-gold);
    position: absolute;
    left: -1rem;
    top: -1.5rem;
    opacity: 0.3;
}

.testimonial-card footer {
    font-style: normal;
}

.testimonial-card footer strong {
    display: block;
    color: var(--color-white);
    font-weight: 600;
}

.testimonial-card footer span {
    font-size: 0.9rem;
    color: var(--color-gray-text-light);
}

@media (max-width: 1024px) {
    .testimonials-grid {
        display: flex;
        gap: 1.25rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: .5rem;
    }

    .testimonial-card {
        scroll-snap-align: start;
        min-width: min(100%, 560px);
    }
}


/* ===================
   SUPORTE
   =================== */
.support-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--color-gray-text-light);
    max-width: 60ch;
    margin: -1rem auto 3rem auto;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.support-col {
    padding: 2rem;
    border: 1px solid var(--color-gray-border);
    border-radius: var(--border-radius);
}

/* ===================
   FORMULÁRIO
   =================== */
.form-subtitle {
    text-align: center;
    max-width: 60ch;
    margin: -1rem auto 3rem auto;
    color: var(--color-gray-text-light);
}

#demo-form {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-gray-text-light);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: var(--border-radius);
    background-color: #07070a;
    font-size: 1rem;
    color: var(--color-white);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: #777;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

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

.lgpd-consent {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.lgpd-consent input[type="checkbox"] {
    width: auto;
    flex-shrink: 0;
}

.lgpd-consent label {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--color-gray-text-light);
}

.lgpd-consent label a {
    color: var(--color-gold);
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.form-success {
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    background-color: #e6f7ec;
    color: #228b22;
    border: 1px solid #b7e1c8;
    border-radius: var(--border-radius);
}

/* ===================
   FOOTER
   =================== */
.site-footer {
    background-color: var(--color-black);
    padding-top: 4rem;
    border-top: 1px solid var(--color-gray-border);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-col .logo {
    margin-bottom: 1rem;
    display: inline-block;
    line-height: 0;
}

/* Ajuste Logo Footer */
.footer-col .logo img {
    height: 50px; /* Um pouco maior no rodapé */
    width: auto;
    transform-origin: left center;
}

.footer-col p {
    font-size: 0.95rem;
    color: var(--color-gray-text-light);
    max-width: 30ch;
}

.footer-col h4 {
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul a {
    color: var(--color-gray-text-light);
}

.footer-col ul a:hover {
    color: var(--color-gold);
    opacity: 1;
}

.footer-legal {
    border-top: 1px solid var(--color-gray-border);
    margin-top: 3rem;
    padding: 2rem 0;
}

.legal-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--color-gray-text-light);
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: var(--color-gray-text-light);
}

.legal-links a:hover {
    color: var(--color-white);
    opacity: 1;
}

.footer-social {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.25rem;
    padding: 0.75rem 0 0.25rem;
}

.social-btn {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--color-black);
    color: #E86A36;
    border: 1px solid var(--color-gray-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
    transition: transform .2s ease, box-shadow .2s ease, color .2s ease, background .2s ease, border-color .2s ease;
    line-height: 0;
}

.social-btn:hover, .social-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .6);
    background: #111217;
    border-color: rgba(212, 175, 55, 0.6);
    color: #ff8550;
}

/* ===================
   ANIMAÇÕES (JS)
   =================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

[id] {
    scroll-margin-top: calc(var(--header-height));
}

/* ===================
   FAB WHATSAPP
   =================== */
.whatsapp-fab {
    position: fixed !important;
    right: 20px !important;
    bottom: 20px !important;

    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;

    background: #25D366 !important;
    color: #fff !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-shadow: 0 12px 24px rgba(0, 0, 0, .25), 0 2px 6px rgba(0, 0, 0, .2) !important;
    text-decoration: none !important;
    z-index: 9999 !important;
    line-height: 0 !important;
}

.whatsapp-fab svg {
    width: 28px !important;
    height: 28px !important;
    display: block !important;
    flex: 0 0 auto !important;
    pointer-events: none;
}

.whatsapp-fab:hover, .whatsapp-fab:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.05);
    outline: none;
}

/* ===================
   RESPONSIVIDADE (MOBILE / TABLET)
   =================== */

/* Tablet (medium) - 1024px */
@media (max-width: 1024px) {
    .about-container { grid-template-columns: 1fr; }
    .about-image { grid-row: 1; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

/* Tablet (small) e Mobile - 768px */
@media (max-width: 768px) {
    h2.section-title { font-size: 2rem; }
    section { padding: 4rem 0; }

    /* =========================
       1. CABEÇALHO MOBILE (Logo e Ícone)
       ========================= */
    .nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 100%;
        width: 100%;
    }

    /* Botão Hamburger */
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1100; /* Fica acima do menu aberto */
    }

    .hamburger {
        display: block;
        width: 26px; /* Levemente maior */
        height: 2px;
        background-color: var(--color-white);
        position: relative;
        transition: transform 0.3s ease, background-color 0.3s ease;
    }
    
    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--color-white);
        transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
    }

    .hamburger::before { top: -8px; }
    .hamburger::after { bottom: -8px; }

    /* Animação do X quando ativo */
    .nav-toggle.is-active .hamburger { background-color: transparent; }
    .nav-toggle.is-active .hamburger::before { transform: rotate(45deg); top: 0; }
    .nav-toggle.is-active .hamburger::after { transform: rotate(-45deg); bottom: 0; }

    /* Logo Mobile */
    .site-header .logo img {
        height: 32px; 
        width: auto;  
        display: block;
        object-fit: contain; 
        margin: 0;
    }

    /* =========================
       2. MENU ABERTO (Estilo Premium)
       ========================= */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        
        /* Fundo escuro com leve transparência e desfoque (Glassmorphism) */
        background-color: rgba(7, 7, 10, 0.96);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centraliza verticalmente */
        align-items: center;
        
        /* Animação de abertura circular */
        clip-path: circle(0% at top right);
        transition: clip-path 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        
        margin: 0;
        padding-bottom: 20vh; /* Espaço para não cobrir os botões no final */
        z-index: 1050; 
    }

    .nav-menu.is-active {
        clip-path: circle(150% at top right);
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 2.5rem; /* Mais espaçamento entre os links */
        width: 100%;
    }

    /* Estilo dos Links no Menu Mobile */
    .nav-link {
        font-family: var(--font-primary);
        font-size: 1.75rem; /* Texto maior */
        font-weight: 600;
        color: var(--color-white); /* Branco puro */
        text-transform: capitalize;
        transition: color 0.3s ease;
    }

    .nav-link:hover {
        color: var(--color-gold);
    }

    /* Botões (Área do Cliente / Agendar) dentro do menu mobile */
    .nav-buttons {
        display: none; /* Esconde o padrão do desktop */
    }

    /* Quando o menu abre, mostramos os botões flutuando embaixo */
    .nav-menu.is-active + .nav-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        bottom: 8vh; /* Fixado na parte de baixo da tela */
        left: 50%;
        transform: translateX(-50%);
        width: 85%; /* Ocupa boa largura */
        z-index: 1060;
        opacity: 0;
        animation: fadeInUp 0.6s ease forwards 0.3s; /* Atraso na entrada */
    }

    @keyframes fadeInUp {
        from { opacity: 0; transform: translate(-50%, 20px); }
        to { opacity: 1; transform: translate(-50%, 0); }
    }

    .nav-menu.is-active + .nav-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1rem;
    }

    /* =========================
       3. OUTROS AJUSTES GERAIS MOBILE
       ========================= */
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    
    .support-grid { grid-template-columns: 1fr; }
    #demo-form { grid-template-columns: 1fr; }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col p { margin-inline: auto; }
    .footer-social { justify-content: center; }

    .legal-container {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Mobile (small) - 480px */
@media (max-width: 480px) {
    .benefits-grid { grid-template-columns: 1fr; }
    .hero-slide { align-items: center; }
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { width: 100%; min-width: 260px; }
}
