/* ============================================================
   SOFTROUTE INFO TECHNOLOGIES — GLOBAL CSS
   Design System: Tokens, Reset, Typography, Utilities
   ============================================================ */

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

/* ── 2. CSS CUSTOM PROPERTIES (Design Tokens) ────────────── */
:root {
  /* Brand Colors */
  --color-primary:        #23679A;
  --color-primary-dark:   #1a4f7a;
  --color-primary-darker: #123a5c;
  --color-primary-light:  #e8f2fa;
  --color-primary-mid:    #2d7db5;
  --color-charcoal:       #37484A;
  --color-charcoal-light: #4f6366;
  --color-white:          #FFFFFF;
  --color-bg-light:       #F7F9FB;
  --color-bg-lighter:     #f0f5fa;

  /* Text Colors */
  --color-text-dark:      #1a2332;
  --color-text-body:      #4a5568;
  --color-text-muted:     #718096;
  --color-text-light:     #a0aec0;

  /* UI Colors */
  --color-border:         #e2e8f0;
  --color-border-light:   #f0f4f8;
  --color-success:        #38a169;
  --color-warning:        #d69e2e;
  --color-error:          #e53e3e;

  /* Glassmorphism */
  --color-glass-bg:       rgba(255,255,255,0.12);
  --color-glass-bg-strong:rgba(255,255,255,0.20);
  --color-glass-border:   rgba(255,255,255,0.25);
  --color-glass-border-strong: rgba(255,255,255,0.40);

  /* Shadows */
  --shadow-xs:    0 1px 3px rgba(35,103,154,0.06);
  --shadow-sm:    0 2px 8px rgba(35,103,154,0.08);
  --shadow-md:    0 4px 16px rgba(35,103,154,0.12);
  --shadow-lg:    0 8px 32px rgba(35,103,154,0.16);
  --shadow-xl:    0 16px 48px rgba(35,103,154,0.20);
  --shadow-card:  0 4px 24px rgba(35,103,154,0.10);
  --shadow-hover: 0 12px 40px rgba(35,103,154,0.20);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Font Sizes */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */
  --text-7xl:  4.5rem;     /* 72px */

  /* Font Weights */
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold:600;
  --fw-bold:    700;
  --fw-extrabold:800;

  /* Line Heights */
  --leading-tight:  1.2;
  --leading-snug:   1.35;
  --leading-normal: 1.6;
  --leading-relaxed:1.75;

  /* Spacing Scale */
  --space-1:  0.25rem;   /* 4px */
  --space-2:  0.5rem;    /* 8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */

  /* Border Radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 9999px;

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

  /* Z-Index */
  --z-base:     1;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;

  /* Container */
  --container-max: 1280px;
  --container-pad: 1.5rem;

  /* Navbar Height */
  --navbar-height: 72px;

  /* Section Padding */
  --section-pad-y:    5rem;
  --section-pad-y-sm: 3.5rem;
}

/* ── 3. MODERN CSS RESET ─────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--leading-normal);
  color: var(--color-text-body);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

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

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

ul, ol {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--leading-tight);
  color: var(--color-text-dark);
}

p {
  line-height: var(--leading-relaxed);
}

/* ── 4. TYPOGRAPHY SCALE ─────────────────────────────────── */
.text-xs   { font-size: var(--text-xs); }
.text-sm   { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg   { font-size: var(--text-lg); }
.text-xl   { font-size: var(--text-xl); }
.text-2xl  { font-size: var(--text-2xl); }
.text-3xl  { font-size: var(--text-3xl); }
.text-4xl  { font-size: var(--text-4xl); }
.text-5xl  { font-size: var(--text-5xl); }
.text-6xl  { font-size: var(--text-6xl); }

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

.fw-regular   { font-weight: var(--fw-regular); }
.fw-medium    { font-weight: var(--fw-medium); }
.fw-semibold  { font-weight: var(--fw-semibold); }
.fw-bold      { font-weight: var(--fw-bold); }
.fw-extrabold { font-weight: var(--fw-extrabold); }

.leading-tight   { line-height: var(--leading-tight); }
.leading-normal  { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }

/* Heading styles */
h1 { font-size: clamp(2rem, 5vw, var(--text-6xl)); font-weight: var(--fw-extrabold); }
h2 { font-size: clamp(1.6rem, 3.5vw, var(--text-4xl)); font-weight: var(--fw-bold); }
h3 { font-size: clamp(1.2rem, 2.5vw, var(--text-2xl)); font-weight: var(--fw-semibold); }
h4 { font-size: var(--text-xl); font-weight: var(--fw-semibold); }
h5 { font-size: var(--text-lg); font-weight: var(--fw-medium); }
h6 { font-size: var(--text-base); font-weight: var(--fw-medium); }

/* ── 5. COLOR UTILITIES ──────────────────────────────────── */
.text-primary    { color: var(--color-primary); }
.text-charcoal   { color: var(--color-charcoal); }
.text-white      { color: var(--color-white); }
.text-muted      { color: var(--color-text-muted); }
.text-dark       { color: var(--color-text-dark); }
.text-body       { color: var(--color-text-body); }

.bg-white        { background-color: var(--color-white); }
.bg-light        { background-color: var(--color-bg-light); }
.bg-primary      { background-color: var(--color-primary); }
.bg-charcoal     { background-color: var(--color-charcoal); }
.bg-primary-light{ background-color: var(--color-primary-light); }

/* ── 6. LAYOUT — CONTAINER ───────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container-sm {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container-xs {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ── 7. LAYOUT — GRID SYSTEM ─────────────────────────────── */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2  { grid-template-columns: repeat(2, 1fr); }
.grid-3  { grid-template-columns: repeat(3, 1fr); }
.grid-4  { grid-template-columns: repeat(4, 1fr); }
.grid-5  { grid-template-columns: repeat(5, 1fr); }
.grid-6  { grid-template-columns: repeat(6, 1fr); }

.grid-auto-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-auto-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-auto-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Gap variants */
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }

/* ── 8. LAYOUT — FLEX UTILITIES ──────────────────────────── */
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.items-end    { align-items: flex-end; }
.justify-center      { justify-content: center; }
.justify-between     { justify-content: space-between; }
.justify-start       { justify-content: flex-start; }
.justify-end         { justify-content: flex-end; }
.flex-1       { flex: 1; }
.flex-shrink-0{ flex-shrink: 0; }

/* ── 9. SECTION SPACING ──────────────────────────────────── */
.section {
  padding-block: var(--section-pad-y);
}

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

.section-lg {
  padding-block: calc(var(--section-pad-y) * 1.4);
}

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

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

/* ── 10. SECTION HEADER ──────────────────────────────────── */
.section-header {
  margin-bottom: var(--space-16);
}

.section-header.text-center {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  border: 1px solid rgba(35,103,154,0.15);
}

.section-eyebrow-white {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, var(--text-4xl));
  font-weight: var(--fw-bold);
  color: var(--color-text-dark);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

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

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-body);
  line-height: var(--leading-relaxed);
  max-width: 640px;
}

.section-subtitle-white {
  color: rgba(255,255,255,0.85);
}

/* ── 11. BUTTON SYSTEM ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  line-height: 1;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after { opacity: 1; }

.btn-sm {
  font-size: var(--text-sm);
  padding: 0.625rem 1.25rem;
}

.btn-lg {
  font-size: var(--text-lg);
  padding: 1.125rem 2.25rem;
  border-radius: var(--radius-lg);
}

/* Primary Button */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(35,103,154,0.30);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: 0 6px 20px rgba(35,103,154,0.40);
  transform: translateY(-1px);
}

/* White Button (on dark/gradient backgrounds) */
.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.btn-white:hover {
  background: var(--color-bg-light);
  box-shadow: 0 6px 20px rgba(0,0,0,0.20);
  transform: translateY(-1px);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* Outline White (on dark backgrounds) */
.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--color-white);
}

/* Charcoal Button */
.btn-charcoal {
  background: var(--color-charcoal);
  color: var(--color-white);
  border-color: var(--color-charcoal);
}

.btn-charcoal:hover {
  background: #2a3638;
  transform: translateY(-1px);
}

/* ── 12. TEXT ALIGNMENT ───────────────────────────────────── */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* ── 13. DISPLAY UTILITIES ───────────────────────────────── */
.block        { display: block; }
.inline-block { display: inline-block; }
.inline-flex  { display: inline-flex; }
.hidden       { display: none; }

/* ── 14. SPACING UTILITIES ───────────────────────────────── */
.mt-0  { margin-top: 0; }
.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); }
.mt-16 { margin-top: var(--space-16); }

.mb-0  { margin-bottom: 0; }
.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); }

.mx-auto { margin-inline: auto; }

/* ── 15. GRADIENT BACKGROUNDS ────────────────────────────── */
.gradient-primary {
  background: linear-gradient(135deg, var(--color-primary-darker) 0%, var(--color-primary) 50%, var(--color-primary-mid) 100%);
}

.gradient-primary-soft {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #d6eaf8 100%);
}

.gradient-charcoal {
  background: linear-gradient(135deg, #2a3638 0%, var(--color-charcoal) 100%);
}

.gradient-mesh {
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(35,103,154,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(45,125,181,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 60% 80%, rgba(26,79,122,0.10) 0%, transparent 60%),
    var(--color-white);
}

/* ── 16. DIVIDERS ────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--color-border);
  border: none;
  margin-block: var(--space-8);
}

.divider-primary {
  height: 3px;
  width: 60px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

/* ── 17. BADGE / TAG ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}

.badge-primary {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(35,103,154,0.2);
}

.badge-white {
  background: rgba(255,255,255,0.2);
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.3);
}

/* ── 18. BREADCRUMB ──────────────────────────────────────── */
.breadcrumb {
  padding: var(--space-4) 0;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.breadcrumb ol li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumb ol li::after {
  content: '/';
  color: var(--color-text-light);
}

.breadcrumb ol li:last-child::after {
  display: none;
}

.breadcrumb ol li a {
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

.breadcrumb ol li a:hover {
  color: var(--color-primary-dark);
}

/* ── 19. HERO BACKGROUNDS ────────────────────────────────── */
.hero-gradient {
  background: linear-gradient(135deg, var(--color-primary-darker) 0%, var(--color-primary) 60%, var(--color-primary-mid) 100%);
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(0,0,0,0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* ── 20. HIGHLIGHT TEXT ──────────────────────────────────── */
.text-highlight {
  color: var(--color-primary);
}

.text-highlight-white {
  color: rgba(255,255,255,0.9);
  position: relative;
}

/* ── 21. OVERFLOW UTILITIES ──────────────────────────────── */
.overflow-hidden { overflow: hidden; }
.overflow-auto   { overflow: auto; }
.relative        { position: relative; }
.absolute        { position: absolute; }

/* ── 22. WIDTH / HEIGHT UTILITIES ────────────────────────── */
.w-full  { width: 100%; }
.h-full  { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* ── 23. BORDER RADIUS UTILITIES ─────────────────────────── */
.rounded-sm   { border-radius: var(--radius-sm); }
.rounded-md   { border-radius: var(--radius-md); }
.rounded-lg   { border-radius: var(--radius-lg); }
.rounded-xl   { border-radius: var(--radius-xl); }
.rounded-2xl  { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ── 24. FOCUS STYLES (Accessibility) ────────────────────── */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── 25. SELECTION ───────────────────────────────────────── */
::selection {
  background: rgba(35,103,154,0.2);
  color: var(--color-primary-dark);
}

/* ── 26. SCROLLBAR ───────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-light);
}
::-webkit-scrollbar-thumb {
  background: rgba(35,103,154,0.3);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* ── 27. RESPONSIVE BREAKPOINTS ──────────────────────────── */
/* Mobile: default (< 640px) */
/* sm: ≥ 640px */
/* md: ≥ 768px */
/* lg: ≥ 1024px */
/* xl: ≥ 1280px */
/* 2xl: ≥ 1440px */

@media (max-width: 1280px) {
  :root { --container-pad: 2rem; }
}

@media (max-width: 1024px) {
  :root {
    --section-pad-y: 4rem;
    --section-pad-y-sm: 3rem;
    --container-pad: 1.5rem;
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --section-pad-y: 3rem;
    --section-pad-y-sm: 2.5rem;
    --container-pad: 1.25rem;
  }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }

  .section-header { margin-bottom: var(--space-10); }
  .btn-lg { font-size: var(--text-base); padding: 1rem 1.75rem; }

  h1 { font-size: clamp(1.75rem, 8vw, 2.75rem); }
  h2 { font-size: clamp(1.4rem, 6vw, 2rem); }
}

@media (max-width: 480px) {
  :root { --container-pad: 1rem; }
  .grid-5 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}

/* ── 28. PRINT STYLES ────────────────────────────────────── */
@media print {
  .navbar, .footer, .btn, .cta-section { display: none !important; }
  body { color: #000; background: #fff; }
  a { text-decoration: underline; }
}
