/* ==========================================================================
   GRUPO LUCMA — Design System
   Tokens, reset, base e utilitários. Mobile-first.
   Paleta extraída do logo vetorizado. Motivo gráfico: camadas ascendentes
   (eco do símbolo da montanha em níveis).
   ========================================================================== */

:root {
  /* --- Cores institucionais (do logo) --- */
  --c-blue: #005483;            /* Azul Lucma — assinatura da marca */
  --c-blue-deep: #003e63;       /* fundo mais profundo / gradiente */
  --c-blue-darker: #002c47;     /* base extrema */
  --c-blue-mid: #206996;        /* camada média do símbolo / hover */
  --c-steel: #32769d;           /* azul aço — acento de CTA e destaques */
  --c-mist: #a9c4d6;            /* azul névoa — linhas, acentos suaves */
  --c-white: #ffffff;
  --c-offwhite: #f4f7fa;        /* seções alternadas */
  --c-gray-text: #2b3a45;       /* parágrafos (grafite) */
  --c-gray-soft: #5e7180;       /* textos de apoio leves */
  --c-border: #e3ecf2;

  /* --- Gradientes de marca (camadas de azul) --- */
  --grad-hero: linear-gradient(150deg, var(--c-blue-darker) 0%, var(--c-blue) 60%, var(--c-blue-mid) 130%);
  --grad-brand: linear-gradient(135deg, var(--c-blue) 0%, var(--c-steel) 100%);
  --grad-steel: linear-gradient(135deg, var(--c-steel) 0%, var(--c-blue-mid) 100%);

  /* --- Tipografia --- */
  --font-title: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Escala fluida (clamp = mobile→desktop sem media query) */
  --fs-hero: clamp(2.3rem, 6vw, 4.1rem);
  --fs-h1: clamp(2rem, 5vw, 3.25rem);
  --fs-h2: clamp(1.65rem, 4vw, 2.55rem);
  --fs-h3: clamp(1.25rem, 2.5vw, 1.6rem);
  --fs-body: clamp(1rem, 1.2vw, 1.0625rem);
  --fs-small: 0.875rem;

  /* --- Espaçamento --- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(3.5rem, 8vw, 7rem);

  /* --- Layout --- */
  --container: 1200px;
  --container-narrow: 820px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* --- Bordas e raios --- */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* --- Sombras --- */
  --shadow-sm: 0 2px 8px rgba(0, 62, 99, 0.06);
  --shadow: 0 8px 30px rgba(0, 62, 99, 0.10);
  --shadow-lg: 0 20px 50px rgba(0, 62, 99, 0.16);

  /* --- Header --- */
  --header-h: 78px;

  /* --- Transições --- */
  --t-fast: 0.18s ease;
  --t: 0.28s ease;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Z-index --- */
  --z-header: 1000;
  --z-drawer: 1100;
  --z-float: 900;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-gray-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--c-blue);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
}

:focus-visible { outline: 3px solid var(--c-steel); outline-offset: 2px; border-radius: 4px; }

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

/* ==========================================================================
   Layout utilitários
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--dark { background: var(--grad-hero); color: rgba(255,255,255,0.86); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--c-white); }
.section--alt { background: var(--c-offwhite); }

/* Título de seção padrão */
.section-head { max-width: 660px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-steel);
  margin-bottom: var(--sp-3);
}
.section--dark .eyebrow { color: var(--c-mist); }
/* "pico" da montanha como bullet — assinatura da marca */
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid var(--c-steel);
  vertical-align: middle;
  margin-right: 10px;
}
.section--dark .eyebrow::before { border-bottom-color: var(--c-mist); }

.section-title { font-size: var(--fs-h2); margin-bottom: var(--sp-4); }
.section-title .hl { color: var(--c-steel); }
.section--dark .section-title .hl { color: var(--c-mist); }
.section-lead { font-size: var(--fs-body); color: var(--c-gray-text); }
.section--dark .section-lead { color: rgba(255,255,255,0.82); }

/* Grid helper */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
@media (min-width: 560px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px)  { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Divisor diagonal "camada ascendente" entre seções */
.layer-divide { position: relative; }
.layer-divide::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(40px, 6vw, 90px);
  background: inherit;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* Visualmente escondido mas acessível */
.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;
}

/* Reveal on scroll (controlado por main.js) */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
