/* ============================================
   Global Styles — H.E. Shamma Al Mazrui
   Minister of Community Empowerment, UAE
   Emerald / Gold Premium Design System
   ============================================ */

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

:root {
  /* Primary palette */
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;
  --emerald-950: #022c22;

  /* Gold accent */
  --gold-300: #d4b96a;
  --gold-400: #c4a956;
  --gold-500: #b09840;
  --gold-600: #8b7a32;
  --gold-700: #6b5e27;

  /* Background */
  --bg-deepest: #041c1a;
  --bg-deep: #0a2e2a;
  --bg-mid: #0d3d35;
  --bg-accent: #115e4a;

  /* Surface / Glass */
  --glass-01: rgba(255,255,255,0.02);
  --glass-04: rgba(255,255,255,0.04);
  --glass-06: rgba(255,255,255,0.06);
  --glass-08: rgba(255,255,255,0.08);
  --glass-10: rgba(255,255,255,0.10);
  --glass-border: rgba(255,255,255,0.08);

  /* Text */
  --text-white: #ffffff;
  --text-90: rgba(255,255,255,0.9);
  --text-70: rgba(255,255,255,0.7);
  --text-50: rgba(255,255,255,0.5);
  --text-35: rgba(255,255,255,0.35);
  --text-20: rgba(255,255,255,0.2);

  /* Spacing */
  --section-pad: 7rem 0;
  --container-width: 1220px;
  --container-pad: 0 2rem;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-deepest);
  color: var(--text-90);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-deepest);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--glass-10);
  border-top-color: var(--emerald-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

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

/* ---------- Section ---------- */
.section {
  padding: var(--section-pad);
  position: relative;
}
.section-alt { background: var(--glass-01); }
.section-dark { background: linear-gradient(180deg, var(--bg-deepest) 0%, var(--bg-deep) 100%); }

.section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-400);
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-50);
  max-width: 640px;
  line-height: 1.65;
}
.section-header { margin-bottom: 3.5rem; }
.section-header-center { text-align: center; }
.section-header-center .section-subtitle { margin: 0 auto; }

/* Gold decorative rule */
.gold-rule {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  border-radius: 2px;
  margin: 1.2rem 0;
}
.gold-rule-center { margin: 1.2rem auto; }

/* ---------- Navigation ---------- */
.main-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 2rem;
  transition: all 0.4s var(--ease);
}
.main-nav.scrolled {
  padding: 0.7rem 2rem;
  background: rgba(4, 28, 26, 0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 0.55rem;
}
.nav-logo-accent {
  color: var(--gold-400);
  font-weight: 400;
  font-size: 0.85rem;
}

.nav-links {
  display: flex; align-items: center; gap: 0.15rem;
}
.nav-links a {
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-70);
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-white);
  background: var(--glass-06);
}
.nav-links a.active::after {
  content: '';
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 2px;
  background: var(--emerald-500);
  border-radius: 1px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 6px;
  z-index: 1001;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ---------- Hero Variants ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-deepest) 0%, var(--bg-deep) 40%, var(--bg-mid) 100%);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(16,185,129,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(196,169,86,0.04) 0%, transparent 45%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.012'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Split hero */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative; z-index: 2;
}

.hero-content { position: relative; z-index: 2; }
.hero-pretitle {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold-400);
  margin-bottom: 1rem;
  font-weight: 600;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 0.5rem;
}
.hero-name-accent {
  background: linear-gradient(135deg, var(--emerald-400), var(--emerald-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-role {
  font-size: 1.1rem;
  color: var(--text-50);
  margin-bottom: 1.6rem;
  font-weight: 400;
  line-height: 1.5;
}
.hero-tagline {
  font-size: 1.15rem;
  color: var(--gold-300);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 2.5rem;
}

/* Hero image */
.hero-image-wrapper {
  position: relative;
  display: flex; justify-content: center;
}
.hero-image-frame {
  position: relative;
  width: 380px; height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--glass-10);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.4),
    0 0 0 1px var(--glass-border),
    inset 0 0 80px rgba(16,185,129,0.05);
}
.hero-image-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-image-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(4,28,26,0.5) 100%);
}
.hero-image-ornament {
  position: absolute;
  width: calc(100% + 24px); height: calc(100% + 24px);
  top: -12px; left: -12px;
  border: 1px solid rgba(196,169,86,0.15);
  border-radius: calc(var(--radius-lg) + 6px);
  pointer-events: none;
}

/* Hero KPI bar */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--glass-border);
}
.hero-stat {}
.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--emerald-400);
}
.hero-stat-label {
  font-size: 0.72rem;
  color: var(--text-35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* Full-bleed hero */
.hero-fullbleed {
  min-height: 75vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
  background-size: cover;
  background-position: center top;
}
.hero-fullbleed::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(4,28,26,0.3) 0%,
    rgba(4,28,26,0.6) 50%,
    rgba(4,28,26,0.95) 100%);
}

/* Centered hero (minimal) */
.hero-centered {
  min-height: 55vh;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: 6rem;
}
.hero-centered .hero-title { max-width: 780px; margin: 0 auto 1rem; }
.hero-centered .hero-role { max-width: 580px; margin: 0 auto; }

/* ---------- Glass Cards ---------- */
.glass-card {
  background: var(--glass-04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: all 0.4s var(--ease);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.glass-card:hover {
  background: var(--glass-08);
  border-color: rgba(16,185,129,0.15);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.glass-card-compact {
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius-md);
}

.glass-card-gold { border-color: rgba(196,169,86,0.2); }
.glass-card-gold:hover { border-color: rgba(196,169,86,0.35); }

/* Card icon */
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(16,185,129,0.04));
  border: 1px solid rgba(16,185,129,0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
}
.card-icon svg {
  width: 24px; height: 24px;
  stroke: var(--emerald-400);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-icon-gold {
  background: linear-gradient(135deg, rgba(196,169,86,0.12), rgba(196,169,86,0.04));
  border-color: rgba(196,169,86,0.15);
}
.card-icon-gold svg { stroke: var(--gold-400); }

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.card-text {
  font-size: 0.88rem;
  color: var(--text-50);
  line-height: 1.65;
}

/* ---------- Stat Cards ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat-card {
  background: var(--glass-04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  text-align: center;
  transition: all 0.4s var(--ease);
}
.stat-card:hover {
  background: var(--glass-08);
  transform: translateY(-3px);
}
.stat-value {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--emerald-400), var(--emerald-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.4rem;
}

/* ---------- Progress Bars ---------- */
.progress-bar {
  height: 6px;
  background: var(--glass-06);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.8rem;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald-500), var(--emerald-400));
  border-radius: 3px;
  width: 0;
  transition: width 1.5s var(--ease-out);
}

/* ---------- Timeline ---------- */
/* Vertical */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: '';
  position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--emerald-600), var(--glass-06));
}
.timeline-item {
  position: relative;
  padding-bottom: 2.8rem;
  opacity: 0; transform: translateY(20px);
  transition: all 0.6s var(--ease);
}
.timeline-item.visible { opacity: 1; transform: translateY(0); }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-deepest);
  border: 2px solid var(--emerald-500);
  z-index: 1;
}
.timeline-item.active::before {
  background: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.15);
}
.timeline-year {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-400);
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.timeline-text {
  font-size: 0.88rem;
  color: var(--text-50);
  line-height: 1.6;
}

/* Horizontal timeline */
.h-timeline {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.h-timeline::-webkit-scrollbar { height: 4px; }
.h-timeline::-webkit-scrollbar-track { background: var(--glass-04); border-radius: 2px; }
.h-timeline::-webkit-scrollbar-thumb { background: var(--emerald-600); border-radius: 2px; }

.h-timeline-card {
  min-width: 280px;
  scroll-snap-align: start;
  background: var(--glass-04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  flex-shrink: 0;
  transition: all 0.4s var(--ease);
}
.h-timeline-card:hover {
  background: var(--glass-08);
  border-color: rgba(16,185,129,0.15);
}
.h-timeline-year {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-400);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.h-timeline-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.h-timeline-text {
  font-size: 0.84rem;
  color: var(--text-50);
  line-height: 1.6;
}

/* ---------- Accordion ---------- */
.accordion { display: flex; flex-direction: column; gap: 0.8rem; }
.accordion-item {
  background: var(--glass-04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.accordion-item.active { border-color: rgba(16,185,129,0.2); }
.accordion-header {
  padding: 1.3rem 1.6rem;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-90);
  transition: background 0.3s;
}
.accordion-header:hover { background: var(--glass-04); }
.accordion-chevron {
  width: 20px; height: 20px;
  stroke: var(--text-50);
  fill: none; stroke-width: 2;
  transition: transform 0.3s var(--ease);
}
.accordion-item.active .accordion-chevron { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}
.accordion-body-inner {
  padding: 0 1.6rem 1.6rem;
  font-size: 0.88rem;
  color: var(--text-50);
  line-height: 1.7;
}

/* ---------- Tabs ---------- */
.tabs-wrapper {}
.tabs-nav {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0;
  overflow-x: auto;
}
.tab-btn {
  padding: 0.85rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-50);
  border-bottom: 2px solid transparent;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text-90); }
.tab-btn.active {
  color: var(--emerald-400);
  border-bottom-color: var(--emerald-500);
}
.tab-pane {
  display: none;
  animation: fadeTabIn 0.4s var(--ease) both;
}
.tab-pane.active { display: block; }
@keyframes fadeTabIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-white);
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  border: none;
  border-radius: var(--radius-sm);
  transition: all 0.35s var(--ease);
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(16,185,129,0.3);
}
.btn-primary:hover::before { opacity: 1; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--emerald-400);
  background: transparent;
  border: 1.5px solid rgba(16,185,129,0.3);
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease);
}
.btn-outline:hover {
  background: rgba(16,185,129,0.08);
  border-color: var(--emerald-500);
  transform: translateY(-2px);
}

/* ---------- Pull Quote ---------- */
.pull-quote {
  position: relative;
  padding: 2.5rem 3rem;
  background: var(--glass-04);
  border-left: 3px solid var(--gold-400);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-70);
}
.pull-quote-author {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 600;
  color: var(--gold-400);
  letter-spacing: 0.05em;
}

/* ---------- Feature Banner ---------- */
.feature-banner {
  background: var(--glass-04);
  border: 1px solid rgba(196,169,86,0.2);
  border-radius: var(--radius-lg);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.feature-banner::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(196,169,86,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.feature-banner-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-400);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.feature-banner-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.feature-banner-text {
  font-size: 0.92rem;
  color: var(--text-50);
  line-height: 1.7;
  max-width: 720px;
}

/* ---------- Icon List ---------- */
.icon-list { display: flex; flex-direction: column; gap: 1rem; }
.icon-list-item {
  display: flex; align-items: flex-start; gap: 1rem;
}
.icon-list-bullet {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 8px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.15);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.icon-list-bullet svg {
  width: 14px; height: 14px;
  stroke: var(--emerald-400);
  fill: none; stroke-width: 2;
}
.icon-list-text {
  font-size: 0.9rem;
  color: var(--text-70);
  line-height: 1.5;
}

/* ---------- Bento Grid ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}
.bento-item-large {
  grid-row: span 2;
}

/* ---------- Split Layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

.split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.split-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Masonry Grid ---------- */
.masonry-grid {
  columns: 3;
  column-gap: 1.2rem;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  transition: all 0.4s var(--ease);
}
.masonry-item:hover {
  border-color: rgba(16,185,129,0.2);
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}
.masonry-item img { width: 100%; display: block; }
.masonry-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(4,28,26,0.9));
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s var(--ease);
}
.masonry-item:hover .masonry-caption {
  opacity: 1; transform: translateY(0);
}
.masonry-caption-text {
  font-size: 0.82rem;
  color: var(--text-90);
  font-weight: 500;
}

/* ---------- Horizontal Scroll Band ---------- */
.scroll-band {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.scroll-band::-webkit-scrollbar { height: 3px; }
.scroll-band::-webkit-scrollbar-track { background: var(--glass-04); }
.scroll-band::-webkit-scrollbar-thumb { background: var(--emerald-600); border-radius: 2px; }

.scroll-band-card {
  min-width: 260px; flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--glass-04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  transition: all 0.3s var(--ease);
}
.scroll-band-card:hover { background: var(--glass-08); transform: translateY(-3px); }

/* ---------- Form Styles ---------- */
.form-group { margin-bottom: 1.4rem; }
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-50);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.95rem 1.2rem;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  background: var(--glass-04);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  transition: all 0.3s var(--ease);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-35);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: rgba(16,185,129,0.5);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.08);
  background: var(--glass-06);
}
.form-textarea { resize: vertical; min-height: 140px; }

/* ---------- Footer ---------- */
.main-footer {
  background: var(--bg-deepest);
  border-top: 1px solid var(--glass-border);
  padding: 5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}
.footer-brand-text {
  font-size: 0.85rem;
  color: var(--text-35);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 280px;
}
.footer-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-50);
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-35);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--emerald-400); }

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}
.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  background: var(--glass-04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  transition: all 0.3s;
}
.newsletter-input:focus {
  outline: none;
  border-color: rgba(16,185,129,0.4);
}
.newsletter-input::placeholder { color: var(--text-35); }
.newsletter-btn {
  padding: 0.75rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-sm);
  transition: all 0.3s;
  white-space: nowrap;
}
.newsletter-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(16,185,129,0.25); }

.footer-bottom {
  margin-top: 3.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-20);
}
.footer-social {
  display: flex; gap: 1rem;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--glass-04);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.footer-social a:hover {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.25);
  transform: translateY(-2px);
}
.footer-social svg {
  width: 16px; height: 16px;
  fill: var(--text-50);
  transition: fill 0.3s;
}
.footer-social a:hover svg { fill: var(--emerald-400); }

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.2);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  z-index: 900;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all 0.4s var(--ease);
  cursor: pointer;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: rgba(16,185,129,0.25); transform: translateY(-3px); }
.back-to-top svg {
  width: 20px; height: 20px;
  stroke: var(--emerald-400);
  fill: none; stroke-width: 2;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.stagger-children > * {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.19s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.26s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.33s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.47s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.54s; opacity: 1; transform: translateY(0); }

/* ---------- Grid Utilities ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ---------- Text Utilities ---------- */
.text-center { text-align: center; }
.text-gold { color: var(--gold-400); }
.text-emerald { color: var(--emerald-400); }
.text-muted { color: var(--text-50); }
.font-bold { font-weight: 700; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ---------- Contact Info Cards ---------- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.contact-info-card {
  background: var(--glass-04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  text-align: center;
  transition: all 0.4s var(--ease);
}
.contact-info-card:hover {
  background: var(--glass-08);
  transform: translateY(-4px);
  box-shadow: 0 15px 45px rgba(0,0,0,0.2);
}
.contact-info-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(16,185,129,0.04));
  border: 1px solid rgba(16,185,129,0.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
}
.contact-info-icon svg {
  width: 24px; height: 24px;
  stroke: var(--emerald-400);
  fill: none; stroke-width: 1.5;
}
.contact-info-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.contact-info-text {
  font-size: 0.85rem;
  color: var(--text-50);
  line-height: 1.6;
}

/* ---------- Social Links Grid ---------- */
.social-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.social-link {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--glass-04);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.4s var(--ease);
}
.social-link:hover {
  background: rgba(16,185,129,0.12);
  border-color: rgba(16,185,129,0.3);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.social-link svg {
  width: 22px; height: 22px;
  fill: var(--text-50);
  transition: fill 0.3s;
}
.social-link:hover svg { fill: var(--emerald-400); }

/* ---------- Page-Specific: Pillar Cards ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.pillar-card {
  background: var(--glass-04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  text-align: center;
  transition: all 0.4s var(--ease);
}
.pillar-card:hover {
  background: var(--glass-08);
  transform: translateY(-3px);
  border-color: rgba(16,185,129,0.15);
}
.pillar-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--emerald-400), var(--emerald-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.6rem;
}
.pillar-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.pillar-text {
  font-size: 0.78rem;
  color: var(--text-50);
  line-height: 1.55;
}

/* ---------- World Map Abstraction ---------- */
.world-map-section {
  position: relative;
  overflow: hidden;
}
.world-dots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8px, 1fr));
  gap: 4px;
  opacity: 0.06;
  position: absolute; inset: 0;
  pointer-events: none;
}
.world-dot {
  width: 4px; height: 4px;
  background: var(--emerald-400);
  border-radius: 50%;
}

/* Region cards */
.region-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.region-card {
  background: var(--glass-04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.4s var(--ease);
}
.region-card:hover {
  background: var(--glass-08);
  transform: translateY(-3px);
}
.region-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.region-detail {
  font-size: 0.78rem;
  color: var(--text-50);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-image-wrapper { order: -1; }
  .hero-image-frame { width: 300px; height: 380px; margin: 0 auto; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 3rem; }
  .split-reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-info-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-item-large { grid-row: span 1; }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 4.5rem 0;
    --container-pad: 0 1.2rem;
  }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: rgba(4,28,26,0.97);
    backdrop-filter: blur(25px);
    flex-direction: column;
    padding: 5rem 2rem;
    gap: 0.5rem;
    transition: right 0.4s var(--ease);
    border-left: 1px solid var(--glass-border);
    z-index: 1000;
  }
  .nav-links.open { right: 0; }
  .nav-links a { padding: 0.8rem 1rem; font-size: 0.95rem; width: 100%; }

  .hero-title { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .hero-stat-value { font-size: 1.5rem; }
  .hero-image-frame { width: 260px; height: 340px; }

  .section-title { font-size: clamp(1.5rem, 5vw, 2.2rem); }
  .pull-quote { padding: 1.8rem 1.5rem; font-size: 1.05rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .masonry-grid { columns: 2; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { min-height: auto; padding: 8rem 0 4rem; }
  .hero-centered { min-height: auto; padding: 8rem 0 4rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .masonry-grid { columns: 1; }
  .hero-image-frame { width: 220px; height: 290px; }
  .newsletter-form { flex-direction: column; }
}
