/* ============================================================
   TN Widgets - Elementor – Frontend CSS
   ============================================================ */

/* ── 1. TOKENS ─────────────────────────────────────────── */
:root {
  --tnew-navy:        #173653;
  --tnew-navy-dk:     #0f2338;
  --tnew-orange:      #FF6B00;
  --tnew-light:       #f4f7fa;
  --tnew-white:       #ffffff;
  --tnew-gray:        #6b7280;
  --tnew-gray-lt:     #e5e7eb;
  --tnew-font:        'Blinker', 'Segoe UI', system-ui, sans-serif;
  --tnew-radius:      12px;
  --tnew-radius-sm:   6px;
  --tnew-radius-pill: 999px;
  --tnew-shadow:      0 4px 24px -4px rgba(0,0,0,.12);
  --tnew-shadow-lg:   0 12px 40px -8px rgba(0,0,0,.22);
  --tnew-max-w:       1200px;
  --tnew-px:          24px;
}

/* ── 2. LAYOUT ──────────────────────────────────────────── */
.tnew-section     { width: 100%; }
.tnew-cta-section { width: 100%; position: relative; overflow: hidden; }

.tnew-container {
  max-width: var(--tnew-max-w);
  margin-inline: auto;
  padding-inline: var(--tnew-px);
}
.tnew-max-3xl  { max-width: 800px; }
.tnew-max-4xl  { max-width: 960px; }
.tnew-max-2xl  { max-width: 680px; }
.tnew-mx-auto  { margin-inline: auto; }
.tnew-text-center { text-align: center; }

/* Grids */
.tnew-grid          { display: grid; gap: 24px; }
.tnew-outcomes-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.tnew-orgs-grid     { display: grid; gap: 20px; grid-template-columns: repeat(5, 1fr); }
.tnew-chip-grid     { display: grid; gap: 16px; text-align: left; margin-top: 40px; }

.tnew-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ── PROBLEM INTRO – container centralizado ─────────────── */
.tnew-problem-intro { width: 100%; }
.tnew-problem__container {
  width: 100%;
  padding-inline: var(--tnew-px);
  box-sizing: border-box;
}
.tnew-problem__inner {
  max-width: 800px;
  margin-left:  auto;
  margin-right: auto;
}

/* ── Parágrafo de destaque ──────────────────────────────── */
.tnew-problem__highlight {
  font-family: var(--tnew-font);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--tnew-navy);
}

/* ── AUTOMATION – container centralizado ────────────────── */
.tnew-automation-section { width: 100%; }
.tnew-automation__container {
  width: 100%;
  padding-inline: var(--tnew-px);
  box-sizing: border-box;
}
.tnew-automation__inner {
  max-width: 960px;
  margin-left:  auto;
  margin-right: auto;
}

/* ── 3. TIPOGRAFIA ──────────────────────────────────────── */
.tnew-heading {
  font-family: var(--tnew-font);
  font-weight: 800;
  line-height: 1.15;
  margin: 16px 0 24px;
}
.tnew-body-text {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--tnew-gray);
  margin-bottom: 16px;
}
.tnew-label {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--tnew-radius-pill);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── 4. BOTÃO ───────────────────────────────────────────── */
.tnew-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--tnew-font);
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: opacity .2s, transform .2s, box-shadow .2s;
}
.tnew-btn:hover { opacity: .9; transform: translateY(-2px); }
.tnew-btn svg   { flex-shrink: 0; }

/* ── 5. HERO ────────────────────────────────────────────── */
/*
 * IMPORTANTE: padding-top NÃO é definido aqui.
 * É controlado 100% pelo Elementor via o controle responsivo
 * "Padding" na aba Estilo → Fundo da Seção.
 * O CSS hardcoded causava o espaço extra no mobile.
 */
.tnew-hero {
  position: relative;
  overflow: hidden;
  /* padding controlado pelo Elementor */
}
.tnew-hero__container {
  width: 100%;
  padding-inline: var(--tnew-px);
  box-sizing: border-box;
}
.tnew-hero__content { max-width: 860px; }

.tnew-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--tnew-radius-pill);
  border: 1px solid rgba(255,255,255,.2);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.tnew-hero__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  animation: tnew-pulse 1.5s infinite;
  flex-shrink: 0;
}
@keyframes tnew-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .6; transform: scale(1.3); }
}
.tnew-hero__headline {
  font-family: var(--tnew-font);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
}
.tnew-hero__accent { color: var(--tnew-orange); }
.tnew-hero__subtext { line-height: 1.75; }
.tnew-hero__cta { display: inline-flex; }

/* ── 6. CARDS (Leaks) ───────────────────────────────────── */
.tnew-card {
  background: #fff;
  border-top: 4px solid var(--tnew-orange);
  border-radius: var(--tnew-radius);
  box-shadow: var(--tnew-shadow);
  transition: transform .25s;
}
.tnew-card:hover { transform: translateY(-4px); }
.tnew-card__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.tnew-card__title {
  font-family: var(--tnew-font);
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 12px;
}
.tnew-card__desc { font-size: .875rem; line-height: 1.65; }

/* ── 7. SERVICES CARDS ──────────────────────────────────── */
.tnew-service-card {
  background: #fff;
  border-top: 4px solid var(--tnew-orange);
  border-radius: var(--tnew-radius);
  box-shadow: var(--tnew-shadow);
  display: flex;
  flex-direction: column;
}
.tnew-service-card__label {
  font-size: .7rem; font-weight: 800;
  letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: 12px;
}
.tnew-service-card__title {
  font-family: var(--tnew-font);
  font-size: 1.4rem; font-weight: 800; margin-bottom: 12px;
}
.tnew-service-card__intro { font-size: .9rem; line-height: 1.65; margin-bottom: 20px; }
.tnew-service-card__list  {
  list-style: none; margin: 0 0 24px; padding: 0;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.tnew-service-card__list li { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; color: #374151; }
.tnew-check-icon { flex-shrink: 0; margin-top: 1px; }
.tnew-service-card__callout {
  border-left: 4px solid var(--tnew-orange);
  padding: 14px 16px;
  border-radius: 0 var(--tnew-radius-sm) var(--tnew-radius-sm) 0;
  font-size: .8rem; font-weight: 600; line-height: 1.6;
  margin-top: auto;
}
.tnew-callout-accent { font-weight: 700; }

/* SERVICE CARD CTA "Learn more" */
.tnew-service-card__cta-wrap { margin-top: 20px; }
.tnew-service-card__cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: .875rem; text-decoration: none;
  border: 1.5px solid var(--tnew-orange); color: var(--tnew-orange);
  padding: 8px 20px; border-radius: 999px;
  transition: background-color .2s, color .2s, transform .2s;
}
.tnew-service-card__cta:hover { background-color: var(--tnew-orange); color: #fff; transform: translateX(2px); }
.tnew-service-card__cta svg { flex-shrink: 0; transition: transform .2s; }
.tnew-service-card__cta:hover svg { transform: translateX(3px); }

/* ── 8. WHY TN ──────────────────────────────────────────── */
.tnew-reasons-list { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.tnew-reason       { display: flex; align-items: flex-start; gap: 16px; }
.tnew-num {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: .85rem;
  flex-shrink: 0; margin-top: 3px;
}
.tnew-reason__title { font-family: var(--tnew-font); font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; }
.tnew-reason__desc  { font-size: .9rem; line-height: 1.6; margin: 0; }

.tnew-compliance-panel { border-radius: var(--tnew-radius); padding: 40px; position: relative; overflow: hidden; }
.tnew-compliance-panel__icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.tnew-compliance-panel__heading { font-family: var(--tnew-font); font-size: 1.6rem; font-weight: 800; margin: 12px 0 16px; }
.tnew-compliance-panel__intro   { line-height: 1.7; margin-bottom: 24px; font-size: .95rem; }
.tnew-compliance-list           { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tnew-compliance-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--tnew-radius-sm);
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
  font-size: .9rem; font-weight: 500;
}
.tnew-check { flex-shrink: 0; }

/* ── 9. AUTOMATION ──────────────────────────────────────── */
.tnew-automation__icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-inline: auto; margin-bottom: 8px;
}
.tnew-chip {
  background: var(--tnew-light);
  border: 1px solid var(--tnew-gray-lt);
  border-radius: var(--tnew-radius-sm);
  padding: 16px;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .875rem; font-weight: 500;
}
.tnew-chip__dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0; margin-top: 5px;
  background-color: var(--tnew-orange);
}

/* ── 10. IMPACT ─────────────────────────────────────────── */
.tnew-outcome-card {
  background: #fff;
  border: 1px solid var(--tnew-gray-lt);
  border-radius: var(--tnew-radius);
  padding: 24px 20px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--tnew-shadow);
}
.tnew-outcome-card__icon-wrap {
  width: 48px; height: 48px; border-radius: 50%;
  background-color: var(--tnew-orange);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff;
}
.tnew-outcome-card__text { font-weight: 700; font-size: .9rem; margin: 0; line-height: 1.4; }
.tnew-org-card {
  background: #fff; border-radius: var(--tnew-radius);
  padding: 24px 20px; text-align: center;
  box-shadow: var(--tnew-shadow); transition: box-shadow .25s;
}
.tnew-org-card:hover { box-shadow: var(--tnew-shadow-lg); }
.tnew-org-card__dot  { width: 48px; height: 48px; border-radius: 50%; margin-inline: auto; margin-bottom: 14px; background-color: var(--tnew-orange); }
.tnew-org-card__text { font-weight: 700; font-size: .875rem; line-height: 1.4; margin: 0; }

/* OUTCOMES CTA */
.tnew-outcomes-cta-wrap { margin-top: 40px; }
.tnew-outcomes-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  border: 1.5px solid var(--tnew-navy); color: var(--tnew-navy);
  padding: 12px 28px; border-radius: 999px;
  transition: background-color .2s, color .2s;
}
.tnew-outcomes-cta:hover { background-color: var(--tnew-navy); color: #fff; }
.tnew-outcomes-cta svg   { flex-shrink: 0; }

/* ── 11. CTA ────────────────────────────────────────────── */
.tnew-cta__heading { font-family: var(--tnew-font); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; line-height: 1.15; margin-bottom: 20px; }
.tnew-cta__subtext { font-size: 1.1rem; line-height: 1.75; margin-bottom: 40px; max-width: 600px; margin-inline: auto; }

/* ── 12. MODAL ──────────────────────────────────────────── */
#tnew-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
#tnew-modal[hidden] { display: none; }
.tnew-modal__backdrop { position: absolute; inset: 0; background: rgba(15,35,56,.65); backdrop-filter: blur(4px); }
.tnew-modal__dialog {
  position: relative; background: #fff; border-radius: 16px;
  max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
}
.tnew-modal__header { display: flex; align-items: center; justify-content: space-between; padding: 24px 24px 16px; border-bottom: 1px solid #f3f4f6; }
.tnew-modal__title  { font-family: var(--tnew-font); font-size: 1.35rem; font-weight: 800; color: var(--tnew-navy); margin: 0; }
.tnew-modal__close  { background: none; border: none; cursor: pointer; color: #9ca3af; padding: 4px; border-radius: 50%; display: flex; align-items: center; transition: color .2s, background .2s; }
.tnew-modal__close:hover { color: #374151; background: #f3f4f6; }
.tnew-modal__body   { padding: 24px; }
.tnew-form__row     { margin-bottom: 16px; }
.tnew-form__label   { display: block; font-weight: 600; font-size: .85rem; color: #374151; margin-bottom: 6px; }
.tnew-form__input   { width: 100%; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 10px; background: #f9fafb; font-size: .95rem; transition: border-color .2s, background .2s; box-sizing: border-box; font-family: inherit; }
.tnew-form__input:focus { outline: none; border-color: var(--tnew-orange); background: #fff; box-shadow: 0 0 0 3px rgba(255,107,0,.15); }
.tnew-form__textarea { resize: vertical; min-height: 80px; }
.tnew-form__submit   { margin-top: 8px; }
.tnew-form__error    { font-size: .8rem; color: #ef4444; margin-top: 8px; min-height: 20px; display: block; }
.tnew-form__success  { padding: 40px 24px; text-align: center; }
.tnew-form__success h4 { font-family: var(--tnew-font); font-size: 1.5rem; font-weight: 800; color: var(--tnew-navy); margin: 16px 0 8px; }
.tnew-form__success p  { color: var(--tnew-gray); }

/* ═══════════════════════════════════════════════════════════
   13. CARROSSEL MOBILE — estilo "peek"
   ─────────────────────────────────────────────────────────
   Card ativo ocupa ~85% da largura, próximo aparece cortado
   na borda direita dando dica visual de mais conteúdo.
   Os estilos visuais de dots e setas são aplicados via JS
   inline a partir das configurações do painel Elementor.
   ═══════════════════════════════════════════════════════════ */

/* Espaço para o peek do próximo card */
[data-tnew-carousel="yes"] {
  padding-right: 40px !important;
  box-sizing: border-box;
}

/* Layout base dos dots — valores visuais via JS inline */
.tnew-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  list-style: none;
}
.tnew-carousel-dot {
  display: block;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

/* Layout base das setas abaixo */
.tnew-carousel-arrows-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ── 14. RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .tnew-orgs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .tnew-two-col       { grid-template-columns: 1fr; gap: 40px; }
  .tnew-outcomes-grid { grid-template-columns: repeat(2, 1fr); }
  .tnew-orgs-grid     { grid-template-columns: repeat(2, 1fr); }
  .tnew-chip-grid     { grid-template-columns: 1fr 1fr; }
  .tnew-compliance-panel { padding: 24px; }
  /* Sem animação de hover nos cards no mobile */
  .tnew-card:hover,
  .tnew-service-card:hover { transform: none; }
}
@media (max-width: 480px) {
  .tnew-outcomes-grid,
  .tnew-orgs-grid,
  .tnew-chip-grid { grid-template-columns: 1fr; }
  .tnew-hero__headline { font-size: 1.9rem; }
}

/* ── 15. ACESSIBILIDADE ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .tnew-hero__badge-dot,
  .tnew-card,
  .tnew-btn,
  .tnew-carousel-track { animation: none !important; transition: none !important; }
}
:focus-visible { outline: 3px solid var(--tnew-orange); outline-offset: 3px; border-radius: 4px; }
