/*
Theme Name: ERPAAN 3.0
Theme URI: https://erpaan.org
Description: Pan-African network advancing ageing research, policy and practice
Version: 3.0
Author: ERPAAN
Author URI: https://erpaan.org
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: erpaan-3-0
Domain Path: /languages
*/

body {
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
  background: #0e0e0e;
  color: #0e0e0e;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

:root {
  --red: oklch(0.47 0.19 22);
  --black: #0e0e0e;
  --white: #f5f4f2;
  --gray-100: #f0efed;
  --gray-200: #e2e1de;
  --gray-400: #9b9a97;
  --gray-600: #5c5b58;
  --gray-800: #2a2926;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  background: #0e0e0e;
}

/* Section & Layout */
.section { padding: 80px 32px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-dark { background: #0e0e0e; }
.section-gray { background: #f0efed; }

/* Page Header */
.page-header {
  position: relative;
  margin: -1px 0 0;
  padding: 140px 32px 72px;
  overflow: hidden;
  background: #0e0e0e;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(14,14,14,0.82) 0%, rgba(14,14,14,0.65) 60%, rgba(14,14,14,0.4) 100%);
  z-index: 1;
}

.page-header-bg {
  position: absolute;
  top: -3px;
  left: -3px;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.page-header-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.page-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 5vw, 64px);
  color: #f5f4f2;
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-header p {
  color: rgba(245,244,242,0.65);
  font-size: 17px;
  line-height: 1.7;
  max-width: 560px;
}

/* Section Label */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--red);
}

.section-label span {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2.serif {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-outline {
  display: inline-block;
  border: 1.5px solid rgba(245,244,242,0.4);
  color: #f5f4f2;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: rgba(245,244,242,0.1);
  border-color: rgba(245,244,242,0.7);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--red);
  padding-bottom: 3px;
  transition: gap 0.2s;
}

.link-arrow:hover {
  gap: 16px;
}

/* Main Content */
.site-main {
  margin-top: 0;
  padding-bottom: 0;
  background: #0e0e0e;
}

.site-main--fullwidth {
  margin-top: 0;
  padding-bottom: 0;
  background: #0e0e0e;
}

.erpaan-fullwidth-content {
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
  background: #0e0e0e;
}

.erpaan-fullwidth-content > :first-child {
  margin-top: 0;
}

.erpaan-fullwidth-content > :last-child {
  margin-bottom: 0;
}
