/* ============================================================
   BASE.CSS — Global Resets & Defaults
   KD Excavating v2 | Noir Studio

   Applies sensible defaults to bare HTML elements.
   No classes defined here — only element selectors and
   a handful of global utilities that every page inherits.

   Sections:
     1. Box Model Reset
     2. Document & Body
     3. Typography Defaults
     4. Media Defaults
     5. Scroll Reveal Utility
   ============================================================ */


/* ── 1. BOX MODEL RESET ────────────────────────────────────── */

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


/* ── 2. DOCUMENT & BODY ────────────────────────────────────── */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  overflow-x: hidden;
  max-width: 100vw;
}


/* ── 3. TYPOGRAPHY DEFAULTS ────────────────────────────────── */

/* Headings inherit the display font but remain unstyled in size —
   each component sets its own size via display tokens */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular); /* Archivo Black has no weight axis */
  line-height: var(--leading-tight);
}

/* Links are unstyled by default — components handle their own */
a {
  color: inherit;
  text-decoration: none;
}

/* Lists are unstyled — nav, service rows, etc. style themselves */
ul, ol {
  list-style: none;
}


/* ── 4. MEDIA DEFAULTS ─────────────────────────────────────── */

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


/* ── 5. SCROLL REVEAL UTILITY ──────────────────────────────── */

/* Elements start hidden and slide up. JS adds .in when they
   enter the viewport. Delay classes stagger grouped elements. */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity  var(--duration-slow) var(--ease-default),
    transform var(--duration-slow) var(--ease-default);
}

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

/* Stagger delays — apply alongside .reveal */
.delay-1 { transition-delay: 0.10s; }
.delay-2 { transition-delay: 0.20s; }
.delay-3 { transition-delay: 0.32s; }
