/**
 * 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;
}

/* Logo do header: compacto e com proporção correta */
body[data-site-page="index"] .site-logo .logo {
  max-width: 112px;
}
body[data-site-page="index"] .site-logo .logo img,
body[data-site-page="index"] .hamburger_logo img {
  width: 100%;
  max-width: 112px;
  height: auto;
}

/* --- 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);
}

/* --- 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;
}

/* Assunto: nice-select com width:auto fica estreito demais */
body[data-site-page="index"] #contato .contact-form-one .tj-nice-select-box,
body[data-site-page="index"] #contato .contact-form-one .tj-select {
  width: 100%;
}
body[data-site-page="index"] #contato .contact-form-one .tj-select::after {
  content: "";
  display: table;
  clear: both;
}
body[data-site-page="index"] #contato .contact-form-one div.nice-select {
  float: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
body[data-site-page="index"] #contato .contact-form-one div.nice-select .list {
  width: 100%;
  left: 0;
  right: 0;
}

/* 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;
}

/* Fallback: WOW/animate não devem deixar conteúdo invisível */
body[data-site-page="index"] .wow:not(.animated) {
  visibility: visible;
  opacity: 1;
}

/* Plus sem Font Awesome */
body[data-site-page="index"] .client-experience .images-thumb li.plus i {
  font-family: inherit;
  font-style: normal;
  font-weight: 700;
}

/* Contraste de subtítulos / texto auxiliar */
body[data-site-page="index"] .sec-heading .sub-title,
body[data-site-page="index"] .h6-hero-content .sub-title {
  color: #0f4c5c;
}
body[data-site-page="index"] .h6-about-funfact-item .desc p,
body[data-site-page="index"] .h6-project-item .desc {
  color: #334155;
}

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