/* ==========================================================================
   base.css - tokens, reset, tipografia, botões e utilitários
   Limpeza Energética | Azul Ancestral
   ========================================================================== */

:root {
  --navy: #021a3b;
  --navy-800: #062549;
  --navy-700: #0a3060;
  --navy-600: #123f7d;
  --gold: #dbad47;
  --gold-600: #c69a34;
  --gold-100: #f7ecd2;
  --light: #f5f5f9;
  --white: #ffffff;
  --ink: #14213a;
  --ink-soft: #46536d;
  --line: rgba(2, 26, 59, 0.12);
  --line-strong: rgba(2, 26, 59, 0.22);

  --font-head: "EB Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Lato", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(0.83rem, 0.79rem + 0.18vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.11rem + 0.42vw, 1.42rem);
  --step-2: clamp(1.5rem, 1.34rem + 0.75vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.62rem + 1.3vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.9rem + 2.3vw, 3.75rem);
  --step-5: clamp(2.9rem, 2.05rem + 3.9vw, 5.2rem);

  --sp-1: 0.4rem;
  --sp-2: 0.8rem;
  --sp-3: 1.2rem;
  --sp-4: 1.8rem;
  --sp-5: 2.6rem;
  --sp-6: 3.6rem;
  --sp-7: 5.2rem;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(2, 26, 59, 0.07);
  --shadow-md: 0 14px 40px rgba(2, 26, 59, 0.12);
  --shadow-lg: 0 28px 70px rgba(2, 26, 59, 0.22);

  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);

  --header-h: 116px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.35s;
}

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

* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button { cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }

p { text-wrap: pretty; }

a {
  color: var(--navy-600);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover { color: var(--gold-600); }

ul, ol { list-style: none; padding: 0; }

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

::selection { background: var(--gold); color: var(--navy); }

/* -------------------------------------------------- utilitários */
.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.narrow { width: min(100% - var(--gutter) * 2, 860px); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 999;
  background: var(--gold);
  color: var(--navy);
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  transition: top 0.2s var(--ease);
}

.skip-link:focus { top: 0; color: var(--navy); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--sp-2);
}

.eyebrow--gold { color: var(--gold-600); }

.lead { font-size: var(--step-1); color: var(--ink-soft); }

.muted { color: var(--ink-soft); font-size: var(--step--1); }

.hint {
  display: block;
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

.req { color: #b3261e; font-weight: 700; }

.highlight {
  font-family: var(--font-head);
  font-size: var(--step-2);
  font-style: italic;
  color: var(--navy);
  border-left: 4px solid var(--gold);
  padding: 0.4rem 0 0.4rem 1.2rem;
  margin-top: var(--sp-3);
}

/* -------------------------------------------------- botões */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  --btn-bd: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78em 1.7em;
  border: 2px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--btn-fg);
}

.btn:active { transform: translateY(0); }

.btn--gold {
  --btn-bg: var(--gold);
  --btn-fg: var(--navy);
  --btn-bd: var(--gold);
}

.btn--gold:hover { --btn-bg: var(--gold-600); --btn-bd: var(--gold-600); }

.btn--navy { --btn-bg: var(--navy); --btn-fg: var(--white); --btn-bd: var(--navy); }
.btn--navy:hover { --btn-bg: var(--navy-700); --btn-bd: var(--navy-700); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-bd: rgba(255, 255, 255, 0.55);
}

.btn--outline:hover { --btn-bd: var(--gold); --btn-fg: var(--gold); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-bd: transparent;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.btn--ghost:hover { --btn-fg: var(--gold); box-shadow: none; }

.btn--lg { padding: 1em 2.2em; font-size: var(--step-0); }

/* -------------------------------------------------- ícones inline */
.ico {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
  flex: none;
}

/* -------------------------------------------------- reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
