/* ==========================================================================
   TEAR — Instituto de Neurodesenvolvimento Humano
   CSS personalizado sobre Bootstrap 5.3. Paleta e tipografia extraidas do
   kit Elementor do site original (tearindh.com.br).
   ========================================================================== */

:root {
  --tear-teal:        #16A9B2;
  --tear-teal-dark:   #0A8A92;
  --tear-teal-deep:   #00676D;
  --tear-orange:      #FF6B00;
  --tear-orange-dark: #FA570B;
  --tear-yellow:      #FFE500;
  --tear-text:        #454545;
  --tear-muted:       #7A7A7A;
  --tear-surface:     #EBEBEB;
  --tear-border:      #E6E6E6;
  --tear-radius:      18px;

  --bs-body-font-family: 'Roboto', -apple-system, 'Segoe UI', Arial, sans-serif;
  --bs-body-color: var(--tear-text);
  --bs-link-color: var(--tear-teal);
  --bs-link-hover-color: var(--tear-teal-deep);
}

body {
  font-family: var(--bs-body-font-family);
  color: var(--tear-text);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .t-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
}

/* --- utilitarios de marca ------------------------------------------------ */
.t-bg-teal        { background-color: var(--tear-teal); }
.t-bg-teal-deep   { background-color: var(--tear-teal-deep); }
.t-bg-orange      { background-color: var(--tear-orange-dark); }
.t-bg-surface     { background-color: var(--tear-surface); }
.t-text-teal      { color: var(--tear-teal) !important; }
.t-text-orange    { color: var(--tear-orange) !important; }
.t-section        { padding: 5rem 0; }
.t-section-sm     { padding: 3rem 0; }

.t-eyebrow {
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--tear-teal);
  margin-bottom: .25rem;
}

.t-heading-xl {
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  font-weight: 700;
  line-height: 1.05;
}

.t-heading-light {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
}

/* --- botoes -------------------------------------------------------------- */
.btn-tear {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--tear-orange);
  --bs-btn-border-color: var(--tear-orange);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--tear-orange-dark);
  --bs-btn-hover-border-color: var(--tear-orange-dark);
  --bs-btn-active-bg: var(--tear-orange-dark);
  --bs-btn-border-radius: 50rem;
  font-weight: 600;
  padding: .75rem 2rem;
}

.btn-tear-teal {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--tear-teal);
  --bs-btn-border-color: var(--tear-teal);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--tear-teal-deep);
  --bs-btn-hover-border-color: var(--tear-teal-deep);
  --bs-btn-border-radius: 50rem;
  font-weight: 600;
  padding: .75rem 2rem;
}

.btn-tear-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-color: var(--tear-teal);
  --bs-btn-hover-bg: #fff;
  --bs-btn-border-radius: 50rem;
  font-weight: 600;
  padding: .75rem 2rem;
}

/* --- cabecalho ----------------------------------------------------------- */
.t-header {
  background: #fff;
  box-shadow: 0 2px 18px rgba(0, 0, 0, .07);
}

.t-header .navbar-brand img { height: 62px; width: auto; }

.t-header .nav-link {
  color: var(--tear-teal-deep);
  font-weight: 500;
  padding: .5rem .85rem;
  position: relative;
}

.t-header .nav-link::after {
  content: '';
  position: absolute;
  left: .85rem; right: .85rem; bottom: .15rem;
  height: 2px;
  background: var(--tear-orange);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.t-header .nav-link:hover::after,
.t-header .nav-link.active::after { transform: scaleX(1); }
.t-header .nav-link:hover { color: var(--tear-orange); }

/* --- hero ---------------------------------------------------------------- */
.t-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: #000 url('../img/hero.jpeg') center / cover no-repeat;
  background-attachment: fixed;
}

.t-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 103, 109, .55));
}

.t-hero__inner { position: relative; z-index: 2; padding: 6rem 1rem; }

.t-hero__mark {
  width: 84px; height: 84px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--tear-teal);
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 1.75rem;
}

.t-hero h1 {
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  letter-spacing: .5px;
  margin-bottom: 2rem;
}

/* --- o que e o autismo --------------------------------------------------- */
.t-autismo { background: var(--tear-teal); color: #fff; position: relative; overflow: hidden; }
.t-autismo h2 { font-size: clamp(2.4rem, 6vw, 4.3rem); line-height: 1; }
.t-autismo__deco {
  position: absolute;
  right: -40px; top: 40px;
  max-width: 170px; opacity: .35;
  pointer-events: none;
}
.t-autismo__img { max-width: 100%; height: auto; }

/* --- quem somos ---------------------------------------------------------- */
.t-quemsomos { background: var(--tear-surface); }
.t-quemsomos h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--tear-teal-deep); }
.t-quemsomos p { font-size: 1.05rem; }

/* --- servicos ------------------------------------------------------------ */
.t-servicos { background: var(--tear-orange-dark); }
.t-servicos h2 { color: #fff; }

.t-card-servico {
  position: relative;
  display: block;
  width: 100%;
  min-height: 300px;
  border: 0;
  border-radius: var(--tear-radius);
  overflow: hidden;
  padding: 0;
  background: #0b0b0b center / cover no-repeat;
  color: #fff;
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease;
}

.t-card-servico::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .1) 35%, rgba(0, 0, 0, .78) 100%);
  transition: background .25s ease;
}

.t-card-servico:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(0, 0, 0, .28); }
.t-card-servico:hover::after { background: linear-gradient(180deg, rgba(22, 169, 178, .35), rgba(0, 103, 109, .85)); }

.t-card-servico__body {
  position: relative; z-index: 2;
  height: 100%;
  min-height: 300px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
}

.t-card-servico__body i { font-size: 1.6rem; margin-bottom: .4rem; }
.t-card-servico__body span { font-size: 1.35rem; font-weight: 700; line-height: 1.15; }
.t-card-servico__more { font-size: .85rem; opacity: .85; margin-top: .35rem; }

.t-modal-servico .modal-content { border: 0; border-radius: var(--tear-radius); overflow: hidden; }
.t-modal-servico__img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.t-modal-servico h3 { color: var(--tear-teal-deep); }

/* --- missao / visao / valores -------------------------------------------- */
.t-mvv { position: relative; background: #fff; }
.t-mvv__frame { position: absolute; pointer-events: none; opacity: .9; }
.t-mvv__frame--left  { left: 0;  bottom: 0;  max-width: 190px; }
.t-mvv__frame--right { right: 0; top: 0;     max-width: 150px; }
.t-mvv h2 { font-weight: 300; font-size: clamp(2rem, 4.5vw, 3rem); }
.t-mvv h2 strong { font-weight: 700; }
.t-mvv h3 { color: var(--tear-teal); font-size: 1.6rem; }

.t-valor-badge {
  display: inline-block;
  border: 2px solid var(--tear-teal);
  color: var(--tear-teal-deep);
  border-radius: 50rem;
  padding: .4rem 1.1rem;
  margin: 0 .4rem .6rem 0;
  font-weight: 500;
}

/* --- numeros ------------------------------------------------------------- */
.t-numeros { background: var(--tear-teal-deep); color: #fff; }
.t-numeros h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.t-numero__valor { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; color: var(--tear-yellow); line-height: 1; }
.t-numero__titulo { font-weight: 600; font-size: 1.1rem; }
.t-numero__sub { font-size: .85rem; opacity: .8; }
.t-numero { border-left: 3px solid rgba(255, 255, 255, .25); padding-left: 1.25rem; }

/* --- programacao --------------------------------------------------------- */
.t-programacao { background: #fff; }

.t-prog-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: .75rem;
  scrollbar-width: none;
}
.t-prog-track::-webkit-scrollbar { display: none; }

.t-prog-item {
  position: relative;
  flex: 0 0 clamp(220px, 30%, 300px);
  scroll-snap-align: start;
  min-height: 330px;
  border-radius: var(--tear-radius);
  overflow: hidden;
  background: var(--tear-teal) center / cover no-repeat;
  color: #fff;
  display: flex;
  align-items: flex-end;
}

.t-prog-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 103, 109, .9) 100%);
}

.t-prog-item span {
  position: relative; z-index: 2;
  padding: 1.25rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.t-prog-nav {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--tear-teal);
  background: #fff;
  color: var(--tear-teal);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.t-prog-nav:hover { background: var(--tear-teal); color: #fff; }

/* --- formularios --------------------------------------------------------- */
.t-form-section {
  background: #fff url('../img/bg-forms.png') center / cover no-repeat;
  position: relative;
}
.t-form-section::before { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .82); }
.t-form-section > .container { position: relative; z-index: 2; }

.t-form-card {
  background: #fff;
  border-radius: var(--tear-radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .10);
  padding: 2rem;
}

.t-form-card .form-control {
  border: 0;
  border-bottom: 2px solid var(--tear-border);
  border-radius: 0;
  padding-left: 0;
  box-shadow: none;
}
.t-form-card .form-control:focus { border-bottom-color: var(--tear-teal); box-shadow: none; }
.t-form-card .form-check-input:checked { background-color: var(--tear-teal); border-color: var(--tear-teal); }

/* --- blog ---------------------------------------------------------------- */
.t-blog { background: var(--tear-teal); }
.t-blog h2 { color: #fff; }

/* Cartoes vindos do px-blog (/blog/api/ultimos.php) herdam o CSS do blog;
   aqui so garantimos contraste sobre o fundo teal. */
.t-blog .pxb-card { border: 0; border-radius: var(--tear-radius); overflow: hidden; height: 100%; }

/* --- rodape -------------------------------------------------------------- */
.t-footer { background: var(--tear-teal-deep); color: #fff; }
.t-footer h3 { font-size: 1.25rem; color: var(--tear-yellow); margin-bottom: 1rem; }
.t-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.t-footer a:hover { color: var(--tear-yellow); }
.t-footer ul { list-style: none; padding: 0; margin: 0; }
.t-footer li { margin-bottom: .5rem; }
.t-footer__logo { max-width: 200px; }
.t-footer__social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
  margin-right: .5rem;
}
.t-footer__social a:hover { background: var(--tear-orange); color: #fff; }

.t-copy { background: #00474B; color: rgba(255, 255, 255, .8); font-size: .85rem; }
.t-copy a { color: var(--tear-yellow); text-decoration: none; }

/* --- whatsapp flutuante -------------------------------------------------- */
.t-whats {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 1030;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
}
.t-whats:hover { color: #fff; transform: scale(1.06); }

/* --- pagina de conteudo (politicas) -------------------------------------- */
.t-page-hero { background: var(--tear-teal-deep); color: #fff; padding: 4rem 0 3rem; }
.t-prose h3 { color: var(--tear-teal-deep); font-size: 1.3rem; margin-top: 2rem; }
.t-prose div, .t-prose p { margin-bottom: 1rem; line-height: 1.7; }

/* --- animacao de entrada ------------------------------------------------- */
.t-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.t-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .t-reveal { opacity: 1; transform: none; transition: none; }
  .t-hero { background-attachment: scroll; }
}

@media (max-width: 991.98px) {
  .t-hero { background-attachment: scroll; min-height: 60vh; }
  .t-section { padding: 3.5rem 0; }
  .t-numero { border-left: 0; border-top: 3px solid rgba(255, 255, 255, .25); padding-left: 0; padding-top: 1rem; }
}

/* --- reCAPTCHA v3 -------------------------------------------------------- */
/* O selo flutuante colidiria com o botao do WhatsApp; escondemos e exibimos a
   atribuicao em texto, como a Google exige nesse caso. */
.grecaptcha-badge { visibility: hidden; }

.t-recaptcha-aviso {
  font-size: .78rem;
  color: var(--tear-muted);
  margin-top: .75rem;
  margin-bottom: 0;
}
.t-recaptcha-aviso a { color: var(--tear-teal); }
