/* ==========================================================================
   VORA — Base styles: reset, design tokens, global typography
   ========================================================================== */

:root {
  /* Brand palette (VORA — navy / blue) */
  --color-black: #000000;
  --color-navy: #000149;        /* deep navy */
  --color-blue: #0156ff;        /* vivid brand blue */
  --color-sky: #99daff;         /* light sky blue */
  --color-near-black: #000149;  /* dark surfaces / strong headings -> navy */
  --color-charcoal: #0a0d33;    /* deep navy for body on light cards */
  --color-gray-700: #4a4f6a;    /* navy-tinted secondary text */
  --color-gray-400: #9aa2c0;    /* muted */
  --color-beige: #eaf1ff;       /* soft mist (light-blue tint) section bg */
  --color-white: #ffffff;
  --color-accent: #0156ff;      /* brand blue CTA accent */
  --color-accent-ink: #ffffff;  /* text on the blue accent */

  /* Section background colors */
  --bg-white: #ffffff;
  --bg-black: #000149;          /* dark sections -> navy */
  --bg-beige: #eaf1ff;          /* soft sections -> mist */

  /* Brand gradient (navy -> blue) */
  --gradient-brand: linear-gradient(135deg, #000149 0%, #0156ff 100%);

  /* Typography — Agrandir Wide -> Archivo (expanded); Open Sauce -> Plus Jakarta Sans */
  --font-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 20px;

  /* Shadows (navy-tinted) */
  --shadow-nav: rgba(0, 1, 73, 0.10) 0px 10px 50px 0px;
  --shadow-card: rgba(0, 1, 73, 0.08) 0px 8px 30px 0px;

  /* Spacing */
  --container-max: 1500px;
  --gap-xs: 10px;
  --gap-sm: 20px;
  --gap-md: 40px;
  --gap-lg: 60px;
  --gap-xl: 100px;

  /* Text colors */
  --text-primary: #05082e;      /* near-navy-black headings/text */
  --text-secondary: #4a4f6a;    /* body */
  --text-muted: #9aa2c0;        /* muted */
  --text-on-dark: #ffffff;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  /* CLAUDE.md rule: never overflow-x:hidden on html/body with position:fixed
     elements present (sticky header) — use clip instead so it doesn't
     create a scroll container that breaks fixed/sticky positioning. */
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Wrapper for all normal page content (everything except the sticky header
   and any future fixed elements). Keeps its own clipping context so
   position:sticky on the header (which lives OUTSIDE this wrapper) is
   never broken by an ancestor with `overflow` set. */
.page-clip {
  overflow-x: clip;
  width: 100%;
}

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

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

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

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

input {
  font: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  /* Agrandir "Wide" look — expanded width instance + slight tracking */
  font-stretch: 125%;
  font-variation-settings: 'wdth' 125;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

/* ---------- Global typography scale ---------- */
h1 {
  font-size: 60px;
  font-weight: 500;
  line-height: 1.1;
  text-wrap: balance;
}

h2 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
}

h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 30px;
}

.section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.section__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 100px 30px;
}

.section__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-accent-ink);
}

/* Botão escuro (ex.: download de PDF) para diferenciar do CTA principal */
.btn--dark {
  background-color: #000000;
  color: #ffffff;
}

.btn--dark:hover {
  background-color: #111111;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

/* Secondary (outlined) button — visible border on desktop AND mobile */
.btn--link {
  background: transparent;
  color: var(--color-navy);
  font-weight: 600;
  box-shadow: inset 0 0 0 1.5px var(--color-navy);
}

.btn--link:hover {
  background: rgba(1, 86, 255, 0.06);
}

/* ---------- Scroll reveal (used by js/reveal.js) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- Responsive base ---------- */
@media (max-width: 1024px) {
  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 32px;
  }

  .section__inner {
    padding: 70px 24px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 26px;
  }

  .section__inner {
    padding: 56px 20px;
  }

  .container {
    padding: 0 20px;
  }
}

/* ---------- Cookie consent banner ----------
   Injected by js/cookies.js as a direct child of <body>, OUTSIDE .page-clip.
   Uses width:100vw (not left/right:0) and overflow:hidden per CLAUDE.md. */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 300;
  box-sizing: border-box;
  overflow: hidden;
  padding: 18px 20px;
  background: var(--color-navy);
  color: #fff;
  box-shadow: 0 -10px 40px rgba(0, 1, 73, 0.25);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.cookie-banner__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.cookie-banner__text {
  flex: 1 1 320px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.cookie-banner__text a {
  color: var(--color-sky);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-banner__btn {
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-banner__btn--accept {
  background: var(--color-blue);
  color: #fff;
}

.cookie-banner__btn--reject {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
}

@media (max-width: 640px) {
  .cookie-banner {
    padding: 8px 12px;
  }
  /* Keep a single compact ROW (text left, buttons right) so the banner stays low */
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .cookie-banner__text {
    flex: 1 1 auto;
    font-size: 11px;
    line-height: 1.25;
  }
  .cookie-banner__actions {
    flex: 0 0 auto;
    width: auto;
    gap: 6px;
  }
  .cookie-banner__btn {
    flex: 0 0 auto;
    padding: 7px 12px;
    font-size: 11px;
  }
}
