/* ============================================================
   TERANGA GLOBAL SOLUTIONS v3 — Shared Design System
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800;900&display=swap');

:root {
  --navy: #0A1628;
  --navy2: #112240;
  --blue: #1B4FD8;
  --blue2: #2563EB;
  --blue3: #3B82F6;
  --gold: #F59E0B;
  --gold2: #FBBF24;
  --green: #10B981;
  --red: #EF4444;
  --purple: #7C3AED;
  --teal: #0D9488;
  --white: #FFFFFF;
  --g50: #F8FAFC;
  --g100: #F1F5F9;
  --g200: #E2E8F0;
  --g300: #CBD5E1;
  --g400: #94A3B8;
  --g500: #64748B;
  --g700: #334155;
  --g900: #0F172A;
  --text: #1E293B;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
  --shadow-xl: 0 24px 64px rgba(0,0,0,.18);
  --transition: .22s ease;
  --nav-h: 130px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; color: var(--navy); }
.display { font-family: 'Playfair Display', serif; }
.eyebrow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 112px 0; }

/* ── GRID ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 700; cursor: pointer; transition: var(--transition); border: none; font-family: 'Inter', sans-serif; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(27,79,216,.3); }
.btn-primary:hover { background: var(--blue2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(27,79,216,.4); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 4px 14px rgba(245,158,11,.3); }
.btn-gold:hover { background: var(--gold2); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--g50); }
.btn-ghost { background: transparent; color: var(--g500); }
.btn-ghost:hover { background: var(--g100); color: var(--navy); }
.btn-lg { padding: 15px 32px; font-size: 1rem; border-radius: 10px; }
.btn-sm { padding: 8px 16px; font-size: .8rem; border-radius: 6px; }
.btn-icon { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 10px; }

/* ── CARDS ── */
.card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--g200); box-shadow: var(--shadow-sm); overflow: hidden; transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 24px; }
.card-premium { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--g200); box-shadow: var(--shadow-md); overflow: hidden; transition: var(--transition); }
.card-premium:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.badge-blue { background: rgba(27,79,216,.1); color: var(--blue); }
.badge-green { background: rgba(16,185,129,.1); color: var(--green); }
.badge-gold { background: rgba(245,158,11,.1); color: #D97706; }
.badge-red { background: rgba(239,68,68,.1); color: var(--red); }
.badge-purple { background: rgba(124,58,237,.1); color: var(--purple); }
.badge-gray { background: var(--g100); color: var(--g500); }
.badge-new { background: linear-gradient(135deg,var(--blue),var(--purple)); color: #fff; }

/* ── FORMS ── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--g700); margin-bottom: 6px; }
.form-control { width: 100%; padding: 11px 14px; border: 1.5px solid var(--g200); border-radius: var(--radius-sm); font-size: .9rem; font-family: 'Inter', sans-serif; outline: none; transition: var(--transition); background: var(--white); color: var(--text); }
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,79,216,.1); }
.form-control::placeholder { color: var(--g300); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ── SECTION HEADERS ── */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem,3.5vw,2.6rem); font-weight: 800; color: var(--navy); margin: 8px 0 16px; }
.section-header p { font-size: 1.05rem; color: var(--g500); line-height: 1.75; }
.section-header-left { text-align: left; max-width: none; margin: 0 0 40px; }

/* ── DIVIDERS ── */
.divider { height: 1px; background: var(--g200); margin: 0; }

/* ── ALERTS ── */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: .85rem; line-height: 1.6; display: flex; align-items: flex-start; gap: 10px; }
.alert-warning { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.25); color: #92400E; }
.alert-info { background: rgba(27,79,216,.06); border: 1px solid rgba(27,79,216,.15); color: #1e40af; }
.alert-success { background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.25); color: #065f46; }

/* ── PROGRESS ── */
.progress-bar { height: 6px; background: var(--g200); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; transition: width .6s ease; }

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--g200); }
.tl-item { position: relative; margin-bottom: 24px; }
.tl-dot { position: absolute; left: -28px; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--g300); }
.tl-dot.active { background: var(--blue); box-shadow: 0 0 0 3px rgba(27,79,216,.2); }
.tl-dot.done { background: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
.tl-dot.pending { background: var(--g300); }

/* ── RESPONSIVE ── */
@media(max-width:1024px) { .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media(max-width:768px) {
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section-lg { padding: 72px 0; }
  .container { padding: 0 16px; }
  .btn-lg { padding: 13px 24px; font-size: .92rem; }
}
@media(max-width:480px) { .section { padding: 40px 0; } }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
