/* ==========================================================
   TK Consultoria Estratégica — styles.css (metodologia BEM)
   Estrutura: tokens > base > layout > blocos
   ========================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy: #10204f;
  --teal: #0f857f;
  --bg: #fbfcfd;
  --bg-alt: #eef3f6;
  --ink: #10204f;
  --muted: #51607a;
  --line: #d8e1e8;
  --card: #ffffff;
  --font-display: "Bricolage Grotesque", Figtree, system-ui, sans-serif;
  --font-body: Figtree, system-ui, sans-serif;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1330;
    --bg-alt: #0e1a3f;
    --ink: #eef3f8;
    --muted: #a7b4cc;
    --line: #22335f;
    --card: #101d45;
    --teal: #2fb3aa;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

.page {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
}

/* :where() mantém especificidade zero, então não sobrescreve os blocos BEM */
:where(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; }
:where(ul, ol) { list-style: none; }
:where(a) { color: inherit; }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* ---------- Layout ---------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Botão ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 15px var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn--outline:hover { background: var(--ink); color: var(--bg); }
.btn--whatsapp { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn--whatsapp:hover { filter: brightness(1.1); }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--navy); }
.btn--large { padding: 15px 26px; font-size: 17px; }
.btn--small { padding: 9px 18px; font-size: 14px; }
.btn--icon { width: 44px; height: 44px; padding: 0; }

/* ---------- Cabeçalho (sempre branco) ---------- */
.header {
  --ink: #10204f;
  --muted: #51607a;
  --bg: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bg);
  border-bottom: 1px solid #e3e9ef;
}
.header__bar { display: flex; align-items: center; gap: 20px; height: 72px; }
.header__logo { display: flex; }
.header__logo-img { display: block; height: 38px; width: auto; }
.header__actions { display: flex; align-items: center; gap: 10px; margin-left: 0; }

/* ---------- Navegação ---------- */
.nav { display: flex; gap: 26px; margin-left: auto; font-weight: 500; font-size: 15px; }
.nav__link { color: var(--muted); text-decoration: none; }
.nav__link:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 70px; }
.hero__title {
  max-width: 11.5em;
  font: 800 clamp(42px, 7.4vw, 92px)/1.08 var(--font-display);
  letter-spacing: -.02em;
}
.hero__title-accent { color: var(--teal); }
.hero__subtitle {
  max-width: 40em;
  margin: 26px 0 34px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Fluxo (estratégia → resultado) ---------- */
.flow {
  display: flex;
  flex-wrap: wrap;
  margin-top: 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.flow__step {
  flex: 1 1 140px;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}
.flow__name { display: block; font: 700 15px var(--font-display); }
.flow__hint { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.flow__step--final { background: var(--teal); border-right: 0; color: #fff; }
.flow__step--final .flow__hint { color: #e3fbf8; }

/* ---------- Seção ---------- */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section__title {
  max-width: 16em;
  font: 700 clamp(30px, 4.6vw, 52px)/1.08 var(--font-display);
  letter-spacing: -.02em;
}
.section__lead { max-width: 38em; margin-top: 18px; color: var(--muted); font-size: 19px; }

/* ---------- Problema ---------- */
.problem { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.problem__list { display: grid; gap: 12px; }
.problem__item {
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 10px;
}

/* ---------- Método (passos) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 44px;
}
.step {
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 0 0 var(--radius) var(--radius);
}
.step__number { display: block; margin-bottom: 12px; color: var(--teal); font: 800 44px/1 var(--font-display); }
.step__title { margin-bottom: 10px; font: 700 22px/1.1 var(--font-display); }
.step__text { color: var(--muted); font-size: 16px; }
.step__deliverable { display: block; margin-top: 14px; font-weight: 600; font-size: 14px; }

/* ---------- Oferta (blocos de solução) ---------- */
.tier {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 6px 26px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.tier--first { margin-top: 40px; }
.tier--last { padding-bottom: 12px; }
.tier__title { font: 700 24px/1.1 var(--font-display); }
.tier__label { display: block; margin-top: 6px; color: var(--teal); font-weight: 600; font-size: 14px; }
.tier__text { color: var(--muted); }
.tier__action { margin-top: 16px; }

/* ---------- Projetos (5 cards em uma linha) ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.project-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.project-card__title { margin-bottom: 10px; font: 700 19px/1.15 var(--font-display); }
.project-card__text { flex: 1; margin-bottom: 20px; color: var(--muted); font-size: 15px; }
.project-card__action { align-self: flex-start; }

/* ---------- Para quem ---------- */
.fit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px 34px;
  margin-top: 40px;
}
.fit-list__item { position: relative; padding-left: 30px; }
.fit-list__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 10px;
  border-left: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  transform: rotate(-45deg);
}

/* ---------- CTA final ---------- */
.cta-final { padding: 96px 0; background: var(--navy); color: #fff; text-align: center; }
.cta-final__title {
  max-width: 16em;
  margin: 0 auto;
  font: 700 clamp(30px, 4.6vw, 52px)/1.08 var(--font-display);
  letter-spacing: -.02em;
}
.cta-final__lead { max-width: 38em; margin: 18px auto 0; color: #c6d2ea; font-size: 19px; }
.cta-final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.cta-final__note { margin-top: 26px; color: #c6d2ea; font-size: 15px; }
.cta-final__link { color: #fff; }

/* ---------- Rodapé ---------- */
.footer { padding: 30px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1040px) {
  /* Projetos continuam em uma linha, com rolagem lateral */
  .projects {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 250px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 12px;
  }
  .project-card { scroll-snap-align: start; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .header__actions { margin-left: auto; }
  .problem { grid-template-columns: 1fr; }
  .tier { grid-template-columns: 1fr; }
  .flow__step { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .header__bar { gap: 8px; }
  .header__logo-img { height: 28px; }
  .header__actions { gap: 8px; }
  .header__actions .btn { padding: 8px 11px; font-size: 12.5px; }
  .header__actions .btn--icon { width: 38px; height: 38px; padding: 0; }
  .hero { padding-top: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
