/* FONTES OFICIAIS CONFIRMADAS NO SITE */
@import url('https://fonts.googleapis.com/css2?family=Braah+One&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    /* CORES OFICIAIS EXTRAÍDAS DO CSS DO SITE */
    --main-background: #fdf3c8;
    --main-foreground: #574c42;
    --accent-color: #7f9f62; /* Verde/Sage da marca */
    --header-background: #e2e0db;
    --header-foreground: #816d5b;
    
    /* Cores de suporte */
    --card-bg: #ffffff;
    --wa-green: #25D366;
    --wa-green-hover: #20bd5a;
    --shadow-soft: 0 4px 15px rgba(87, 76, 66, 0.05);
    --shadow-hover: 0 10px 25px rgba(87, 76, 66, 0.1);
    --shadow-modal: 0 20px 40px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--main-foreground);
    background-color: var(--main-background);
    /* Fundo Gradiente "Mesh" Rico - Cores Sálvia/Terracota Pastel */
    background-image: 
        radial-gradient(circle at 10% 10%, #e8f0e1 0%, transparent 40%), /* Sálvia suave */
        radial-gradient(circle at 90% 20%, #fbe8e7 0%, transparent 40%), /* Terracota clarinho */
        radial-gradient(circle at 80% 90%, #f4eee6 0%, transparent 40%), /* Duna */
        radial-gradient(circle at 20% 80%, #fdf3c8 0%, transparent 40%); /* Creme base */
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 24px 16px;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* =======================================
   BACKGROUND FOTOGRÁFICO (Novo Estilo Minimalista e Limpo)
   ======================================= */
.pupa-photo-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-color: #f8f4e6; /* Creme de fundo base */
}

/* Bolhas de cor grandes no fundo */
.pupa-photo-container::before,
.pupa-photo-container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.pupa-photo-container::before {
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(127, 159, 98, 0.12) 0%, rgba(127, 159, 98, 0) 70%);
    top: -300px;
    right: -200px;
}

.pupa-photo-container::after {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(232, 222, 203, 0.6) 0%, rgba(232, 222, 203, 0) 70%);
    bottom: -200px;
    left: -200px;
}

/* Fotos das crianças em pequenos círculos (agora maiores e mais fofas) */
.photo-bg-img {
    position: absolute;
    object-fit: cover;
    border-radius: 50%; /* Círculos perfeitos */
    border: 6px solid #fff; /* Borda um pouco mais grossa pra ficar fofo */
    box-shadow: 0 8px 25px rgba(0,0,0,0.12); /* Sombra um pouco mais destacada */
    opacity: 0.95;
    z-index: 2;
    animation: floatSmall 14s ease-in-out infinite;
}

@keyframes floatSmall {
    0%, 100% { transform: translate(0, 0) rotate(var(--rot, 0deg)) scale(1); }
    33% { transform: translate(25px, -35px) rotate(calc(var(--rot, 0deg) + 12deg)) scale(1.05); }
    66% { transform: translate(-20px, 25px) rotate(calc(var(--rot, 0deg) - 8deg)) scale(0.95); }
}

/* Marca d'água no fundo (Desenho do Pupa Gigante e bem claro) */
.photo-logo {
    width: 800px; /* Bem grande para parecer um grafismo de fundo */
    height: auto;
    border: none;
    box-shadow: none;
    border-radius: 0;
    opacity: 0.12; /* Mais visível */
    top: 15%; 
    left: -10%; /* Pegando o canto esquerdo da tela */
    z-index: 1;
    animation: floatGiant 25s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatGiant {
    0%, 100% { transform: translate(0, 0) rotate(-2deg) scale(1); }
    33% { transform: translate(40px, -50px) rotate(3deg) scale(1.08); }
    66% { transform: translate(-30px, 40px) rotate(-5deg) scale(0.92); }
}

/* --------------------------------------
   FORMAS FLUTUANTES EXTRAS (Bolinhas e Anéis)
--------------------------------------- */
.floating-shape {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    animation: floatShape 20s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0,0) rotate(0deg) scale(1); }
    33% { transform: translate(50px, -70px) rotate(180deg) scale(1.2); }
    66% { transform: translate(-40px, 50px) rotate(360deg) scale(0.8); }
}

.shape-1 { top: 12%; left: 18%; width: 50px; height: 50px; border-radius: 50%; background: rgba(127,159,98,0.15); animation-delay: 0s; }
.shape-2 { top: 65%; left: 8%; width: 80px; height: 80px; border-radius: 50%; border: 3px solid rgba(219,165,134,0.25); animation-delay: -5s; }
.shape-3 { top: 22%; right: 12%; width: 35px; height: 35px; border-radius: 50%; background: rgba(219,165,134,0.15); animation-delay: -10s; }
.shape-4 { top: 78%; right: 22%; width: 65px; height: 65px; border-radius: 50%; border: 2px solid rgba(127,159,98,0.25); animation-delay: -15s; }
.shape-5 { top: 45%; left: 45%; width: 25px; height: 25px; border-radius: 50%; background: rgba(240,210,144,0.25); animation-delay: -8s; }
.shape-6 { top: 58%; right: 12%; width: 90px; height: 90px; border-radius: 50%; border: 4px solid rgba(240,210,144,0.15); animation-delay: -2s; }

/* Posições das fotos (tamanhos MAIORES e MAIS AFASTADAS) */
.photo-1 {
    --rot: -5deg;
    width: 170px; height: 170px;
    top: 5%; left: 3%;
    animation-delay: 0s;
}

.photo-2 {
    --rot: 8deg;
    width: 220px; height: 220px;
    top: 20%; right: 2%;
    animation-delay: -2s;
}

.photo-3 {
    --rot: -12deg;
    width: 140px; height: 140px;
    bottom: 5%; left: 8%;
    animation-delay: -1s;
}

.photo-4 {
    --rot: 10deg;
    width: 180px; height: 180px;
    bottom: 8%; right: 5%;
    animation-delay: -3s;
}

.photo-5 {
    --rot: -8deg;
    width: 150px; height: 150px;
    top: 60%; right: 15%; /* Movido para a direita para equilibrar */
    animation-delay: -4s;
}

/* Remover o Glass Overlay antigo */
.photo-glass-overlay {
    display: none;
}

/* Ajustes Mobile */
@media (max-width: 640px) {
    .pupa-photo-container::before { width: 500px; height: 500px; top: -150px; right: -150px; }
    .pupa-photo-container::after { width: 400px; height: 400px; bottom: -50px; left: -100px; }
    
    .photo-logo { width: 250px; top: 10%; right: -5%; }
    
    .photo-1 { width: 110px; height: 110px; top: 8%; left: 2%; }
    .photo-2 { width: 140px; height: 140px; top: 35%; right: -5%; }
    .photo-3 { width: 90px; height: 90px; bottom: 15%; left: 5%; }
    
    .photo-4, .photo-5 { display: none; }
}

.container {
    max-width: 1100px; /* Largura Desktop para o Grid */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 48px);
    position: relative;
    z-index: 1;
}

/* HEADER CARD */
.header-card {
    background-color: var(--card-bg);
    border-radius: 32px;
    padding: 40px 24px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.logo-link {
    display: inline-block;
    position: relative;
    text-decoration: none;
    margin-bottom: 16px;
}

.logo {
    max-width: 160px;
    display: block;
    transform-origin: center;
    animation: rockLullaby 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 10px rgba(127, 159, 98, 0.2)) drop-shadow(0 0 20px rgba(219, 165, 134, 0.2));
    transition: filter 0.3s ease;
}

.logo:hover {
    filter: drop-shadow(0 8px 15px rgba(127, 159, 98, 0.4)) drop-shadow(0 0 30px rgba(219, 165, 134, 0.4)) brightness(1.05);
    cursor: pointer;
}

/* Animação de ninar com pulsação (Balanço suave e heartbeat para o logo) */
@keyframes rockLullaby {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-3px) rotate(-3deg) scale(1.03); }
    50% { transform: translateY(0px) rotate(0deg) scale(0.98); }
    75% { transform: translateY(-3px) rotate(3deg) scale(1.03); }
}

/* Zzz Flutuantes do bebê */
.zzz {
    position: absolute;
    font-family: 'Braah One', sans-serif;
    color: #a79788;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    animation: floatZzz 3s infinite ease-in;
    right: 5%;
    top: 30%;
    text-shadow: 0 2px 5px rgba(255,255,255,0.8);
}

.z1 { font-size: 12px; animation-delay: 0s; right: 10%; top: 40%; }
.z2 { font-size: 18px; animation-delay: 1s; right: 2%; top: 20%; }
.z3 { font-size: 24px; animation-delay: 2s; right: -8%; top: 0%; }

@keyframes floatZzz {
    0% { transform: translate(0, 0) scale(0.5) rotate(-10deg); opacity: 0; }
    20% { opacity: 0.9; }
    70% { opacity: 0.9; }
    100% { transform: translate(20px, -40px) scale(1.5) rotate(15deg); opacity: 0; }
}

.header-card h1 {
    font-family: 'Braah One', sans-serif;
    font-size: 28px;
    font-weight: 400; /* Braah one is naturally thick */
    color: var(--main-foreground);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.header-card .subtitle {
    font-size: 15px;
    font-weight: 500;
    color: var(--header-foreground);
    line-height: 1.5;
}

/* =======================================
   GRID DE CARDS (RESPONSIVO) 
   ======================================= */
.cards-grid {
    display: grid;
    /* Padrão Mobile: 1 Coluna */
    grid-template-columns: 1fr; 
    gap: 16px;
    flex: 1;
}

/* Tablet: 2 Colunas */
@media (min-width: 640px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Desktop: 3 Colunas */
@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.topic-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.topic-card .emoji-icon {
    width: 56px;
    height: 56px;
    background-color: rgba(127, 159, 98, 0.1); /* Accent com opacidade */
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.topic-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--main-foreground);
}

/* =======================================
   PÁGINAS INTERNAS E COMPONENTES
   ======================================= */
.content-page {
    max-width: 600px;
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 40px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--header-foreground);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 24px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--main-foreground);
}

.content-card {
    background-color: var(--card-bg);
    border-radius: 24px;
    padding: 32px 24px;
    width: 100%;
    box-shadow: var(--shadow-modal);
}

.topic-link {
    text-decoration: none;
    display: block;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.page-header .emoji-icon {
    font-size: 24px;
}

.page-header h2 {
    font-family: 'Braah One', sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--main-foreground);
    margin-top: 4px; /* Braah one balance */
}

/* =======================================
   COMPONENTES INTERNOS DOS MODAIS 
   ======================================= */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--main-foreground);
}

.form-group input,
.form-group select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 2px solid var(--header-background);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--main-foreground);
    background-color: #fafafa;
    transition: all 0.2s ease;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(127, 159, 98, 0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(127, 159, 98, 0.3);
}

.btn-primary:hover {
    background-color: #6a8552;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(127, 159, 98, 0.4);
}

.btn-whatsapp {
    background-color: var(--wa-green);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: var(--wa-green-hover);
    transform: translateY(-2px);
}

.wa-icon {
    width: 20px;
    height: 20px;
}

.btn-secondary {
    background-color: transparent;
    color: var(--main-foreground);
    border: 2px solid var(--header-background);
}

.btn-secondary:hover {
    background-color: var(--header-background);
}

.option-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-card {
    background-color: #fafafa;
    border: 1px solid var(--header-background);
    border-radius: 16px;
    padding: 16px;
}

.option-card strong {
    font-size: 15px;
    color: var(--main-foreground);
    display: block;
    margin-bottom: 6px;
}

.result-box {
    background-color: rgba(127, 159, 98, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.size-tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 12px;
}

.partnership-perks {
    list-style: none;
    margin: 16px 0;
}

.partnership-perks li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: #fafafa;
    border: 1px solid var(--header-background);
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.video-card {
    background-color: #fafafa;
    border: 1px solid var(--header-background);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.video-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.play-icon {
    width: 44px;
    height: 44px;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
}

.success-box {
    background-color: #f1f8ee;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
}

.success-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

/* FOOTER */
footer {
    margin-top: 60px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--header-background);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--header-foreground);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    font-size: 12px;
    color: var(--header-background); /* Lighter contrast */
}

/* UTILS */
.hidden { display: none !important; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--header-foreground); font-size: 14px; }

/* =======================================
   PUPA ALERT (MODAL CUSTOMIZADO)
   ======================================= */
.pupa-alert-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(87, 76, 66, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pupa-alert-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.pupa-alert-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 24px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pupa-alert-overlay.show .pupa-alert-box {
    transform: scale(1);
}

.pupa-alert-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.pupa-alert-msg {
    font-size: 15px;
    font-weight: 500;
    color: var(--main-foreground);
    margin-bottom: 24px;
    line-height: 1.5;
}

.pupa-alert-btn {
    width: 100%;
}
