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

/* ============================
   BACKGROUND GLOBAL
============================ */
body {
    background: #d83b2d;
}

/* ============================
   HERO
============================ */
/* ============================
   HERO — FIX PARA SAFE AREA
============================ */

.hero {
    position: relative;
    width: 100%;
    height: calc(100vh + env(safe-area-inset-top)) !important;
    padding-top: env(safe-area-inset-top);
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 70%; /* ajuste fino aqui */

    /* puxa a imagem para cima, preenchendo a área do notch */
    margin-top: calc(-1 * env(safe-area-inset-top));
}

/* MESCLAGEM */
.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%; /* sua escolha */
    background: linear-gradient(
        to bottom,
        rgba(216, 59, 45, 0) 15%,
        rgba(216, 59, 45, 0.35) 45%,
        rgba(216, 59, 45, 1) 100%
    );
    z-index: 1;
    pointer-events: none;
}




/* ============================
   LOGO (ATUALIZADO)
============================ */
.logo-container {
    text-align: center;
    margin-top: -10px;        /* sobe o logo dentro do hero */
    margin-bottom: 5px;       /* diminui espaço antes do botão */
    position: relative;
    z-index: 5;
}

.logo {
    width: 470px;             /* antes 420px → agora maior */
}

/* MOBILE <500px */
@media (max-width: 500px) {
    .logo {
        width: 300px;         /* antes 250px */
    }

    .logo-container {
        margin-top: -5px;
        margin-bottom: 0px;
    }
}


/* ============================
   MENU SUPERIOR
============================ */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;800&display=swap');

/* ============================
   MENU SUPERIOR (ATUALIZADO)
============================ */
/* ============================
   BOTÃO MEUS LINKS (IMAGEM NOVA)
============================ */
.menu-top {
    text-align: center;
    margin-top: 25px;       /* reduzido — como você pediu */
    margin-bottom: 25px;    /* aproxima dos cards */
}

.btn-menu-img img {
    width: 260px;           /* tamanho ideal para mobile/desktop */
    height: auto;
    display: inline-block;
    cursor: pointer;

    transition: transform .25s ease;
}

.btn-menu-img img:hover {
    transform: scale(1.04); /* leve zoom */
}

/* MOBILE <500px */
@media (max-width: 500px) {
    .btn-menu-img img {
        width: 220px;
    }
}

/* 501px – 780px */

/* CARDS NO DESKTOP — limita tamanho para não ficarem gigantes */
@media (min-width: 781px) {
    .cards {
        width: 65%; /* deixa o conteúdo proporcional no desktop */
        max-width: 900px;
    }

    .card {
        aspect-ratio: 16/9;
        width: 100%;
        max-height: 350px; /* impede de ficar enorme */
        border-radius: 20px;
        background-size: cover;
    }
}
@media (min-width: 1400px) {
    .cards {
        max-width: 800px;
    }

    .card {
        max-height: 300px;
    }
}

@media (min-width: 501px) and (max-width: 780px) {
    .btn-menu-img img {
        width: 250px;
    }
}

/* ============================
   CARDS
============================ */
.cards {
    width: 90%;
    margin: 55px auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.card {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 15px;
    border: none; 

    overflow: hidden;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.card:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

/* Imagens */
.card-21dias { background-image: url('img/21DIAS.png'); }
.card-consultoria { background-image: url('img/AGENDAR.png'); }
.card-youtube { background-image: url('img/YOUTUBE.png'); }
.card-tiktok { background-image: url('img/TIKTOK.png'); }
.card-prepara { background-image: url('img/PREPARA.png'); }
.card-rtm { background-image: url('img/RTM.png'); }


/* ============================
   FOOTER
============================ */
footer {
    text-align: center;
    margin: 60px 0;
}

/* ============================
   BOTÃO WHATSAPP
============================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&display=swap');

.btn-whatsapp {
    position: relative;
    background: #ebebeb;
    color: #34A853;
    padding: 15px 42px 15px 90px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;

    font-size: 26px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;

    text-decoration: none;
    border: 8px solid #ffffff;

    transition: transform 0.35s ease, filter 0.35s ease;
}

.btn-whatsapp:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.wpp-icon {
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    width: 115px;
    height: 115px;
    background: #25D366;
    border-radius: 50%;
    border: 8px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(0,0,0,0.15);
}

.wpp-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.btn-whatsapp:hover .wpp-icon {
    transform: translateY(-50%) scale(1.05);
}

/* ============================
        RESPONSIVIDADE
============================ */

/* =======================================
   RESPONSIVO 641px ATÉ 780px (TABLETS)
======================================= */
@media (min-width: 641px) and (max-width: 780px) {

    .logo {
        width: 360px;
    }

    .logo-container {
        margin-top: 25px;
        margin-bottom: 50px;
    }

    .menu-top {
        margin-top: 45px;
        margin-bottom: 65px;
    }

    .btn-menu {
        font-size: 24px;
        padding: 18px 50px;
        border-radius: 12px;
        font-weight: 700;
    }

    .cards {
        width: 88%;
        gap: 60px;
    }

    .card {
        height: 260px;
        background-size: 93%;
        border-radius: 18px;
        transition: transform .25s ease, background-size .25s ease;
    }

    .card:hover {
        transform: scale(1.04);
        background-size: 100%;
    }

    /* WhatsApp */
    .btn-whatsapp {
        margin-top: 70px;
        font-size: 28px;
        padding: 22px 60px 22px 135px;
        border-radius: 60px;
        transition: transform .25s ease;
    }

    .btn-whatsapp:hover {
        transform: scale(1.04);
    }

    .wpp-icon {
        width: 130px;
        height: 130px;
        left: -45px;
        border-width: 8px;
        transition: transform .25s ease;
    }

    .btn-whatsapp:hover .wpp-icon {
        transform: translateY(-50%) scale(1.06);
    }
}

/* ===================================================================
   RESPONSIVO 501px ATÉ 640px  → USA EXATAMENTE O PADRÃO DE <500px
   =================================================================== */
@media (min-width: 501px) and (max-width: 640px) {

    .cards {
        gap: 20px !important;
        margin-top: 20px;
        padding: 0 16px;
    }

    .card {
        height: 165px;
        background-size: contain;
        aspect-ratio: auto;
    }

    .logo { width: 250px; }

    .menu-top { margin-bottom: 25px; }

    .btn-menu {
        font-size: 18px;
        padding: 12px 30px;
        border-radius: 10px;
        font-weight: bold;
    }

    /* WhatsApp */
    .btn-whatsapp {
        padding: 16px 28px 16px 82px;
        font-size: 18px;
        margin-left: 20px;
        border-width: 8px;
    }

    .wpp-icon {
        width: 85px;
        height: 85px;
        left: -30px;
        border-width: 8px;
    }
}

/* ===================================================================
   AJUSTE ESPECIAL — 635px ATÉ 670px  
   (resolve o corte do WhatsApp sem mexer no resto)
   =================================================================== */
@media (min-width: 635px) and (max-width: 670px) {

    .btn-whatsapp {
        font-size: 20px;
        padding: 16px 38px 16px 95px;
    }

    .wpp-icon {
        width: 78px;
        height: 78px;
        left: -26px;
        border-width: 7px;
    }
}

/* ============================
      < 500px
============================ */
@media (max-width: 500px) {

    .cards {
        gap: 20px !important;
        margin-top: 20px;
        padding: 0 16px;
    }

    .card {
        height: 165px;
        background-size: contain;
        aspect-ratio: auto;
    }

    .logo { width: 320px; }

    .btn-menu {
        font-size: 18px;
        padding: 12px 30px;
    }

    .btn-whatsapp {
        padding: 16px 28px 16px 82px;
        font-size: 18px;
        margin-left: 20px;
    }

    .wpp-icon {
        width: 85px;
        height: 85px;
        left: -30px;
    }
}

/* ============================
      < 420px
============================ */
@media (max-width: 420px) {

    .cards {
        gap: 18px !important;
        padding: 0 14px;
    }

    .logo { width: 280px; }

    .btn-menu {
        font-size: 17px;
        padding: 10px 28px;
    }

    .card {
        height: 150px;
    }

    .btn-whatsapp {
        padding: 14px 20px 14px 64px;
        font-size: 16px;
    }
}

/* ============================
      < 360px
============================ */
@media (max-width: 360px) {

    .cards {
        gap: 18px !important;
        padding: 0 12px;
    }

    .logo { width: 250px; }

    .btn-menu {
        font-size: 16px;
        padding: 9px 25px;
    }

    .card {
        height: 140px;
    }

    .btn-whatsapp {
        padding: 12px 18px 12px 60px;
        font-size: 14px;
    }
}

/* ============================
      < 330px
============================ */
@media (max-width: 330px) {

    .cards {
        gap: 16px !important;
        padding: 0 10px;
    }

    .logo { width: 230px; }

    .btn-menu {
        font-size: 15px;
        padding: 8px 22px;
    }

    .card { height: 130px; }

    .btn-whatsapp {
        padding: 12px 20px 12px 60px;
        font-size: 12px;
    }

    .wpp-icon {
        width: 70px;
        height: 70px;
    }
}

/* ============================
      < 280px
============================ */
@media (max-width: 280px) {

    .btn-whatsapp {
        padding: 10px 16px 10px 52px;
        font-size: 11px;
        border-width: 6px;
    }

    .wpp-icon {
        width: 60px;
        height: 60px;
        border-width: 6px;
    }

    .card { height: 120px; }
}

/* =======================================
   HERO — CORREÇÃO DE ALTURA FINAL
   (SEM DUPLICAÇÃO — VERSÃO CERTA)
======================================= */

/* MOBILE <500px — perfeito como estava */
@media (max-width: 500px) {
    .hero {
        height: auto !important;
    }



}

/* 501px até 640px — altura bem reduzida */
@media (min-width: 501px) and (max-width: 640px) {


.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 65%; /* DESCE a imagem */
}
}

/* 641px até 780px — reduzido para evitar corte */
@media (min-width: 641px) and (max-width: 780px) {



}

/* DESKTOP 781px até 1100px — menor e elegante */
@media (min-width: 781px) and (max-width: 1100px) {

}

/* DESKTOP GRANDE >1100px — metade da altura original */
@media (min-width: 1101px) {

}


/* =======================================
   AJUSTE SAFE-AREA PARA IPHONE / NOTCH
======================================= */

@supports(padding: max(0px)) {
    body {
        padding-top: env(safe-area-inset-top);
    }

    .hero {
        padding-top: env(safe-area-inset-top);
    }
}


/* DESCE A LOGO */
.logo-container {
    margin-top: 40px !important;  /* antes era 20px */
}

/* DESCE O BOTÃO MEUS LINKS */
.menu-top {
    margin-top: 30px !important;  /* antes era 25–70px */

}

/* DESCE OS CARDS UM POUCO MAIS */
.cards {
    margin-top: 20px !important;
}


/* DESKTOP — impede zoom e preserva a borda da imagem */
@media (min-width: 1024px) {
    .card {
        background-size: contain !important;
        background-repeat: no-repeat;
        background-position: center;
        height: 350px; /* altura ideal no desktop */
    }
    .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%; /* DESCE a imagem */
}
}


@media (min-width: 1024px) {
    .cards {
        max-width: 700px;
        margin: 0 auto;
    }
}
