/* ==========================================================================
   Gouveia Consultoria — base compartilhada (tokens, tipografia, componentes)
   Usada pelo site institucional e pela Área do Cliente.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Identidade: azul profundo + dourado */
  --navy-900: #0a1f2e;
  --navy-800: #0d2739;
  --navy: #102c41;
  --navy-600: #1b4560;
  --navy-300: #7d94a3;
  --gold: #b18a50;
  --gold-700: #8a6a33;
  --gold-ink: #7a5b25;      /* texto dourado com contraste AA sobre branco */
  --gold-100: #f0e6d6;
  --cream: #f7f5ef;
  --sand: #efeae1;
  --ink: #152c3c;
  --muted: #55666f;
  --line: #e0e2df;
  --white: #ffffff;
  --danger: #9b3a31;
  --success: #23603d;
  --warning: #7a5312;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.14vw, 1.02rem);
  --step-1: clamp(1.1rem, 1.04rem + 0.3vw, 1.25rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.7vw, 1.7rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.4vw, 2.5rem);
  --step-4: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);
  --step-5: clamp(2.7rem, 1.7rem + 4.2vw, 4.6rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;

  --wrap: 1240px;
  --gutter: clamp(1.15rem, 4.2vw, 3.5rem);
  --radius: 3px;
  --radius-lg: 6px;
  --shadow-sm: 0 1px 2px rgba(10, 31, 46, 0.06), 0 4px 16px rgba(10, 31, 46, 0.05);
  --shadow-lg: 0 24px 70px rgba(10, 31, 46, 0.18);
  --header-h: 78px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.7;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
h4 { font-size: var(--step-1); letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}
::selection { background: var(--gold-100); color: var(--navy-900); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius);
  font-size: var(--step--1);
  transition: top 0.15s ease;
}
.skip-link:focus { top: var(--space-4); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Tipografia auxiliar ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 var(--space-4);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}
.on-dark .eyebrow,
.eyebrow.on-dark { color: #d8bd93; }

.lead {
  font-size: var(--step-1);
  line-height: 1.65;
  color: var(--muted);
  max-width: 34em;
}
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

.section {
  padding-block: clamp(3.6rem, 8vw, var(--space-9));
}
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--navy); color: #e9eef1; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .lead, .section--dark .muted { color: #b9c7d0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.2rem, 5vw, 3.6rem);
}
.section-head h2 { font-size: var(--step-3); margin-bottom: 0; }
.section-head p { margin-bottom: 0; max-width: 34rem; color: var(--muted); }

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  --btn-bd: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--navy-600); border-color: var(--navy-600); }
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }
.btn--gold { --btn-bg: var(--gold); --btn-bd: var(--gold); --btn-fg: #fff; }
.btn--gold:hover { background: var(--gold-700); border-color: var(--gold-700); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: #c8cfd2; }
.btn--ghost:hover { background: var(--navy); --btn-fg: #fff; border-color: var(--navy); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy); --btn-bd: #fff; }
.btn--light:hover { background: var(--gold-100); border-color: var(--gold-100); }
.btn--sm { min-height: 40px; padding: 0.5rem 0.95rem; font-size: 0.8rem; }
.btn--block { width: 100%; }
.btn__arrow { transition: transform 0.2s ease; }
.btn:hover .btn__arrow { transform: translate(2px, -2px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  background: none;
  border-radius: 0;
  border-top: 0; border-left: 0; border-right: 0;
}
.link-arrow:hover { color: var(--gold-ink); }
.link-arrow svg { transition: transform 0.2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Cartões e superfícies ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 2rem);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Ícones herdam a cor do texto por padrão */
.icon { width: 1.15em; height: 1.15em; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* ---------- Acessibilidade: movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
}
