/* ==========================================================================
   SEIB CONSTRUCTION — GLOBAL STYLES
   Design tokens · Reset · Typography · Layout utilities
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --navy: #1b2a4a;
  --navy-deep: #0f1b33;
  --navy-mid: #1f3259;
  --charcoal: #2c2c2c;
  --charcoal-light: #3a3a3a;
  --copper: #b87333;
  --copper-light: #d4955a;
  --copper-dim: rgba(184, 115, 51, 0.15);
  --copper-dim-md: rgba(184, 115, 51, 0.25);
  --warm-white: #faf8f5;
  --off-white: #f5f2ee;
  --cream: #ede8e0;
  --text-dark: #1e1e1e;
  --text-mid: #555555;
  --text-light: #888888;
  --white: #ffffff;

  /* Typography */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;

  /* Font Sizes — fluid using clamp() */
  --fs-h1: clamp(32px, 4.5vw, 52px);
  --fs-h2: clamp(24px, 3vw, 36px);
  --fs-h3: clamp(18px, 2vw, 22px);
  --fs-h4: clamp(15px, 1.5vw, 18px);
  --fs-body: clamp(14px, 1.1vw, 16px);
  --fs-sm: 13px;
  --fs-xs: 11px;

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  --space-10: 96px;
  --space-11: 120px;

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(20px, 5vw, 48px);
  --section-pad-y: clamp(64px, 8vw, 112px);

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --border-cream: 1px solid var(--cream);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(27, 42, 74, 0.06), 0 1px 2px rgba(27, 42, 74, 0.04);
  --shadow-md: 0 4px 12px rgba(27, 42, 74, 0.08), 0 2px 4px rgba(27, 42, 74, 0.06);
  --shadow-lg: 0 12px 32px rgba(27, 42, 74, 0.12), 0 4px 8px rgba(27, 42, 74, 0.08);
  --shadow-xl: 0 24px 56px rgba(27, 42, 74, 0.16), 0 8px 16px rgba(27, 42, 74, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Z-index Scale */
  --z-base: 1;
  --z-above: 10;
  --z-nav: 100;
  --z-modal: 200;
  --z-toast: 300;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--charcoal);
  background-color: var(--warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  width: auto;
  display: inline-block;
}

a:hover, a:focus {
  color: var(--copper);
}

ul,
ol {
  list-style: none;
}

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

input,
textarea,
select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
}
h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  font-family: var(--font-body);
}
h4 {
  font-size: var(--fs-h4);
  font-weight: 600;
  font-family: var(--font-body);
}

p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text-mid);
  line-height: 1.8;
}

p + p {
  margin-top: var(--space-4);
}

strong {
  font-weight: 600;
  color: var(--charcoal);
}

/* Mono label — used for eyebrows, stats, credentials */
.label-mono {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--copper);
}

/* --------------------------------------------------------------------------
   4. LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-pad-y);
}

.section--linen {
  background-color: var(--off-white);
}

.section--navy {
  background-color: var(--navy);
}

/* .section--navy-deep {
  background-color: var(--navy-deep);
} */

.section--navy-deep {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  position: relative;
  overflow: hidden;
}

.section--navy-deep::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 15% 50%, var(--copper-dim) 0%, transparent 50%), radial-gradient(ellipse at 85% 30%, rgba(184, 115, 51, 0.06) 0%, transparent 45%);
  pointer-events: none;
}

/* Consistent section header pattern */
.section-header {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-header--centered {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.section-title--light {
  color: var(--white);
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 600px;
}

.section-subtitle--light {
  color: rgba(255, 255, 255, 0.7);
}

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

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

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

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

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

/* --------------------------------------------------------------------------
   5. ACCESSIBILITY
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
