/* ============================================================
   TECPLAZA EMPREENDIMENTOS — site institucional v1
   Tokens: companies/tecplaza/brand/ai-operating-manual/tokens/ (v1.0.0)
   Componentes: manual cap. 09 · Layout: cap. 06 · Site: cap. 15
   ============================================================ */

/* ---- Fonts (self-hosted) ---- */
@font-face { font-family: "Geist"; font-weight: 400; font-display: swap;
  src: url("../fonts/geist-v5-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-display: swap;
  src: url("../fonts/geist-v5-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-display: swap;
  src: url("../fonts/geist-v5-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 700; font-display: swap;
  src: url("../fonts/geist-v5-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-v5-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("../fonts/instrument-serif-v5-latin-italic.woff2") format("woff2"); }

/* ---- Tokens (espelho de tokens.css v1.0.0) ---- */
:root {
  --tp-dark: #07272D; --tp-light: #E5EFDA; --tp-light-artwork: #DCECCE;
  --tp-sand: #EDE1CF; --tp-gray: #C1C6C8; --tp-white: #FFFFFF;
  --tp-bg-default: var(--tp-white); --tp-bg-soft: var(--tp-light);
  --tp-bg-warm: var(--tp-sand); --tp-bg-inverse: var(--tp-dark);
  --tp-text-primary: var(--tp-dark); --tp-text-secondary: #3D5A60;
  --tp-text-on-inverse: var(--tp-white); --tp-text-muted-on-inverse: var(--tp-gray);
  --tp-border-default: var(--tp-gray); --tp-border-soft: #DEE4E5;
  --tp-dark-hover: #0A3138;
  --tp-font-sans: "Geist", "Inter", ui-sans-serif, system-ui, sans-serif;
  --tp-font-serif: "Instrument Serif", Georgia, serif;
  --tp-text-xs: 12px; --tp-leading-xs: 16px;
  --tp-text-sm: 14px; --tp-leading-sm: 20px;
  --tp-text-base: 16px; --tp-leading-base: 26px;
  --tp-text-lg: 20px; --tp-leading-lg: 30px;
  --tp-text-xl: 25px; --tp-leading-xl: 34px;
  --tp-text-2xl: 31px; --tp-leading-2xl: 40px;
  --tp-text-3xl: 39px; --tp-leading-3xl: 48px;
  --tp-text-4xl: 49px; --tp-leading-4xl: 56px;
  --tp-text-5xl: 61px; --tp-leading-5xl: 66px;
  --tp-tracking-display: -0.02em; --tp-tracking-caps: 0.08em;
  --tp-space-1: 4px; --tp-space-2: 8px; --tp-space-3: 12px; --tp-space-4: 16px;
  --tp-space-5: 20px; --tp-space-6: 24px; --tp-space-8: 32px; --tp-space-10: 40px;
  --tp-space-12: 48px; --tp-space-16: 64px; --tp-space-20: 80px;
  --tp-space-24: 96px; --tp-space-32: 128px;
  --tp-container-max: 1200px; --tp-container-text-max: 720px;
  --tp-radius-sm: 4px; --tp-radius-md: 8px; --tp-radius-lg: 12px; --tp-radius-xl: 16px;
  --tp-shadow-soft: 0 1px 2px rgba(7,39,45,.05), 0 4px 12px rgba(7,39,45,.06);
  --tp-shadow-raised: 0 2px 4px rgba(7,39,45,.06), 0 12px 32px rgba(7,39,45,.10);
  --tp-duration-fast: 150ms; --tp-duration-base: 250ms; --tp-duration-slow: 400ms;
  --tp-ease-standard: cubic-bezier(.4,0,.2,1);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--tp-font-sans);
  font-size: var(--tp-text-base); line-height: var(--tp-leading-base);
  color: var(--tp-text-primary); background: var(--tp-bg-default);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--tp-text-primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--tp-dark-hover); }
:focus-visible { outline: 2px solid var(--tp-dark); outline-offset: 2px; border-radius: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--tp-white); padding: var(--tp-space-3) var(--tp-space-4); z-index: 100; }
.skip-link:focus { left: var(--tp-space-4); }

/* ---- Layout ---- */
.container { max-width: var(--tp-container-max); margin: 0 auto; padding: 0 var(--tp-space-5); }
@media (min-width: 1024px) { .container { padding: 0 var(--tp-space-20); } }
.section { padding: var(--tp-space-16) 0; }
@media (min-width: 768px) { .section { padding: var(--tp-space-24) 0; } }
@media (min-width: 1024px) { .section--roomy { padding: var(--tp-space-32) 0; } }
.section--soft { background: var(--tp-bg-soft); }
.section--warm { background: var(--tp-bg-warm); }
.section--inverse { background: var(--tp-bg-inverse); color: var(--tp-text-on-inverse); }
.section--inverse a { color: var(--tp-text-on-inverse); }
.text-col { max-width: var(--tp-container-text-max); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---- Tipografia ---- */
.eyebrow {
  font-size: var(--tp-text-xs); line-height: var(--tp-leading-xs);
  font-weight: 500; letter-spacing: var(--tp-tracking-caps);
  text-transform: uppercase; color: var(--tp-text-secondary);
  display: block; margin-bottom: var(--tp-space-6);
}
.section--inverse .eyebrow { color: var(--tp-text-muted-on-inverse); }
h1, .h1 { font-size: var(--tp-text-3xl); line-height: var(--tp-leading-3xl); font-weight: 600; letter-spacing: var(--tp-tracking-display); }
h2, .h2 { font-size: var(--tp-text-2xl); line-height: var(--tp-leading-2xl); font-weight: 600; letter-spacing: var(--tp-tracking-display); }
h3, .h3 { font-size: var(--tp-text-xl); line-height: var(--tp-leading-xl); font-weight: 600; }
.display { font-size: var(--tp-text-4xl); line-height: var(--tp-leading-4xl); font-weight: 700; letter-spacing: var(--tp-tracking-display); }
@media (max-width: 767px) {
  h1, .h1 { font-size: var(--tp-text-2xl); line-height: var(--tp-leading-2xl); }
  .display { font-size: var(--tp-text-3xl); line-height: var(--tp-leading-3xl); }
}
.lead { font-size: var(--tp-text-lg); line-height: var(--tp-leading-lg); color: var(--tp-text-secondary); }
.section--inverse .lead { color: var(--tp-text-muted-on-inverse); }
h1 + .lead, h2 + .lead { margin-top: var(--tp-space-6); }
.lead + *, .prose > * + * { margin-top: var(--tp-space-6); }
.statement {
  font-family: var(--tp-font-serif); font-weight: 400;
  font-size: var(--tp-text-4xl); line-height: var(--tp-leading-4xl);
  letter-spacing: 0;
}
@media (min-width: 1024px) { .statement { font-size: var(--tp-text-5xl); line-height: var(--tp-leading-5xl); } }
@media (max-width: 767px) { .statement { font-size: var(--tp-text-2xl); line-height: var(--tp-leading-2xl); } }

/* ---- Header (cap. 09.2) ---- */
.site-header {
  background: var(--tp-white); border-bottom: 1px solid var(--tp-border-soft);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-header__logo img { height: 30px; width: auto; }
.site-nav { display: none; align-items: center; gap: var(--tp-space-8); }
.site-nav a {
  font-size: var(--tp-text-sm); font-weight: 500; text-decoration: none;
  padding: var(--tp-space-2) 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--tp-gray); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--tp-dark); }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: 1px solid var(--tp-border-soft);
  border-radius: var(--tp-radius-md); cursor: pointer; color: var(--tp-dark);
}
@media (min-width: 900px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
}
.mobile-nav { display: none; border-top: 1px solid var(--tp-border-soft); background: var(--tp-white); }
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block; padding: var(--tp-space-4) var(--tp-space-5);
  font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--tp-border-soft);
}
.mobile-nav a[aria-current="page"] { background: var(--tp-bg-soft); }

/* ---- Botões (cap. 09.1) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--tp-font-sans); font-size: var(--tp-text-base);
  font-weight: 500; text-decoration: none; cursor: pointer;
  border-radius: var(--tp-radius-md); padding: var(--tp-space-3) var(--tp-space-6);
  min-height: 44px; border: 1px solid transparent;
  transition: background-color var(--tp-duration-fast) var(--tp-ease-standard),
              box-shadow var(--tp-duration-fast) var(--tp-ease-standard);
}
.btn--primary { background: var(--tp-dark); color: var(--tp-white); }
.btn--primary:hover { background: var(--tp-dark-hover); color: var(--tp-white); box-shadow: var(--tp-shadow-soft); }
.btn--secondary { background: transparent; color: var(--tp-dark); border-color: var(--tp-dark); }
.btn--secondary:hover { background: var(--tp-bg-soft); }
.section--inverse .btn--primary { background: var(--tp-white); color: var(--tp-dark); }
.section--inverse .btn--primary:hover { background: var(--tp-light); }
.section--inverse .btn--secondary { color: var(--tp-white); border-color: var(--tp-gray); }
.section--inverse .btn--secondary:hover { background: rgba(255,255,255,.06); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--tp-space-4); margin-top: var(--tp-space-10); }

/* ---- Hero (cap. 09.8) ---- */
.hero { position: relative; overflow: hidden; }
.hero--topo::after {
  content: ""; position: absolute; right: -8%; bottom: -12%;
  width: 620px; height: 620px; pointer-events: none;
  background: url("../assets/graphism/topo-contour-01.svg") no-repeat center / contain;
  opacity: .55;
}
.hero > .container { position: relative; z-index: 1; }
.hero--topo .text-col { max-width: 780px; }

/* ---- Cards (cap. 09.4) ---- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: var(--tp-space-6); margin-top: var(--tp-space-12); }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--tp-white); border: 1px solid var(--tp-border-soft);
  border-radius: var(--tp-radius-md); padding: var(--tp-space-8);
}
.card__icon { width: 32px; height: 32px; stroke-width: 1.5; margin-bottom: var(--tp-space-5); color: var(--tp-dark); }
.card h3 { margin-bottom: var(--tp-space-3); }
.card p { font-size: var(--tp-text-sm); line-height: 22px; color: var(--tp-text-secondary); }

/* ---- Badges de status (cap. 09.10) ---- */
.badge {
  display: inline-block; font-size: var(--tp-text-xs); font-weight: 500;
  letter-spacing: var(--tp-tracking-caps); text-transform: uppercase;
  border-radius: var(--tp-radius-sm); padding: var(--tp-space-1) var(--tp-space-3);
  background: var(--tp-bg-soft); color: var(--tp-dark);
}
.badge--warm { background: var(--tp-bg-warm); }

/* ---- Processo / linha de cota (cap. 09.9) ---- */
.steps { counter-reset: step; list-style: none; margin-top: var(--tp-space-12); display: grid; gap: var(--tp-space-10); }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(5, 1fr); gap: var(--tp-space-6); } }
.step { position: relative; padding-top: var(--tp-space-6); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: var(--tp-text-sm); font-weight: 600;
  letter-spacing: var(--tp-tracking-caps); color: var(--tp-text-secondary);
  margin-bottom: var(--tp-space-3);
}
.step::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--tp-border-default);
}
.step h3 { font-size: var(--tp-text-base); line-height: 24px; margin-bottom: var(--tp-space-2); }
.step p { font-size: var(--tp-text-sm); line-height: 22px; color: var(--tp-text-secondary); }

/* ---- Métricas (cap. 09.4) ---- */
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--tp-space-8); margin-top: var(--tp-space-12); }
@media (min-width: 1024px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric__value { font-size: var(--tp-text-2xl); line-height: var(--tp-leading-2xl); font-weight: 600; letter-spacing: var(--tp-tracking-display); }
.metric__label { font-size: var(--tp-text-xs); line-height: var(--tp-leading-xs); font-weight: 500; letter-spacing: var(--tp-tracking-caps); text-transform: uppercase; color: var(--tp-text-secondary); margin-top: var(--tp-space-2); }
.section--inverse .metric__label { color: var(--tp-text-muted-on-inverse); }

/* ---- Listas institucionais ---- */
.check-list { list-style: none; display: grid; gap: var(--tp-space-4); margin-top: var(--tp-space-8); }
.check-list li { padding-left: var(--tp-space-8); position: relative; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 8px;
  border-left: 1.5px solid var(--tp-dark); border-bottom: 1.5px solid var(--tp-dark);
  transform: rotate(-45deg);
}

/* ---- Tabela técnica (cap. 09.6) ---- */
.tech-table { width: 100%; border-collapse: collapse; margin-top: var(--tp-space-8); font-size: var(--tp-text-sm); }
.tech-table th {
  text-align: left; font-size: var(--tp-text-xs); font-weight: 500;
  letter-spacing: var(--tp-tracking-caps); text-transform: uppercase;
  color: var(--tp-text-secondary); padding: var(--tp-space-3) var(--tp-space-4);
  border-bottom: 1px solid var(--tp-border-default);
}
.tech-table td { padding: var(--tp-space-3) var(--tp-space-4); border-bottom: 1px solid var(--tp-border-soft); }
.tech-table tr:nth-child(even) td { background: rgba(229,239,218,.4); }

/* ---- Citação (cap. 09.7) ---- */
.quote { font-family: var(--tp-font-serif); font-size: var(--tp-text-xl); line-height: var(--tp-leading-xl); }
@media (min-width: 768px) { .quote { font-size: var(--tp-text-2xl); line-height: var(--tp-leading-2xl); } }

/* ---- Footer (cap. 09.3) ---- */
.site-footer { background: var(--tp-dark); color: var(--tp-white); padding: var(--tp-space-16) 0 var(--tp-space-8); }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--tp-space-10); }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer__logo img { height: 28px; width: auto; }
.site-footer h4 { font-size: var(--tp-text-xs); font-weight: 500; letter-spacing: var(--tp-tracking-caps); text-transform: uppercase; color: var(--tp-gray); margin-bottom: var(--tp-space-4); }
.site-footer ul { list-style: none; display: grid; gap: var(--tp-space-3); }
.site-footer a { color: var(--tp-white); text-decoration: none; font-size: var(--tp-text-sm); }
.site-footer a:hover { text-decoration: underline; }
.site-footer__tagline { font-family: var(--tp-font-serif); font-size: var(--tp-text-lg); line-height: var(--tp-leading-lg); color: var(--tp-light-artwork); margin-top: var(--tp-space-5); max-width: 340px; }
.site-footer__legal {
  margin-top: var(--tp-space-12); padding-top: var(--tp-space-6);
  border-top: 1px solid rgba(193,198,200,.25);
  font-size: var(--tp-text-xs); line-height: var(--tp-leading-xs); color: var(--tp-gray);
}

/* ---- Motion (cap. 12): reveal uma vez, ≤24px — só com JS ativo ---- */
.has-js .reveal { opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--tp-ease-standard), transform .6s var(--tp-ease-standard); }
.has-js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
