@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* =========================================
   RESET & VARIÁVEIS
========================================= */
*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    outline: none;
    border: none;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --bg: #111f42;
    --bg2: #16265a;
    --accent: #1e40af;
    --accent2: #1d4ed8;
    --fg: #ffffff;
    --fg2: #c9d0e0;
    --border: rgba(255, 255, 255, 0.12);
    --glow: rgba(29, 78, 216, 0.35);
    --radius: 15px;
    --max: 1200px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

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

a {
    text-decoration: none;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--fg);
    overflow-x: hidden;
}

::selection {
    background: var(--accent2);
    color: #fff;
}

/* =========================================
   HOME / HERO
========================================= */
.home {
    background-image: linear-gradient(rgba(17, 31, 66, 0.55), rgba(17, 31, 66, 0.75)), url('img/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg);
    min-height: 660px;
    position: relative;
}

/* =========================================
   NAVEGAÇÃO - GLASSMORPHISM
========================================= */
nav {
    max-width: var(--max);
    margin: auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(17, 31, 66, 0.45);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--border);
}

.nav-logo { max-width: 200px; }
.nav-logo img { max-width: 150px; }

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.link a {
    position: relative;
    padding-bottom: 0.5rem;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

/* Só expande no HOVER — .active só muda a cor (sem a barra que trava) */
.link a:hover::after { width: 100%; }
.link a:hover { color: #a3bffa; }
.link a.active { color: #a3bffa; }

/* Menu Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 100;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================
   IFRAMES
========================================= */
.iframe-container {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: #000;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.iframe-container iframe,
.iframe-container video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    object-fit: cover;
    background: #000;
}

/* =========================================
   BOTÕES
========================================= */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--accent);
    color: white;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-whatsapp::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-whatsapp:hover::after { transform: translateX(100%); }

.btn-whatsapp:hover {
    background-color: #fff;
    color: var(--accent2);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(29, 78, 216, 0.35);
}

.btn-nav { padding: 10px 18px; font-size: 0.875rem; }

/* Botão voltar ao topo */
#btnHome {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#btnHome:hover {
    background-color: var(--accent2);
    transform: translateY(-3px);
}

#btnHome img { width: 20px; }

/* =========================================
   TIPOGRAFIA GERAL
========================================= */
.titulo-h2,
section .header {
    margin-bottom: 1rem;
    color: #fff;
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.container {
    max-width: var(--max);
    margin: auto;
    padding: 5rem 2rem;
}

.he1container {
    max-width: var(--max);
    margin: auto;
    padding: 17rem 2rem;
}

.sobre {
    color: #e8ecf7;
    white-space: normal;
    overflow-wrap: break-word;
    font-weight: 400;
    line-height: 1.8;
    font-size: 1rem;
}

header {
    position: relative;
    padding-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2rem;
}

header .content h4 {
    margin-bottom: 1rem;
    color: #cfd6e8;
    font-size: 1rem;
    font-weight: 600;
}

header .content h1 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

header .content p {
    margin-bottom: 2rem;
    color: #cfd6e8;
    max-width: 520px;
    line-height: 1.7;
}

/* =========================================
   FEATURES / CARDS — GLOW + TILT 3D
========================================= */
.features {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    perspective: 1200px;
}

.features .card {
    --mouse-x: 50%;
    --mouse-y: 50%;
    position: relative;
    background: rgba(30, 46, 90, 0.35);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    will-change: transform;
    transform-style: preserve-3d;
    /* Sem transition no transform para o JS atualizar instantâneo.
       Ao tirar o mouse, a classe .resetting reativa o transition suave. */
    transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.features .card.resetting {
    transition: transform 0.5s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.features .card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), var(--glow), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.features .card:hover::before { opacity: 1; }

.features .card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.features .card:hover::after { opacity: 0.9; }

.features .card:hover {
    border-color: rgba(29, 78, 216, 0.55);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(29, 78, 216, 0.2);
    background: rgba(30, 46, 90, 0.55);
}

.features .card > * { position: relative; z-index: 2; }

.features .card h4 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

.features-links {
    list-style: none;
    color: #e8ecf7;
    font-size: 0.9rem;
}

.features-links li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.features-links li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent2);
    font-weight: bold;
}

.image-card {
    max-width: 50px;
    margin-bottom: 20px;
    transition: transform 0.4s var(--ease);
}

.features .card:hover .image-card {
    transform: scale(1.08) rotate(-4deg);
}

/* =========================================
   COLUNA SOBRE
========================================= */
.column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

#sobrenos .column {
    max-width: 900px;
    margin: 0 auto;
}

/* =========================================
   FOOTER
========================================= */
footer {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    border-top: 1px solid var(--border);
    max-width: var(--max);
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
}

footer .column .logo { max-width: 100px; margin-bottom: 1.5rem; }

footer .column p {
    color: #cfd6e8;
    margin-bottom: 1.5rem;
    max-width: 400px;
    line-height: 1.6;
}

footer .column .socials {
    display: flex;
    align-items: center;
    gap: 1rem;
}

footer .column .socials a {
    color: #cfd6e8;
    padding: 8px;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}

footer .column .socials a img { width: 22px; }

footer .column .socials a:hover {
    background-color: var(--accent2);
    transform: translateY(-2px);
    border-color: transparent;
}

footer .column h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

footer .column > a {
    display: block;
    color: #cfd6e8;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 0.95rem;
}

footer .column > a:hover {
    color: #a3bffa;
    transform: translateX(3px);
}

.copyright {
    max-width: var(--max);
    margin: auto;
    padding: 1.5rem 2rem;
    color: #cfd6e8;
    font-size: 0.85rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

/* =========================================
   ANIMAÇÕES BIDIRECIONAIS (reveal/unreveal)
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}

.reveal.reveal-in {
    opacity: 1;
    transform: none;
}

/* =========================================
   RESPONSIVIDADE
========================================= */
@media (max-width: 900px) {
    header { grid-template-columns: 1fr; text-align: center; }
    header .content p { margin: 0 auto 2rem; }
    .features { grid-template-columns: repeat(2, 1fr); }
    footer { grid-template-columns: 1fr; }
    .he1container { padding: 10rem 2rem; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .btn-nav { display: none; }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        background-color: rgba(17, 31, 66, 0.98);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        padding: 2rem 0;
        gap: 1.5rem;
        transition: left 0.4s ease-in-out;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
        z-index: 99;
    }

    .nav-links.active { left: 0; }

    .features { grid-template-columns: 1fr; }
    footer { text-align: center; }
    footer .column { align-items: center; }
    footer .column .socials { justify-content: center; }
    footer .column p { margin: 0 auto 2rem auto; }
    footer .column .logo { margin: 0 auto 2rem auto; }
    .container { padding: 3.5rem 1.5rem; }
    .he1container { padding: 7rem 1.5rem; }
}

@media (max-width: 480px) {
    .btn-whatsapp { font-size: 0.9rem; padding: 10px 16px; }
    .nav-logo img { max-width: 120px; }
    nav { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
