/* =============================================================================
   RESOLABS.IO — BASE
   =============================================================================
   Reset, global styles, shared typography helpers, scroll-reveal system.
   ========================================================================== */

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

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

body {
  font-family: var(--rl-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--rl-navy-dark);
  background-color: var(--rl-navy-deepest);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

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

/* ── Shared section shell ─────────────────────────────────────────────────── */

.rl_section_inner {
  max-width: var(--rl-section-max);
  margin: 0 auto;
  padding-left: var(--rl-section-pad);
  padding-right: var(--rl-section-pad);
}

/* ── Shared copy system ───────────────────────────────────────────────────── */

.rl_eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--rl-coral);
}

.rl_heading {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.8px;
}

.rl_heading--light {
  color: var(--rl-white);
}

.rl_heading--dark {
  color: var(--rl-navy-dark);
}

.rl_body {
  font-size: 17px;
  line-height: 1.68;
}

.rl_body--on-dark {
  color: var(--rl-text-on-dark);
}

.rl_body--on-light {
  color: var(--rl-text-on-light);
}

/* ── CTA buttons ──────────────────────────────────────────────────────────── */

.rl_cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--rl-radius-btn);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  will-change: transform;
}

.rl_cta--primary {
  background: var(--rl-gradient-brand);
  color: var(--rl-white);
  box-shadow: 0 8px 24px -8px rgba(240, 112, 80, 0.55);
}

.rl_cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px rgba(240, 112, 80, 0.65);
}

.rl_cta--ghost {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--rl-navy-light);
  font-weight: 400;
}

.rl_cta--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--rl-white);
}

/* ── Scroll-reveal animation ──────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 560ms ease, transform 560ms ease;
}

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

/* Stagger children inside a revealed container */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 480ms ease, transform 480ms ease;
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms;   opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 90ms;  opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 180ms; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 270ms; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 360ms; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 450ms; opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
