/* Home das cuidadoras (src/pages/index.astro). Cards e carrossel: css/vitrine.css.
   Logo, cabeçalho e rodapé têm o estilo nos componentes (src/components). */
:root { --verde-whatsapp: #25D366; --verde-online: #10b981; --vermelho-suave: #ef4444; }

.hero { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 80px 20px; background-color: var(--lilas); color: var(--branco); width: calc(100% - 40px); max-width: 1600px; margin: 95px auto 40px auto; border-radius: 50px; box-shadow: 0 20px 40px rgba(139,92,246,0.15); position: relative; overflow: hidden; }
.hero h1 { font-size: 52px; font-weight: 900; line-height: 1.1; margin-bottom: 20px; max-width: 900px; letter-spacing: -1.5px; position: relative; z-index: 2; }
.hero h1 span { color: #f5b8ff; text-shadow: 0 4px 18px rgba(76,29,149,0.35); }
.hero p { font-size: 20px; font-weight: 700; max-width: 680px; opacity: 0.95; position: relative; z-index: 2; margin-bottom: 35px; }
.hero-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: white; color: var(--lilas); padding: 18px 42px; border-radius: 50px; font-size: 18px; font-weight: 900; box-shadow: 0 15px 35px rgba(0,0,0,0.15); transition: 0.3s; border: none; cursor: pointer; font-family: 'Nunito', sans-serif; position: relative; z-index: 2; text-decoration: none; }
.hero-cta:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 20px 45px rgba(0,0,0,0.25); color: var(--lilas-escuro); }
.hero-cta i { font-size: 18px; }
.calc-cta { margin: 24px auto 0; padding: 16px 36px; font-size: 17px; text-align: center; }

.estrela-flutuante { position: absolute; color: var(--ouro); animation: animarEstrelas linear infinite; z-index: 0; opacity: 0; }
@keyframes animarEstrelas { 0% { transform: translateY(0) rotate(0deg) scale(0.3); opacity: 0; } 15% { opacity: 0.15; } 80% { transform: translateY(-200px) rotate(180deg) scale(0.7); opacity: 0.15; } 95% { transform: translateY(-230px) rotate(200deg) scale(1.5); opacity: 0; } 100% { transform: translateY(-250px) rotate(210deg) scale(2); opacity: 0; } }
.e1 { left: 15%; bottom: -20px; animation-duration: 6s; animation-delay: 0s; font-size: 24px; } .e2 { left: 35%; bottom: -10px; animation-duration: 8s; animation-delay: 2s; font-size: 18px; } .e3 { left: 55%; bottom: -30px; animation-duration: 7s; animation-delay: 1s; font-size: 28px; } .e4 { left: 75%; bottom: -15px; animation-duration: 9s; animation-delay: 3s; font-size: 20px; } .e5 { left: 90%; bottom: -25px; animation-duration: 6.5s; animation-delay: 0.5s; font-size: 26px; }

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

.simulador-container { background: var(--branco); border-radius: 35px; padding: 50px; box-shadow: 0 25px 60px rgba(0,0,0,0.06); display: flex; gap: 50px; flex-wrap: wrap; border: 1px solid #e2e8f0; margin-bottom: 40px; scroll-margin-top: 90px; transition: box-shadow 0.5s ease, border-color 0.5s ease; }
.simulador-container.destaque-chegada { border-color: var(--lilas); box-shadow: 0 25px 60px rgba(139,92,246,0.25), 0 0 0 6px rgba(139,92,246,0.08); animation: pulsoAfeto 1.8s ease-in-out; }
@keyframes pulsoAfeto { 0% { transform: scale(1); box-shadow: 0 25px 60px rgba(139,92,246,0.15), 0 0 0 0 rgba(139,92,246,0); } 40% { transform: scale(1.015); box-shadow: 0 30px 70px rgba(139,92,246,0.35), 0 0 0 12px rgba(139,92,246,0.12); } 100% { transform: scale(1); box-shadow: 0 25px 60px rgba(139,92,246,0.15), 0 0 0 0 rgba(139,92,246,0); } }
.simulador-controles { flex: 1; min-width: 300px; }
.simulador-resultado { flex: 1; min-width: 300px; background: linear-gradient(135deg, var(--lilas), var(--lilas-escuro)); color: var(--branco); border-radius: 30px; padding: 40px; text-align: center; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 15px 35px rgba(139,92,246,0.2); }
label { display: block; font-weight: 800; margin-bottom: 10px; margin-top: 25px; font-size: 16px; }
select { width: 100%; padding: 18px 20px; border-radius: 18px; border: 2px solid #e2e8f0; font-family: 'Nunito', sans-serif; font-size: 16px; font-weight: 700; background: var(--fundo-site); outline: none; cursor: pointer; transition: 0.3s; }
select:focus { border-color: var(--lilas); background: var(--branco); box-shadow: 0 0 0 5px rgba(139,92,246,0.12); }
.slider-container { background: var(--fundo-site); padding: 25px 20px; border-radius: 18px; margin-top: 10px; }
.valor-destaque { font-size: 38px; font-weight: 900; color: var(--lilas); text-align: center; margin-bottom: 15px; display: block; letter-spacing: -1px; }
input[type=range] { -webkit-appearance: none; width: 100%; height: 12px; background: #cbd5e1; border-radius: 10px; outline: none; }
input[type=range]::-webkit-slider-thumb { height: 32px; width: 32px; border-radius: 50%; background: var(--lilas); cursor: pointer; -webkit-appearance: none; margin-top: -10px; box-shadow: 0 5px 15px rgba(139,92,246,0.5); border: 5px solid var(--branco); }
.resultado-valor { font-size: 52px; font-weight: 900; margin: 15px 0; letter-spacing: -2px; }
.resultado-detalhe { background: rgba(255,255,255,0.15); padding: 20px; border-radius: 20px; font-size: 15px; font-weight: 700; display: inline-block; text-align: left; line-height: 1.7; margin-top: 15px; }
.resultado-detalhe .check-icon { color: var(--ouro); margin-right: 6px; }


.faq-container { max-width: 800px; margin: 0 auto 40px 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; border: 1px solid transparent; transition: 0.3s; }
.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; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: 'Nunito', sans-serif; }
.faq-icon { color: var(--lilas); font-size: 20px; transition: 0.4s; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: 0.4s; padding: 0 30px; }
.faq-item.active .faq-answer { max-height: 800px; padding: 0 30px 25px 30px; }
.faq-answer p { color: var(--cinza-fonte); font-size: 16px; font-weight: 600; line-height: 1.6; }

.faq-cta-wrapper { text-align: center; margin: 0 auto 60px auto; padding-top: 10px; }
.btn-action-lilas { background-color: var(--lilas); color: var(--branco); border: none; padding: 22px 50px; font-size: 18px; font-weight: 900; border-radius: 50px; cursor: pointer; transition: 0.3s; box-shadow: 0 10px 25px rgba(139,92,246,0.3); display: inline-flex; justify-content: center; align-items: center; gap: 10px; font-family: 'Nunito', sans-serif; text-decoration: none; }
.btn-action-lilas:hover { background-color: var(--lilas-escuro); transform: translateY(-5px) scale(1.02); box-shadow: 0 15px 35px rgba(139,92,246,0.4); }
.btn-wrapper { text-align: center; margin: 40px 0 60px 0; }
.guia-botao { text-align: center; margin: 0 0 40px; }
.btn-guia { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--branco); color: var(--lilas-escuro); border: 2px solid var(--lilas); padding: 14px 32px; border-radius: 50px; font-size: 16px; font-weight: 900; transition: 0.3s; font-family: 'Nunito', sans-serif; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.btn-guia:hover { background: #f5f3ff; transform: translateY(-3px); box-shadow: 0 12px 28px rgba(139,92,246,0.18); }
.btn-guia:active { transform: scale(0.97); transition-duration: 0.1s; }

.btn-scroll-up-wrapper { text-align: center; margin: 10px 0 50px 0; }
.btn-scroll-up { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: white; color: var(--lilas-escuro); padding: 18px 42px; border-radius: 50px; font-size: 17px; font-weight: 900; cursor: pointer; box-shadow: 0 10px 25px rgba(139,92,246,0.15); border: 2px solid var(--lilas); transition: 0.3s; font-family: 'Nunito', sans-serif; text-decoration: none; }
.btn-scroll-up:hover { background: linear-gradient(135deg, var(--lilas), var(--lilas-escuro)); color: white; transform: translateY(-4px); box-shadow: 0 15px 35px rgba(139,92,246,0.4); }

.btn-scroll-up-wrapper-tabela { text-align: center; margin: 20px 0 0 0; }

.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; }
.btn-wpp:hover { transform: scale(1.15); }
@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); } }

.footer-aviso { font-size: 11px; color: var(--cinza-azulado); font-weight: 600; line-height: 1.5; font-style: italic; padding: 0 20px; }

@media (max-width: 900px) {
  .hero { margin: 80px 15px 30px 15px; width: calc(100% - 30px); padding: 50px 20px; border-radius: 35px; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 17px; }
  .hero-cta { padding: 16px 32px; font-size: 16px; }
  .simulador-container { padding: 30px; gap: 30px; border-radius: 25px; }
  .simulador-resultado { padding: 30px 20px; border-radius: 20px; }
  .resultado-valor { font-size: 42px; }
  .btn-wpp { width: 60px; height: 60px; font-size: 32px; bottom: 20px; right: 20px; }
  .cf-seta { width: 46px; height: 46px; }
  .btn-scroll-up { padding: 16px 28px; font-size: 15px; width: 100%; }
}

/* Resposta ao toque nos botões (apertar encolhe um pouco). */
.hero-cta, .btn-action-lilas, .btn-scroll-up, .faq-question { -webkit-tap-highlight-color: transparent; }
.hero-cta:active, .btn-action-lilas:active, .btn-scroll-up:active { transform: scale(0.97); transition-duration: 0.1s; }
.faq-question:active { background: #f5f3ff; }
@media (prefers-reduced-motion: reduce) {
  .hero-cta:active, .btn-action-lilas:active, .btn-scroll-up:active { transform: none; }
}
