/* ==========================================================================
   base.css — CSS reset, design tokens, and base typography
   Mcmoren Multiservices Limited
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --color-primary: #0A2540;
  --color-accent: #0EA5E9;
  --color-accent-light: #38BDF8;
  --color-bg: #F7F9FC;
  --color-bg-dark: #040F1A;
  --color-text: #1E293B;
  --color-text-muted: #64748B;
  --color-text-light: #FFFFFF;
  --color-mid: #4A6785;
  --color-border: #E2E8F0;
  --color-card-bg: #FFFFFF;
  --color-error: #DC2626;
  --color-success: #16A34A;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(10, 37, 64, 0.03);
  --shadow-md: 0 12px 32px rgba(10, 37, 64, 0.06);
  --shadow-lg: 0 24px 64px rgba(10, 37, 64, 0.1);
  --shadow-accent: 0 16px 48px rgba(14, 165, 233, 0.25);

  /* Transitions */
  --transition-base: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 80px;
}

/* --------------------------------------------------------------------------
   CSS Reset (Modern Normalize)
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

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

ul,
ol {
  list-style: none;
}

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

/* --------------------------------------------------------------------------
   Typography Scale
   -------------------------------------------------------------------------- */

/* Display — 64px/72px, weight 800 */
.text-display {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.125;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* H1 — 48px/56px, weight 700 */
h1,
.text-h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1667;
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* H2 — 36px/44px, weight 700 */
h2,
.text-h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  line-height: 1.2222;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* H3 — 24px/32px, weight 600 */
h3,
.text-h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.3333;
  font-weight: 600;
}

/* H4 — 20px/28px, weight 600 */
h4,
.text-h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
}

/* Body Large — 18px/28px */
.text-body-lg {
  font-size: 1.125rem;
  line-height: 1.5556;
  font-weight: 400;
}

/* Body — 16px/24px */
.text-body {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
}

/* Small — 14px/20px */
.text-sm {
  font-size: 0.875rem;
  line-height: 1.4286;
  font-weight: 400;
}

/* Caption — 12px/16px, uppercase */
.text-caption {
  font-size: 0.75rem;
  line-height: 1.3333;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Overline label */
.overline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--spacing-xs);
}

/* --------------------------------------------------------------------------
   Base Utility Classes
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-white { color: var(--color-text-light); }
.text-muted  { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-center { text-align: center; }

/* --------------------------------------------------------------------------
   Reduced Motion — disable all animations for accessibility
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
