/**
 * Refinamentos visuais — página inicial (index).
 * Escopo: body[data-site-page="index"] para não afetar sircoi/ebs.
 */
body[data-site-page="index"] {
  -webkit-font-smoothing: antialiased;
}

/* --- Hero: leitura e hierarquia --- */
body[data-site-page="index"] .h6-hero-section .h6-hero-content {
  max-width: 100%;
  width: 100%;
}
body[data-site-page="index"] .h6-hero-section .hero-title {
  letter-spacing: -0.03em;
  line-height: 1.05;
}
body[data-site-page="index"] .h6-hero-section .desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--tj-color-text-body);
}
body[data-site-page="index"] .h6-hero-section .hero-btn-area {
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
}
body[data-site-page="index"] .h6-hero-section .hero-btn-area .tj-primary-btn.hero-btn-outline {
  background-color: transparent;
  border: 2px solid var(--tj-color-theme-primary);
  color: var(--tj-color-heading-primary);
}
body[data-site-page="index"] .h6-hero-section .hero-btn-area .tj-primary-btn.hero-btn-outline .btn_inner .btn_text {
  color: var(--tj-color-heading-primary);
  text-shadow: none;
}
body[data-site-page="index"] .h6-hero-section .hero-btn-area .tj-primary-btn.hero-btn-outline .btn_inner .btn_text > span,
body[data-site-page="index"] .h6-hero-section .hero-btn-area .tj-primary-btn.hero-btn-outline .btn_text span {
  color: inherit;
}
body[data-site-page="index"] .h6-hero-section .hero-btn-area .tj-primary-btn.hero-btn-outline .btn_inner .btn_icon,
body[data-site-page="index"] .h6-hero-section .hero-btn-area .tj-primary-btn.hero-btn-outline .btn_icon span {
  color: var(--tj-color-common-white);
}
body[data-site-page="index"] .h6-hero-section .hero-btn-area .tj-primary-btn.hero-btn-outline:hover {
  background: rgba(141, 182, 225, 0.14);
  border-color: var(--tj-color-heading-primary);
}
body[data-site-page="index"] .h6-hero-section .hero-btn-area .tj-primary-btn.hero-btn-outline:hover .btn_inner .btn_text {
  color: var(--tj-color-heading-primary);
}

/* --- Ícones estáveis (sem fonte tji em produção) --- */
body[data-site-page="index"] .h6-hero-content .sub-title {
  padding: 6px 12px;
  line-height: 1.35;
  gap: 6px;
  vertical-align: middle;
}
body[data-site-page="index"] .h6-hero-content .sub-title i {
  font-size: 0;
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body[data-site-page="index"] .h6-hero-content .sub-title i::before {
  content: "✓";
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  color: var(--tj-color-theme-primary);
}
body[data-site-page="index"] .h6-project-item .icon-btn i {
  display: none;
}
body[data-site-page="index"] .h6-project-item .icon-btn::after {
  content: "→";
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  color: var(--tj-color-common-white);
  transform: rotate(-45deg);
  transition: transform 0.3s ease-in-out;
}
body[data-site-page="index"] .h6-project-item .icon-btn:hover::after {
  transform: rotate(-45deg) translate(3px, -3px);
}
body[data-site-page="index"] .tj-submit-btn span.btn-icon i {
  display: none;
}
body[data-site-page="index"] .tj-submit-btn span.btn-icon::before,
body[data-site-page="index"] .tj-submit-btn span.btn-icon::after {
  content: "›";
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  display: inline-block;
  transition: transform 0.4s ease-in-out;
  color: inherit;
}
body[data-site-page="index"] .tj-submit-btn span.btn-icon::after {
  position: absolute;
  left: 0;
  transform: translateX(-150%);
}
body[data-site-page="index"] .tj-submit-btn:hover span.btn-icon::before {
  transform: translateX(150%);
}
body[data-site-page="index"] .tj-submit-btn:hover span.btn-icon::after {
  transform: translateX(0);
}

/* --- Institucional: faixa suave + cartão de métricas --- */
body[data-site-page="index"] #institucional.h6-about-section {
  background: linear-gradient(180deg, #f5f8fb 0%, #fafcfd 45%, #ffffff 100%);
}
body[data-site-page="index"] #institucional .h6-about-content .sec-heading {
  margin-bottom: 1.15rem;
  max-width: 100%;
}
body[data-site-page="index"] #institucional .h6-about-funfact {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(5, 18, 41, 0.07);
  border: 1px solid rgba(206, 215, 224, 0.75);
  background: #fff;
  max-width: 100%;
  margin-inline-start: 0;
  margin-inline-end: 0;
}
body[data-site-page="index"] #institucional .h6-about-funfact-item {
  min-height: 0;
}
body[data-site-page="index"] #institucional .h6-about-funfact-item .desc {
  padding: 1.1rem 1.25rem;
}
body[data-site-page="index"] #institucional .h6-about-funfact-item .desc p {
  line-height: 1.45;
  font-size: 0.95rem;
}
body[data-site-page="index"] #institucional .h6-about-funfact-item .counter-item {
  padding: 22px 22px 28px;
}

/* --- Faixa animada: menos peso visual --- */
body[data-site-page="index"] .h6-marquee-section .marquee-title {
  letter-spacing: 0.04em;
  opacity: 0.88;
}

/* --- Projetos: contexto + fundo --- */
body[data-site-page="index"] .h6-project-section {
  background: #fafcfd;
}
body[data-site-page="index"] .h6-project-section .h6-project-item {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(5, 18, 41, 0.05);
}

/* --- Notícias: cartões com hover suave --- */
body[data-site-page="index"] #noticias .blog-style-2.style-6 {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(206, 215, 224, 0.5);
  box-shadow: 0 6px 28px rgba(5, 18, 41, 0.06);
  transition: box-shadow 0.28s ease, transform 0.28s ease;
  height: 100%;
}
body[data-site-page="index"] #noticias .blog-style-2.style-6:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(5, 18, 41, 0.1);
}

/* --- Notícias: modal de leitura --- */
body[data-site-page="index"] .news-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
body[data-site-page="index"] .news-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body[data-site-page="index"] .news-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 18, 41, 0.56);
  backdrop-filter: blur(2px);
}
body[data-site-page="index"] .news-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(86vh, 820px);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(206, 215, 224, 0.8);
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(5, 18, 41, 0.2);
  padding: 1.4rem 1.4rem 1.1rem;
  display: flex;
  flex-direction: column;
}
body[data-site-page="index"] .news-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: #5b6676;
}
body[data-site-page="index"] .news-modal__meta {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8aaad0;
  margin-bottom: 0.55rem;
}
body[data-site-page="index"] .news-modal__title {
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  margin-bottom: 0.65rem;
  line-height: 1.2;
}
body[data-site-page="index"] .news-modal__body p {
  margin-bottom: 0.7rem;
  color: var(--tj-color-text-body);
  line-height: 1.6;
}
body[data-site-page="index"] .news-modal__body {
  margin-top: 0.15rem;
  padding-right: 0.35rem;
  overflow-y: auto;
  max-height: min(56vh, 520px);
}
body[data-site-page="index"] .news-modal__body::-webkit-scrollbar {
  width: 8px;
}
body[data-site-page="index"] .news-modal__body::-webkit-scrollbar-thumb {
  background: rgba(141, 182, 225, 0.85);
  border-radius: 999px;
}
body[data-site-page="index"] .news-modal__body::-webkit-scrollbar-track {
  background: rgba(206, 215, 224, 0.4);
}

/* --- Contato: campos mais claros --- */
body[data-site-page="index"] #contato .contact-form-one .form-input input,
body[data-site-page="index"] #contato .contact-form-one .form-input textarea {
  border-radius: 10px;
  border-color: rgba(206, 215, 224, 0.9);
}
body[data-site-page="index"] #contato .contact-form-one .title {
  letter-spacing: -0.02em;
}

/* Honeypot anti-spam (sem campo visível "Website") */
body[data-site-page="index"] .site-lead-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 575px) {
  body[data-site-page="index"] .h6-hero-section .hero-btn-area .tj-primary-btn {
    width: 100%;
    justify-content: center;
  }
}
