/**
 * base.css — Shared base styles for the v2 Public Site
 *
 * Loaded on every page via base.html. Contains:
 *   - CSS reset
 *   - Body and HTML defaults
 *   - Layout utility (.container)
 *   - Typography utilities (.section-label, .section-heading)
 *   - Scroll reveal animations
 *   - Accessibility helpers (skip-to-content, focus styles)
 *   - Scrollbar styling
 *
 * Does NOT contain: nav, footer, page-specific, or component styles.
 * All values use CSS custom properties from tokens.css.
 */

/* ─── CSS Reset ──────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-page);
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

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

/* ─── Accessibility: Skip to Content ─────────────────────────────────────── */

.skip-to-content {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: 0;
}

/* ─── Focus Styles ───────────────────────────────────────────────────────── */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Layout ─────────────────────────────────────────────────────────────── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

/* ─── Typography Utilities ───────────────────────────────────────────────── */

.section-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  line-height: 20.8px; /* Figma: leading-[20.8px] */
  text-transform: uppercase;
  color: var(--text-dark);
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -1.44px;
  color: var(--text-primary);
  line-height: 1.05;
}

/* ─── Scroll Reveal Animations ──────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 {
  transition-delay: 0.12s;
}
.reveal-delay-2 {
  transition-delay: 0.24s;
}
.reveal-delay-3 {
  transition-delay: 0.36s;
}
.reveal-delay-4 {
  transition-delay: 0.48s;
}

/* ─── Char Reveal (Hero Headline Letter Animation) ───────────────────────── */

.char-reveal .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) rotateX(-40deg);
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ─── Reduced Motion ──────────────────────────────────────────────────────── */

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

/* ─── reCAPTCHA v3 badge ─────────────────────────────────────────────────── */
/* Hidden per Google's FAQ: https://developers.google.com/recaptcha/docs/faq */
/* Attribution text is included in the form note instead */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* Scrollbar: use browser default for natural feel */
