/* OZT Financeiro para Empresas — design system
   Cor oficial do manual de marca (MARCA/ManualMarcaOZT.pdf): navy #203F56.
   Azul-aço #377891 e azul-gelo #C9E8F4 vêm das aplicações em fundos coloridos
   (págs. 12 e 13). Contraste sobre o navy é feito com branco, como nas peças da marca. */

:root {
  --navy: #203F56;
  --navy-800: #16293a;
  --navy-050: #eef2f5;
  --gray: #6e6e6e;
  --gray-100: #f5f6f7;
  --gray-200: #e4e7e9;
  --white: #ffffff;
  --accent: #377891;
  --accent-dark: #2b6177;
  --ice: #c9e8f4;
  --ink: #22303c;
  --radius: 14px;
  --shadow: 0 12px 30px -14px rgba(32, 63, 86, 0.35);
  --container: 1180px;
  --font: "Poppins", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
h1, h2, h3, h4 { font-weight: 700; margin: 0 0 16px; color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; }
.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--gray { background: var(--gray-100); }
.center { text-align: center; }
.lede { font-size: 1.15rem; color: var(--gray); max-width: 640px; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--ice); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--ice); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-navy { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy-050); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.header .logo img { height: 30px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}
.nav a:hover { color: var(--accent); }
.nav a.btn-accent, .nav a.btn-accent:hover { color: var(--white); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
/* Grafismo do manual: losangos em contorno */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border: 1.5px solid rgba(201, 232, 244, 0.35);
  transform: rotate(45deg);
  pointer-events: none;
}
.hero::before { width: 340px; height: 340px; right: -120px; top: -140px; }
.hero::after { width: 220px; height: 220px; right: 140px; bottom: -150px; }
.hero .container { position: relative; z-index: 1; }
.eyebrow--light { color: var(--ice); }
.diamonds { display: inline-flex; gap: 7px; margin-bottom: 14px; }
.diamonds i { width: 9px; height: 9px; background: var(--ice); transform: rotate(45deg); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero p.lede { color: #cdd9e2; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 28px;
}
.hero-card ul { margin: 0; padding-left: 20px; color: #dbe4ea; }
.hero-card li { margin-bottom: 10px; }

/* Foto do hero */
.hero-photo { margin: 0; position: relative; justify-self: end; max-width: 420px; }
.hero-photo img { border-radius: var(--radius); width: 100%; height: auto; }
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--ice);
  border-radius: var(--radius);
  z-index: -1;
}
.hero-photo { z-index: 0; }
.hero-photo figcaption {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(22, 41, 58, 0.85);
  color: var(--white);
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 6px;
}

.hero-photo figcaption a { color: var(--white); }
.hero-photo figcaption a:hover { text-decoration: underline; }

/* Faixa de números */
.stats { background: var(--navy-800); color: var(--white); padding: 28px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats-grid div { display: flex; flex-direction: column; border-left: 2px solid var(--accent); padding-left: 16px; }
.stats-grid strong { font-size: 1.8rem; line-height: 1.1; }
.stats-grid span { color: #b9c6d0; font-size: 0.9rem; }

/* Equipe */
.team-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 24px 20px;
  margin-top: 40px;
}
.team-grid figure { margin: 0; text-align: center; }
.team-grid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.team-grid figcaption { margin-top: 10px; font-weight: 600; color: var(--navy); }

/* Onde estamos */
.place-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-bottom: 32px; }
.place-head p { margin-bottom: 0; }
.place-side { text-align: right; }
.place-side .place-address { margin-bottom: 14px; }
.place-photo { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.place-address { color: var(--gray); font-size: 0.95rem; }
.cta-alt { margin: 20px 0 0; font-size: 0.95rem; }
.cta-alt a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* Grids de cartão */
.grid {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--gray); margin-bottom: 0; font-size: 0.95rem; }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--navy-050);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

/* Segmentos */
.segment-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.15s ease;
  display: block;
}
.segment-card:hover { transform: translateY(-4px); }
.segment-card .eyebrow { color: var(--ice); }
.segment-card p { color: #cdd9e2; margin-bottom: 14px; }
.segment-card .link-arrow { color: var(--white); font-weight: 600; }

/* Ícones de segmento (traço da Tabler Icons, MIT) */
.seg-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(201, 232, 244, 0.14); color: var(--ice);
  margin-bottom: 18px;
}
.seg-icon svg { width: 26px; height: 26px; }
.seg-icon--lg { width: 64px; height: 64px; background: var(--navy); color: var(--ice); }
.seg-icon--lg svg { width: 34px; height: 34px; }

/* Especialista e equipe nas páginas de segmento */
.specialist { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; max-width: 900px; }
.specialist--2 { grid-template-columns: 420px 1fr; max-width: 1040px; }
.specialist-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 16px; }
.specialist-photos figure { margin: 0; text-align: center; }
.specialist-photos img { width: 100%; height: auto; border-radius: var(--radius); }
.specialist-photos figcaption { margin-top: 8px; font-weight: 600; color: var(--navy); }
.face-stack { display: flex; justify-content: center; flex-wrap: wrap; margin: 28px auto; max-width: 900px; padding: 0 8px; }
.face-stack img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--white); margin: 0 -8px 8px; object-fit: cover; }

/* Como funciona */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.step-number {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* CTA final */
.cta-final {
  background: var(--ice);
  color: var(--navy);
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  left: -150px; bottom: -150px;
  border: 1.5px solid rgba(32, 63, 86, 0.25);
  transform: rotate(45deg);
}
.cta-final > * { position: relative; }
.cta-final h2 { color: var(--navy); }
.cta-final p { color: var(--ink); }
.cta-final .btn-light { background: var(--navy); color: var(--white); }
.cta-final .btn-light:hover { background: var(--navy-800); }

/* Footer */
.footer {
  background: var(--navy-800);
  color: #b9c6d0;
  padding: 56px 0 28px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer a:hover { color: var(--white); }
.footer .logo img { height: 26px; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

/* Página interna (segmento / legal) */
.page-hero {
  background: var(--navy-050);
  padding: 56px 0;
}
.breadcrumb { font-size: 0.85rem; color: var(--gray); margin-bottom: 14px; }
.breadcrumb a { color: var(--navy); font-weight: 600; }
.legal h3 { margin-top: 32px; }
.legal p, .legal li { color: var(--ink); }
.legal { max-width: 780px; margin: 0 auto; }

/* Responsivo */
@media (max-width: 960px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; max-width: 360px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(4, 1fr); }
  .place-head { grid-template-columns: 1fr; gap: 20px; }
  .place-side { text-align: left; }
  .specialist { grid-template-columns: 1fr; gap: 24px; }
  .specialist-photos { max-width: 440px; }
  .face-stack img { width: 48px; height: 48px; margin: 0 -6px 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 76px 0 0 0; background: var(--white); flex-direction: column; padding: 24px; gap: 8px; transform: translateX(100%); transition: transform 0.2s ease; }
  .nav.is-open { transform: translateX(0); }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--gray-200); width: 100%; }
  .nav-toggle { display: flex; }
  .grid-5, .grid-4 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-final { padding: 36px 24px; }
  .section { padding: 48px 0; }
}
