/* ---------- CORES ---------- */
:root {
    --primary: #7088a5;
    --primary-light: #8fa3c0;
    --secondary: #94a4b8;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-dark: #394a5f;
    --accent: #dfe6f2;
}

/* ---------- RESET ---------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--primary);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; }

/* ANIMATION CLASSES */
.hidden { opacity: 0; transform: translateY(40px); transition: 0.8s; }
.visible { opacity: 1; transform: translateY(0); }

/* ---------- UTILS ---------- */
.container {
    width: min(90%, 1200px);
    margin: auto;
    padding: 3rem 0;
}

/* ---------- CTA BUTTON (AGORA VERDE WHATSAPP) ---------- */
.cta-button {
    display: inline-block;
    background: #25D366;
    color: #fff;
    padding: 0.7rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(37,211,102,0.25);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: #1ebe5c;
    box-shadow: 0 10px 24px rgba(37,211,102,0.35);
}

.float { animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-6px);} }

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    background: linear-gradient(120deg, rgba(248,250,252,.7), rgba(223,230,242,.7)),
                url("images/Prancheta.png") center/cover no-repeat;
    padding: 8rem 1rem 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.tagline { color: var(--secondary); font-size: 1.1rem; margin-bottom: 2rem; max-width: 600px; }
.typewrite > .wrap { border-right: 3px solid var(--primary); padding-right: 5px; }

/* ---------- SOBRE ---------- */
.sobre { background: var(--surface); }
.about-container { display: flex; gap: 3rem; align-items: center; }
.about-image img { max-width: 100%; border-radius: 12px; box-shadow: 0 8px 24px rgba(112,136,165,.3); }

/* AUMENTO DE FOTO — DESKTOP */
@media (min-width: 901px) {
    .about-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .about-text {
        font-size: 1.05rem;
    }

    .about-image img {
        width: 120%;
        max-width: 520px;
        transform: translateX(20px);
    }
}

/* MOBILE — Foto acima do texto */
@media (max-width: 900px) {

    .about-container {
        display: flex;
        flex-direction: column-reverse; /* Foto > Texto */
        gap: 2rem;
        text-align: center;
    }

    .about-image img {
        width: 100%;
        max-width: 380px;   /* tamanho mobile */
        transform: none !important; /* evita puxar configuração do desktop */
    }

    .about-text {
        margin-top: 0;
    }
}

/* ---------- PILARES ---------- */
.pilares { background: var(--accent); }
.pilar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}
.pilar-card {
    background: var(--surface);
    padding: 2rem;
    padding-top: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(112,136,165,.15);
    position: relative;
}
.pilar-number {
    position: absolute; 
    top: -7px; left: -7px;
    width: 48px; height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 14px;
    display: flex; justify-content: center; align-items: center;
}

/* ---------- DEPOIMENTOS ---------- */
.depoimentos { background: var(--surface); padding: 4rem 0; }
.depoimentos-intro { text-align: center; max-width: 700px; margin: 0 auto 3rem; }

.depoimentos-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.depoimento-card {
    background: var(--surface);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(112,136,165,.15);
}

.img-wrap { width: 100%; overflow: hidden; border-radius: 10px; }
.img-wrap img { width: 100%; height: auto; }

/* MOBILE SLIDER CORRIGIDO */
@media (max-width: 768px) {
    .depoimentos-wrapper {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 1rem 1rem 2rem 1rem;
        gap: 1.5rem;
    }

    .depoimento-card {
        min-width: 85%;
        flex-shrink: 0;
        scroll-snap-align: center;
    }

    /* imagens iguais */
    .img-wrap {
        height: 320px;
    }

    .img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* ---------- CONTATO ---------- */
.contato { background: #eef2f7; text-align: center; padding: 4rem 0; }
.contact-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
footer { background: var(--primary); color: #fff; padding: 2rem 0; text-align: center; }
.footer-container { display: flex; flex-direction: column; gap: 1rem; align-items: center; }

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
    position: fixed; bottom: 22px; right: 22px;
    width: 64px; height: 64px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.whatsapp-bubble {
    position: fixed; bottom: 100px; right: 30px;
    background: #fff; color: #333;
    padding: 10px 16px;
    border-radius: 20px; border-bottom-right-radius: 0;
    opacity: 0; transform: translateY(10px);
    transition: .6s;
}
.whatsapp-bubble.show { opacity: 1; transform: translateY(0); }

/* ---------- VÍDEOS ---------- */
.videos {
    background: var(--surface);
    padding: 4rem 0;
}

.videos-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-dark);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.video-card {
    background: var(--surface);
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(112,136,165,.15);
}

.video-card iframe {
    width: 100%;
    aspect-ratio: 9 / 16; /* ideal para vídeos verticais */
    border-radius: 10px;
}

/* CTA Instagram */
.instagram-cta {
    text-align: center;
    margin-top: 3rem;
}

.instagram-button {
    display: inline-block;
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .3s, box-shadow .3s;
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
}

.instagram-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0,0,0,.25);
}

/* MOBILE */
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }

    .video-card iframe {
        aspect-ratio: 9 / 16;
    }
}

/* >>> DEPPOIMENTOS - CSS ADICIONAL PARA MOBILE E IPHONE */
@media (max-width: 768px) {
    .depoimentos-wrapper {
        display: flex;
        overflow-x: auto;
        gap: 1.5rem;
        padding-bottom: 1rem;
    }

    .depoimento-card {
        min-width: 85%;
        flex-shrink: 0;
        scroll-snap-align: center;
    }

    .depoimento-card .img-wrap {
        height: 300px !important;      /* força altura consistente */
        max-height: 300px !important;
        width: 100% !important;         /* garante ocupar 100% do card */
        overflow: hidden;
    }

    .depoimento-card .img-wrap img {
        width: 100% !important;         /* força largura total */
        height: 100% !important;        /* usa o tamanho do container */
        object-fit: cover !important;   /* preenche sem distorcer */
    }
}

/* Safari específico (iOS) para garantir que reconhecimento de objeto funcione */
@supports (-webkit-overflow-scrolling: touch) {
    .depoimento-card .img-wrap img {
        object-fit: cover !important;
    }
}

