/* ============================================================
   TED CONSULTING — Page-specific styles for the landing.
   Carrega depois de tokens.css e site.css.
   Tudo aqui referencia tokens; nada de hex direto.
   ============================================================ */

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* Trava defensiva contra "grid blowout": evita que cards empurrem a
   página inteira pra largura maior que a viewport no mobile. */
.ted-service,
.ted-case,
.ted-stat-card {
  min-width: 0;
}

/* Mobile-first: o ted-nav some o link-row e mostra um toggle abaixo de 880px */
.ted-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--petroleo);
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
}
.ted-nav-toggle:hover { background: var(--grafite-08); }

@media (max-width: 880px) {
  .ted-nav { padding: 0 20px; gap: 12px; }
  .ted-nav-links {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border-mid);
    padding: 12px 20px 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out);
  }
  .ted-nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .ted-nav-links a {
    height: 48px;
    width: 100%;
    border-bottom: 1px solid var(--border);
    padding: 0 4px;
  }
  .ted-nav-links a:last-child { border-bottom: none; }
  .ted-nav-toggle { display: inline-flex; }
  .ted-nav > .ted-btn { display: none; }
}

/* ============================================================
   HERO — pequenas adições ao ted-hero
   ============================================================ */
.ted-hero-title em { white-space: nowrap; }

@media (max-width: 720px) {
  .ted-hero { padding: 72px 0 64px; }
  .ted-hero-title { font-size: 44px; }
  .ted-hero-bgnum { font-size: 260px; right: -30px; }
  .ted-hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .ted-hero-meta { gap: 24px 40px; }
}

/* ============================================================
   STATS — adições à .ted-stats existente
   ============================================================ */
.ted-stat-card {
  position: relative;
}
.ted-stat-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--fg-3);
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: auto;
}
.ted-stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--verde);
}
.ted-stat-trend.amber { color: var(--ambar); }
.ted-stat-trend.blue  { color: var(--azul-ui); }
.ted-stats-grid {
  margin-bottom: 56px;
}
@media (max-width: 880px) {
  .ted-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .ted-stats-grid { grid-template-columns: 1fr; }
  .ted-stat-value { font-size: 44px; }
}

/* Logos strip */
.ted-logos {
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.ted-logos-head {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ted-logos-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.ted-logos-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: center;
}
.ted-logo-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  opacity: 0.72;
  transition: opacity var(--d-base) var(--ease-out), color var(--d-base) var(--ease-out);
}
.ted-logo-ph:hover { opacity: 1; color: var(--petroleo); }
.ted-logo-ph small {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--fg-3);
  display: block;
  margin-top: 2px;
}
@media (max-width: 720px) {
  .ted-logos-row { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   DASHBOARD PREVIEW — mock real do que entregamos
   ============================================================ */
.ted-deliverable {
  background: var(--surface-dark);
  color: var(--offwhite);
  padding: 112px 0;
  position: relative;
  overflow: hidden;
}
.ted-deliverable-bgnum {
  position: absolute;
  right: -40px;
  top: 40px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 360px;
  line-height: 0.85;
  color: rgba(245, 243, 239, 0.035);
  letter-spacing: -0.05em;
  user-select: none;
  pointer-events: none;
}
.ted-deliverable-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.ted-deliverable-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 48px;
}
.ted-deliverable-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ambar);
  margin-bottom: 14px;
  display: block;
}
.ted-deliverable-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--offwhite);
  margin: 0;
}
.ted-deliverable-title em {
  color: var(--ambar);
  font-style: italic;
  font-weight: 700;
}
.ted-deliverable-side {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(245, 243, 239, 0.7);
  margin: 0;
}
.ted-deliverable-side strong {
  color: var(--offwhite);
  font-weight: 600;
}
.ted-deliverable-frame {
  background: var(--surface);
  color: var(--fg-1);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(245, 243, 239, 0.08);
}
.ted-deliverable-frame svg {
  display: block;
  width: 100%;
  height: auto;
}
.ted-deliverable-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.ted-deliverable-bullet {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: rgba(245, 243, 239, 0.04);
  border: 1px solid rgba(245, 243, 239, 0.08);
}
.ted-deliverable-bullet-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ambar);
}
.ted-deliverable-bullet-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(245, 243, 239, 0.78);
  margin: 0;
}
@media (max-width: 880px) {
  .ted-deliverable-head { grid-template-columns: 1fr; gap: 24px; }
  .ted-deliverable-title { font-size: 36px; }
  .ted-deliverable-foot { grid-template-columns: 1fr; }
}

/* ============================================================
   CASES (resultados) — usa o vocabulário do kit
   ============================================================ */
.ted-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.ted-case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ambar);
  border-radius: var(--r-lg);
  padding: 28px 28px 26px;
  transition: box-shadow var(--d-slow) var(--ease-out), transform var(--d-slow) var(--ease-out);
}
.ted-case:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.ted-case-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ambar);
  margin-bottom: 18px;
}
.ted-case-meta-spacer { flex: 1; }
.ted-case-kpi {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--petroleo);
  background: var(--ambar-12);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  white-space: nowrap;
}
.ted-case-kpi-unit {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ambar);
  margin-left: 2px;
}
.ted-case-meta-sep {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--ambar); opacity: 0.5;
}
.ted-case-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 16px;
}
.ted-case-before,
.ted-case-after {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ted-case-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.ted-case-text {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--fg-2);
}
.ted-case-text.after {
  color: var(--petroleo);
  font-weight: 600;
}
.ted-case-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ambar);
  padding-top: 22px;
}
@media (max-width: 720px) {
  .ted-cases-grid { grid-template-columns: 1fr; }
  .ted-case-flow { grid-template-columns: 1fr; gap: 14px; }
  .ted-case-arrow { padding: 0; transform: rotate(90deg); justify-content: flex-start; }
  .ted-case-meta { flex-wrap: wrap; row-gap: 10px; }
  .ted-case-meta-spacer { flex-basis: 100%; height: 0; }
  .ted-case-kpi { align-self: flex-start; }
}

/* ============================================================
   MÉTODO — passos numerados + bloco lateral em petróleo
   ============================================================ */
.ted-method {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ted-method-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.ted-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 32px;
}
.ted-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.ted-step:last-child { border-bottom: none; padding-bottom: 0; }
.ted-step-num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--azul-ui);
}
.ted-step-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--petroleo);
  margin: 0 0 10px;
}
.ted-step-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--fg-2);
  margin: 0;
}

/* Bloco lateral: petróleo com número decorativo grande */
.ted-method-aside {
  position: sticky;
  top: 88px;
  background: var(--petroleo);
  color: var(--offwhite);
  border-radius: var(--r-xl);
  padding: 48px 36px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ted-method-aside-num {
  position: absolute;
  right: -28px;
  bottom: -40px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 320px;
  line-height: 0.85;
  color: rgba(200, 146, 42, 0.07);
  letter-spacing: -0.05em;
  user-select: none;
  pointer-events: none;
}
.ted-method-aside-eyebrow {
  position: relative;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ambar);
  margin-bottom: 18px;
}
.ted-method-aside-quote {
  position: relative;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--offwhite);
  margin: 0 0 28px;
  max-width: 380px;
}
.ted-method-aside-quote em {
  color: var(--ambar);
  font-style: italic;
  font-weight: 600;
}
.ted-method-aside-list {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ted-method-aside-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(245, 243, 239, 0.78);
}
.ted-method-aside-list svg {
  color: var(--ambar);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 880px) {
  .ted-method-grid { grid-template-columns: 1fr; gap: 48px; }
  .ted-method-aside { position: static; min-height: 0; padding: 36px 28px; }
  .ted-method-aside-num { font-size: 220px; }
  .ted-method-aside-quote { font-size: 24px; }
}

/* ============================================================
   CTA FINAL — full-bleed grafite com número decorativo
   ============================================================ */
.ted-cta-final {
  background: var(--grafite);
  color: var(--offwhite);
  padding: 128px 0 120px;
  position: relative;
  overflow: hidden;
}
.ted-cta-final-bgnum {
  position: absolute;
  left: -50px;
  top: 20px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 420px;
  line-height: 0.85;
  color: rgba(200, 146, 42, 0.05);
  letter-spacing: -0.05em;
  user-select: none;
  pointer-events: none;
}
.ted-cta-final-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
}
.ted-cta-final-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ambar);
  display: block;
  margin-bottom: 18px;
}
.ted-cta-final-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--offwhite);
  margin: 0 0 24px;
  max-width: 640px;
}
.ted-cta-final-title em {
  color: var(--ambar);
  font-style: italic;
  font-weight: 700;
}
.ted-cta-final-sub {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(245, 243, 239, 0.6);
  margin: 0 0 36px;
  max-width: 480px;
}
.ted-cta-final-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.ted-cta-final-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(245, 243, 239, 0.65);
  text-decoration: none;
  transition: color var(--d-base) var(--ease-out);
}
.ted-cta-final-inline:hover { color: var(--ambar); }
.ted-cta-final-inline svg { color: var(--ambar); }

.ted-cta-final-contact {
  position: relative;
  border-left: 1px solid rgba(245, 243, 239, 0.14);
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ted-cta-final-contact-head {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 243, 239, 0.45);
}
.ted-cta-final-contact-item {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--offwhite);
  text-decoration: none;
  transition: color var(--d-base) var(--ease-out);
}
.ted-cta-final-contact-item:hover { color: var(--ambar); }
.ted-cta-final-contact-item svg { color: var(--ambar); flex-shrink: 0; }

@media (max-width: 880px) {
  .ted-cta-final { padding: 88px 0; }
  .ted-cta-final-inner { grid-template-columns: 1fr; gap: 48px; align-items: start; }
  .ted-cta-final-title { font-size: 44px; }
  .ted-cta-final-bgnum { font-size: 280px; }
  .ted-cta-final-contact { padding-left: 0; border-left: none; border-top: 1px solid rgba(245,243,239,0.14); padding-top: 32px; }
}

/* ============================================================
   FOOTER — pequena adição: layout minimal
   ============================================================ */
.ted-footer {
  background: var(--surface-darker);
  padding: 64px 32px 28px;
}
.ted-footer-inner {
  grid-template-columns: 1.4fr 1fr 1fr;
}
@media (max-width: 720px) {
  .ted-footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .ted-footer-base { flex-direction: column; gap: 12px; text-align: left; }
}

/* ============================================================
   GRID UTILITIES (responsive)
   ============================================================ */
@media (max-width: 720px) {
  .ted-service-grid { grid-template-columns: 1fr; }
  .ted-section { padding: 72px 24px; }
}

/* ============================================================
   TESTIMONIAL — depoimento único, peso editorial
   ============================================================ */
.ted-testimonial {
  background: var(--page-bg);
  padding: 96px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ted-testimonial-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  align-items: start;
}
.ted-testimonial-quote-mark {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 120px;
  line-height: 0.7;
  color: var(--ambar);
  letter-spacing: -0.05em;
  user-select: none;
}
.ted-testimonial-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.ted-testimonial-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ambar);
}
.ted-testimonial-quote {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--petroleo);
  margin: 0;
  max-width: 880px;
}
.ted-testimonial-quote em {
  color: var(--ambar);
  font-style: italic;
  font-weight: 600;
}
.ted-testimonial-attr {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.ted-testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--petroleo);
  color: var(--offwhite);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.ted-testimonial-attr-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ted-testimonial-attr-name {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--fg-1);
}
.ted-testimonial-attr-role {
  font-size: 12px;
  color: var(--fg-2);
}
@media (max-width: 720px) {
  .ted-testimonial { padding: 72px 0; }
  .ted-testimonial-inner { grid-template-columns: 1fr; gap: 16px; }
  .ted-testimonial-quote-mark { font-size: 80px; }
  .ted-testimonial-quote { font-size: 24px; }
}

/* ============================================================
   QUOTE / VALUE PROPOSITION — ajustes para 2 colunas
   ============================================================ */
.ted-quote-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
@media (max-width: 720px) {
  .ted-quote { padding: 88px 24px; }
  .ted-quote-phrase { font-size: 40px; }
  .ted-quote-bgnum { font-size: 220px; }
  .ted-quote-grid,
  .ted-quote-grid.two-col { grid-template-columns: 1fr; gap: 28px; }
}
