/* ========================
   CONFIGURAÇÕES GERAIS E VARIÁVEIS
======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul-escuro: #0F2035;
    --azul-medio: #1A649C;
    --azul-claro: #E6F0F9;
    --verde-zap: #25D366;
    --branco: #ffffff;
    --cinza-fundo: #F8FAFC;
    --texto: #475569;

    --sombra-suave: 0 10px 40px -10px rgba(15, 32, 53, 0.08);
    --sombra-hover: 0 20px 40px -10px rgba(26, 100, 156, 0.15);
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cinza-fundo);
    color: var(--texto);
    line-height: 1.7;
    font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Poppins', sans-serif;
    color: var(--azul-escuro);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================
   HEADER (GLASSMORPHISM)
======================== */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo img {
    max-height: 75px;
    width: auto;
    display: block;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--azul-escuro);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

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

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

nav ul li a:hover {
    color: var(--azul-medio);
}

nav ul li a.btn-nav {
    background-color: var(--azul-escuro);
    color: var(--branco);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
}

nav ul li a.btn-nav::after {
    display: none;
}

nav ul li a.btn-nav:hover {
    background-color: var(--azul-medio);
    transform: translateY(-2px);
    box-shadow: var(--sombra-hover);
}

.btn-mobile {
    display: none;
    background: none;
    border: none;
    color: var(--azul-escuro);
    font-size: 1.8rem;
    cursor: pointer;
}

/* ========================
   HERO SECTION
======================== */
.hero {
    background: linear-gradient(135deg, rgba(15, 32, 53, 0.92) 0%, rgba(26, 100, 156, 0.85) 100%), url('assets/fundo-ar.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--branco);
    padding: 140px 0 120px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--branco);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #cbd5e1;
}

.btn-whatsapp {
    background-color: var(--verde-zap);
    color: white;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp::before {
    content: '\f232';
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
    font-size: 1.3rem;
}

.btn-whatsapp:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

/* ========================
   NÚMEROS / PROVA SOCIAL
======================== */
.numeros {
    background: linear-gradient(135deg, var(--azul-escuro) 0%, #1a3a5c 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.numeros::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, rgba(15, 32, 53, 0.92) 0%, rgba(26, 100, 156, 0.85) 100%);
    clip-path: ellipse(55% 100% at 50% 0%);
}

.numeros-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.numero-item {
    text-align: center;
    padding: 20px 30px;
    position: relative;
    /* Linha divisória entre itens */
}

.numero-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.numero-valor {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--branco);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

/* Destaque especial no primeiro número (100+ clientes) */
.numero-item:first-child .numero-valor {
    color: #4dd8ff;
    text-shadow: 0 0 30px rgba(77, 216, 255, 0.4);
}

.numero-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================
   QUEM SOMOS (ATUALIZADO ODYSSEY PREMIUM)
======================== */
.sobre,
.servicos,
.contato {
    padding: 100px 0;
}

.sobre {
    background-color: var(--branco);
}

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

.sobre-imagem {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 4s ease-in-out infinite;
    /* Efeito flutuante */
}

.sobre-imagem img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 10px 40px -10px rgba(15, 32, 53, 0.15);
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.sobre-imagem:hover img {
    transform: translateY(-10px);
    box-shadow: var(--sombra-hover);
}

/* Fundo com gradiente e profundidade */
.sobre-imagem::after {
    content: '';
    position: absolute;
    bottom: -25px;
    right: -25px;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, var(--azul-escuro) 0%, var(--azul-medio) 100%);
    border-radius: 24px;
    z-index: 1;
    box-shadow: 0 10px 40px -10px rgba(15, 32, 53, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sobre-texto h2 {
    font-size: 2.8rem;
    margin-bottom: 24px;
    line-height: 1.2;
    position: relative;
}

/* Traço sublinhado moderno no título */
.sobre-texto h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--azul-medio);
    margin-top: 10px;
    border-radius: 50px;
}

.sobre-texto p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.diferenciais {
    list-style: none;
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.diferenciais li {
    font-weight: 600;
    color: var(--azul-escuro);
    display: flex;
    align-items: center;
    gap: 10px;
}

.diferenciais li::before {
    content: '\f058';
    font-family: 'FontAwesome';
    color: var(--azul-medio);
    font-size: 1.2rem;
}

/* ========================
   SERVIÇOS (CARDS PREMIUM)
======================== */
.servicos h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
}

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

.card {
    background: var(--branco);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--sombra-suave);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--azul-medio);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.card:hover {
    transform: translateY(-10px);
    /* Mantém ele subindo */
    background-color: var(--branco);
    /* Garante o fundo branco */

    /*Trocamos a sombra escura por uma iluminação (glow) 
       usando as cores claras do logo (azul claro) */
    box-shadow: 0 0 30px var(--azul-medio),
        0 0 60px rgba(26, 100, 156, 0.1);

    /* Adicionamos uma borda de luz muito sutil azul claro */
    border: 3px solid var(--azul-claro);
}

.card:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--azul-claro);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all 0.3s ease;
}

.card i {
    font-size: 32px;
    color: var(--azul-medio);
    transition: all 0.3s ease;
}

.card:hover .icon-wrapper {
    background: var(--azul-medio);
}

.card:hover i {
    color: var(--branco);
    transform: scale(1.1);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* ========================
   CONTATO (FORMULÁRIO PROFISSIONAL)
======================== */
.contato h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.contato p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

#form-contato {
    max-width: 700px;
    margin: 0 auto;
    background: var(--branco);
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--sombra-suave);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#form-contato input,
#form-contato select,
#form-contato textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid transparent;
    background-color: var(--cinza-fundo);
    border-radius: 12px;
    outline: none;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--texto);
    transition: all 0.3s ease;
}

#form-contato input:focus,
#form-contato select:focus,
#form-contato textarea:focus {
    border-color: var(--azul-medio);
    background-color: var(--branco);
    box-shadow: 0 0 0 4px rgba(26, 100, 156, 0.1);
}

#form-contato textarea {
    height: 150px;
    resize: none;
}

.btn-enviar {
    background-color: var(--azul-escuro);
    color: var(--branco);
    padding: 20px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-enviar:hover {
    background-color: var(--azul-medio);
    transform: translateY(-2px);
    box-shadow: var(--sombra-hover);
}

/* ========================
   RODAPÉ (FOOTER)
======================== */
.rodape {
    background-color: var(--azul-escuro);
    color: var(--branco);
    padding: 80px 0 30px;
    text-align: center;
}

.rodape-info h3 {
    font-size: 1.8rem;
    color: var(--branco);
    margin-bottom: 15px;
}

.rodape-info p {
    color: #94a3b8;
    margin-bottom: 30px;
}

.btn-instagram {
    color: var(--branco);
    text-decoration: none;
    font-weight: 600;
    padding: 14px 28px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.btn-instagram::before {
    content: '\f16d';
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
    font-size: 1.2rem;
}

.btn-instagram:hover {
    background-color: var(--branco);
    color: var(--azul-escuro);
}

.linha-divisoria {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.rodape-direitos p {
    font-size: 0.9rem;
    color: #64748b;
}

.credit-link {
    color: #475569;
    text-decoration: none;
    transition: color 0.3s ease;
}

.credit-link:hover {
    color: #94a3b8;
}

/* ========================
   ANIMAÇÕES DE SCROLL (JS)
======================== */
.oculto {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cards .card:nth-child(2) {
    transition-delay: 0.1s;
}

.cards .card:nth-child(3) {
    transition-delay: 0.2s;
}

.cards .card:nth-child(4) {
    transition-delay: 0.3s;
}

.cards .card:nth-child(5) {
    transition-delay: 0.4s;
}

.cards .card:nth-child(6) {
    transition-delay: 0.5s;
}

.cards:hover .card {
    transition-delay: 0s !important;
}

/* ========================
   BOTÃO FLUTUANTE WHATSAPP
======================== */
.whatsapp-flutuante {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--verde-zap);
    color: var(--branco);
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
}

.whatsapp-flutuante:hover {
    transform: scale(1.1);
    background-color: #20b858;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ========================
   EFEITO MÁQUINA DE ESCREVER
======================== */
.efeito-digitacao::after {
    content: '|';
    color: var(--azul-medio);
    animation: piscar 0.8s infinite;
}

@keyframes piscar {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ========================
   ANIMAÇÃO FLUTUANTE (QUEM SOMOS)
======================== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ========================
   RESPONSIVIDADE GLOBAL (SEMPRE NO FINAL)
======================== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

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

    .sobre-imagem::after {
        display: none;
    }

    .sobre-imagem {
        animation: none;
    }

    /* Desliga flutuação no celular */

    .numeros-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .numero-item:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 80px;
        background-attachment: scroll; /* Fix: parallax quebra no iOS/Safari */
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .sobre-texto h2,
    .servicos h2,
    .contato h2 {
        font-size: 2.2rem;
    }

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

    .numero-valor {
        font-size: 2.2rem;
    }

    .numero-item:not(:last-child)::after {
        display: none;
    }

    .numero-item {
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .numero-item:last-child {
        border-bottom: none;
    }

    #form-contato {
        padding: 30px 20px;
    }

    .btn-mobile {
        display: block;
        margin-left: auto;
        margin-right: 10px;
    }

    nav ul.menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        /* Fixa na tela inteira, ignorando o scroll */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        /* Ocupa 100% da altura do celular */
        background: rgba(255, 255, 255, 0.98);
        /* Fundo quase sólido */
        backdrop-filter: blur(15px);
        /* Efeito de vidro borrado no fundo */
        z-index: 990;
        /* Fica logo abaixo do header (z-index: 1000) */
        padding: 0;

        /* Estado inicial invisível com leve deslocamento para cima */
        opacity: 0;
        pointer-events: none;
        /* Impede cliques fantasma quando invisível */
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    nav ul.menu.ativo {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    nav ul.menu li {
        margin: 20px 0;
        text-align: center;
    }

    nav ul.menu li a {
        font-size: 1.6rem;
        font-weight: 600;
    }

    /* Destaca ainda mais o botão de orçamento no celular */
    nav ul li a.btn-nav {
        margin-top: 20px;
        font-size: 1.3rem;
        padding: 16px 40px;
    }

    .whatsapp-flutuante {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}