/* ═══════════════════════════════════════════════════════════════
   INARELS — Global Stylesheet
   Design system: Navy/Gold/Off-white, Playfair Display + Source Sans 3
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
  --navy:         #0B1120;
  --navy-mid:     #131d35;
  --navy-light:   #1c2a47;
  --gold:         #C9922A;
  --gold-light:   #dba94a;
  --gold-pale:    #f0d898;
  --white:        #ffffff;
  --off-white:    #f4f1eb;
  --warm-grey:    #e8e4dc;
  --text-dark:    #1a1a2e;
  --text-mid:     #3d3d5c;
  --text-light:   #7a7a9a;
  --green:        #2d5016;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:    0 24px 64px rgba(0,0,0,0.18);
  --radius:       4px;
  --radius-lg:    8px;
  --transition:   0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Source Sans 3', 'Helvetica Neue', sans-serif;
  color: var(--text-dark);
  background: var(--off-white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ─── Typography ─── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.15;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
p  { font-size: 1.0625rem; color: var(--text-mid); }

/* ─── Container ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,146,42,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.65);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* ─── Section Kicker ─── */
.section-kicker {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.kicker-light { color: rgba(255,255,255,0.7); }
.kicker-gold  { color: var(--gold); }

/* ══════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.site-header.scrolled {
  background: rgba(11,17,32,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo-block {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}
.logo-inarels {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.logo-tagline {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* Nav */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}
.main-nav a {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.82);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.main-nav a.nav-portal {
  background: var(--gold);
  color: var(--white);
  padding: 8px 18px;
}
.main-nav a.nav-portal:hover {
  background: var(--gold-light);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ══════════════════════════════════════════════════════════════
   HERO SLIDER
   ══════════════════════════════════════════════════════════════ */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
}

/* Each slide */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  display: flex;
  align-items: center;
}
.slide.active { opacity: 1; z-index: 2; }
.slide.prev   { opacity: 0; z-index: 1; }

/* Slide backgrounds — rich gradient placeholders (swap for real images) */
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: brightness(0.7);
  transition: transform 8s ease;
}
.slide.active .slide-bg { transform: scale(1.0); }

.slide-bg-1 { background: url('../images/slides/slide-1.jpg') center center / cover no-repeat; }
.slide-bg-2 { background: url('../images/slides/slide-2.jpg') center center / cover no-repeat; }
.slide-bg-3 { background: url('../images/slides/slide-3.jpg') center center / cover no-repeat; }
.slide-bg-4 { background: url('../images/slides/slide-4.jpg') center top / cover no-repeat; }
.slide-bg-5 { background: url('../images/slides/slide-5.jpg') center center / cover no-repeat; }

/* Overlay for readability */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(11,17,32,0.94) 0%,
    rgba(11,17,32,0.80) 45%,
    rgba(11,17,32,0.60) 100%
  );
  z-index: 1;
}

/* Slide content */
.slide-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 80px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease 0.5s, transform 0.7s ease 0.5s;
}
.slide.active .slide-content {
  opacity: 1;
  transform: translateY(0);
}
.slide-label {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border-left: 3px solid var(--gold);
  padding-left: 12px;
  margin-bottom: 20px;
}
.slide-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.8rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.slide-heading em {
  font-style: italic;
  color: var(--gold-pale);
}
.slide-sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 560px;
}
.slide-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Slider controls */
.slider-controls {
  position: absolute;
  bottom: 40px;
  left: 80px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
}
.slider-arrow {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
  background: rgba(11,17,32,0.3);
}
.slider-arrow:hover {
  border-color: var(--gold);
  background: rgba(201,146,42,0.2);
  color: var(--gold);
}
.slider-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: var(--transition);
  cursor: pointer;
}
.dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

/* Progress bar */
.slider-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--gold);
  width: 0%;
  z-index: 10;
  transition: width 0.1s linear;
}

/* ══════════════════════════════════════════════════════════════
   WHAT INARELS DOES — Feature Cards
   ══════════════════════════════════════════════════════════════ */
.what-section {
  padding: 100px 0;
  background: var(--white);
}
.section-intro {
  text-align: center;
  margin-bottom: 60px;
}
.section-intro h2 {
  margin-top: 8px;
}
.section-desc {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 1.0625rem;
  color: var(--text-light);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 40px 28px 36px;
  border-top: 3px solid transparent;
  transition: var(--transition);
  position: relative;
}
.feature-card:hover {
  border-top-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.feature-icon {
  width: 52px;
  height: 52px;
  color: var(--gold);
  margin-bottom: 20px;
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 12px;
  color: var(--navy);
}
.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════
   FEATURED PROJECTS
   ══════════════════════════════════════════════════════════════ */
.projects-section {
  padding: 100px 0;
  background: var(--off-white);
}

/* Tabs */
.project-tabs-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.ptab {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: 100px;
  border: 2px solid var(--warm-grey);
  color: var(--text-mid);
  background: var(--white);
  transition: var(--transition);
  cursor: pointer;
}
.ptab:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.ptab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.project-card.hidden { display: none; }

/* Card image area */
.project-card-img {
  height: 190px;
  position: relative;
  overflow: hidden;
}
.project-img-1 { background: url('../images/projects/proj-1.jpg') center center / cover no-repeat; }
.project-img-2 { background: url('../images/projects/proj-2.jpg') center center / cover no-repeat; }
.project-img-3 { background: url('../images/projects/proj-3.jpg') center center / cover no-repeat; }
.project-img-4 { background: url('../images/projects/proj-4.jpg') center center / cover no-repeat; }

.project-status {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(201,146,42,0.9);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 100px;
}
.project-tags {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 3px 9px;
  border-radius: 100px;
}

/* Card body */
.project-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-card-body h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--navy);
}
.project-card-body p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.project-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--warm-grey);
}
.meta-item {
  font-size: 0.8125rem;
  color: var(--text-light);
}
.meta-item strong { color: var(--text-mid); }

/* Badges */
.project-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
}
.badge-pub  { background: #e8f0ff; color: #1a3a8f; }
.badge-img  { background: #fff3e0; color: #8f4e00; }
.badge-data { background: #e8f5e9; color: #1b5e20; }
.badge-mem  { background: #fce4ec; color: #880e4f; }

.btn-project {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
  transition: var(--transition);
  align-self: flex-start;
}
.btn-project:hover { color: var(--navy); }

/* Projects CTA */
.projects-cta {
  text-align: center;
  margin-top: 52px;
}

/* ══════════════════════════════════════════════════════════════
   MAP TEASER
   ══════════════════════════════════════════════════════════════ */
.map-teaser-section {
  background: var(--navy);
  padding: 100px 0;
  overflow: hidden;
}
.map-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.map-teaser-text h2 {
  color: var(--white);
  margin-bottom: 20px;
}
.map-teaser-text p {
  color: rgba(255,255,255,0.68);
  margin-bottom: 40px;
  max-width: 480px;
}

/* Stats */
.map-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 44px;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* Map SVG visual */
.map-teaser-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.africa-map-svg {
  width: 100%;
  max-width: 340px;
  filter: drop-shadow(0 0 40px rgba(201,146,42,0.15));
}
.map-region-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.region-label {
  position: absolute;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201,146,42,0.7);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   JOIN SECTION
   ══════════════════════════════════════════════════════════════ */
.join-section {
  padding: 100px 0;
  background: var(--white);
}
.join-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 80px;
  align-items: start;
}
.join-text h2 {
  margin-bottom: 18px;
}
.join-text p {
  margin-bottom: 28px;
  max-width: 520px;
}
.join-list {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.join-list li {
  font-size: 0.9375rem;
  color: var(--text-mid);
  padding-left: 20px;
  position: relative;
}
.join-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background: var(--gold);
}

/* Quote block */
.join-quote-block {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  position: relative;
  margin-top: 48px;
}
.join-quote-block::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: 12px;
  left: 24px;
  line-height: 1;
}
blockquote p {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--off-white);
  line-height: 1.6;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
blockquote cite {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--navy-mid);
  padding: 80px 0 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 12px;
}
.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.6;
}
.footer-disclaimer {
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.3) !important;
  line-height: 1.55 !important;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
  margin-top: 4px !important;
}
.footer-col h4 {
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--gold); }
.footer-email {
  display: inline-block;
  margin-top: 12px;
  color: var(--gold) !important;
  font-weight: 600;
  font-size: 0.9rem !important;
  border-bottom: 1px solid rgba(201,146,42,0.4);
  padding-bottom: 2px;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.2);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
  .project-grid  { grid-template-columns: repeat(2, 1fr); }
  .map-teaser-inner { grid-template-columns: 1fr; gap: 48px; }
  .africa-map-svg { max-width: 260px; }
  .footer-inner  { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand  { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--navy);
    padding: 80px 32px 40px;
    transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
    z-index: 999;
    box-shadow: -8px 0 40px rgba(0,0,0,0.4);
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a {
    font-size: 1rem;
    padding: 14px 16px;
    display: block;
    border-radius: var(--radius);
  }
  .main-nav a.nav-portal { text-align: center; margin-top: 16px; }

  .slide-content { padding: 0 24px; }
  .slide-heading  { font-size: 2rem; }
  .slider-controls { left: 24px; bottom: 28px; }

  .feature-cards { grid-template-columns: 1fr; gap: 20px; }
  .project-grid  { grid-template-columns: 1fr; }
  .map-stats     { grid-template-columns: repeat(2, 1fr); }
  .join-inner    { grid-template-columns: 1fr; gap: 40px; }
  .join-quote-block { margin-top: 0; }
  .footer-inner  { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .slide-ctas { flex-direction: column; }
  .btn { text-align: center; }
  .slide-heading { font-size: 1.65rem; }
  .project-tabs-row { gap: 6px; }
}
