/* Identidade do portal inspirada em df.trestech.com.br.
   Tokens e componentes visuais; estilos estruturais permanecem em styles.css. */
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --nav-bg: rgba(255, 255, 255, .94);
  --button-bg: #0d0e12;
  --button-ink: #fff;
  --paper: #fff;
  --paper-2: #f3f5f9;
  --ink: #0d0e12;
  --ink-2: #5d6c7b;
  --line: rgba(13, 14, 18, .14);
  --blue: #0099ef;
  --blue-2: #0047ff;
  --blue-3: #00c2ff;
  --brand-gradient: linear-gradient(19deg, var(--blue-3), var(--blue-2));
  --accent: var(--blue);
  --accent-strong: var(--blue-2);
  --text: var(--ink);
  --muted: var(--ink-2);
  --lilas-text: var(--ink);
  --lilas-text-soft: var(--ink-2);
  --radius-lg: 20px;
  --shadow-soft: 0 12px 32px rgba(13, 14, 18, .05);
  --header-height: 88px;
  --page-pad: clamp(20px, 4.5vw, 64px);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0b0c10;
  --paper-2: #14161d;
  --ink: #eef1f6;
  --ink-2: #a3adba;
  --line: rgba(238, 241, 246, .18);
  --blue: #5fc8ff;
  --blue-2: #8babff;
  --blue-3: #5fd8ff;
  --nav-bg: rgba(11, 12, 16, .94);
  --button-bg: #8babff;
  --button-ink: #0b0c10;
}

.header-actions { display: flex; align-items: center; gap: 16px; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--blue-2); }
.theme-icon { width: 20px; height: 20px; flex-shrink: 0; }

html, body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* Lenis controla a interpolação; evita somar o smooth nativo do CSS. */
html.lenis, html.lenis body { scroll-behavior: auto; }
::selection { background: var(--blue-2); color: #fff; }
:where(a, button):focus-visible { outline: 3px solid var(--blue-2); outline-offset: 5px; }
.topbar {
  gap: 28px;
  height: var(--header-height);
  padding: 16px var(--page-pad);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.logo-icon { width: 150px; max-height: 54px; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.nav { margin-left: auto; gap: 2rem; font-size: .95rem; }
.nav a, .nav a:hover { color: var(--ink); }
.nav a::after { background: var(--blue-2); }
.nav a:last-child {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 20px;
}
.nav { align-items: center; }
.nav a:last-child::after { display: none; }
.nav a:last-child:hover { border-color: var(--blue-2); color: var(--blue-2); }
.menu-toggle span { background: var(--ink); }
.hero {
  max-width: 1488px;
  margin-inline: auto;
  padding: clamp(48px, 7vw, 108px) var(--page-pad);
  min-height: calc(100svh - var(--header-height));
}
.eyebrow {
  margin: 0 0 28px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero-title {
  max-width: 850px;
  font-size: clamp(40px, 5.2vw, 76px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.03;
  text-transform: lowercase;
  text-wrap: balance;
}
.hero-title span { background: none; color: var(--blue-2); }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero-title span {
    background: var(--brand-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
  }
}
.hero-subtitle { color: var(--ink-2); font-size: 1.05rem; line-height: 1.75; max-width: 570px; }
.btn.ghost, .btn-marcar-reuniao {
  background: var(--button-bg);
  border: 1px solid var(--button-bg);
  color: var(--button-ink);
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0;
  padding: 13px 22px;
  min-height: 46px;
  box-shadow: none;
}
.btn.ghost:hover, .btn-marcar-reuniao:hover {
  background: var(--blue-2);
  border-color: var(--blue-2);
  box-shadow: none;
  transform: translateY(-2px);
}
.section { padding: clamp(56px, 7vw, 100px) var(--page-pad); }
#dicas { background: var(--paper-2); }
#servicos { background: var(--paper); }
.section-header { max-width: 1120px; margin: 0 auto 44px; text-align: left; }
.section-header h2 {
  max-width: 800px;
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-transform: lowercase;
}
#dicas .section-header h2, #servicos .section-header h2 { color: var(--ink); }
#dicas .section-header p, #servicos .section-header p { color: var(--ink-2); font-size: 1rem; line-height: 1.7; }
/* Botão "Boas práticas": a rolagem para com o subtítulo logo abaixo do cabeçalho. */
#dicas-intro, #servicos-intro { scroll-margin-top: calc(var(--header-height) + 10px); }
.curiosidades-grid { max-width: 1120px; margin: auto; gap: 24px; counter-reset: practice; }
.curio-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: none;
  counter-increment: practice;
}
.curio-card::before {
  content: "0" counter(practice);
  display: block;
  margin-bottom: 30px;
  color: var(--blue-2);
  font-size: .8rem;
}
#dicas .curio-card h3 { color: var(--ink); font-weight: 500; font-size: 1.35rem; letter-spacing: -.025em; }
#dicas .curio-card p { color: var(--ink-2); font-size: .98rem; line-height: 1.7; }
.cards-grid { gap: 24px; }
.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 32px;
  gap: 20px;
  box-shadow: none;
  transition: transform .2s ease, border-color .2s ease;
}
.card::before { display: none; }
.card:hover { border-color: var(--blue); box-shadow: none; }
.card-tag {
  align-self: flex-start;
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 0;
  margin: 0;
  color: var(--ink);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -.035em;
}
.card p { color: var(--ink-2); font-size: 1rem; line-height: 1.7; }
.card-link { color: var(--blue-2); text-decoration-color: currentColor; }
.card-link:hover { text-decoration-color: currentColor; }
.footer { background: #0d0e12; color: #fff; border: 0; padding: 32px var(--page-pad); }
.modal-box { background: var(--paper); border-color: var(--line); box-shadow: 0 24px 80px rgba(13, 14, 18, .18); }
.modal-title { padding-right: 28px; font-weight: 500; font-size: 1.5rem; letter-spacing: -.025em; }
.modal-action, .modal-ti-link { background: var(--paper-2); border-color: var(--line); }
.modal-action-icon { background: var(--brand-gradient); }
.modal-overlay { background: rgba(13, 14, 18, .55); }
.modal-box, .modal-box-lg { max-height: calc(100svh - 2.5rem); overflow-y: auto; }
.modal-action:hover, .modal-ti-link:hover { background: var(--paper-2); border-color: var(--blue-2); }
.modal-action-icon svg { stroke: #0d0e12; }
.equipe-menu-outer .info-card { background: var(--paper-2); border: 1px solid var(--line); }
.equipe-menu-outer .card-text h3 { color: var(--ink); }
.equipe-menu-outer .card-text p { color: var(--ink-2); }

@media (max-width: 768px) {
  :root { --header-height: 76px; }
  .header-actions { gap: 10px; }
  .theme-toggle { padding: 10px; }
  .logo-icon { width: 126px; }
  /* Menu hambúrguer em tela cheia: cobre a página e bloqueia o que está atrás. */
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .logo, .header-actions { position: relative; z-index: 2; }
  .nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: calc(var(--header-height) + 24px) var(--page-pad) 32px;
    border: 0;
    border-radius: 0;
    background: var(--paper);
    box-shadow: none;
    align-items: stretch;
    gap: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 1;
    transform: none;
    transition: opacity .2s ease-out;
  }
  .nav a { padding: 16px 12px; font-size: 1.15rem; }
  .hero { padding-block: 52px 64px; text-align: left; }
  .hero-content { align-items: flex-start; }
  .hero-actions { justify-content: flex-start; }
  .hero-title { font-size: clamp(38px, 7.5vw, 56px); }
  .hero-subtitle { font-size: 1rem; }
  .eyebrow { font-size: .65rem; }
  .section-header { margin-bottom: 30px; }
  .curio-card, .card { padding: 24px; }
  .cards-grid, .curiosidades-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .animated { opacity: 1; transform: none; }
}
