/* ==========================================================================
   Holanda Proteção e Controle — base.css
   Tokens, reset, tipografia e utilitários.
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */
:root {
  /* Paleta da marca (mesmos HEX do site original) */
  --c-orange: #F2782F;
  --c-orange-deep: #DA5D31;
  --c-orange-ink: #B4471F;      /* laranja escurecido para texto sobre claro (AA) */
  --c-ink: #040404;
  --c-gray: #868686;
  --c-light: #F1F1F1;
  --c-line: #DCDCDE;
  --c-navy: #1A3240;
  --c-white: #FFFFFF;

  /* Superfícies escuras derivadas do preto da marca */
  --c-ink-2: #0B0C0E;
  --c-ink-3: #131518;
  --c-ink-4: #1C1F23;
  --c-ink-line: rgba(255, 255, 255, .10);
  --c-ink-line-strong: rgba(255, 255, 255, .18);

  /* Texto */
  --t-on-dark: #FFFFFF;
  --t-on-dark-soft: #A7A8AD;     /* cinza da marca clareado: 7.9:1 sobre #040404 */
  --t-on-light: #040404;
  --t-on-light-soft: #55565B;    /* cinza da marca escurecido: 7.1:1 sobre #FFF */

  /* Tipografia */
  --f-display: "Titillium Web", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: clamp(1.0625rem, .98rem + .3vw, 1.1875rem);
  --fs-lg: clamp(1.1875rem, 1.05rem + .55vw, 1.4375rem);
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --fs-2xl: clamp(2rem, 1.45rem + 2.3vw, 3.375rem);
  --fs-3xl: clamp(2.5rem, 1.6rem + 3.8vw, 5rem);
  --fs-hero: clamp(2.75rem, 1.5rem + 5.2vw, 6.25rem);

  /* Espaço */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-y: clamp(5rem, 3.5rem + 6vw, 10rem);
  --gutter: clamp(1rem, .4rem + 2.6vw, 3rem);
  --container: 1360px;

  /* Forma */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 36px;
  --r-pill: 999px;
  --chamfer: 28px;

  /* Sombra */
  --shadow-1: 0 1px 2px rgba(4, 4, 4, .06), 0 4px 16px rgba(4, 4, 4, .06);
  --shadow-2: 0 2px 6px rgba(4, 4, 4, .08), 0 24px 48px -12px rgba(4, 4, 4, .18);
  --shadow-dark: 0 30px 60px -20px rgba(0, 0, 0, .65);

  /* Movimento */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --d-fast: .2s;
  --d-base: .45s;
  --d-slow: .9s;

  --header-h: 84px;
}

/* -------------------------------------------------------------------------
   2. Reset
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--t-on-light);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
svg { flex-shrink: 0; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
address { font-style: normal; }
::selection { background: var(--c-orange); color: var(--c-ink); }

/* -------------------------------------------------------------------------
   3. Tipografia
   ------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6, .display {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.t-hero { font-size: var(--fs-hero); font-weight: 600; line-height: .98; letter-spacing: -.035em; }
.t-3xl  { font-size: var(--fs-3xl); }
.t-2xl  { font-size: var(--fs-2xl); }
.t-xl   { font-size: var(--fs-xl); line-height: 1.15; }
.t-lg   { font-size: var(--fs-lg); line-height: 1.45; }
.t-md   { font-size: var(--fs-md); line-height: 1.6; }
.t-sm   { font-size: var(--fs-sm); }

.lead {
  font-size: var(--fs-lg);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -.01em;
}

.muted { color: var(--t-on-light-soft); }
.on-dark .muted, .muted--dark { color: var(--t-on-dark-soft); }

.accent { color: var(--c-orange-ink); }
.on-dark .accent { color: var(--c-orange); }

/* Eyebrow: rótulo de seção com marcador elétrico */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--f-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-orange-ink);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  box-shadow: 34px 0 0 -0px transparent;
  flex: none;
}
.on-dark .eyebrow { color: var(--c-orange); }
.eyebrow--dot::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-orange);
  box-shadow: 0 0 0 4px rgba(242, 120, 47, .2);
  animation: pulse-dot 2.4s var(--ease-in-out) infinite;
}

/* -------------------------------------------------------------------------
   4. Layout
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }

.on-dark {
  background: var(--c-ink);
  color: var(--t-on-dark);
}
.on-light { background: var(--c-light); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

/* Fundo de grade técnica (papel milimetrado) */
.blueprint {
  --grid-c: rgba(255, 255, 255, .045);
  background-image:
    linear-gradient(var(--grid-c) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-c) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
}
.blueprint--light { --grid-c: rgba(4, 4, 4, .05); }

/* -------------------------------------------------------------------------
   5. Utilitários
   ------------------------------------------------------------------------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 1rem; left: 1rem;
  z-index: 1000;
  padding: .75rem 1.25rem;
  border-radius: var(--r-pill);
  background: var(--c-orange);
  color: var(--c-ink);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform var(--d-fast) var(--ease-out);
}
.skip-link:focus { transform: none; }

:focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-light :focus-visible, .form-card :focus-visible { outline-color: var(--c-orange-ink); }

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 120, 47, .45); }
  60% { box-shadow: 0 0 0 8px rgba(242, 120, 47, 0); }
}
