/* ============================================================
   BASE.CSS — CSS custom properties, reset, and typography
   LegalDominio Landing Page · Dominesis
   ============================================================ */

/* ─── CUSTOM PROPERTIES ─── */
:root {
  /* Backgrounds */
  --bg:          hsl(222, 15%, 9%);
  --bg-2:        hsl(222, 13%, 12%);
  --surface:        hsl(222, 12%, 15%);
  --surface-2:      hsl(222, 11%, 19%);
  --surface-raised: hsl(222, 14%, 18%);

  /* Borders */
  --border:      hsl(222, 10%, 21%);
  --border-2:    hsl(222, 10%, 28%);

  /* Brand blue */
  --blue:        hsl(210, 78%, 48%);
  --blue-light:  hsl(210, 85%, 62%);
  --blue-dark:   hsl(210, 78%, 38%);
  --blue-glow:   hsla(210, 85%, 55%, 0.16);

  /* Status colours */
  --green:       hsl(142, 65%, 44%);
  --amber:       hsl(38, 92%, 52%);
  --red:         hsl(0, 72%, 56%);

  /* Dominesis brand accent (from logo — teal + purple) */
  --teal:        hsl(168, 65%, 46%);
  --purple:      hsl(264, 55%, 52%);

  /* Text */
  --text:        hsl(210, 20%, 97%);
  --text-2:      hsl(210, 14%, 66%);
  --text-3:      hsl(210, 10%, 44%);

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Border radii */
  --radius-sm:  6px;
  --radius:     10px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  /* Shadows */
  --shadow-sm:  0 1px 3px hsla(222, 20%, 4%, 0.4);
  --shadow:     0 4px 16px hsla(222, 20%, 4%, 0.5);
  --shadow-lg:  0 16px 48px hsla(222, 20%, 4%, 0.7);
  --shadow-xl:  0 32px 80px hsla(222, 20%, 4%, 0.8);

  /* Transitions */
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 150ms var(--ease);
}

/* ─── LIGHT THEME ─── */
.light {
  --bg:             hsl(0, 0%, 100%);
  --bg-2:           hsl(210, 20%, 98%);
  --surface:        hsl(210, 18%, 96%);
  --surface-2:      hsl(210, 15%, 92%);
  --surface-raised: hsl(0, 0%, 100%);

  --border:         hsl(210, 15%, 88%);
  --border-2:       hsl(210, 15%, 80%);

  --text:           hsl(222, 20%, 10%);
  --text-2:         hsl(222, 14%, 36%);
  --text-3:         hsl(222, 10%, 55%);

  --blue-glow:      hsla(210, 85%, 55%, 0.10);

  --shadow-sm:  0 1px 3px hsla(222, 20%, 20%, 0.08);
  --shadow:     0 4px 16px hsla(222, 20%, 20%, 0.10);
  --shadow-lg:  0 16px 48px hsla(222, 20%, 20%, 0.12);
  --shadow-xl:  0 32px 80px hsla(222, 20%, 20%, 0.15);
}

/* ─── RESET ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  display: block;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h1 { font-size: clamp(36px, 6vw, 68px); font-weight: 800; }
h2 { font-size: clamp(26px, 4vw, 44px); font-weight: 700; }
h3 { font-size: clamp(18px, 2.5vw, 22px); font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }

p { color: var(--text-2); }

/* ─── UTILITIES ─── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.text-center { text-align: center; }

/* ─── FADE-IN ANIMATION ─── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
