/* IGI General Ltd — Design tokens & base styles */

:root {
  /* Colors */
  --navy-900: #061a30;
  --navy-800: #0a2540;
  --navy-700: #0f2d52;
  --navy-600: #1a3a64;
  --navy-100: #e6ecf4;
  --navy-50: #f1f5fa;

  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;

  --ink-900: #0a2540;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50: #f8fafc;
  --paper: #ffffff;
  --warm-paper: #fbfaf7;

  --success: #0d9488;
  --warning: #d97706;
  --danger: #dc2626;

  /* Typography */
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", monospace;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(10, 37, 64, 0.04);
  --shadow-sm: 0 2px 6px rgba(10, 37, 64, 0.06), 0 1px 2px rgba(10, 37, 64, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.08), 0 2px 6px rgba(10, 37, 64, 0.04);
  --shadow-lg: 0 24px 48px rgba(10, 37, 64, 0.12), 0 4px 12px rgba(10, 37, 64, 0.06);

  /* Layout */
  --container: 1240px;
  --gutter: 24px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

body { font-size: 16px; line-height: 1.55; }

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

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

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

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

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Type utilities */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }

.h-display { font-size: clamp(40px, 5.5vw, 72px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.h-1 { font-size: clamp(32px, 4vw, 48px); }
.h-2 { font-size: clamp(24px, 3vw, 34px); }
.h-3 { font-size: 20px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--navy-800);
  color: white;
}
.btn-primary:hover { background: var(--navy-900); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent {
  background: var(--blue-600);
  color: white;
}
.btn-accent:hover { background: var(--blue-700); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3); }
.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--ink-200);
}
.btn-ghost:hover { background: var(--ink-50); border-color: var(--ink-300); }
.btn-link {
  background: transparent;
  color: var(--navy-800);
  padding: 8px 0;
}
.btn-link:hover { color: var(--blue-600); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* Cards */
.card {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  transition: all 0.2s ease;
}
.card:hover { border-color: var(--ink-300); box-shadow: var(--shadow-md); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--r-pill);
  background: var(--ink-100);
  color: var(--ink-700);
}
.badge-blue { background: var(--blue-50); color: var(--blue-700); }
.badge-green { background: #ecfdf5; color: #047857; }
.badge-amber { background: #fffbeb; color: #b45309; }
.badge-navy { background: var(--navy-50); color: var(--navy-800); }

/* Form fields */
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 6px;
}
.field-input,
.field-select {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  outline: none;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}
.field-input:focus,
.field-select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

/* Sections */
section { padding: 80px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease forwards; }

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.6); }
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  background: var(--navy-900);
  color: white;
  border-radius: var(--r-pill);
  box-shadow: 0 16px 40px rgba(6, 26, 48, 0.4);
  z-index: 80;
  font-size: 14px;
  font-weight: 500;
}
.sticky-cta .btn-accent { padding: 10px 18px; font-size: 14px; }

/* Chat widget */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blue-600);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
  z-index: 90;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.chat-fab:hover { transform: scale(1.05); }
.chat-window {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 480px;
  background: white;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  z-index: 91;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ink-200);
}

/* Hatched / striped placeholder */
.placeholder-img {
  background:
    repeating-linear-gradient(45deg, var(--ink-100) 0 8px, var(--ink-50) 8px 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-500);
  border-radius: var(--r-md);
}

/* Page header (for sub-pages) */
.page-hero {
  padding: 64px 0 48px;
  background: linear-gradient(180deg, var(--navy-50) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--ink-200);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--ink-200);
  overflow-x: auto;
}
.tab {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-500);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.tab:hover { color: var(--ink-700); }
.tab.active { color: var(--navy-800); border-bottom-color: var(--blue-600); }

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stepper-dot {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stepper-dot .num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--ink-100);
  color: var(--ink-500);
  border: 1px solid var(--ink-200);
}
.stepper-dot.active .num {
  background: var(--navy-800);
  color: white;
  border-color: var(--navy-800);
}
.stepper-dot.done .num {
  background: var(--blue-600);
  color: white;
  border-color: var(--blue-600);
}
.stepper-line {
  flex: 1;
  height: 2px;
  background: var(--ink-200);
  border-radius: 2px;
}
.stepper-dot.done + .stepper-line { background: var(--blue-600); }

/* Mobile nav */
@media (max-width: 920px) {
  .nav-desktop { display: none !important; }
}
@media (min-width: 921px) {
  .nav-mobile-toggle { display: none !important; }
}
