/* ==========================================================================
   ESCR-Asia Design System & Core Stylesheet
   Economic, Social and Cultural Rights Asia - Pakistan
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

/* --- Design Tokens / CSS Variables --- */
:root {
  /* Color Palette */
  --navy-950: #050e1d;
  --navy-900: #0a192f;
  --navy-850: #0d2342;
  --navy-800: #132f57;
  --navy-700: #1b3d6f;
  --navy-600: #255294;
  --navy-500: #3b82f6;

  /* Accent Gold / Amber */
  --gold-600: #a77726;
  --gold-500: #c5933a;
  --gold-400: #dfab4e;
  --gold-300: #f3c774;
  --gold-100: #fef5e4;

  /* Teals / Cyan for human rights accents */
  --teal-600: #087f97;
  --teal-500: #0ea5e9;
  --teal-100: #e0f2fe;

  /* Neutrals */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  /* Semantic Variables */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-dark: var(--navy-900);
  --bg-darker: var(--navy-950);

  --text-main: var(--slate-900);
  --text-muted: var(--slate-600);
  --text-light: var(--slate-400);
  --text-inverse: var(--white);

  --primary: var(--navy-900);
  --primary-accent: var(--gold-500);
  --primary-accent-hover: var(--gold-400);

  --border-light: var(--slate-200);
  --border-subtle: #eaeff5;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-gold: 0 10px 25px -5px rgba(197, 147, 58, 0.25);
  --shadow-glow: 0 0 35px rgba(14, 165, 233, 0.15);

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

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout Container */
  --max-width: 1240px;
  --container-padding: 1.5rem;
}

/* --- Global Reset & Base Elements --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-primary);
  line-height: 1.65;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

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

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

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

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

/* --- Typography Utilities --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.text-gold {
  color: var(--gold-500);
}

.text-muted {
  color: var(--text-muted);
}

/* --- Section Layouts --- */
.section {
  padding: 5.5rem 0;
  position: relative;
}

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

.section-dark {
  background-color: var(--navy-900);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: var(--gold-100);
  color: var(--gold-600);
  border: 1px solid rgba(197, 147, 58, 0.25);
  margin-bottom: 1rem;
}

.badge-tag.badge-light {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--gold-300);
  border-color: rgba(243, 199, 116, 0.3);
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-dark .section-subtitle {
  color: var(--slate-300);
}

/* --- Buttons & CTAs --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.975rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
  color: var(--white);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -4px rgba(197, 147, 58, 0.4);
}

.btn-navy {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-navy:hover {
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-800) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-gold {
  background: transparent;
  border-color: var(--gold-500);
  color: var(--gold-500);
}

.btn-outline-gold:hover {
  background-color: var(--gold-500);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

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

/* --- Card Styles --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--slate-300);
}

/* --- Micro Utilities --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }
  .section-header {
    margin-bottom: 2.25rem;
  }
}
