/* ===================================================================
   TANGISA — Energia solar por assinatura
   Estilos do site — base do template CDW
   Tokens de marca + componentes que o Bootstrap 5.3 não cobre

   Sumário
   1.  Tokens e base
   2.  Botões e pílulas
   3.  Header / offcanvas
   4.  Hero
   5.  Passos (como funciona)
   6.  Simulador de economia
   7.  Para quem é
   8.  Fique no verde
   9.  Páginas internas (hero simples + blocos)
   10. Formulário de contato
   11. Footer
   12. WhatsApp float
   13. Responsivo
   =================================================================== */

/* ===================================================================
   1. TOKENS E BASE
   =================================================================== */
:root {
  /* Verde da marca — amostrado da própria logomarca.png */
  --tg-green: #6cbe16;
  --tg-green-dark: #5aa011;

  /* Verde dos CTAs (botões e pílulas) */
  --tg-cta: #7ad728;
  --tg-cta-hover: #68c218;

  /* Verdes das faixas de seção */
  --tg-section: #62ac20;
  --tg-section-2: #6aba23;
  --tg-deep: #52901a;
  --tg-deeper: #498118;
  --tg-soft: #daf4c3;
  --tg-tint: #f3faec;

  /* Neutros */
  --tg-dark: #1a1a1a;
  --tg-ink: #333333;
  --tg-body: #666666;
  --tg-muted: #8a8a8a;
  --tg-line: #e6e6e6;
  --tg-bg-alt: #f4f4f4;

  --tg-grad-section: linear-gradient(
    160deg,
    var(--tg-section-2) 0%,
    var(--tg-section) 55%,
    var(--tg-deep) 100%
  );
  --tg-grad-cta: linear-gradient(
    135deg,
    var(--tg-cta) 0%,
    var(--tg-green) 100%
  );

  --tg-shadow-sm: 0 2px 10px rgba(26, 26, 26, 0.06);
  --tg-shadow: 0 10px 30px rgba(26, 26, 26, 0.08);
  --tg-shadow-lg: 0 18px 48px rgba(26, 26, 26, 0.14);

  --tg-radius: 14px;
  --tg-radius-lg: 22px;

  --font-heading: "Titillium Web", sans-serif;
  --font-body: "Titillium Web", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--tg-body);
  background: #ffffff;
  overflow-x: hidden;
}

section {
  position: relative;
}

section[id] {
  scroll-margin-top: 92px;
}

h1,
h2,
h3,
h4,
.font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--tg-ink);
}

a {
  color: var(--tg-green);
  transition: color 0.2s ease;
}
a:hover {
  color: var(--tg-green-dark);
}

/* Links que não são texto corrido (botões, logos, ícones, itens de menu)
   nunca sublinham — em nenhum estado. O Bootstrap 5 sublinha <a> por padrão. */
.btn-tangisa,
.btn-tangisa-outline,
.tg-step-cta,
.header-logo,
.site-footer-logo,
.mobile-sidebar-logo,
.site-footer-social a,
.site-footer-nav a,
.site-footer-contact a,
.site-footer-legal a,
.mobile-sidebar-nav a,
.mobile-sidebar-contact a,
.tg-audience-item a,
.tg-ombudsman a,
#mainNavDesktop .nav-link {
  text-decoration: none;
}

.text-green {
  color: var(--tg-green);
}
.text-cta {
  color: var(--tg-cta);
}

/* Título de seção padrão: linha 1 em cinza, linha 2 em verde e negrito */
.tg-section-title {
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.25rem);
  font-weight: 400;
  color: var(--tg-body);
  line-height: 1.25;
  margin-bottom: 0;
}
.tg-section-title strong {
  display: block;
  font-weight: 700;
  color: var(--tg-green);
}
.tg-section-title.is-solid {
  font-weight: 700;
  color: var(--tg-body);
}

.tg-section-lead {
  color: var(--tg-body);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* Espaçamento vertical padrão das seções */
.tg-section {
  padding: 4.5rem 0;
}
.tg-section-tight {
  padding: 3.25rem 0;
}
.tg-section-alt {
  background: var(--tg-bg-alt);
}

/* Faixa verde cheia */
.tg-band {
  background: var(--tg-grad-section);
  color: #fff;
  padding: 4rem 0;
  overflow: hidden;
}
.tg-band h2,
.tg-band h3 {
  color: #fff;
}

/* ===================================================================
   2. BOTÕES E PÍLULAS
   =================================================================== */
/* O Bootstrap 5 sublinha <a> por padrão. Como os botões do site são links,
   todos os estados precisam zerar o text-decoration. */
.btn-tangisa {
  --bs-btn-focus-shadow-rgb: 122, 215, 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--tg-cta);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.75rem;
  box-shadow: 0 6px 18px rgba(98, 172, 32, 0.28);
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}
.btn-tangisa:hover,
.btn-tangisa:focus,
.btn-tangisa:focus-visible,
.btn-tangisa:active {
  background: var(--tg-cta-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(98, 172, 32, 0.34);
}
.btn-tangisa:disabled,
.btn-tangisa[aria-disabled="true"] {
  opacity: 0.65;
  transform: none;
  cursor: not-allowed;
}

.btn-tangisa-lg {
  font-size: 1.05rem;
  padding: 0.95rem 2.25rem;
}

/* Botão vazado sobre fundo verde */
.btn-tangisa-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 0.7rem 2rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.btn-tangisa-outline:hover,
.btn-tangisa-outline:focus,
.btn-tangisa-outline:focus-visible,
.btn-tangisa-outline:active {
  background: #fff;
  color: var(--tg-deep);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Pílula de destaque (ex.: "SIMULE AQUI") */
.tg-pill {
  display: inline-block;
  background: #fff;
  color: var(--tg-deep);
  font-weight: 700;
  font-size: clamp(1.35rem, 1rem + 1.3vw, 2rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  border-radius: 10px;
  padding: 0.3rem 1.4rem;
  line-height: 1.2;
}

/* ===================================================================
   3. HEADER / OFFCANVAS
   =================================================================== */
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  box-shadow: 0 1px 0 rgba(26, 26, 26, 0.07);
}

.site-header,
.header-mobile {
  padding: 0.85rem 0;
}

.header-logo img {
  height: 34px;
  width: auto;
  display: block;
}

#mainNavDesktop .nav-link {
  color: var(--tg-ink);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.25rem 0;
  position: relative;
}
#mainNavDesktop .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--tg-cta);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.22s ease;
}
#mainNavDesktop .nav-link:hover,
#mainNavDesktop .nav-link.active {
  color: var(--tg-cta);
}
#mainNavDesktop .nav-link:hover::after,
#mainNavDesktop .nav-link.active::after {
  transform: scaleX(1);
}

.header-mobile-menu {
  background: transparent;
  border: none;
  color: var(--tg-ink);
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.25rem 0.4rem;
}

/* Offcanvas mobile */
.main-nav-offcanvas {
  width: min(320px, 86vw);
  background: #fff;
}
.mobile-sidebar-header {
  border-bottom: 1px solid var(--tg-line);
  padding: 1rem 1.25rem;
}
.mobile-sidebar-logo img {
  height: 30px;
  width: auto;
  display: block;
}
.mobile-sidebar-close {
  background: transparent;
  border: none;
  color: var(--tg-ink);
  font-size: 1.15rem;
}
.mobile-sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0;
}
.mobile-sidebar-nav a {
  display: block;
  padding: 0.8rem 1.25rem;
  color: var(--tg-ink);
  font-weight: 600;
  text-decoration: none;
}
.mobile-sidebar-nav a:hover,
.mobile-sidebar-nav a.active {
  background: var(--tg-tint);
  color: var(--tg-green);
}
.mobile-sidebar-cta {
  padding: 0.75rem 1.25rem 1rem;
}
.mobile-sidebar-contact {
  border-top: 1px solid var(--tg-line);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
}
.mobile-sidebar-contact span {
  display: block;
  color: var(--tg-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
.mobile-sidebar-contact a {
  color: var(--tg-ink);
  text-decoration: none;
  font-weight: 600;
}

/* ===================================================================
   4. HERO
   =================================================================== */
/* PLACEHOLDER DE ARTE: o fundo abaixo é um gradiente temporário.
   Ao exportar a foto do hero para theme/images/bg-hero.jpg, troque o
   `background-image` de .tg-hero pela imagem (mantendo o gradiente como
   camada de leitura sobre ela). */
.tg-hero {
  position: relative;
  background-color: #eef3ea;
  background-image: url(../images/bg-hero.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.tg-hero-inner {
  position: relative;
  z-index: 2;
  padding: 4.5rem 0 5rem;
}

.tg-hero h1 {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--tg-green);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.tg-hero-sub {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  color: var(--tg-body);
  line-height: 1.55;
  max-width: 30rem;
  margin-bottom: 1.75rem;
}
.tg-hero-sub strong {
  color: var(--tg-ink);
  font-weight: 700;
}

/* Lâmpada decorativa (CSS puro, substituível por arte) */
.tg-hero-bulb {
  position: absolute;
  top: -60px;
  left: 4%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 224, 92, 0.75) 0%,
    rgba(255, 214, 51, 0.28) 42%,
    rgba(255, 214, 51, 0) 70%
  );
  pointer-events: none;
  z-index: 1;
}

/* Vinheta que segura a leitura do texto sobre o gradiente */
.tg-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.72) 38%,
    rgba(255, 255, 255, 0) 62%
  );
  z-index: 1;
  pointer-events: none;
}

/* ===================================================================
   5. PASSOS (COMO FUNCIONA)
   =================================================================== */
.tg-steps {
  padding: 3.5rem 0 4.5rem;
}

.tg-step {
  position: relative;
  height: 100%;
  background: #fff;
  border: 1px solid var(--tg-line);
  border-radius: var(--tg-radius);
  padding: 1.5rem 1.25rem 2.75rem;
  text-align: center;
  box-shadow: var(--tg-shadow-sm);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.tg-step:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 190, 22, 0.45);
  box-shadow: var(--tg-shadow);
}

.tg-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--tg-tint);
  color: var(--tg-green);
  font-size: 2rem;
  line-height: 1;
}

.tg-step p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--tg-body);
  margin-bottom: 0;
}
.tg-step p strong {
  color: var(--tg-ink);
}
.tg-step p .brand {
  color: var(--tg-green);
  font-weight: 700;
}

.tg-step-num {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tg-grad-cta);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(98, 172, 32, 0.35);
}

/* Card CTA que fecha a fileira de passos */
.tg-step-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 150px;
  text-align: center;
  background: var(--tg-grad-cta);
  color: #fff;
  border-radius: var(--tg-radius);
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(98, 172, 32, 0.3);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}
.tg-step-cta:hover,
.tg-step-cta:focus,
.tg-step-cta:focus-visible,
.tg-step-cta:active {
  color: #fff;
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(98, 172, 32, 0.38);
}
.tg-step-cta strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
}
.tg-step-cta span {
  font-size: 0.95rem;
  line-height: 1.3;
}

/* ===================================================================
   6. SIMULADOR DE ECONOMIA
   =================================================================== */
.tg-sim {
  background: var(--tg-grad-section);
  color: #fff;
  padding: 3.75rem 0 4.25rem;
}

.tg-sim-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.tg-sim-head p {
  color: #fff;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.35rem);
  margin: 0.75rem 0 0;
}

.tg-sim-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.tg-sim-value {
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 1.25rem;
}
.tg-sim-value .cur {
  font-size: 1.5rem;
  vertical-align: 0.55em;
  margin-right: 0.1rem;
}
.tg-sim-value .int {
  font-size: clamp(2.5rem, 1.8rem + 2.6vw, 3.6rem);
}
.tg-sim-value .dec {
  font-size: 1.5rem;
  vertical-align: 0.55em;
}

/* Slider */
.tg-sim-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  outline: none;
  margin-bottom: 1.5rem;
}
.tg-sim-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--tg-section);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.25);
}
.tg-sim-range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--tg-section);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.25);
}
.tg-sim-range:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
}

.tg-sim-contrib-label {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.tg-sim-contrib {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}
.tg-sim-contrib-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.tg-sim-contrib-item i {
  font-size: 1.85rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
}
.tg-sim-contrib-item b {
  display: block;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.2;
}
.tg-sim-contrib-item small {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.25;
}

/* Painel branco do resultado */
.tg-sim-result {
  background: #fff;
  border-radius: var(--tg-radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--tg-shadow-lg);
}
.tg-sim-result-label {
  color: var(--tg-body);
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}
.tg-sim-result-box {
  border: 1px solid var(--tg-line);
  border-radius: var(--tg-radius);
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}
.tg-sim-result-box .amount {
  font-weight: 700;
  color: var(--tg-ink);
  line-height: 1;
}
.tg-sim-result-box .cur {
  font-size: 1.35rem;
  vertical-align: 0.5em;
}
.tg-sim-result-box .int {
  font-size: clamp(2.1rem, 1.6rem + 1.9vw, 2.9rem);
}
.tg-sim-result-box .dec {
  font-size: 1.35rem;
  vertical-align: 0.5em;
}
.tg-sim-note {
  font-size: 0.72rem;
  color: var(--tg-muted);
  margin-bottom: 1.1rem;
}

/* ===================================================================
   7. PARA QUEM É
   =================================================================== */
.tg-audience {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin: 2rem 0 2.25rem;
}
.tg-audience-item {
  text-align: center;
  min-width: 96px;
}
.tg-audience-item i {
  display: block;
  font-size: 2.5rem;
  color: var(--tg-green);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.tg-audience-item span {
  display: block;
  font-size: 0.95rem;
  color: var(--tg-ink);
  line-height: 1.25;
}

.tg-checklist {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 34rem;
}
.tg-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.4rem 0;
  color: var(--tg-body);
  font-size: 0.98rem;
  line-height: 1.5;
}
.tg-checklist li i {
  color: var(--tg-cta);
  font-size: 1.05rem;
  line-height: 1.5;
  flex-shrink: 0;
}

/* ===================================================================
   8. FIQUE NO VERDE
   =================================================================== */
.tg-green-band {
  background: url(../images/bg-hero2.jpg) no-repeat center center;
  background-size: cover;
  color: #fff;
  padding: 4rem 0;
  overflow: hidden;
}
/* PLACEHOLDER DE ARTE: quando existir theme/images/bg-fique-verde.jpg,
   adicione-a como camada de `background-image` antes do gradiente. */
.tg-green-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      70% 60% at 8% 100%,
      rgba(30, 82, 12, 0.45) 0%,
      rgba(30, 82, 12, 0) 60%
    ),
    radial-gradient(
      70% 60% at 92% 100%,
      rgba(30, 82, 12, 0.45) 0%,
      rgba(30, 82, 12, 0) 60%
    );
  pointer-events: none;
}
.tg-green-band > * {
  position: relative;
  z-index: 1;
}

.tg-green-band h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.1rem);
}
.tg-green-band-sub {
  color: #fff;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem);
  font-weight: 600;
  margin-bottom: 1rem;
}
.tg-green-band-text {
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 44rem;
  margin: 0 auto 1.75rem;
}

.tg-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.tg-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--tg-deeper);
  border-radius: var(--tg-radius);
  padding: 0.85rem 1.35rem;
  box-shadow: var(--tg-shadow-sm);
}
.tg-stat b {
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}
.tg-stat span {
  font-size: 0.85rem;
  color: var(--tg-soft);
  line-height: 1.25;
  text-align: left;
}

/* ===================================================================
   9. PÁGINAS INTERNAS
   =================================================================== */
/* PLACEHOLDER DE ARTE: cada página interna aceita uma foto de topo via
   `--tg-page-hero-img`. Sem ela, cai no gradiente verde/escuro. */
.tg-page-hero {
  position: relative;
  background-color: var(--tg-dark);
  background-image: linear-gradient(
    120deg,
    rgba(26, 26, 26, 0.92) 0%,
    rgba(73, 129, 24, 0.85) 100%
  );
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 3.75rem 0;
  text-align: center;
}
.tg-page-hero h1 {
  color: #fff;
  font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.9rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.tg-page-hero h1 strong {
  display: block;
  font-weight: 700;
  color: var(--tg-cta);
}
.tg-page-hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 46rem;
  margin: 0 auto;
}

/* Card com ícone quadrado (benefícios) */
.tg-benefit {
  text-align: center;
  height: 100%;
}
.tg-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: var(--tg-radius);
  background: var(--tg-grad-cta);
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 1rem;
  box-shadow: 0 10px 24px rgba(98, 172, 32, 0.28);
}
.tg-benefit h3 {
  font-size: 0.98rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--tg-green);
  margin-bottom: 0.6rem;
}
.tg-benefit p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--tg-body);
  margin-bottom: 0;
}

/* Card missão / visão / valores */
.tg-pillar {
  text-align: center;
  height: 100%;
}
.tg-pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid var(--tg-ink);
  color: var(--tg-green);
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 1rem;
}
.tg-pillar h3 {
  font-size: 1.15rem;
  color: var(--tg-green);
  margin-bottom: 0.6rem;
}
.tg-pillar p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--tg-body);
  margin-bottom: 0;
}

/* ===================================================================
   10. FORMULÁRIO DE CONTATO
   =================================================================== */
.tg-form .form-control {
  border: 1px solid var(--tg-cta);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  color: var(--tg-ink);
}
.tg-form .form-control::placeholder {
  color: var(--tg-muted);
}
.tg-form .form-control:focus {
  border-color: var(--tg-green);
  box-shadow: 0 0 0 0.2rem rgba(108, 190, 22, 0.18);
}
.tg-form .form-control.is-invalid {
  border-color: #dc3545;
}
.tg-form .form-check-input:checked {
  background-color: var(--tg-cta);
  border-color: var(--tg-cta);
}
.tg-form .form-check-label {
  font-size: 0.86rem;
  color: var(--tg-body);
}

/* Honeypot: fora da tela para pessoas, presente no DOM para bots.
   `display:none` não serve — muitos bots ignoram campos ocultos assim. */
.tg-hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Caixa da ouvidoria */
.tg-ombudsman {
  display: flex;
  gap: 1rem;
  background: var(--tg-tint);
  border-radius: var(--tg-radius);
  padding: 1.25rem 1.5rem;
}
.tg-ombudsman i {
  font-size: 1.75rem;
  color: var(--tg-cta);
  line-height: 1;
}
.tg-ombudsman strong {
  display: block;
  color: var(--tg-ink);
  font-size: 0.95rem;
}
.tg-ombudsman p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--tg-body);
  margin-bottom: 0.15rem;
}
.tg-ombudsman a {
  font-weight: 700;
  color: var(--tg-green);
  text-decoration: none;
}

/* ===================================================================
   11. FOOTER
   =================================================================== */
.site-footer {
  background: var(--tg-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 1.75rem;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer-tagline {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.75rem;
}
.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}
.site-footer-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.88rem;
}
.site-footer-nav a:hover {
  color: var(--tg-cta);
}
.site-footer-logo img {
  height: 32px;
  width: auto;
}
.site-footer-social {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin: 0.9rem 0 1.5rem;
}
.site-footer-social a {
  color: var(--tg-cta);
  font-size: 1.05rem;
  line-height: 1;
}
.site-footer-social a:hover {
  color: #fff;
}
.site-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.site-footer-contact a,
.site-footer-contact span {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.85rem;
}
.site-footer-contact i {
  color: var(--tg-cta);
  margin-right: 0.3rem;
}
.site-footer-contact a:hover {
  color: #fff;
}
.site-footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}
.site-footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}
.site-footer-legal a:hover {
  color: var(--tg-cta);
}

/* ===================================================================
   12. WHATSAPP FLOAT
   =================================================================== */
@keyframes whatsapp-float-pulse {
  0% {
    box-shadow:
      0 4px 16px rgba(0, 0, 0, 0.2),
      0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  70% {
    box-shadow:
      0 4px 16px rgba(0, 0, 0, 0.2),
      0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow:
      0 4px 16px rgba(0, 0, 0, 0.2),
      0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float-btn {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  width: 56px;
  height: 56px;
  padding: 0;
  border: none;
  background-color: #25d366;
  color: #fff !important;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 1060;
  cursor: pointer;
  text-decoration: none;
  animation: whatsapp-float-pulse 2.5s ease-out infinite;
  transition: transform 0.2s ease;
}
.whatsapp-float-btn:hover {
  color: #fff !important;
  transform: translateY(-2px) scale(1.04);
  animation-play-state: paused;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

@media (min-width: 992px) {
  .whatsapp-float-btn {
    right: 1.5rem;
    bottom: 1.5rem;
    width: 60px;
    height: 60px;
    font-size: 1.85rem;
  }
}

/* ===================================================================
   13. RESPONSIVO
   =================================================================== */
@media (max-width: 991.98px) {
  .tg-hero-inner {
    padding: 3rem 0 3.5rem;
    text-align: center;
  }
  .tg-hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .tg-hero::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.7) 60%,
      rgba(255, 255, 255, 0.3) 100%
    );
  }
  .tg-hero-bulb {
    width: 180px;
    height: 180px;
    top: -70px;
  }
  .tg-sim-contrib {
    justify-content: center;
    gap: 1.25rem;
  }
  .tg-sim-head,
  .tg-sim-body {
    text-align: center;
  }
  .tg-sim-result {
    margin-top: 2rem;
  }
}

@media (max-width: 575.98px) {
  .tg-section,
  .tg-band,
  .tg-green-band {
    padding: 3rem 0;
  }
  .tg-audience {
    gap: 1.5rem 1.25rem;
  }
  .tg-audience-item {
    min-width: 84px;
  }
  .tg-stat {
    width: 100%;
    justify-content: center;
  }
  .tg-step {
    padding-bottom: 2.5rem;
  }
}

/* Respeita quem pediu menos movimento no sistema */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .whatsapp-float-btn {
    animation: none;
  }
  .tg-step,
  .tg-step-cta,
  .btn-tangisa,
  .btn-tangisa-outline {
    transition: none;
  }
}
