/* reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(90deg, #c0e8d5, #a0f0f8);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* BANNER FULL-WIDTH */
.promo-block {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background-color: #1B2F59;
  color: #fff;
  padding: 3rem 1rem;
  box-sizing: border-box;
  margin-bottom: 2rem;
}
.promo-block-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.promo-block-text {
  max-width: 600px;
  line-height: 1.4;
}
.promo-block-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.promo-block-text .highlight {
  color: #17a2b8;
}
.promo-block-text .subtitle {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* novo container para imagem + botão */
.promo-block-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* única capa */
.promo-block-media .single-cover {
  width: 200px;
  max-width: 90%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* botão de CTA */
.cta-button {
  background-color: #E53935;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  display: inline-block;
}

/* HEADER E TÍTULO */
header {
  text-align: center;
  margin: 0 1rem 2rem;
}
header h1 {
  font-size: 1.8rem;
  color: #1d2366;
}
header h1 a {
  color: #088;
  text-decoration: none;
}
header p {
  color: #1d2366;
  margin-top: 0.5rem;
}

/* MAIN / CALCULADORA */
main {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1rem;
}

/* CARD BASE */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 1.5rem;
  width: 320px;
}

/* FORMULÁRIO */
.form-card label,
.form-card button {
  display: block;
  width: 100%;
  margin-top: 1rem;
}
.form-card input,
.form-card select {
  width: 100%;
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #a0e1e1;
  border-radius: 8px;
  background: #f9fdfa;
  transition: border-color 0.2s;
}
.form-card input:focus,
.form-card select:focus {
  border-color: #088;
  outline: none;
}
.form-card button {
  margin-top: 1.5rem;
  background: linear-gradient(90deg, #088, #088e8e);
  color: #fff;
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background 0.3s, transform 0.1s;
}
.form-card button:hover {
  background: linear-gradient(90deg,#077,#079);
  transform: translateY(-1px);
}
.formula {
  margin-top: 1rem;
  background: #f5e8b0;
  padding: 0.8rem;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.9rem;
  color: #333;
}

/* RESULTADOS */
#placeholder {
  text-align: center;
  color: #777;
  margin-top: 2rem;
}
#placeholder svg {
  margin-bottom: 0.5rem;
}
#resultado-container {
  display: none;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
#resultado-container .box {
  opacity: 1 !important;
}
.box {
  border-radius: 12px;
  color: #fff;
}

/* 1. Percentual */
.box-percentual {
  background: linear-gradient(135deg,#00a8a8,#008080);
  padding: 1rem;
}
.box-percentual .box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}
.box-percentual .box-header strong {
  font-size: 1.8rem;
}
.box-warning {
  margin-top: 0.75rem;
  background: #fff3bf;
  color: #665c00;
  border-radius: 8px;
  padding: 0.6rem;
  font-size: 0.85rem;
}

/* 2. Valor Financiado */
.box-valor-financiado {
  background: #e3f2ff;
  color: #0047ab;
  padding: 1.2rem 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.box-valor-financiado .box-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}
.box-valor-financiado .box-header span {
  font-size: 0.9rem;
  font-weight: 500;
}
.box-valor-financiado .box-header strong {
  font-size: 1.6rem;
  font-weight: 700;
}
.box-valor-financiado .box-subtitle {
  font-size: 0.85rem;
  color: rgba(0,0,0,0.6);
  margin-top: 0.2rem;
}

/* 3. Cooparticipação */
.box-coop {
  background: #fff4e6;
  color: #a65300;
  padding: 1.2rem 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.box-coop .box-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}
.box-coop .box-header span {
  font-size: 0.9rem;
  font-weight: 500;
}
.box-coop .box-header strong {
  font-size: 1.6rem;
  font-weight: 700;
}
.box-coop .box-subtitle {
  font-size: 0.85rem;
  color: rgba(0,0,0,0.6);
  margin-top: 0.2rem;
}

/* 4. Resumo */
.box-resumo {
  background: #f3e8ff;
  color: #4b0082;
  padding: 1rem;
}
.box-resumo div {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
}
.box-resumo small {
  font-size: 0.85rem;
}
.box-resumo strong {
  font-size: 1rem;
}

/* Responsivo */
@media (max-width: 768px) {
  main {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 90%;
    max-width: 400px;
  }
  .promo-block-inner {
    flex-direction: column;
    text-align: center;
  }
  /* Imagem acima do botão no mobile é fluxo natural */
}

/* SHOWCASE DE PRODUTOS (mesma cor de fundo do topo antigo) */

.product-showcase-inner {
 max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}
.product-showcase {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: linear-gradient(90deg, #163463, #1B4C80); /* degrade azul suave */
  color: #fff;
  padding: 2.5rem 1rem;
  box-sizing: border-box;
  margin-bottom: 2rem;
}



.product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.product-img {
  width: 100%;
  max-width: 450px;     /* desktop */
  aspect-ratio: 9 / 8;  /* 900x800 */
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  transition: transform 0.25s ease;
}
.product-btn {
  background-color: #E53935; /* vermelho */
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  display: inline-block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover suave: aumenta imagem e botão juntos */
.product-item:hover .product-img {
  transform: scale(1.03);
}
.product-item:hover .product-btn,
.product-btn:hover {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .product-img { max-width: 320px; }
}


/* Efeito de entrada minimalista de baixo pra cima */
@keyframes fadeInUpMinimal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-item {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUpMinimal 0.6s ease forwards;
}

.product-item:nth-child(1) { animation-delay: 0.1s; }
.product-item:nth-child(2) { animation-delay: 0.2s; }

/* ===== Footer ===== */
.site-footer {
  width: 100vw;
  margin-left: calc(-50vw + 50%);  /* ocupa a largura total, alinhando com o layout atual */
  background-color: #1B2F59;       /* mesma cor do topo */
  color: #ffffff;
  padding: 12px 16px;
  box-sizing: border-box;
  margin-top: auto;                /* garante que fique ao final da página */
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer p {
  font-weight: 800;
  letter-spacing: .3px;
  font-size: 0.95rem;
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0.9;
  transition: opacity .2s ease, text-decoration .2s ease;
}

.footer-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Headline hierárquica ajustada */
.product-headline {
  width: 100%;
  text-align: center;
  margin-bottom: 1.75rem;
}

.product-headline p {
  line-height: 1; /* aproxima mais as linhas */
  color: #ffffff;
  font-weight: 500;
  font-size: 1.1rem;
}

.product-headline .headline-main {
  display: block;
  font-size: 1.4em;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.25rem; /* espaço menor */
}

.product-headline strong {
  color: #ffffff;
  font-weight: 700;
}

.product-headline .hl {
  color: #17a2b8;
  font-weight: 800;
}

@media (max-width: 768px) {
  .product-headline .headline-main {
    font-size: 1.3rem;
  }
  .product-headline p {
    font-size: 1rem;
  }
}


/* FAQ Section */
.faq-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: linear-gradient(180deg, #0e2b4d, #153a63);
  color: #fff;
  padding: 3rem 1rem;
}

.faq-container {
  max-width: 1000px;
  margin: 0 auto;
}

.faq-container h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.faq-subtitle {
  text-align: center;
  margin-bottom: 2rem;
  color: #cfe4ff;
  font-size: 1rem;
}

/* WhatsApp Card */
.faq-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.whatsapp-card {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  gap: 1rem;
}

.whatsapp-card img {
  width: 40px;
  height: 40px;
}

.whatsapp-text {
  font-size: 0.95rem;
}

.whatsapp-number {
  color: #9fda7f;
  font-weight: bold;
}

.whatsapp-btn {
  background: #1ebea5;
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.whatsapp-btn:hover {
  background: #17a28b;
}

/* FAQ Items */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}


.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}


.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

@media (max-width: 768px) {
  .faq-contact {
    text-align: center;
  }
  .whatsapp-card {
    flex-direction: column;
    text-align: center;
  }
}

/* Layout lado a lado: card/btn + perguntas */
.faq-row {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Coluna esquerda */
.faq-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Hover suave no card de atendimento */
.whatsapp-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.whatsapp-card:hover {
  transform: scale(1.02);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 14px 28px rgba(0,0,0,.25);
}

/* Botão WhatsApp com micro-feedback */
.whatsapp-btn {
  background: #1ebea5;
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
  transition: transform .16s ease, box-shadow .16s ease, background .2s ease;
}
.whatsapp-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(30,190,165,.35);
  background: #17a28b;
}

/* Coluna direita */
.faq-right { width: 100%; }

/* Efeitos suaves nas perguntas */
.faq-item { border-bottom: 1px solid rgba(255,255,255,.12); }


.faq-icon {
  font-size: 1.5rem;
  transition: transform .2s ease, opacity .2s ease;
  opacity: .9;
}


/* Abertura suave: fade + deslize de baixo pra cima */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);              /* começa um pouco mais baixo */
  padding: 0 0 0 0.25rem;                   /* sem padding ao fechar */
  color: #cfe4ff;
  font-size: 0.97rem;
  line-height: 1.55;
  will-change: max-height, opacity, transform;
  transition:
    max-height 0.45s cubic-bezier(.2,.65,.2,1),
    opacity    0.35s ease,
    transform  0.45s cubic-bezier(.2,.65,.2,1),
    padding    0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 400px;                        /* altura suficiente para o texto */
  opacity: 1;
  transform: translateY(0);                 /* chega à posição final */
  padding: 0.5rem 0 1rem 0.25rem;           /* padding normal quando aberto */
}


/* Responsivo */
@media (max-width: 900px) {
  .faq-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .faq-left { align-items: center; }
  .whatsapp-card { width: 100%; max-width: 520px; }
  .whatsapp-btn  { width: 100%; max-width: 520px; }
}






/* Container geral */
.whatsapp-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Ícone do WhatsApp */
.whatsapp-icon i {
    font-size: 30px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.4s ease;
}

/* Texto do número */
.whatsapp-number {
    position: relative;
    display: inline-block;
}

/* Linha central invisível inicialmente */
.whatsapp-number::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #25d366;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* Hover no card */
.whatsapp-card:hover {
    transform: scale(1.02);
}

/* Hover no card -> linha cresce */
.whatsapp-card:hover .whatsapp-number::after {
    width: 100%;
}

/* Hover no ícone -> muda o degradê */
.whatsapp-card:hover .whatsapp-icon i {
    background: linear-gradient(135deg, #32e676, #1da955);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Espaço entre itens para a sombra não encostar */
.faq-item { 
  margin-bottom: 8px; 
}

/* Base: sem retângulo visível e com padding menor */
.faq-question {
  background: transparent;
  border: 0;
  color: #fff;
  text-align: left;
  padding: 0.75rem 0.75rem; /* menor que 1rem para reduzir altura */
  font-size: 1.08rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-radius: 8px;
  will-change: transform, box-shadow, background;
  transition:
    background .18s ease,
    transform  .12s ease,
    box-shadow .20s ease,
    border-radius .20s ease;
}


/* Hover sutil e mais compacto */
.faq-question:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  transform: translateY(-1px);             /* bem sutil */
  box-shadow: 0 4px 10px rgba(0,0,0,0.12); /* sombra menor para não “invadir” */
  border-radius: 10px;
}

/* Micro-efeito no ícone */
.faq-question:hover .faq-icon {
     
     padding-left: 10px; /* distância do texto */
  transform: scale(1);
  transition: transform .20s ease;
  margin-left: auto;
}


.faq-question {
  width: 100%;
}


.faq-item.active .faq-question .faq-icon{
  transform: rotate(45deg) scale(1);   /* ou scale(1.06) se quiser manter o micro-zoom */
}

.social-icons {
  margin-top: 15px;
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: white;
  font-size: 24px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #1db954; /* verde suave ao passar o mouse */
  transform: scale(1.1);
}

.med-table-wrap { overflow-x:auto; }
.med-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.med-table th, .med-table td {
  padding: .55rem .65rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
  text-align: left;
  white-space: nowrap;
}
.med-table thead th { background: #f7fafc; color:#223; }
.med-table tbody tr:hover { background: #f9fcff; }
@media (max-width: 768px) {
  .med-table { font-size: .9rem; }
}

/* Largura default dos cards (desktop) */
@media (min-width: 1024px) {
  .form-card   { width: 360px; }   /* levemente maior que 320px */
  .result-card { width: 520px; }   /* mais confortável mesmo para "Demais cursos" */
}

/* Quando for Medicina, deixa o box de resultados bem mais largo */
.med-mode .result-card {
  width: 680px;                    /* tabela respira melhor */
}

/* Em telas médias, ainda damos um respiro */
@media (max-width: 1023px) and (min-width: 769px) {
  .form-card   { width: 340px; }
  .result-card { width: 560px; }
  .med-mode .result-card { width: 620px; }
}

/* Em mobile continua 100% com o seu layout atual */

/* =======================
   Cards de Medicina
   ======================= */
.med-note{
  color:#1b3355;
  opacity:.9;
  margin: .25rem 0 1rem;
  font-size:.95rem;
}

.med-cards{
  display:grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 14px;
}

/* Card base */
.med-card{
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.med-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

/* Cabeçalho do card */
.med-head{
  display:flex;
  align-items:center;
  gap: 8px;
  margin-bottom: 8px;
}
.med-uni{
  font-weight: 800;
  letter-spacing:.2px;
  color:#113a70;
  font-size:1.15rem;
}
.med-loc{
  color:#2a567c;
  font-weight:600;
  font-size:.98rem;
}

/* Linhas de info */
.med-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 6px 0;
  border-top: 1px dashed rgba(0,0,0,.08);
}
.med-row:first-of-type{ border-top: 0; }

.med-label{
  color:#4a5d73;
  font-weight:600;
  font-size:.92rem;
}
.med-value{
  font-weight:800;
  color:#0f2f55;
}

/* Destaques com cores */
.med-value--green{ color:#009a8a; }  /* % financiado */
.med-value--blue{ color:#134da0; }   /* financiado */
.med-value--teal{ color:#0d8a87; }   /* mensalidade */
.med-value--coop{
  color:#0b5;                         /* coop em destaque */
  font-weight:900;
}

/* Responsivo */
@media (max-width: 980px){
  .med-cards{ grid-template-columns: 1fr; }
}

/* ===== Ajustes do cabeçalho do card ===== */
.med-head{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin-bottom:6px;
}
.med-uni{
  font-weight:800;
  letter-spacing:.2px;
  color:#113a70;
  font-size:1.12rem;
  line-height:1.15;
}
.med-loc{
  margin-top:2px;
  display:block;
  color:#2a567c;
  font-weight:700;
  font-size:.85rem;      /* menor e abaixo do nome */
  letter-spacing:.2px;
}

/* ===== Linhas destacadas ===== */
.med-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 10px;
  border-top:1px dashed rgba(0,0,0,.08);
  border-radius:10px;
}
.med-row:first-of-type{ border-top:0; }

/* Mensalidade com fundo */
.med-row--fee{
  background:#ecfbf8;          /* azul-esverdeado bem claro */
  border:0;
}

/* Cooparticipação com fundo */
.med-row--coop{
  background:#eefdf1;          /* verde claro */
  border:0;
}

/* Cores dos valores (mantém as que você já tinha) */
.med-value--teal{ color:#0d8a87; }   /* Mensalidade */
.med-value--green{ color:#009a8a; }  /* % */
.med-value--blue{ color:#134da0; }   /* Financiado */
.med-value--coop{
  color:#0b5;
  font-weight:900;
}

/* Linha final CC / Índice – formato "CC: 5" e "Índice: 100" */
.med-meta{
  display: flex;
  gap: 14px;                /* espaço entre CC e Índice */
  font-size: .95rem;
  color: #3a5068;
  align-items: baseline;
}
.med-meta-item strong{
  margin-left: 4px;         /* aproxima o número do rótulo */
  color: #0f2f55;
  font-weight: 800;
}


.med-toolbar{
  display:none;                 /* JS troca para flex quando mostrar */
  gap:12px;
  align-items:center;
  justify-content:space-between;
  margin:.35rem 0 1rem;
}
.med-filter-inline{ display:flex; align-items:center; gap:.5rem; }
#med-filter{
  padding:.45rem .6rem;
  border:1px solid #a0e1e1;
  border-radius:8px;
  background:#f9fdfa;
}
@media (max-width: 700px){
  .med-toolbar{ flex-direction:column; align-items:flex-start; gap:8px; }
}


#med-toolbar { display:none; gap:12px; align-items:center; flex-wrap:wrap; margin:.25rem 0 1rem; }
.med-filters-group { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.med-states-wrap { display:flex; gap:8px; flex-wrap:wrap; max-width:100%; }
.med-filter-chip { background:#eef5ff; border:1px solid #d9e6ff; padding:4px 8px; border-radius:999px; display:inline-flex; align-items:center; gap:6px; font-weight:600; color:#1b3760; }
.med-filter-chip input { transform: translateY(1px); }
.med-filter-clear { background:#fff; border:1px solid #ccd7e6; padding:6px 10px; border-radius:8px; cursor:pointer; }
.med-filter-clear:hover { background:#f5f8ff; }


.med-filter-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border:1px solid #ccd7e6;
  border-radius:10px;
  background:#fff;
  font-weight:700;
  color:#1b3760;
  cursor:pointer;
}
.med-filter-toggle:hover{ background:#f5f8ff; }


/* ===== Toolbar / filtros (Medicina) ===== */
.med-toolbar{
  margin: 4px 0 12px;
}

.med-order-note{
  display:block;
  color:#2b425b;
  opacity:.9;
  margin-bottom:8px;
  font-size:.95rem;
}

.med-filter-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border:1px solid #d6e2f2;
  background:#f7fbff;
  color:#1a3a5a;
  font-weight:700;
  border-radius:10px;
  cursor:pointer;
  box-shadow:0 2px 6px rgba(16,38,80,.06);
  transition:transform .12s ease, box-shadow .18s ease, background .2s ease;
}
.med-filter-toggle:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 14px rgba(16,38,80,.12);
  background:#eef6ff;
}

/* Painel flutuante dos filtros */
.med-filter-panel{
  margin-top:10px;
  padding:14px;
  background:#f8fbff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
}

.med-filter-group{
  margin-top:10px;
}
.med-filter-group strong{
  display:block;
  color:#214a6b;
  letter-spacing:.2px;
  font-size:.95rem;
  margin:0 0 8px;
}

/* “Chips” de checkboxes */
.med-filter-panel label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  margin:0 8px 8px 0;
  border:1px solid #d9e2ef;
  border-radius:999px;
  background:#fff;
  color:#274861;
  font-weight:700;
  cursor:pointer;
  user-select:none;
  transition:background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

/* deixa o checkbox discreto mas visível */
.med-filter-panel input[type="checkbox"]{
  width:16px;
  height:16px;
  accent-color:#0aa; /* browsers modernos */
}

/* chip quando marcado (suporta :has nos browsers modernos) */
.med-filter-panel label:has(input:checked){
  background:#eaf8f7;
  border-color:#65c2b9;
  color:#086a62;
  box-shadow:inset 0 0 0 1px #65c2b9;
}

/* botão limpar */
.med-filter-clear{
  margin-top:4px;
  padding:7px 12px;
  border:1px solid #dae3f0;
  border-radius:10px;
  background:#fff;
  color:#23425e;
  font-weight:700;
  cursor:pointer;
  transition:background .18s ease, border-color .18s ease, transform .1s ease;
}
.med-filter-clear:hover{
  background:#f1f6ff;
  border-color:#afc9ff;
  transform:translateY(-1px);
}

/* responsivo */
@media (max-width: 640px){
  .med-filter-panel{
    padding:12px;
    border-radius:12px;
  }
  .med-filter-panel label{
    margin:0 6px 8px 0;
    padding:6px 10px;
  }
}

/* Espaço extra entre o botão Limpar filtros e o controle de Mensalidade */
.med-fee {
  margin-top: 20px; /* aumenta o espaço acima da barra de mensalidade */
}

#med-filter-clear {
  margin-bottom: 15px; /* garante espaço extra abaixo do botão */
}


.lead-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  display: grid; place-items: center;
  z-index: 9999;
}
.lead-modal {
  width: min(92vw, 480px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
  padding: 20px;
}
.lead-modal h3 { margin: 4px 0 8px; color:#123; }
.lead-modal p  { margin: 0 0 12px; color:#456; }
#lead-form label { display:block; margin: 10px 0; font-weight:600; color:#234; }
#lead-form input[type="text"],
#lead-form input[type="email"],
#lead-form input[type="tel"]{
  width:100%; padding:.7rem .8rem; margin-top:.35rem;
  border:1px solid #cfe4ff; border-radius:10px; background:#f7fbff;
}
.lead-consent { font-weight: 500; display:flex; gap:.5rem; align-items:center; }
.lead-btn {
  margin-top: 8px; margin-right: 8px;
  background: linear-gradient(90deg,#088,#0a8e8e);
  color:#fff; border:0; padding:.7rem 1.1rem;
  border-radius:10px; cursor:pointer;
}
.lead-btn.ghost { background:#eef3ff; color:#225; }
.lead-edit {
  position: fixed; right: 16px; bottom: 16px;
  background:#eef7ff; color:#124; border:1px solid #cfe4ff;
  padding:.55rem .8rem; border-radius:999px; cursor:pointer; z-index: 1000;
}

/* garante que o atributo hidden vença o display:grid */
.lead-backdrop[hidden] {
  display: none !important;
  
  
}
:root{
  --container-max: 1200px;  /* ajuste se seu hero usa outro valor */
  --container-pad: 24px;    /* padding lateral do container */
}




:root{
  --header-h: 68px;

  /* cores base */
  --bg0: #ffffff;
  --bg1: #f7fbff;
  --fg: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(2,6,23,0.06);

  /* paleta azul */
  --primary-700: #1d4ed8; /* mais vivo */
  --primary-600: #2563eb;
  --primary-500: #3b82f6; /* um pouco mais suave */
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;

  /* será atualizado via JS para alinhar a marca ao hero */
  --align-left-desktop: 6vw;
}



html { scroll-behavior: smooth; }
section { scroll-margin-top: calc(var(--header-h) + 12px); }

/* HEADER */
.site-header{
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(180deg, var(--bg0), var(--bg1));
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: 100%;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease, color .25s ease;
}
/* Header usa o MESMO container do hero */
.nav-wrap{
  max-width: var(--container-max);
  margin-inline: auto;
  width: 100%;
  height: var(--header-h);
  padding-inline: var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
}



/* alinhar a marca com o texto do hero (desktop) */
@media (min-width: 1200px){
  .nav-wrap{ padding-left: max(20px, var(--align-left-desktop));padding-right: 24px; }
  
}

/* BRAND */
.brand{
  display: flex; flex-direction: column; line-height: 1;
  text-decoration: none; color: var(--fg); font-weight: 800; letter-spacing: .3px;
}
.brand-top{
  font-size: 12px; text-transform: uppercase; color: #163868; letter-spacing: .5px;
}
.brand-bottom{
  font-size: 20px; color: #163868; /* azul no topo */
}

/* TOGGLE (hamburger) */
.nav-toggle{ display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle:focus-visible{ outline: 2px solid var(--primary-600); outline-offset: 4px; }
.nav-toggle-bar{
  display: block; width: 24px; height: 2px; background: var(--fg); margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
  border-radius: 1px;
}

/* NAV */
.primary-nav{ display: block; }
.nav-list{ display: flex; align-items: center; gap: 16px; list-style: none; margin: 0; padding: 0; }

/* centralização ~20% dos lados (desktop) */
@media (min-width: 1200px){
  .primary-nav{ flex: 1; }
  .nav-list{ justify-content: center; margin-inline: 0; } /* 🔧 zera as margens artificiais */
}

/* LINKS */
.nav-link{
  position: relative; text-decoration: none; color: var(--fg);
  font-weight: 800; padding: 10px 10px; border-radius: 999px;
}

/* “Fale Conosco”: pílula azul no topo */
.nav-link[data-anchor="fale-conosco"]{
  color: var(--primary-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
}


.nav-link:hover::after{ transform: scaleX(1); }

/* BOTÕES (Comunidade/Mentoria) – azul menos vivo no topo */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 900;
  transition: transform .06s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
  box-shadow: 0 1px 0 rgba(2,6,23,0.03);
}
.btn-outline{ background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--primary-600); }
.btn:hover{ transform: translateY(-1px); background: #fff; }
.btn:active{ transform: translateY(0); }

.stack-label{ line-height: 1.05; padding-block: 8px; }
.stack-label .stack-top{ display:block; font-size: 11px; text-transform: uppercase; color: #64748b; letter-spacing: .4px; }
.stack-label .stack-bottom{ display:block; font-size: 14px; font-weight: 900; }

/* MOBILE */
@media (max-width: 960px){
  .nav-toggle{ display: block; border-radius: 999px; }
  .primary-nav{
    position: fixed; top: var(--header-h); right: 0; left: 0;
    background: linear-gradient(180deg, var(--bg0), var(--bg1));
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .primary-nav.open{ display: block; }
  .nav-list{
    flex-direction: column; align-items: stretch; padding: 12px 16px 16px; gap: 10px;
    margin-inline: 0;
  }
  .nav-link, .btn{ width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

/* ===== ESTADO SCROLLED ===== */
.site-header.scrolled{
  background: transparent; border-color: transparent; box-shadow: none;
}

/* 1) Brand e “Fale Conosco” ficam BRANCOS ao descer */
.site-header.scrolled .brand-top,
.site-header.scrolled .brand-bottom{ color: #fff; }

.site-header.scrolled .nav-link[data-anchor="fale-conosco"]{
  color: #fff;
  background: transparent;
  border-color: rgba(255,255,255,.35);
}

/* 2) Em DESKTOP, esconda os demais botões ao descer (mantém só o li.keep-on-scroll) */
@media (min-width: 961px){
  .site-header.scrolled .nav-list > li:not(.keep-on-scroll){ display: none; }
}

/* 3) No SMARTPHONE, toggle vira bolinha branca com riscos azuis ao descer */
@media (max-width: 960px){
  .site-header.scrolled .nav-toggle{
    background: #fff;
    box-shadow: 0 2px 8px rgba(2,6,23,.12);
  }
  .site-header.scrolled .nav-toggle-bar{
    background: var(--primary-600);
  }
}

/* 4) Botões (quando desce) ficam brancos discretos */
.site-header.scrolled .btn{
  background: #fff; color: var(--fg); border: 1px solid var(--border);
}
.site-header.scrolled .btn:hover{ background: #f8fafc; }


.site-header {
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 999;
}

/* Header branco sólido, sem blur e sem gradiente */
.site-header{
  background: #ffffff !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid #e2e8f0;   /* opcional: linha sutil */
}

/* Garante que não exista faixa adicionada por pseudo-elemento anterior */
.site-header::before,
.site-header::after{
  content: none !important;
  display: none !important;
}

/* Se chegou a usar a camada extra de blur, some com ela */
.header-blur{ display:none !important; }

/* Evita qualquer “gap” */
.site-header{ margin:0 !important; padding-top:0; padding-bottom:0; }



/* ---------- HEADER FIXO, SEM EFEITOS ---------- */

/* Container do header: sempre branco, sem blur, sem gradiente */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;

  background: #ffffff !important;
  background-image: none !important;
  background-color: #ffffff !important;

  border-bottom: 1px solid #e2e8f0;    /* linha sutil; remova se não quiser */
  box-shadow: 0 4px 20px rgba(2,6,23,0.06); /* sombra leve; remova se não quiser */

  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Conteúdo do header permanece acima de qualquer coisa */
.site-header .nav-wrap{ position: relative; z-index: 1; }

/* Remova qualquer pseudo-elemento usado para transições/blur */
.site-header::before,
.site-header::after{ content: none !important; display: none !important; }

/* Se alguma vez usamos uma camada extra de blur, esconda */
.header-blur{ display: none !important; }

/* ---------- DESATIVA “ESTADO SCROLLED” E QUALQUER VARIAÇÃO ---------- */

/* Anula cor/estilo quando adicionam .scrolled por JS */
.site-header.scrolled{
  background: #ffffff !important;
  background-image: none !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(2,6,23,0.06) !important;
}

/* Marca e links não mudam de cor ao rolar */
.site-header.scrolled .brand-top,
.site-header.scrolled .brand-bottom,
.site-header .brand-top,
.site-header .brand-bottom{
  color: inherit !important;
}

/* “Fale Conosco” e botões não mudam ao rolar */
.site-header.scrolled .nav-link[data-anchor="fale-conosco"],
.nav-link[data-anchor="fale-conosco"]{
  color: #1d4ed8 !important;              /* azul do topo */
  background: #eff6ff !important;         /* pílula azul clara */
  border: 1px solid #dbeafe !important;
}

/* Nunca esconda itens do menu no desktop ao rolar */
.site-header.scrolled .nav-list > li{ display: initial !important; }

/* Hamburger no mobile não muda ao rolar */
.site-header.scrolled .nav-toggle{
  background: transparent !important;
  box-shadow: none !important;
}
.site-header.scrolled .nav-toggle-bar{
  background: #0f172a !important;
}

/* Segurança: remove qualquer margem/faixa indesejada */
.site-header{ margin: 0 !important; }


:root{
  --container-max: 1200px;
  --container-pad: 24px;
  --header-h: 68px;
}

/* O header usa o mesmo container do hero */
.nav-wrap{
  max-width: var(--container-max);
  margin-inline: auto;
  width: 100%;
  height: var(--header-h);
  padding-inline: var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
}

.fale-conosco:hover,
.nav-link:hover {
  background-color: white !important;
}

/* --- Fale Conosco: mesmo hover dos outros botões --- */
.nav-link[data-anchor="fale-conosco"]{
  /* deixa como “pílula” e habilita animação */
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;

  /* mesma suavidade dos outros */
  transition:
    transform .12s ease,
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    color .18s ease;
}

.nav-link[data-anchor="fale-conosco"]:hover{
  background: #fff !important;        /* fundo branco no hover */
  border-color: #dbeafe !important;    /* borda azul clarinha como os outros */
  transform: translateY(-2px);         /* “sobe” um pouquinho */
  box-shadow: 0 1px 0 rgba(2,6,23,.03);
}

.nav-link[data-anchor="fale-conosco"]:active{
  transform: translateY(-1px);         /* micro feedback ao clicar */
}


/* Deixa a largura adaptável e a altura igual */
.site-header .nav-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px; /* altura mínima para todos */
    padding: 8px 16px; /* espaçamento interno */
    box-sizing: border-box;
}


/* ===== Altura igual nos 3 botões do menu ===== */
:root{
  --pill-h: 44px;      /* altura desejada */
  --pill-x: 18px;      /* padding horizontal */
}

/* todos os <a> do menu do header */
.site-header .nav-list > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--pill-h);          /* altura fixa */
  padding: 0 var(--pill-x);       /* largura se adapta ao texto */
  line-height: 1;                 /* evita “crescer” por causa do texto */
  box-sizing: border-box;
  border-radius: 999px;
}

/* zera diferenças de padding/altura entre variantes */
.site-header .nav-list > li > a.btn,
.site-header .nav-list > li > a.nav-link,
.site-header .nav-list > li > a.stack-label {
  height: var(--pill-h) !important;
  padding: 0 var(--pill-x) !important;
}

/* a classe .stack-label adicionava padding vertical; neutraliza */
.site-header .nav-list .stack-label { 
  padding-block: 0 !important; 
}

/* mantém seus efeitos de hover já existentes */
.nav-link[data-anchor="fale-conosco"]:hover,
.btn:hover { transform: translateY(-2px); background:#fff; }

