/* ============================================
   ADAPTA ENGENHARIAS — Tokens & base
   Design: institucional - branco, azul, amarelo (acento)
   ============================================ */

:root {
  /* --- Color --- */
  --navy:        #0D1B3D;        /* azul institucional */
  --navy-soft:   #1A2C58;
  --navy-line:   #233767;
  --navy-deep:   #081229;
  --yellow:      #F5B922;
  --yellow-deep: #C78F0E;
  --white:       #FFFFFF;
  --bg:          #FFFFFF;        /* fundo principal */
  --bg-soft:     #F5F7FA;        /* fundo alternado discreto */
  --bg-line:     #ECEFF5;
  --ink:         #0D1B3D;
  --ink-soft:    #3B4664;
  --ink-mute:    #6A7794;
  --rule:        rgba(13, 27, 61, 0.10);
  --rule-soft:   rgba(13, 27, 61, 0.05);
  --grid-line:   rgba(0, 0, 0, 0.04);   /* neutro puro pra evitar tom creme em monitores */

  /* --- Typography (IBM Plex family — institucional, tecnico) --- */
  --font-display: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  --font-body:    'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'Courier New', monospace;

  /* --- Spacing & layout --- */
  --section-py: clamp(5rem, 9vw, 8rem);
  --container-max: 1240px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);

  /* --- Radius / shadow --- */
  --r-xs: 3px;
  --r-sm: 5px;
  --r-md: 8px;
  --r-lg: 14px;
  --shadow-sm: 0 1px 0 var(--rule);
  --shadow-md: 0 10px 28px rgba(13, 27, 61, 0.08);
  --shadow-lg: 0 22px 50px rgba(13, 27, 61, 0.14);

  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html {
  background: #FFFFFF;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--yellow-deep); }

/* --- Type scale: IBM Plex Serif (display) institucional --- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
}
h4 {
  font-family: var(--font-body);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0 0 .5em;
}

h1 {
  font-size: clamp(2rem, 5.6vw, 4.75rem);
  letter-spacing: -0.025em;
  line-height: 1.04;
  font-weight: 600;
  word-break: break-word;
  hyphens: auto;
}
h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  word-break: break-word;
}
h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
  letter-spacing: -0.01em;
  font-weight: 600;
  line-height: 1.25;
}
h4 { font-size: 1.02rem; }

p { margin: 0 0 1em; }

strong { font-weight: 600; color: var(--navy); }
em { font-style: italic; }

/* --- Layout helpers --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  position: relative;
}
.section--white  { background: var(--white); }
.section--soft   { background: var(--bg-soft); }
.section--navy   { background: var(--navy); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }

.section__head {
  max-width: 880px;
  margin: 0 0 3.5rem;
}
.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section__lead {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  max-width: 62ch;
  line-height: 1.6;
}

/* --- Mono caption --- */
.mono {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: 0;
  color: var(--ink-mute);
  font-weight: 500;
}
.mono--y { color: var(--yellow-deep); }
.mono--paper { color: var(--white); opacity: .7; }
.mono--lg { font-size: .9rem; }

/* --- Eyebrow --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--yellow-deep);
}

.hl { color: var(--yellow-deep); }

/* --- Divider (substitui faixa hazard — mais sobrio) --- */
.divider {
  height: 1px;
  background: var(--rule);
  width: 100%;
  position: relative;
}
.divider::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 3px;
  background: var(--yellow);
}
.divider--y {
  height: 3px;
  background: var(--yellow);
}
.divider--y::before { display: none; }

/* (mantido como fallback caso algum elemento ainda referencie .hazard) */
.hazard { display: none; }

/* --- Section number --- */
.section__num {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  color: var(--yellow-deep);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.section__num::after {
  content: "";
  flex: 1;
  max-width: 96px;
  height: 1px;
  background: var(--rule);
}
.section--navy .section__num { color: var(--yellow); }
.section--navy .section__num::after { background: rgba(255, 255, 255, 0.15); }

/* --- Accessibility --- */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--yellow);
  color: var(--navy);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
