/* ================================================
   EHIMEKOS CHARITY FOUNDATION - Global Styles
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;600;700&display=swap');

/* ── Top Bar ── */
.top-bar {
  background: var(--green-900);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 9px 0;
  position: relative;
  z-index: 1001;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.65);
}
.top-bar-item a { color: rgba(255,255,255,0.65); transition: var(--transition); }
.top-bar-item a:hover { color: var(--white); }

.charity-id-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-500);
  color: var(--green-900);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-bar-right a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.top-bar-right a:hover { color: var(--gold-400); }

@media (max-width: 768px) {
  .top-bar { display: none; }
}

/* ── Charity badge in navbar ── */
.nav-charity-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-top: 2px;
  text-transform: uppercase;
}

/* ── Board/Trustee Cards ── */
.trustee-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}
.trustee-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }

.trustee-header {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  padding: 40px 36px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.trustee-header::before {
  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='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/svg%3E");
}
.trustee-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 900;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.25);
  position: relative; z-index: 1;
  color: var(--green-900);
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}
.avatar-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-300)); }
.avatar-green { background: linear-gradient(135deg, var(--green-400), var(--green-300)); }

.trustee-header-info { position: relative; z-index: 1; }
.trustee-header-info h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 4px; }
.trustee-role-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--gold-300);
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 14px; border-radius: var(--radius-full);
}

.trustee-body { padding: 28px 32px; }
.trustee-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--gray-100);
  font-size: 0.88rem;
}
.trustee-row:last-child { border-bottom: none; }
.trustee-row-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--green-100);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.trustee-row-label { font-size: 0.68rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 2px; }
.trustee-row-value { color: var(--gray-800); font-weight: 500; }
.trustee-row-value a { color: var(--green-600); }
.trustee-row-value a:hover { text-decoration: underline; }

/* ── CSS Variables ── */
:root {
  --green-900: #0a3d2e;
  --green-800: #0e5038;
  --green-700: #156845;
  --green-600: #1a7f52;
  --green-500: #21975f;
  --green-400: #34b374;
  --green-300: #5dca93;
  --green-100: #d1f5e3;
  --gold-600: #b8860b;
  --gold-500: #d4a017;
  --gold-400: #f0b429;
  --gold-300: #f5ca5e;
  --gold-100: #fef8e4;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 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: 'Outfit', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── Typography ── */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.2rem; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-600);
  background: var(--green-100);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.7;
}

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

.section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 60px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-subtitle {
  margin: 0 auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(26, 127, 82, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26, 127, 82, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--green-600);
  border: 2px solid var(--green-600);
}

.btn-secondary:hover {
  background: var(--green-600);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-500));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(212, 160, 23, 0.4);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 160, 23, 0.5);
}

.btn-white {
  background: var(--white);
  color: var(--green-700);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: var(--green-100);
  transform: translateY(-2px);
}

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26,127,82,0.08);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--green-800);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.nav-logo-tagline {
  font-size: 0.65rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green-700);
  background: var(--green-100);
}

.nav-donate-btn {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: var(--white) !important;
  box-shadow: 0 4px 14px rgba(26,127,82,0.35);
}

.nav-donate-btn:hover {
  background: linear-gradient(135deg, var(--green-700), var(--green-600)) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,127,82,0.45) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--green-700);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Footer ── */
.footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.85);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img {
  width: 60px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  filter: brightness(0) invert(1) sepia(1) saturate(0) brightness(2);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin-top: 12px;
}

.footer-brand .org-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.footer-col h5 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-400);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}

.footer-contact-item .icon {
  font-size: 1rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.45);
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: rgba(255,255,255,0.8);
}

.reg-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 14px;
}

.reg-badge strong { color: var(--gold-400); }

/* ── Page Header ── */
.page-header {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  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.03'%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");
}

.page-header-inner {
  position: relative;
  z-index: 1;
}

.page-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

.page-header .breadcrumb a {
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.page-header .breadcrumb a:hover { color: var(--white); }
.page-header .breadcrumb span { color: rgba(255,255,255,0.9); }

.page-header h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.page-header p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* ── Stat Badges ── */
.stat-badge {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  border-radius: var(--radius-md);
  color: var(--white);
}

.stat-badge .num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold-400);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-badge .label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Utility ── */
.text-green { color: var(--green-600); }
.text-gold { color: var(--gold-500); }
.text-muted { color: var(--gray-500); }
.fw-bold { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

/* ── Grid Layouts ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Divider ── */
.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--green-500), var(--gold-400));
  border-radius: 4px;
  margin: 16px 0 24px;
}

.divider.centered { margin: 16px auto 24px; }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .section { padding: 70px 0; }

  .nav-links { 
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 16px; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
}
