/* ============================================================
   RDS Legal Co — global.css
   Design system: variables, reset, typography, layout utilities
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,300;1,400&family=Poppins:wght@100;300;400;600&display=swap');

/* ── CSS Custom Properties ───────────────────────────────── */
:root {
  /* Colors */
  --clr-hero-bg:        #1a0a00;
  --clr-hero-dark:      #2b0d00;
  --clr-overlay:        rgba(120, 40, 0, 0.72);
  --clr-body-bg:        #faf6f1;
  --clr-body-alt:       #f5f0eb;
  --clr-navbar-bg:      #1a0000;
  --clr-footer-bg:      #110800;
  --clr-dark-section:   #1e0c00;
  --clr-text-dark:      #1c1c1c;
  --clr-text-muted:     #6b6b6b;
  --clr-text-light:     #f0e8df;
  --clr-text-lighter:   #bdb0a5;
  --clr-accent:         #e8ddd0;
  --clr-border-light:   rgba(232, 221, 208, 0.25);
  --clr-card-shadow:    rgba(28, 14, 0, 0.08);
  --clr-white:          #ffffff;

  /* Gradient accent (logo dot, decorative accents) */
  --gradient-accent: linear-gradient(90deg, #6557FF 0%, #AA3FFF 45%, #F8522E 100%);
  --clr-grad-1: #6557FF;
  --clr-grad-2: #AA3FFF;
  --clr-grad-3: #F8522E;

  /* Typography */
  --font-heading: 'Figtree', 'Poppins', 'Avenir Next', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-sans:    'Lato', 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  /* kept for backwards compat with existing markup */
  --font-serif:   'Figtree', 'Poppins', 'Avenir Next', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --fs-xs:    0.75rem;   /* 12px */
  --fs-sm:    0.875rem;  /* 14px */
  --fs-base:  1rem;      /* 16px */
  --fs-md:    1.125rem;  /* 18px */
  --fs-lg:    1.5rem;    /* 24px */
  --fs-xl:    2rem;      /* 32px */
  --fs-2xl:   2.5rem;    /* 40px */
  --fs-3xl:   3rem;      /* 48px */
  --fs-4xl:   3.75rem;   /* 60px */
  --fs-5xl:   5rem;      /* 80px */

  --fw-light:   300;
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semi:    600;
  --fw-bold:    700;

  --lh-tight:  1.2;
  --lh-snug:   1.4;
  --lh-normal: 1.6;
  --lh-loose:  1.8;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Layout */
  --max-w-sm:    640px;
  --max-w-md:    768px;
  --max-w-lg:    1024px;
  --max-w-xl:    1280px;
  --max-w-2xl:   1440px;
  --container-px: clamp(1.25rem, 5vw, 5rem);

  /* Borders */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(28,14,0,0.08);
  --shadow-md:  0 4px 16px rgba(28,14,0,0.10);
  --shadow-lg:  0 12px 40px rgba(28,14,0,0.14);
  --shadow-xl:  0 24px 64px rgba(28,14,0,0.18);

  /* Transitions */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --dur-fast:   150ms;
  --dur-base:   300ms;
  --dur-slow:   600ms;

  /* Navbar */
  --navbar-h: 80px;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--clr-text-dark);
  background-color: var(--clr-body-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: inherit;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(var(--fs-3xl), 6vw, var(--fs-5xl)); }
h2 { font-size: clamp(var(--fs-xl), 4vw, var(--fs-3xl)); }
h3 { font-size: clamp(var(--fs-lg), 2.5vw, var(--fs-2xl)); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-base); }

p {
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
  color: var(--clr-text-muted);
}

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w-2xl);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.container--narrow {
  max-width: var(--max-w-xl);
}

.section {
  padding-block: clamp(var(--sp-16), 8vw, var(--sp-32));
}

.section--dark {
  background-color: var(--clr-dark-section);
  background-image: url('https://cdn.prod.website-files.com/686d069ab2a9c4117334a53f/686d069bb2a9c4117334aa1d_dec0c623559b2e48eaac1d8c26b1104d_bg%20%282%29%20%281%29.png');
  background-repeat: repeat;
  background-size: auto;
  color: var(--clr-text-light);
}

.section--dark p {
  color: var(--clr-text-lighter);
}

.section--cream {
  background-color: var(--clr-body-alt);
}

/* ── Section Label ────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-6);
}

.section-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.section--dark .section-label {
  color: var(--clr-text-lighter);
}

/* ── Grid helpers ─────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

/* ── Flex helpers ─────────────────────────────────────────── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

/* ── Text utilities ───────────────────────────────────────── */
.text-center { text-align: center; }
.text-light { color: var(--clr-text-light); }
.text-muted { color: var(--clr-text-muted); }
.text-serif { font-family: var(--font-heading); }
.text-upper { text-transform: uppercase; letter-spacing: 0.12em; }

/* ── Visually hidden ──────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Overlay helper ───────────────────────────────────────── */
.overlay {
  position: relative;
  overflow: hidden;
}

.overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--clr-overlay);
  pointer-events: none;
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--clr-border-light);
  border: none;
}

/* ── Responsive Breakpoints ───────────────────────────────── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
}
