/* Home das famílias (src/pages/familias.astro). Cards e carrossel: css/vitrine.css. */
:root { --verde-whatsapp: #25D366; --verde-online: #10b981; }

/* Cabeçalho */
.topo-familias { position: fixed; width: 100%; top: 0; z-index: 1000; padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; background-color: var(--branco); border-bottom: 1px solid rgba(0,0,0,0.03); transition: all 0.4s ease; }
.topo-familias.scrolled { padding: 10px 5%; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.btn-outline { padding: 10px 24px; border-radius: 50px; font-weight: 800; color: var(--lilas); border: 2px solid var(--lilas); transition: 0.3s; background: transparent; }
.btn-outline:hover { background: var(--lilas); color: var(--branco); box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3); transform: translateY(-2px); }

.hero { min-height: 85vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 80px 20px 100px; background-color: var(--lilas); color: var(--branco); position: relative; width: calc(100% - 40px); max-width: 1600px; margin: 95px auto 0 auto; border-radius: 50px; overflow: hidden; box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15); }
.floating-shape { position: absolute; color: rgba(255, 255, 255, 0.12); cursor: pointer; user-select: none; animation: float 6s ease-in-out infinite; font-family: 'Nunito', sans-serif; transition: all 0.3s ease; display: flex; justify-content: center; align-items: center; }
.shape-1 { font-size: 90px; top: 12%; left: 8%; animation-delay: 0s; } .shape-2 { font-size: 45px; bottom: 25%; right: 12%; animation-delay: 2s; } .shape-3 { font-size: 110px; top: 20%; right: 10%; animation-delay: 4s; } .shape-4 { font-size: 60px; bottom: 15%; left: 15%; animation-delay: 1.5s; } .shape-5 { font-size: 35px; top: 50%; left: 5%; animation-delay: 3s; }
.forma-afeto { font-weight: 900; letter-spacing: -1px; color: rgba(255, 255, 255, 0.3); transform: scale(0.9); }
.pop-anim { animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important; }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.5) rotate(-5deg); opacity: 0.8; } 100% { transform: scale(1) rotate(0deg); opacity: 1; } }
@keyframes float { 0% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-15px) rotate(5deg); } 100% { transform: translateY(0px) rotate(0deg); } }

.badge-hero { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.1); padding: 8px 20px; border-radius: 50px; font-size: 14px; font-weight: 800; margin-bottom: 25px; backdrop-filter: blur(5px); z-index: 2; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.hero h1 { font-size: 52px; font-weight: 900; line-height: 1.1; margin-bottom: 20px; max-width: 900px; z-index: 2; letter-spacing: -1.5px; }
.hero p { font-size: 20px; font-weight: 700; max-width: 650px; margin-bottom: 50px; opacity: 0.95; z-index: 2; }
.btn-primary { background: var(--branco); color: var(--lilas); padding: 18px 40px; border-radius: 50px; font-size: 18px; font-weight: 900; display: inline-flex; align-items: center; gap: 10px; z-index: 2; box-shadow: 0 15px 30px rgba(0,0,0,0.15); transition: 0.3s; border: none; cursor: pointer; }
.btn-primary:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.25); color: var(--lilas-escuro); }

.section { padding: 100px 5%; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 70px; }
.section-header h2 { font-size: 36px; color: var(--preto-fonte); margin-bottom: 15px; font-weight: 900; letter-spacing: -1px; }
.section-header p { color: var(--cinza-fonte); font-size: 18px; font-weight: 700; }

.sobre-nos-box { background: var(--branco); border-radius: 35px; padding: 50px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.04); border: 1px solid #e2e8f0; max-width: 900px; margin: 0 auto; }
.sobre-nos-box h2 { font-size: 32px; color: var(--lilas); margin-bottom: 20px; font-weight: 900; letter-spacing: -1px; }
.sobre-nos-box p { font-size: 18px; color: var(--cinza-fonte); font-weight: 600; line-height: 1.8; margin: 0; }

.como-funciona-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.como-funciona-img { border-radius: 35px; overflow: hidden; height: 100%; box-shadow: 0 30px 60px rgba(139, 92, 246, 0.2); }
.como-funciona-img img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; display: block; }
.steps-list { display: flex; flex-direction: column; gap: 25px; }
.step-item { background: var(--branco); border-radius: 24px; padding: 30px; display: flex; align-items: flex-start; gap: 22px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); }
.step-item:hover { transform: translateX(8px); box-shadow: 0 15px 35px rgba(139, 92, 246, 0.12); }
.step-item .icon-box { margin: 0; flex-shrink: 0; font-size: 28px; color: var(--lilas); background: var(--fundo-site); padding: 15px; border-radius: 15px; }
.step-item h3 { font-size: 20px; margin-bottom: 8px; font-weight: 800; }
.step-item p { color: var(--cinza-fonte); font-size: 16px; font-weight: 600; line-height: 1.5; margin: 0; }

/* Filtros da vitrine */
.vitrine-filtros { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-top: -30px; }
.vitrine-filtros[hidden] { display: none; }
.vitrine-filtros select { width: auto; min-width: 150px; max-width: 100%; margin: 0; padding: 10px 40px 10px 14px; border: 1px solid #e2e8f0; border-radius: 14px; background-color: var(--branco); background-position: right 14px center; background-size: 14px; font-size: 14px; }
.vitrine-filtros select:focus { transform: none; }
.vitrine-filtros select[hidden] { display: none; }
.filtro-check { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid #e2e8f0; border-radius: 14px; background: var(--branco); font-size: 14px; font-weight: 700; cursor: pointer; }
.filtro-check input { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--lilas); }
.btn-limpar-filtros { background: none; border: none; color: var(--lilas-escuro); font-family: inherit; font-size: 14px; font-weight: 800; text-decoration: underline; cursor: pointer; padding: 8px; }
.vitrine-contagem { text-align: center; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--cinza-fonte); }
.vitrine-mais { text-align: center; margin-top: 10px; }
.vitrine-mais[hidden] { display: none; }
.vitrine-mais button { background: transparent; color: var(--lilas); border: 2px solid var(--lilas); padding: 12px 30px; border-radius: 50px; font-family: inherit; font-weight: 800; font-size: 15px; cursor: pointer; transition: 0.3s; }
.vitrine-mais button:hover { background: var(--lilas); color: var(--branco); }
@media (max-width: 600px) {
    .vitrine-filtros { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .vitrine-filtros select { min-width: 0; width: 100%; }
}
.vitrine-filtros optgroup { font-weight: 800; }
.loader { text-align: center; padding: 50px; font-size: 18px; font-weight: bold; color: var(--lilas); width: 100%; }

.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: var(--branco); border-radius: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); overflow: hidden; transition: all 0.3s ease; border: 1px solid transparent; }
.faq-item.active { border-color: rgba(139, 92, 246, 0.3); box-shadow: 0 10px 25px rgba(139, 92, 246, 0.1); }
.faq-question { width: 100%; text-align: left; padding: 25px 30px; background: none; border: none; font-size: 18px; font-weight: 800; color: var(--preto-fonte); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: 'Nunito', sans-serif; transition: color 0.3s; }
.faq-question:hover { color: var(--lilas); }
.faq-icon { color: var(--lilas); font-size: 20px; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.faq-item.active .faq-icon { transform: rotate(45deg); } 
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.6s ease, padding 0.4s ease; padding: 0 30px; background-color: var(--branco); }
.faq-item.active .faq-answer { max-height: 800px; padding: 0 30px 25px 30px; }
.faq-answer p { margin: 0; color: var(--cinza-fonte); font-size: 16px; font-weight: 600; line-height: 1.6; }

.form-container { background: var(--branco); padding: 50px; border-radius: 35px; box-shadow: 0 25px 60px rgba(0,0,0,0.08); max-width: 650px; margin: 0 auto; position: relative; }
.form-container h3 { text-align: center; font-size: 32px; margin-bottom: 10px; font-weight: 900; letter-spacing: -1px; }
.form-container > p { color: var(--cinza-fonte); text-align: center; margin-bottom: 28px; font-weight: 700; font-size: 16px; }
.wrap-bairros { position: relative; }
.lista-bairros {
    position: absolute; top: 100%; left: 0; right: 0; background: white;
    border: 2px solid #e2e8f0; border-top: none; border-radius: 0 0 16px 16px;
    max-height: 220px; overflow-y: auto; z-index: 20; display: none;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.lista-bairros.ativo { display: block; }
.opcao-bairro { padding: 12px 18px; cursor: pointer; font-size: 15px; font-weight: 700; }
.opcao-bairro:hover, .opcao-bairro.destaque { background: #f5f3ff; color: var(--lilas-escuro); }
.opcao-bairro.sem-resultado { color: #999; cursor: default; font-style: italic; font-weight: 600; }
label { display: block; margin-bottom: 10px; font-weight: 800; font-size: 16px; color: var(--preto-fonte); }
input, textarea, select { width: 100%; padding: 18px 20px; margin-bottom: 30px; background-color: var(--fundo-site); border: 2px solid transparent; color: var(--preto-fonte); border-radius: 18px; box-sizing: border-box; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 16px; transition: all 0.3s ease; }
select option { color: var(--preto-fonte); background-color: var(--branco); font-weight: 700; }
select { appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 20px center; background-size: 18px; cursor: pointer; }
select:invalid { color: var(--cinza-azulado); }
input::placeholder, textarea::placeholder { color: var(--cinza-azulado); font-weight: 600; }
input:focus, textarea:focus, select:focus { border-color: var(--lilas); outline: none; background-color: var(--branco); box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.12); transform: translateY(-2px); }
.btn-submit { background-color: var(--lilas); color: var(--branco); border: none; padding: 22px; width: 100%; font-size: 18px; font-weight: 900; border-radius: 18px; cursor: pointer; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 10px 25px rgba(139, 92, 246, 0.2); display: flex; justify-content: center; align-items: center; gap: 10px; }
.btn-submit:hover { background-color: var(--lilas-escuro); transform: translateY(-3px) scale(1.01); box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4); }
.btn-submit:disabled { opacity: 0.7; cursor: wait; transform: none; }
.hp-campo { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; pointer-events: none; }

.checkbox-group { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 30px; text-align: left; }
.checkbox-group input[type="checkbox"] { width: 22px; height: 22px; margin: 0; cursor: pointer; accent-color: var(--lilas); flex-shrink: 0; margin-top: 2px;}
.checkbox-group label { font-size: 14px; color: var(--cinza-fonte); font-weight: 600; margin: 0; line-height: 1.5; cursor: pointer; display: inline; }
.checkbox-group label a { color: var(--lilas-escuro); font-weight: 800; text-decoration: underline; transition: 0.3s; }
.checkbox-group label a:hover { color: var(--lilas); }

.btn-wpp { position: fixed; bottom: 30px; right: 30px; z-index: 999; background: var(--verde-whatsapp); color: white; width: 70px; height: 70px; border-radius: 24px; display: flex; justify-content: center; align-items: center; font-size: 38px; box-shadow: 0 15px 30px rgba(37, 211, 102, 0.35); animation: pulse-green 2s infinite; transition: 0.3s; }
.btn-wpp:hover { transform: scale(1.15); box-shadow: 0 20px 40px rgba(37, 211, 102, 0.5); }
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); } 70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

.reveal { opacity: 0; transform: translateY(40px); transition: 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
    .hero { margin: 95px 15px 0 15px; width: calc(100% - 30px); padding: 60px 15px 80px; }
    .hero h1 { font-size: 40px; }
    .sobre-nos-box, .form-container { padding: 40px 25px; }
    .faq-question { font-size: 16px; padding: 20px; }
    .faq-answer { padding: 0 20px; }
    .faq-item.active .faq-answer { padding: 0 20px 20px 20px; }
    .como-funciona-grid { grid-template-columns: 1fr; gap: 35px; }
    .como-funciona-img img { min-height: 280px; }
}
/* Efeito ao passar o mouse (antes era onmouseover no HTML). O !important vence o style="" do elemento. */
.btn-contorno-lilas:hover { background: var(--lilas) !important; color: white !important; }
.link-cuidadora:hover { color: var(--lilas) !important; }
/* Verificação de robô: fechada até o Cloudflare pedir uma confirmação. */
.ts-wrap { display: none; margin: 0 0 16px; }
.ts-wrap.ts-aberto { display: block; }
.ts-wrap p { font-size: 13px; font-weight: 700; color: #666; margin-bottom: 8px; }
