/* ==========================================================================
   WG Engenharia — base compartilhada por todas as LPs
   Cores, tipografia, layout e botões.
   ========================================================================== */

:root {
  /* Marca */
  --wg-primary: #0067a1;
  --wg-primary-600: #00568a;
  --wg-primary-700: #004670;
  --wg-primary-300: #4d9ac4;
  --wg-primary-100: #e3f0f7;
  --wg-primary-50: #f2f8fb;
  --wg-dark: #100b11;
  --wg-dark-800: #1a151c;
  --wg-dark-700: #241f27;
  --wg-white: #ffffff;

  /* Neutros */
  --text: #100b11;
  --text-muted: #565160;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #b9b4bf;
  --border: #e4e2e8;
  --border-dark: rgba(255, 255, 255, 0.1);
  --surface: #ffffff;
  --surface-alt: #f6f7f9;

  /* Estados */
  --success: #138a4f;
  --error: #c62828;
  --whatsapp: #25d366;

  /* Tipografia */
  --font-head: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: 20px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --header-h: 72px;
  --shadow-sm: 0 1px 2px rgba(16, 11, 17, 0.06), 0 1px 3px rgba(16, 11, 17, 0.08);
  --shadow: 0 10px 30px -10px rgba(16, 11, 17, 0.25);
  --shadow-lg: 0 24px 60px -20px rgba(16, 11, 17, 0.45);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

html {
  overflow-x: clip;
}

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

a {
  color: var(--wg-primary);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 700;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

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

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section--alt {
  background: var(--surface-alt);
}

.section--dark {
  background: var(--wg-dark);
  color: var(--text-on-dark);
}

.section--dark p {
  color: var(--text-on-dark-muted);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.section--dark .section-head p {
  color: var(--text-on-dark-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wg-primary);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

.section--dark .eyebrow {
  color: var(--wg-primary-300);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn--primary {
  background: var(--wg-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--wg-primary-600);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(0, 103, 161, 0.7);
}

.btn--outline {
  border-color: currentColor;
  color: var(--wg-primary);
  background: transparent;
}

.btn--outline:hover {
  background: var(--wg-primary);
  border-color: var(--wg-primary);
  color: #fff;
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.btn--ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  min-height: 56px;
  font-size: 1.1rem;
  padding-inline: 28px;
}

@media (max-width: 560px) {
  .btn {
    white-space: normal;
    text-align: center;
  }
}

:focus-visible {
  outline: 3px solid var(--wg-primary-300);
  outline-offset: 2px;
}

.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;
}

/* Animação de entrada (ativada por JS) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}