/* ==========================================================================
   DRITREZ SOLUTIONS — CORE ARCHITECTURAL STYLESHEET (core.css)
   Sovereign Enterprise Daylight, Swiss Grid Precision & Multi-Billion Dollar Aesthetics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* --- COLOR PALETTE (SOVEREIGN ENTERPRISE DAYLIGHT & ARCHITECTURAL PRECISION) --- */
  --bg-primary:           #FFFFFF; /* Pure Architectural White */
  --canvas:               #FFFFFF;
  --bg-secondary:         #F8FAFC; /* Crisp Alabaster / Cool Stone */
  --canvas-subtle:        #F8FAFC;
  --bg-tertiary:          #F1F5F9; /* Soft Slate for pills, table headers, metadata */
  --surface-raised:       #F1F5F9;
  --bg-card:              #FFFFFF; /* Elevated Pure White Cards */
  --surface:              #FFFFFF;
  --surface-hover:        #F8FAFC;
  --surface-glass:        rgba(255, 255, 255, 0.94);
  --bg-sovereign:         #0A1128; /* Deep Sovereign Midnight Navy (Footers & Executive Accents) */
  --text-on-sovereign:    #F8FAFC;

  /* Structural Hairline Borders */
  --border-hairline:      #E2E8F0; /* 1px crisp stone border */
  --border-subtle:        #E2E8F0;
  --border-medium:        #CBD5E1;
  --border-focus:         #0052CC;
  --border-hover:         #93C5FD;
  --border-glass:         rgba(0, 82, 204, 0.15);

  /* Primary Brand Accent (Institutional Royal Blue) */
  --accent-primary:       #0052CC;
  --accent-hover:         #1E40AF; /* Deep Cobalt Blue */
  --primary:              #0052CC;
  --primary-glow:         rgba(0, 82, 204, 0.08);
  --primary-glow-strong:  rgba(0, 82, 204, 0.16);
  --primary-hover:        #1E40AF;

  /* Secondary Gradients & Accents */
  --secondary:            #1D4ED8; /* Corporate Cobalt */
  --secondary-glow:       rgba(29, 78, 216, 0.12);
  --secondary-hover:      #1E3A8A;
  --accent-subtle:        #EFF6FF; /* Soft Ice Blue */

  /* Trust, SLA & Functional Indicators */
  --status-emerald:       #047857; /* Institutional Emerald */
  --trust-emerald:        #047857;
  --trust-emerald-bg:     #ECFDF5;
  --trust-emerald-border: #A7F3D0;
  --trust-glow:           rgba(4, 120, 87, 0.12);
  --danger:               #DC2626;
  --warning:              #D97706;
  --info:                 #0284C7;

  /* High-Authority Typography */
  --text-primary:         #0F172A; /* Deep Slate Ink */
  --text-secondary:       #334155; /* Balanced Charcoal Slate */
  --text-muted:           #64748B; /* Architectural Muted Slate */
  --text-inverse:         #FFFFFF;

  /* --- TYPOGRAPHY FAMILIES --- */
  --font-sans:            'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading:         'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:            'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* --- FLUID TYPOGRAPHY SCALE --- */
  --text-xs:              clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm:              clamp(0.8125rem, 0.78rem + 0.2vw, 0.875rem);
  --text-base:            clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
  --text-md:              clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --text-lg:              clamp(1.1875rem, 1.1rem + 0.45vw, 1.375rem);
  --text-xl:              clamp(1.375rem, 1.25rem + 0.65vw, 1.625rem);
  --text-2xl:             clamp(1.625rem, 1.45rem + 0.95vw, 2.0rem);
  --text-3xl:             clamp(2.0rem, 1.75rem + 1.4vw, 2.625rem);
  --text-4xl:             clamp(2.5rem, 2.15rem + 1.9vw, 3.375rem);
  --text-5xl:             clamp(3.125rem, 2.65rem + 2.5vw, 4.5rem);

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

  /* --- RADII & ELEVATION (ZERO NEON GLOWS) --- */
  --radius-xs:            4px;
  --radius-sm:            6px;
  --radius-md:            10px;
  --radius-lg:            14px;
  --radius-xl:            20px;
  --radius-full:          9999px;

  --shadow-sm:            0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md:            0 1px 3px rgba(15, 23, 42, 0.03), 0 4px 16px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg:            0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-glow-cyan:     0 4px 20px -2px rgba(0, 82, 204, 0.12);
  --shadow-glow-cobalt:   0 4px 20px -2px rgba(29, 78, 216, 0.12);

  /* --- TRANSITIONS --- */
  --transition-fast:      150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal:    250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:      400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* --- LAYOUT BOUNDS --- */
  --navbar-height:        76px;
  --container-max:        1280px;
  --container-narrow:     860px;
  --container-wide:       1440px;
}

/* --- ENTERPRISE RESETS & BOX MODEL --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-primary);
  background-color: var(--canvas);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height) + 1.5rem);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--canvas);
  color: var(--text-secondary);
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h1 { font-size: var(--text-5xl); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--text-3xl); font-weight: 700; }
h3 { font-size: var(--text-2xl); font-weight: 600; }
h4 { font-size: var(--text-xl); font-weight: 600; }
h5 { font-size: var(--text-lg); font-weight: 600; }
h6 { font-size: var(--text-md); font-weight: 600; }

p {
  color: var(--text-secondary);
  font-size: 1.025rem;
  line-height: 1.7;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

ul, ol {
  list-style: none;
}

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

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

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* --- ACCESSIBILITY & SELECTION STYLES --- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

::selection {
  background-color: var(--primary);
  color: #FFFFFF;
}

.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;
}

/* --- UTILITY HELPERS --- */
.text-cyan { color: var(--primary); }
.text-cobalt { color: var(--secondary); }
.text-emerald { color: var(--trust-emerald); }
.text-alabaster { color: var(--text-primary); }
.text-steel { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

.bg-canvas { background-color: var(--canvas); }
.bg-canvas-subtle { background-color: var(--canvas-subtle); }
.bg-surface { background-color: var(--surface); }
.bg-surface-raised { background-color: var(--surface-raised); }
.bg-sovereign { background-color: var(--bg-sovereign); color: var(--text-on-sovereign); }

.swiss-grid-bg {
  background-image: linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

.font-mono { font-family: var(--font-mono); }
.font-heading { font-family: var(--font-heading); }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
