/* =========================================================
   Ummeed Foundation — Design Tokens & Global Styles
   ========================================================= */
:root {
  --color-primary: #00843D;
  --color-primary-dark: #00602c;
  --color-secondary: #0E9F6E;
  --color-accent: #FFB930;
  --color-ink: #0C1F17;
  --color-slate: #4B5D55;
  --color-light: #F4F9F6;
  --color-white: #FFFFFF;
  --color-border: rgba(12, 31, 23, 0.08);

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-soft: 0 20px 60px -20px rgba(0, 60, 30, 0.25);
  --shadow-card: 0 12px 32px -12px rgba(12, 31, 23, 0.18);

  --container-max: 1280px;
}

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

a { text-decoration: none; color: inherit; }

.container-xl { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }

.text-primary-brand { color: var(--color-primary) !important; }
.bg-brand-light { background: var(--color-light); }

/* ---------- Eyebrow / section label ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-secondary);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn-brand {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  border: none;
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 14px 30px -10px rgba(0, 132, 61, 0.55);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn-brand:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px -10px rgba(0, 132, 61, 0.65);
  color: #fff;
}
.btn-outline-brand {
  border: 1.5px solid rgba(255,255,255,0.55);
  color: #fff;
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.08);
  transition: all .25s ease;
}
.btn-outline-brand:hover { background: rgba(255,255,255,0.2); color: #fff; }

.btn-brand-dark {
  background: var(--color-ink);
  color: #fff;
  border: none;
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Navbar ---------- */
.site-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all .35s ease;
  background: transparent;
}
.site-navbar.scrolled {
  padding: 10px 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -12px rgba(0,0,0,0.15);
}
.site-navbar .navbar-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #fff; }
.site-navbar.scrolled .navbar-brand,
.site-navbar.page-solid .navbar-brand { color: var(--color-ink); }
.site-navbar .nav-link { color: rgba(255,255,255,0.9); font-weight: 600; font-size: 0.94rem; margin: 0 10px; position: relative; }
.site-navbar.scrolled .nav-link,
.site-navbar.page-solid .nav-link { color: var(--color-ink); }
.site-navbar .nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--color-secondary); transition: width .25s ease;
}
.site-navbar .nav-link:hover::after,
.site-navbar .nav-link.active::after { width: 100%; }
.site-navbar.page-solid { background: rgba(255,255,255,0.9); backdrop-filter: blur(14px); box-shadow: 0 4px 20px -12px rgba(0,0,0,.15); }

.mega-menu {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 28px;
  min-width: 560px;
  max-width: calc(100vw - 32px);
}
.mega-menu a { display: flex; gap: 12px; padding: 10px; border-radius: var(--radius-sm); color: var(--color-ink); }
.mega-menu a:hover { background: var(--color-light); }
.mega-menu .icon-badge {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(0,132,61,.1); color: var(--color-primary); flex: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--color-ink);
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,26,16,.75) 0%, rgba(6,26,16,.55) 45%, rgba(6,26,16,.92) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 100px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.08; color: #fff; }
.hero .lead { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 560px; }

.floating-badge {
  position: absolute;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 2000;
}

/* ---------- Stats ---------- */
.stat-card {
  text-align: center; padding: 30px 16px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-primary);
}
.stat-label { color: var(--color-slate); font-weight: 600; font-size: .9rem; }

/* ---------- Cards ---------- */
.glass-card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.program-card {
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: transform .35s ease, box-shadow .35s ease;
  height: 100%;
}
.program-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); }
.program-icon {
  width: 62px; height: 62px; border-radius: 18px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 20px;
}

.story-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); background: #fff; }
.story-card img { height: 240px; object-fit: cover; width: 100%; }

.testimonial-card {
  background: #fff; border-radius: var(--radius-lg); padding: 34px;
  box-shadow: var(--shadow-card); border: 1px solid var(--color-border);
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-sm { padding: 70px 0; }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }

.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--color-ink); color: rgba(255,255,255,0.75); padding: 90px 0 30px; }
.site-footer h5 { color: #fff; font-family: var(--font-display); margin-bottom: 20px; }
.site-footer a { color: rgba(255,255,255,0.65); }
.site-footer a:hover { color: var(--color-secondary); }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center;
  background: rgba(255,255,255,0.08); margin-right: 8px;
}
.footer-social a:hover { background: var(--color-secondary); color: #fff; }

/* ---------- Loading screen ---------- */
#loading-screen {
  position: fixed; inset: 0; z-index: 9999; background: var(--color-ink);
  display: flex; align-items: center; justify-content: center; transition: opacity .5s ease, visibility .5s ease;
}
#loading-screen .loader-mark { color: #fff; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .05em; }
#loading-screen.loaded { opacity: 0; visibility: hidden; }

/* ---------- Forms ---------- */
.form-control, .form-select {
  border-radius: 12px; border: 1.5px solid var(--color-border); padding: 12px 16px; font-size: .95rem;
}
.form-control:focus, .form-select:focus { border-color: var(--color-secondary); box-shadow: 0 0 0 4px rgba(14,159,110,.12); }
.form-label { font-weight: 600; font-size: .88rem; margin-bottom: 6px; }

.form-panel { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 44px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--color-ink), #103826);
  color: #fff; padding: 170px 0 90px; position: relative; overflow: hidden;
}
.page-hero .breadcrumb-brand a { color: rgba(255,255,255,.7); }
.page-hero .breadcrumb-brand .current { color: var(--color-secondary); font-weight: 700; }

/* ---------- Utility ---------- */
.rounded-brand { border-radius: var(--radius-lg) !important; }
.shadow-brand { box-shadow: var(--shadow-card) !important; }
.divider-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--color-secondary); display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

@media (max-width: 991px) {
  .site-navbar .nav-link { color: var(--color-ink); }
  .site-navbar .navbar-brand { color: var(--color-ink); }
  .navbar-collapse { background: #fff; margin-top: 14px; padding: 20px; border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
  .mega-menu { min-width: 0; width: 100%; }
}
