/* ======================================
   1. CONFIGURAÇÕES E VARIÁVEIS
   ====================================== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap");

:root {
    --primary-gradient: linear-gradient(135deg, #4583f7 0%, #764ba2 100%);
    --glass-bg: rgba(0, 0, 0, 0.04);
    --glass-border: rgba(0, 0, 0, 0.1);
    --text-main: #1a1a2e;
    --text-dim: #555577;
    --bg-deep: #ffffff;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ======================================
   2. NAVBAR
   ====================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.navigation {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 90px;
    padding: 0 8%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.logo-nav {
    display: none;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.nav-item {
    list-style: none;
}

.nav-item a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    position: relative;
}

.nav-item a:visited,
.nav-item a:link {
    color: var(--text-main);
    text-decoration: none;
}

.nav-item a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #4583f7;
    transition: width 0.3s ease;
}

.nav-item a:hover::after {
    width: 100%;
}

.nav-item a:hover {
    color: #4583f7;
}

/* Menu Hamburguer */
.menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: transparent;
    border: none;
    z-index: 100001;
    position: relative;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 0;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-main);
    border-radius: 3px;
}

/* Animação hamburguer → X */
.menu.ativo .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu.ativo .bar:nth-child(2) {
    opacity: 0;
}
.menu.ativo .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ======================================
   3. HERO SECTION
   ====================================== */
.hero, .background {
    min-height: 100vh;
    background: linear-gradient(-45deg, #e8eaf6, #f0f4ff, #dce8ff, #eef2ff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 90px;
}

@keyframes gradientBG {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container-main {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
}

.main-filho h1 {
    font-size: 4.5rem;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #1a1a2e 40%, #4583f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-filho p {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 500px;
}

.btn-hero {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 18px 50px;
    background: var(--primary-gradient);
    color: var(--text-main);
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(69, 131, 247, 0.4);
}

.btn-hero:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 35px rgba(69, 131, 247, 0.5);
}

.main-img img {
    max-width: 100%;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6));
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-25px); }
}

.svg-vetor {
    width: 100%;
    line-height: 0;
    margin-top: auto;
}

/* ======================================
   4. SEÇÃO SOCIAL
   ====================================== */
.container {
    text-align: center;
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.text-h4 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.container p {
    color: var(--text-dim);
    margin-bottom: 40px;
}

.icon-main {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.icon-item i {
    font-size: 2.2rem;
    padding: 25px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-main);
    transition: var(--transition);
}

.icon-item:hover i {
    background: var(--primary-gradient);
    transform: translateY(-10px) rotate(5deg);
}

/* ======================================
   5. FOOTER
   ====================================== */
footer {
    background: #f5f5f8;
    border-top: 1px solid var(--glass-border);
    padding: 60px 8% 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.footer-coluna,
.footer-coluna-meio {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.text-footer {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #4583f7;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.formas-pagamento-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 5px;
}

.formas-pagamento-icons img {
    height: 35px;
    width: auto;
    background: white;
    padding: 5px;
    border-radius: 6px;
    object-fit: contain;
}

.link-rapido-pai {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-rapido-pai a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

.link-rapido-pai a:hover {
    color: var(--text-main);
    transform: translateX(5px);
}

.container-metodos-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.container-metodos-icons a {
    text-decoration: none;
}

.container-metodos-icons a i {
    font-size: 2rem;
    color: var(--text-main);
    transition: 0.3s;
}

.container-metodos-icons a:hover i {
    color: #4583f7;
    transform: translateY(-3px);
}

.mapa-container,
iframe.mapa-iframe {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* ======================================
   6. RESPONSIVIDADE
   ====================================== */
@media (max-width: 992px) {

    /* Hero */
    .container-main {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
    }

    .main-filho h1 {
        font-size: 3rem;
    }

    .main-filho p {
        max-width: 100%;
        margin: 0 auto;
    }

    .main-img img {
        max-width: 260px;
        margin: 0 auto;
        display: block;
    }

    /* Mostra hamburguer */
    .menu {
        display: flex !important;
    }

    /* ── MENU MOBILE ── */
    /* Estado fechado */
    .nav-menu {
        display: none !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        z-index: 99999;
        /* Reseta o posicionamento absoluto do desktop */
        transform: none;
        white-space: normal;
        overflow-y: auto;
        padding-top: 0;
    }

    /* Estado aberto */
    .nav-menu.ativo {
        display: flex !important;
    }

    .nav-menu.ativo .nav-item {
        margin: 16px 0;
        opacity: 0;
        animation: fadeInDown 0.4s ease forwards;
    }

    .nav-menu.ativo .nav-item:nth-child(1) { animation-delay: 0.05s; }
    .nav-menu.ativo .nav-item:nth-child(2) { animation-delay: 0.15s; }
    .nav-menu.ativo .nav-item:nth-child(3) { animation-delay: 0.25s; }
    .nav-menu.ativo .nav-item:nth-child(4) { animation-delay: 0.35s; }

    @keyframes fadeInDown {
        from { opacity: 0; transform: translateY(-20px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .nav-menu.ativo .nav-item a {
        font-size: 1.4rem;
        font-weight: 700;
        color: var(--text-main);
        padding: 14px 40px;
        display: block;
        border-radius: 10px;
        transition: all 0.3s ease;
        letter-spacing: 1px;
    }

    .nav-menu.ativo .nav-item a:hover,
    .nav-menu.ativo .nav-item a:active {
        background: #4583f7;
        color: white;
        transform: scale(1.05);
    }

    /* Esconde a linha azul no mobile */
    .nav-menu.ativo .nav-item a::after {
        display: none;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    /* Social icons */
    .icon-main {
        gap: 1rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 400px) {
    .main-filho h1 {
        font-size: 2.4rem;
    }
}