/* ============================================================
   SB7 Corretora de Seguros — Design System (site)
   Adaptado do "Manual de Marca v1.0"
   ============================================================ */

/* ---- Tokens de marca (única fonte da verdade de cor/medida) ---- */
:root {
  /* Cores primárias */
  --navy: #0B3550;        /* Navy SB7 — cor de identidade */
  --navy-deep: #071F2E;   /* Navy Deep — fundos escuros */
  --gold: #C6A15B;        /* Dourado — destaque premium (uso moderado) */

  /* Neutros */
  --ink: #171D22;         /* Texto forte */
  --gray: #8A9198;        /* Texto de apoio / legendas */
  --body: #4B565F;        /* Corpo de texto */
  --muted: #5B6670;       /* Corpo secundário */
  --paper: #F7F8F9;       /* Fundo claro */
  --cream: #ece8dd;       /* Canvas quente do manual */
  --line: rgba(11, 53, 80, .14); /* Bordas sutis */

  /* Layout */
  --sidebar-w: 268px;
  --content-max: 900px;
  --radius: 6px;

  /* Tipografia */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Reset enxuto ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

/* Rótulo "eyebrow" recorrente (número da seção) */
.eyebrow {
  font: 700 11px/1 var(--font);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

/* ============================================================
   MENU LATERAL ESQUERDO
   ============================================================ */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--navy-deep);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 34px 24px 24px;
  z-index: 20;
  overflow-y: auto;
}
.sidebar__brand { margin-bottom: 34px; }
.sidebar__brand img { width: 118px; height: auto; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, .72);
  font: 600 14px/1.2 var(--font);
  border-left: 2px solid transparent;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.nav a .num {
  font: 700 11px/1 var(--font);
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .38);
  min-width: 20px;
}
.nav a:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}
.nav a.is-active {
  background: rgba(198, 161, 91, .12);
  color: #fff;
  border-left-color: var(--gold);
}
.nav a.is-active .num { color: var(--gold); }

.sidebar__foot {
  margin-top: auto;
  padding-top: 28px;
  font: 500 10.5px/1.5 var(--font);
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .4);
}
.sidebar__foot strong { color: rgba(255, 255, 255, .7); font-weight: 600; }

/* ============================================================
   ÁREA DE CONTEÚDO
   ============================================================ */
.content { margin-left: var(--sidebar-w); }

.section {
  padding: 84px 64px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.section__inner { max-width: var(--content-max); margin: 0 auto; }
.section h2.title {
  font: 800 32px/1.2 var(--font);
  letter-spacing: -.01em;
  color: var(--navy);
  margin: 0 0 14px;
}
.lead {
  font: 400 15px/1.7 var(--font);
  color: var(--body);
  max-width: 68ch;
  margin: 0 0 40px;
}
.subhead {
  font: 700 16px/1.3 var(--font);
  color: var(--navy);
  margin: 40px 0 6px;
}
.subhead--tight { margin-top: 0; }

/* ---- HERO / CAPA ---- */
.hero {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  background: var(--navy-deep);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 40px;
  position: relative;
}
.hero img { width: 200px; margin-bottom: 40px; }
.hero__rule { width: 48px; height: 2px; background: var(--gold); margin: 0 auto 22px; }
.hero h1 {
  font: 800 clamp(34px, 5vw, 52px)/1.12 var(--font);
  letter-spacing: -.015em;
  margin: 0 0 18px;
}
.hero p.tagline {
  font: 400 16px/1.6 var(--font);
  color: rgba(255, 255, 255, .72);
  max-width: 44ch;
  margin: 0;
}
.hero__version {
  position: absolute;
  bottom: 40px;
  font: 500 11px/1 var(--font);
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .45);
}

/* ============================================================
   COMPONENTES REUTILIZÁVEIS
   ============================================================ */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Cartão genérico com borda sutil */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
}
.card h3 { font: 700 14px/1.3 var(--font); color: var(--navy); margin: 0 0 6px; }
.card h4 { font: 700 13px/1.3 var(--font); color: var(--navy); margin: 0 0 6px; }
.card p  { font: 400 13px/1.6 var(--font); color: var(--muted); margin: 0; }

/* Card numerado (missão / visão / valores) */
.stat .n { font: 800 24px/1 var(--font); color: var(--gold); margin: 0 0 10px; }

/* ---- Tabela "Diga / Evite" ---- */
.voice-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.voice-table th {
  text-align: left;
  padding: 0 0 12px;
  border-bottom: 2px solid var(--navy);
  color: var(--navy);
  font: 700 13px var(--font);
}
.voice-table td {
  padding: 14px 24px 14px 0;
  border-bottom: 1px solid rgba(11, 53, 80, .1);
  font: 400 13.5px/1.55 var(--font);
  vertical-align: top;
}
.voice-table td.say { color: var(--ink); }
.voice-table td.avoid { color: var(--gray); }
.voice-table tr:last-child td { border-bottom: none; }

/* ---- Logotipo ---- */
.logo-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  background: #fff;
}
.logo-box img { width: 180px; }
.logo-box .cap { font: 600 12px var(--font); color: var(--muted); }
.logo-box--dark { background: var(--navy-deep); }
.logo-box--dark .cap { color: rgba(255, 255, 255, .7); }

.logo-guard {
  border: 1px dashed rgba(11, 53, 80, .35);
  border-radius: var(--radius);
  padding: 40px;
  display: flex; align-items: center; justify-content: center;
}
.logo-guard img { width: 130px; }
.note { font: 400 12.5px/1.55 var(--font); color: var(--muted); margin: 12px 0 0; }

.minsize {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  display: flex; align-items: center; justify-content: center; gap: 28px;
}
.minsize img.a { width: 46px; }
.minsize img.b { width: 66px; }

/* Usos incorretos */
.misuse {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  overflow: hidden;
}
.misuse img { width: 96px; }
.misuse .cap { font: 500 11px var(--font); color: var(--gray); text-align: center; }
.misuse--noise { background: repeating-linear-gradient(45deg, #e9e4d8, #e9e4d8 6px, #ded7c6 6px, #ded7c6 12px); }
.misuse--noise .cap { color: #6b6455; }
.i-stretch { transform: scaleX(1.6); }
.i-recolor { filter: invert(1) sepia(1) saturate(6) hue-rotate(300deg); }
.i-rotate  { transform: rotate(18deg); }

/* ---- Cores ---- */
.swatch { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.swatch .chip { height: 120px; }
.swatch--sm .chip { height: 76px; }
.swatch .meta { padding: 14px 16px; }
.swatch--sm .meta { padding: 10px 12px; }
.swatch .name { font: 700 13px var(--font); color: var(--navy); margin: 0 0 4px; }
.swatch--sm .name { font-size: 11.5px; margin-bottom: 2px; }
.swatch .val { font: 500 11.5px/1.5 var(--font); color: var(--muted); margin: 0; }
.swatch--sm .val { font-size: 10.5px; color: var(--gray); }

.combos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.combo { border-radius: var(--radius); padding: 22px; font: 600 13px var(--font); }

/* ---- Tipografia ---- */
.type-row {
  display: flex;
  align-items: baseline;
  gap: 28px;
  border-bottom: 1px solid rgba(11, 53, 80, .1);
  padding: 18px 0;
}
.type-row:last-child { border-bottom: none; }
.type-row .label {
  font: 500 11px var(--font);
  color: var(--gray);
  min-width: 132px;
  flex: none;
}
.type-sample.d1 { font: 800 36px var(--font); color: var(--navy); }
.type-sample.h  { font: 700 25px var(--font); color: var(--navy); }
.type-sample.s  { font: 600 17px var(--font); color: var(--ink); }
.type-sample.b  { font: 400 14px/1.6 var(--font); color: var(--body); }
.type-sample.c  { font: 500 11px var(--font); letter-spacing: .06em; color: var(--gray); }

.weights { display: flex; flex-wrap: wrap; gap: 26px; align-items: baseline; margin-top: 8px; }
.weights span { font-size: 22px; color: var(--ink); }
.w4 { font-weight: 400; } .w5 { font-weight: 500; } .w6 { font-weight: 600; }
.w7 { font-weight: 700; } .w8 { font-weight: 800; }

/* ---- Aplicações ---- */
.biz-card {
  background: var(--navy-deep);
  border-radius: 8px;
  padding: 32px;
  aspect-ratio: 1.75 / 1;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #fff;
}
.biz-card img { width: 92px; }
.biz-card .nm { font: 700 13px var(--font); margin: 0 0 3px; }
.biz-card .rl { font: 400 11px var(--font); color: rgba(255, 255, 255, .65); margin: 0; }

.photo-ph {
  background: repeating-linear-gradient(135deg, #eef1f3, #eef1f3 8px, #e4e8eb 8px, #e4e8eb 16px);
  border-radius: 8px;
  aspect-ratio: 1.75 / 1;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.photo-ph img { width: 84px; position: absolute; top: 26px; left: 26px; }
.photo-ph .cap { font: 500 11px monospace; color: #6b7580; }

.partners { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.pill {
  border: 1px solid rgba(11, 53, 80, .2);
  border-radius: 20px;
  padding: 7px 15px;
  font: 600 12px var(--font);
  color: var(--navy);
}
.disclaimer { font: 400 11.5px/1.5 var(--font); color: var(--gray); margin: 14px 0 0; }

.page-foot {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
}
.page-foot img { width: 70px; }
.page-foot span { font: 500 11px var(--font); color: var(--gray); }

/* ============================================================
   RESPONSIVO — o menu lateral vira barra no topo
   ============================================================ */
@media (max-width: 1040px) {
  .section { padding: 64px 40px; }
}
@media (max-width: 860px) {
  :root { --sidebar-w: 0px; }
  .sidebar {
    position: sticky;
    inset: 0 0 auto 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    overflow-x: auto;
  }
  .sidebar__brand { margin: 0 8px 0 0; flex: none; }
  .sidebar__brand img { width: 74px; }
  .nav { flex-direction: row; gap: 2px; }
  .nav a { padding: 8px 12px; white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; }
  .nav a.is-active { border-left: none; border-bottom-color: var(--gold); }
  .nav a .num { display: none; }
  .sidebar__foot { display: none; }
  .content, .hero { margin-left: 0; }
  .hero { min-height: 78vh; }
  .section { scroll-margin-top: 72px; }
}
@media (max-width: 620px) {
  .section { padding: 52px 22px; }
  .grid--3, .grid--4, .grid--2, .combos { grid-template-columns: 1fr 1fr; }
  .type-row { flex-direction: column; gap: 8px; }
  .type-row .label { min-width: 0; }
}
@media (max-width: 420px) {
  .grid--3, .grid--4, .grid--2, .combos { grid-template-columns: 1fr; }
}
