/* =========================================================
   GLOBAL — LP Dr. Henrique
   Reset, cores, tipografia e utilitários do projeto
   Style guide: Figma → 🎨 (node 3:2937)
========================================================= */

:root {
  /* ---------- Cores | Style Guide ---------- */
  --brand-primary: #0e0e0e;
  --brand-secondary: #D3B96C;
  --brand-third: #E2E3DE;
  --brand-four: #E6E6E6;

  /* Variações da marca (usadas na hero e CTAs) */
  --cream: #FFF9E9;
  --gold-soft: #D9AF89;
  --brown-deep: #4D3A19;
  --ink-soft: #22252E;
  --ivory: #F0F2E5;
  --navy: #0e0e0e;

  /* Neutros */
  --white: #FFFFFF;
  --off-white: #F2F2F2;
  --gray-950: #E1E1E6;
  --gray-900: #C4C4CC;
  --gray-200: #121214;
  --black: #000000;

  /* ---------- Tipografia | Plus Jakarta Sans ---------- */
  --font-base: 'Plus Jakarta Sans', sans-serif;

  /* Escala fluida: mobile → desktop (40→64 | 24→48 | 20→32 | 18→26) */
  --text-h1: clamp(2.5rem, 2.25vw + 1.97rem, 4rem);
  --text-h2: clamp(1.5rem, 2.25vw + 0.97rem, 3rem);
  --text-h3: clamp(1.25rem, 1.13vw + 0.99rem, 2rem);
  --text-h4: clamp(1.125rem, 0.75vw + 0.95rem, 1.625rem);
  --text-body: 1rem;        /* Paragraph 16px / 160% */
  --text-span: 0.875rem;    /* Span 14px / 100% */
  --text-button: 1.125rem;  /* Button 18px / 100% */

  /* ---------- Layout ---------- */
  --container: 1280px;
  --container-wide: 1352px;

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

/* "clip" corta o overflow sem criar scroll container,
   o que manteria o position: sticky funcionando */
html,
body {
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-base);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--brand-third);
  background-color: var(--brand-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }

p {
  font-size: var(--text-body);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- Container ---------- */
.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

/* ---------- Destaque dourado em títulos ---------- */
.highlight {
  color: var(--gold-soft);
}

/* ---------- Badge pill das sections ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  background-color: rgba(217, 175, 137, 0.05);
  border: 1px solid rgba(217, 175, 137, 0.3);
  border-radius: 999px;
  color: var(--gold-soft);
  font-size: 0.75rem; /* 12px */
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.badge--dark {
  background-color: rgba(34, 37, 46, 0.05);
  border-color: rgba(34, 37, 46, 0.15);
  color: var(--ink-soft);
}

/* ---------- Brilho varrendo os CTAs no hover ---------- */
.btn-primary,
.btn-pill {
  position: relative;
  overflow: hidden;
}

.btn-primary::after,
.btn-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 25%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 75%
  );
  transform: translateX(-130%);
  pointer-events: none;
}

.btn-primary:hover::after,
.btn-pill:hover::after {
  transform: translateX(130%);
  transition: transform 0.8s ease;
}

/* ---------- Botão flutuante de WhatsApp ---------- */
.whats-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease-out);
}

.whats-float:hover {
  transform: scale(1.1);
}

.whats-float svg {
  width: 30px;
  height: 30px;
}

.whats-float::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #25D366;
  border-radius: 50%;
  opacity: 0.45;
  animation: whats-pulse 2.4s ease-out infinite;
}

@keyframes whats-pulse {
  0% {
    transform: scale(1);
    opacity: 0.45;
  }
  70%,
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ---------- Animações de entrada (js/main.js) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal="left"] {
  transform: translateX(-44px);
}

[data-reveal="right"] {
  transform: translateX(44px);
}

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

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .whats-float::before {
    animation: none;
  }

  .btn-primary::after,
  .btn-pill::after {
    display: none;
  }
}
