/* TFL TECH — site institucional. Cores, tipografia e espaçamentos ficam nas
   variáveis abaixo; textos ficam todos em index.html. */
:root {
  --bg: #f7f9f9;
  --surface: #ffffff;
  --alt: #eef4f3;
  --ink: #1d262b;       /* grafite */
  --muted: #47545b;
  --line: #d6dfdd;
  --accent: #0b6466;    /* verde-petróleo */
  --accent-dark: #084b4d;
  --on-accent: #ffffff;
  --focus: #0b6466;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(32px, 6vw, 56px); font-weight: 700; margin-bottom: 20px; max-width: 20ch; }
h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; margin-bottom: 28px; }
h3 { font-size: 20px; font-weight: 650; margin-bottom: 8px; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }

/* Âncoras: o título da seção não fica sob o cabeçalho fixo. */
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.skip-link {
  position: fixed; left: 16px; top: -100px;
  background: var(--surface); color: var(--ink);
  padding: 8px 14px; border: 2px solid var(--accent); border-radius: 8px; z-index: 20;
}
.skip-link:focus { top: 12px; }

/* Cabeçalho */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 249, 249, 0.96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 12px 28px;
  min-height: var(--header-h); flex-wrap: wrap; padding: 10px 0;
}
.signature {
  font-weight: 800; font-size: 22px; letter-spacing: 0.08em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.signature span { color: var(--accent); }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 4px 22px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 6px 2px; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Botões */
.button {
  display: inline-block; background: var(--accent); color: var(--on-accent);
  padding: 13px 24px; border-radius: 10px; border: 2px solid var(--accent);
  font-weight: 650; text-decoration: none; text-align: center;
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--on-accent); }
.button-small { padding: 8px 16px; font-size: 15px; }
.button-ghost { background: transparent; color: var(--accent); }
.button-ghost:hover { background: var(--alt); color: var(--accent-dark); }

/* Abertura */
.hero { padding: 88px 0 80px; }
.eyebrow {
  color: var(--accent); font-weight: 650; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px;
}
.lead { font-size: 19px; color: var(--muted); max-width: 62ch; margin-bottom: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Seções */
.section { padding: 80px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--alt); }

.services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px;
}
.service p { color: var(--muted); margin-bottom: 0; }
.icon {
  width: 32px; height: 32px; margin-bottom: 14px;
  fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.icon-inline { width: 22px; height: 22px; margin: 0; vertical-align: -5px; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; align-items: start; }
.about h2 { grid-column: 1 / -1; }
.about p { color: var(--muted); max-width: 60ch; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.person p:last-child { margin-bottom: 0; }

.contact h2 { max-width: 22ch; margin-bottom: 12px; }
.location { margin: 28px 0 0; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }

/* Rodapé */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding: 32px 0 40px; color: var(--muted); font-size: 15px; }
.footer p { margin: 0 0 4px; }
.nowrap { white-space: nowrap; }
.footer-name { color: var(--ink); font-weight: 750; letter-spacing: 0.08em; margin-bottom: 8px !important; }

/* Tablet */
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
}

/* Celular: cabeçalho em duas linhas e sem fixar, para não ocupar a tela. */
@media (max-width: 600px) {
  :root { --header-h: 0px; }
  body { font-size: 16px; }
  .header { position: static; }
  .header-inner { justify-content: space-between; }
  .nav { order: 3; width: 100%; margin-left: 0; }
  .nav ul { gap: 4px 20px; }
  .hero { padding: 56px 0 56px; }
  .section { padding: 56px 0; }
  .lead { font-size: 18px; }
  .actions .button { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
