/*
  Páginas de apresentação (body.td-landing): início e Sobre, inspiradas no antigo Portal Action.
  Arquivo estático porque o SCSS do tema é servido a partir do cache em resources/_gen
  e o Hugo da imagem Docker não é "extended" (não recompila SCSS).
  Cores do logo Estat Action: vermelho #d60000 e cinza #333333.
*/
.td-landing {
  --home-red: #d60000;
  --home-red-dark: #b00000;
  --home-ink: #2b2f33;
  --home-ink-2: #1f2326;
  --home-text: #3a3f44;
  --home-muted: #6b7178;
  --home-surface: #f3f4f6;
  --home-border: #e2e5e9;
}
.td-landing .td-main {
  color: var(--home-text);
}

/* ---------- Botões ---------- */
.td-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.td-home-btn {
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.td-home-btn--red {
  background: var(--home-red);
  border: 1px solid var(--home-red);
  color: #fff;
}
.td-home-btn--red:hover,
.td-home-btn--red:focus {
  background: var(--home-red-dark);
  border-color: var(--home-red-dark);
  color: #fff;
}

/* ---------- Banner (foto do blocks/cover) ---------- */
.td-landing .td-cover-block {
  display: flex;
  align-items: center;
  min-height: 82vh;
  padding-top: 7rem;
  padding-bottom: 5rem;
}
.td-landing .td-cover-block > .container {
  width: 100%;
}
/* Degradê da esquerda para a direita: texto legível e a foto visível à direita */
.td-landing .td-overlay--dark::after {
  background: linear-gradient(90deg, rgba(24, 27, 30, 0.9) 0%, rgba(24, 27, 30, 0.72) 42%, rgba(24, 27, 30, 0.15) 100%);
}
.td-landing .td-cover-block .text-center {
  text-align: left !important;
}
.td-landing .td-cover-block .lead {
  padding-top: 0 !important;
  font-size: 1rem;
  font-weight: 400;
}
.td-home-hero {
  max-width: 38rem;
}
.td-home-hero__eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  background: var(--home-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.td-home-hero__title {
  margin: 0 0 1.25rem;
  color: #fff;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.td-home-hero__title span {
  display: inline-block;
  padding-bottom: 0.35rem;
  border-bottom: 6px solid var(--home-red);
}
.td-home-hero__text {
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  line-height: 1.65;
}
.td-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.td-home-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #fff;
}
.td-home-btn--ghost:hover,
.td-home-btn--ghost:focus {
  background: #fff;
  border-color: #fff;
  color: var(--home-ink);
}

/* ---------- Faixa de boas-vindas ---------- */
.td-default main .td-home-welcome {
  padding: 2.75rem 0 6rem;
  background: var(--home-red);
  color: #fff;
}
.td-home-welcome h2 {
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 400;
}
.td-home-welcome h2 strong {
  font-weight: 700;
}
.td-home-welcome p {
  max-width: 48rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Três caixas (Manual / Primeiros passos / Suporte) ---------- */
.td-default main .td-home-boxes {
  padding: 0 0 4rem;
  background: var(--home-surface);
}
.td-home-boxes > .container {
  margin-bottom: -3.5rem;
  transform: translateY(-3.5rem);
}
.td-home-box {
  display: block;
  height: 100%;
  padding: 1.75rem 1.5rem;
  border-top: 4px solid var(--home-red);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 35, 38, 0.12);
  color: var(--home-muted);
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.td-home-box:hover,
.td-home-box:focus {
  box-shadow: 0 16px 36px rgba(31, 35, 38, 0.18);
  color: var(--home-muted);
  text-decoration: none;
  transform: translateY(-3px);
}
.td-home-box i {
  margin-bottom: 0.75rem;
  color: var(--home-red);
  font-size: 1.6rem;
}
.td-home-box h3 {
  margin-bottom: 0.5rem;
  color: var(--home-ink);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.td-home-box p {
  margin: 0;
  font-size: 0.925rem;
  line-height: 1.55;
}

/* ---------- Explore o manual ---------- */
.td-default main .td-home-section {
  padding: 4.5rem 0 5rem;
  background: #fff;
}
.td-home-section__header {
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
}
.td-home-section__header h2 {
  margin-bottom: 0.75rem;
  color: var(--home-ink);
  font-weight: 700;
  text-transform: uppercase;
}
.td-home-section__header p {
  margin: 0;
  color: var(--home-muted);
  font-size: 1.1rem;
}
.td-home-card {
  display: flex;
  gap: 1rem;
  height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: #fff;
  color: var(--home-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.td-home-card:hover,
.td-home-card:focus {
  border-color: var(--home-red);
  box-shadow: 0 8px 24px rgba(31, 35, 38, 0.08);
  color: var(--home-text);
  text-decoration: none;
  transform: translateY(-2px);
}
.td-home-card__icon {
  display: flex;
  flex: 0 0 3rem;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 8px;
  background: rgba(214, 0, 0, 0.08);
  color: var(--home-red);
  font-size: 1.25rem;
}
.td-home-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.td-home-card__title {
  margin-bottom: 0.25rem;
  color: var(--home-ink);
  font-size: 1.1rem;
  font-weight: 700;
}
.td-home-card__desc {
  color: var(--home-muted);
  font-size: 0.925rem;
  line-height: 1.5;
}
.td-home-card__meta {
  margin-top: auto;
  padding-top: 0.75rem;
  color: var(--home-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Aprenda com exemplos ---------- */
.td-default main .td-home-learn {
  padding: 5rem 0;
  background: var(--home-surface);
}
.td-home-learn__art {
  position: relative;
  max-width: 360px;
  height: 300px;
  margin: 0 auto;
}
.td-home-learn__main {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--home-ink);
  color: #fff;
  font-size: 4.5rem;
  box-shadow: 0 0 0 14px rgba(43, 47, 51, 0.08);
  transform: translate(-50%, -50%);
}
.td-home-learn__chip {
  position: absolute;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(31, 35, 38, 0.12);
  color: var(--home-ink);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.td-home-learn__chip i {
  margin-right: 0.35rem;
  color: var(--home-red);
}
.td-home-learn__chip--1 { top: 8%; left: 0; }
.td-home-learn__chip--2 { top: 46%; right: -4%; }
.td-home-learn__chip--3 { bottom: 6%; left: 6%; }
.td-home-learn__title {
  margin-bottom: 1rem;
  color: var(--home-ink);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}
.td-home-learn__title span {
  color: var(--home-red);
}
.td-home-learn__list {
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
}
.td-home-learn__list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.td-home-learn__list i {
  margin-top: 0.3rem;
  color: var(--home-red);
}
.td-home-link {
  color: var(--home-red);
  font-weight: 600;
}
.td-home-link:hover {
  color: var(--home-red-dark);
}

/* ---------- Depoimentos (carrossel) ---------- */
.td-default main .td-home-testimonials {
  padding: 5rem 0 4.5rem;
  background: var(--home-ink);
  background-image: radial-gradient(circle at 0% 100%, rgba(214, 0, 0, 0.28), transparent 40%);
  color: #fff;
}
.td-home-testimonials .td-home-section__header {
  margin-bottom: 1.25rem;
}
.td-home-testimonials .td-home-section__header h2 {
  color: #fff;
}
.td-testimonials {
  max-width: 52rem;
  margin: 0 auto;
}
/* .carousel-inner tem overflow: hidden; o respiro mantém o selo de aspas visível */
.td-testimonials .carousel-inner {
  padding: 1.75rem 0.5rem 1.5rem;
}
.td-testimonial {
  position: relative;
  margin: 0;
  padding: 2.75rem 3rem 2.25rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  color: var(--home-text);
  text-align: center;
}
.td-testimonial::before {
  content: "\201C";
  position: absolute;
  top: -1.6rem;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--home-red);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 2.6rem;
  line-height: 1;
  padding-top: 0.9rem;
  transform: translateX(-50%);
}
.td-testimonial__stars {
  margin-bottom: 1rem;
  color: #f5a623;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
}
.td-testimonial__quote {
  margin: 0;
}
.td-testimonial__quote p {
  margin: 0;
  color: var(--home-ink);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.75;
}
.td-testimonial__note {
  margin: 0.75rem 0 0;
  color: var(--home-muted);
  font-size: 0.78rem;
}
.td-testimonial__author {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
  text-align: left;
}
.td-testimonial__avatar {
  display: flex;
  flex: 0 0 3rem;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--home-ink);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}
.td-testimonial__author strong {
  display: block;
  color: var(--home-ink);
  font-size: 1rem;
}
.td-testimonial__author small {
  color: var(--home-muted);
  font-size: 0.85rem;
}
.td-testimonials__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.td-testimonials__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: #fff;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.td-testimonials__arrow:hover,
.td-testimonials__arrow:focus {
  background: var(--home-red);
  border-color: var(--home-red);
  color: #fff;
  text-decoration: none;
}
/* Indicadores fora do carrossel: tira o posicionamento absoluto padrão do Bootstrap */
.td-testimonials .td-testimonials__dots {
  position: static;
  margin: 0;
}
.td-testimonials .td-testimonials__dots li {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
}
.td-testimonials .td-testimonials__dots li.active {
  width: 26px;
  border-radius: 5px;
  background: var(--home-red);
}

/* ---------- Serviços ---------- */
.td-default main .td-home-services {
  padding: 4.5rem 0;
  background: #fff;
  color: var(--home-text);
}
.td-home-services h2 {
  margin-bottom: 0.75rem;
  color: var(--home-ink);
  font-weight: 700;
  text-transform: uppercase;
}
.td-home-services p {
  max-width: 46rem;
  margin-bottom: 1.5rem;
}
.td-home-services__art {
  position: relative;
  display: inline-block;
  width: 240px;
  height: 180px;
}
.td-home-services__bulb {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border: 5px solid var(--home-ink);
  border-radius: 50%;
  color: var(--home-ink);
  font-size: 3.2rem;
  transform: translate(-50%, -50%);
}
.td-home-services__dot {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 3px solid var(--home-red);
  border-radius: 50%;
  color: var(--home-red);
  font-size: 1rem;
}
.td-home-services__dot--1 { top: 0; left: 18px; }
.td-home-services__dot--2 { top: 10px; right: 10px; }
.td-home-services__dot--3 { bottom: 0; left: 40px; }

/* =========================================================
   Página Sobre (body.td-landing--about)
   ========================================================= */
.td-landing--about .td-cover-block {
  min-height: 66vh;
}
.td-section-eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--home-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.td-section-eyebrow--light {
  color: #ff6b6b;
}
.td-section-title {
  margin-bottom: 1.25rem;
  color: var(--home-ink);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 700;
}

/* Números */
.td-default main .td-about-stats {
  padding: 0;
  background: var(--home-surface);
}
.td-about-stats > .container {
  margin-bottom: -3rem;
  transform: translateY(-3rem);
}
.td-about-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-top: 4px solid var(--home-red);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(31, 35, 38, 0.12);
}
.td-about-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.td-about-stat + .td-about-stat {
  border-left: 1px solid var(--home-border);
}
.td-about-stat strong {
  color: var(--home-ink);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
}
.td-about-stat span {
  color: var(--home-muted);
  font-size: 0.9rem;
}

/* Conheça o Action Stat */
.td-default main .td-about-intro {
  padding: 5.5rem 0 5rem;
  background: var(--home-surface);
}
.td-about-intro p {
  color: var(--home-text);
  font-size: 1.05rem;
  line-height: 1.7;
}
.td-mockup {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(31, 35, 38, 0.2);
}
.td-mockup__bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: #e4e7eb;
}
.td-mockup__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c4c9cf;
}
.td-mockup__bar span:first-child {
  background: var(--home-red);
}
.td-mockup img {
  display: block;
  width: 100%;
  height: auto;
}

/* Diferenciais */
.td-default main .td-about-features {
  padding: 5rem 0 4rem;
  background: #fff;
}
.td-feature-card {
  height: 100%;
  padding: 1.75rem;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.td-feature-card:hover {
  border-color: var(--home-red);
  box-shadow: 0 10px 28px rgba(31, 35, 38, 0.08);
  transform: translateY(-2px);
}
.td-feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.1rem;
  border-radius: 10px;
  background: rgba(214, 0, 0, 0.08);
  color: var(--home-red);
  font-size: 1.35rem;
}
.td-feature-card h3 {
  margin-bottom: 0.5rem;
  color: var(--home-ink);
  font-size: 1.15rem;
  font-weight: 700;
}
.td-feature-card p {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Sobre este manual */
.td-default main .td-about-manual {
  padding: 1rem 0 5rem;
  background: #fff;
}
.td-about-manual__box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem;
  border-radius: 12px;
  background: var(--home-ink);
  background-image: radial-gradient(circle at 100% 0%, rgba(214, 0, 0, 0.35), transparent 45%);
  color: rgba(255, 255, 255, 0.85);
}
.td-about-manual__text {
  flex: 1 1 28rem;
}
.td-about-manual__text h2 {
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
}
.td-about-manual__text ul {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.td-about-manual__text li {
  margin-bottom: 0.45rem;
}
.td-about-manual__text li i {
  margin-right: 0.5rem;
  color: #ff6b6b;
}
.td-about-manual__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Contato */
.td-default main .td-about-contact {
  padding: 5rem 0 4rem;
  background: var(--home-surface);
}
.td-contact-card {
  display: block;
  height: 100%;
  padding: 1.75rem 1.5rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(31, 35, 38, 0.06);
  color: var(--home-text);
  text-align: center;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
a.td-contact-card:hover,
a.td-contact-card:focus {
  box-shadow: 0 12px 30px rgba(31, 35, 38, 0.12);
  color: var(--home-text);
  text-decoration: none;
  transform: translateY(-2px);
}
.td-contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--home-red);
  color: #fff;
  font-size: 1.2rem;
}
.td-contact-card h3 {
  margin-bottom: 0.4rem;
  color: var(--home-ink);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.td-contact-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  word-break: break-word;
}

@media (max-width: 991.98px) {
  .td-about-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .td-about-stat:nth-child(3) {
    border-left: 0;
  }
  .td-about-stat:nth-child(n + 3) {
    border-top: 1px solid var(--home-border);
  }
}

@media (max-width: 767.98px) {
  .td-testimonial {
    padding: 2.5rem 1.5rem 2rem;
  }
  .td-testimonial__quote p {
    font-size: 1rem;
  }
  .td-landing--about .td-cover-block {
    min-height: 0;
  }
  .td-about-manual__box {
    padding: 2rem 1.5rem;
  }
  .td-landing .td-cover-block {
    min-height: 0;
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  .td-landing .td-overlay--dark::after {
    background: rgba(24, 27, 30, 0.78);
  }
  .td-home-hero__text {
    font-size: 1.05rem;
  }
  .td-default main .td-home-section,
  .td-default main .td-home-learn {
    padding: 3.5rem 0;
  }
  .td-home-learn__chip--2 {
    right: 0;
  }
}
