/* =============================================================
   Vex Recovery — global.css
   Shared: reset, tokens, typography, nav, footer, utilities
   ============================================================= */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── CSS Tokens ───────────────────────────────────────────── */
:root {
  --white:       #FFFFFF;
  --surface:     #F4F7FC;
  --navy:        #0D1B35;
  --navy-deep:   #07090E;
  --blue:        #1A6DD8;
  --blue-lt:     #4199FF;
  --text:        #0D1B35;
  --muted:       #5A6A82;
  --dim:         #8A9AB5;
  --border:      #E8EAF0;
  --border-dark: #1A2333;
  --green:       #00C988;

  --font:        'Inter', system-ui, -apple-system, sans-serif;

  --nav-h:       72px;
  --radius:      10px;
  --radius-sm:   7px;
  --shadow:      0 1px 3px rgba(13,27,53,.06), 0 4px 16px rgba(13,27,53,.08);
  --shadow-lg:   0 4px 24px rgba(13,27,53,.12);

  --container:   1120px;
  --gap:         clamp(1.5rem, 4vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Typography ───────────────────────────────────────────── */
h1 {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--navy);
}

h2 {
  font-size: clamp(1.25rem, 3vw, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--navy);
}

h3 {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
}

p { color: var(--muted); }

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section-label--light {
  color: var(--blue-lt);
  opacity: 0.9;
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--blue);
  color: var(--white);
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  box-shadow: 0 1px 3px rgba(26,109,216,.25);
}
.btn-primary:hover {
  background: #155fc0;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,109,216,.35);
  text-decoration: none;
  color: var(--white);
}
.btn-primary:active { transform: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  border: 0.5px solid #C5D0E0;
  color: var(--navy);
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  transition: border-color 0.18s, background 0.18s, transform 0.15s;
}
.btn-ghost:hover {
  border-color: var(--blue);
  background: rgba(26,109,216,.04);
  text-decoration: none;
  color: var(--navy);
  transform: translateY(-1px);
}

.btn-ghost--light {
  border-color: rgba(255,255,255,.25);
  color: var(--white);
}
.btn-ghost--light:hover {
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.07);
  color: var(--white);
}

.btn-sm { padding: 8px 16px; font-size: 0.825rem; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.card-surface {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 22px;
}

/* ── Slash Motif ──────────────────────────────────────────── */
.slash-motif { position: relative; overflow: hidden; }

.slash-motif::before {
  content: '';
  position: absolute;
  top: -40px; right: 8%; bottom: -40px;
  width: 2px;
  background: linear-gradient(180deg, transparent, #1A6DD8 40%, #4199FF 60%, transparent);
  transform: rotate(-12deg);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.slash-motif::after {
  content: '';
  position: absolute;
  top: -40px; right: 13%; bottom: -40px;
  width: 1px;
  background: linear-gradient(180deg, transparent, #1A6DD8 50%, transparent);
  transform: rotate(-12deg);
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

/* Higher opacity on dark sections */
.slash-motif-dark::before { opacity: 0.20; }
.slash-motif-dark::after  { opacity: 0.08; }

/* All direct children of slash-motif sections need z-index so they sit above the pseudo-elements */
.slash-motif > .container { position: relative; z-index: 1; }

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 60px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--navy); text-decoration: none; }

/* Ensure btn-primary in nav keeps white text regardless of nav-links a rule */
.nav-links .btn-primary,
.nav-links .btn-primary:hover { color: var(--white); }

.nav-links a.active {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 2px;
}

.nav-cta { margin-left: 0.5rem; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 4px;
}

.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--white);
  z-index: 99;
  flex-direction: column;
  padding: 2rem clamp(1rem, 5vw, 2.5rem);
  gap: 0;
  border-top: 0.5px solid var(--border);
}

.nav-overlay.open { display: flex; }

.nav-overlay a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy);
  padding: 1rem 0;
  border-bottom: 0.5px solid var(--border);
  transition: color 0.15s;
}

.nav-overlay a:hover { color: var(--blue); text-decoration: none; }

.nav-overlay a.active { color: var(--blue); font-weight: 600; }

.nav-overlay .btn-primary {
  margin-top: 1.5rem;
  width: fit-content;
  font-size: 1rem;
  color: var(--white);
  border-bottom: none;
  padding: 11px 22px;
}

.nav-overlay .btn-primary:hover { color: var(--white); }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.6);
  padding-top: clamp(3rem, 6vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.footer-brand img { height: 60px; width: auto; margin-bottom: 1rem; }

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255,255,255,.5);
  max-width: 28ch;
}

.footer-contact {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-contact a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.65);
  transition: color 0.15s;
}

.footer-contact a:hover { color: var(--white); text-decoration: none; }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
  transition: color 0.15s;
}

.footer-col ul a:hover { color: var(--white); text-decoration: none; }

.footer-bar {
  border-top: 0.5px solid var(--border-dark);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bar p {
  font-size: 0.78rem;
  color: rgba(255,255,255,.3);
}

.footer-bar .mini-miranda {
  font-size: 0.78rem;
  color: rgba(255,255,255,.3);
  font-style: italic;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ── Utility ──────────────────────────────────────────────── */
.text-blue  { color: var(--blue); }
.text-muted { color: var(--muted); }
.text-dim   { color: var(--dim); }
.text-white { color: var(--white); }
.text-sm    { font-size: 0.875rem; }
.text-xs    { font-size: 0.78rem; }

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Hero canvas animation ────────────────────────────────── */
/* Shared by any page-hero that uses the cascade lines animation */
.hero-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Tabler Icons via jsDelivr — loaded in each HTML <head> */
