/* 🎯 DELRIQUE INFOTECH — Global Stylesheet
    Ownership: GLOBAL — tokens, reset, typography, container, utilities, accessibility.
    ALL other component rules belong in: components.css, home.css, services.css, about.css, contact.css.
*/

/* ——— 1. DESIGN TOKENS ———————————————————————————————————————————————— */

:root {
  /* — Brand Colors (ONLY — do not introduce other palettes) — */
  --brand-black: #0B1220;
  --brand-navy: #0B1220;
  --brand-blue: #1546A0;
  --brand-gold: #FFC300;
  --brand-white: #FFFFFF;

  /* — Derived effects (transparency/opacity from approved colors only) — */
  --black-light: var(--brand-black);
  --gold-glow: rgba(255, 195, 0, 0.25);
  --gold-light: rgba(255, 195, 0, 0.15);
  --blue-glow: rgba(21, 70, 160, 0.3);
  --blue-glow-strong: rgba(21, 70, 160, 0.5);
  --blue-light: rgba(21, 70, 160, 0.15);
  --text-primary: var(--brand-white);
  --text-secondary: rgba(255, 255, 255, 0.70);
  --text-muted: rgba(255, 255, 255, 0.50);
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.06);
  --brand-gradient: linear-gradient(135deg, #FFC300 0%, #1546A0 50%, #FFC300 100%);
  --blue-gradient: linear-gradient(135deg, #1546A0 0%, #1546A0 100%);

  /* — Layout & Spacing — */
  --header-h: 72px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* — Radius System — */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* — Typography Scale (DM Sans body / Inter 800 headings) — */
  --font-body: 'DM Sans', sans-serif;
  --font-heading: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-1: clamp(1.8rem, 3vw, 2.5rem); /* H1 */
  --font-size-2: clamp(1.6rem, 2.5vw, 2rem); /* H2 */
  --font-size-3: clamp(1.4rem, 2vw, 1.6rem); /* H3 */
  --font-size-4: clamp(1.2rem, 1.5vw, 1.4rem); /* H4 */
  --font-size-body: clamp(1rem, 1.5vw, 1.1rem); /* Body */
  --font-size-small: clamp(0.875rem, 1.2vw, 1rem); /* Body Small */
  --font-size-eb: clamp(0.75rem, 1vw, 0.85rem); /* Eyebrow */
  --font-size-nav: clamp(0.8rem, 1vw, 0.9rem); /* Navigation */
  --font-size-btn: clamp(0.875rem, 1.2vw, 1rem); /* Button */
  --font-size-cap: clamp(0.75rem, 1vw, 0.85rem); /* Caption */

  /* — Easing & Transition — */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: var(--ease-smooth);
  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.18);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.28);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.38);
}

/* ——— 2. RESET & BASE ———————————————————————————————————————————————— */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: 1.7;
  background: var(--brand-black);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ——— 3. CONTAINER ———————————————————————————————————————————————— */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ——— 4. HEADING STYLES ———————————————————————————————————————————————— */

.section {
  position: relative;
  padding: var(--space-5) 0;
}
.section.padded {
  padding: var(--space-8) 0;
}
.section.inverted {
  background: var(--brand-black);
  color: var(--brand-white);
}
.section h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--font-size-1);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}
.section h2.display {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}
.section h2.display br {
  display: none;
}
@media (min-width: 768px) {
  .section h2.display br {
    display: block;
  }
}

/* ——— 5. FOCUS VISUAL (CRITICAL A11Y) ———————————————————————————————————— */

:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

/* Skip link focus state */
.skip-link:focus {
  top: 0;
}

/* ——— 6. BUTTONS (Global — component-specific rules in components.css) ———————————— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-2);
  padding: var(--padding-btn, var(--space-4)) var(--space-2);
  font-family: var(--font-body);
  font-size: var(--font-size-btn);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
  border: 1px solid transparent;
}
.btn:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}
.btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-white);
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: transparent;
  border: 2px solid #ffc300;
  color: #ffc300;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: #ffc300;
  color: #0b1220;
  border: 2px solid #ffc300;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
}
.btn--outline {
  background: transparent;
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
}
.btn--outline:hover {
  background: var(--brand-blue);
  color: var(--brand-white);
}

/* ——— 7. GLOBAL UTILITIES ———————————————————————————————————————————————— */

a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
a:hover {
  color: var(--brand-blue);
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  background: var(--brand-blue);
  color: var(--brand-white);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  z-index: 1000;
  font-weight: 600;
  font-size: var(--font-size-eb);
  text-decoration: none;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 0;
}

/* ——— 8. IMAGE TREATMENT ———————————————————————————————————————————————— */

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

/* ——— 9. MEDIA QUERIES ———————————————————————————————————————————————— */

@media (max-width: 768px) {
  .btn {
    padding: var(--padding-btn, var(--space-4)) var(--space-2);
    font-size: var(--font-size-nav);
  }
}

/* ——— 10. REDUCED MOTION (prerequisite) ———————————————————————————— */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}