/* ============================================================
   HOLIDO — Holistic Development Organisation
   Custom styles on top of Bootstrap 5
   ============================================================ */

:root {
  --green: #1b7a4b;
  --green-dark: #125836;
  --green-light: #e7f3ec;
  --gold: #f5a623;
  --gold-dark: #d98a05;
  --red: #d9534f;
  --ink: #1f2a24;
  --muted: #5d6b63;
  --bg-soft: #f6f9f7;
  --shadow-sm: 0 4px 14px rgba(18, 88, 54, 0.08);
  --shadow-md: 0 12px 30px rgba(18, 88, 54, 0.12);
}

* { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

a { text-decoration: none; }

.section { padding: 5.5rem 0; }
.bg-light { background: var(--bg-soft) !important; }

/* ---------- Buttons ---------- */
.btn-accent {
  background: var(--gold);
  border: none;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(245, 166, 35, 0.35);
  transition: transform .2s ease, background .2s ease;
}
.btn-accent:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); }

.btn-outline-light:hover { color: var(--green-dark); }

/* ---------- Section headings ---------- */
.section-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: .6rem;
}
.section-eyebrow.light { color: #ffe2ad; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--green-dark);
  margin-bottom: 1rem;
}
.section-sub { color: var(--muted); max-width: 680px; }

/* ============ NAVBAR ============ */
#mainNav {
  background: var(--green-dark);
  padding: 1rem 0;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
#mainNav.scrolled {
  background: #fff;
  padding: .55rem 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
}
.brand-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--gold);
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  border-radius: 12px;
  margin-right: .65rem;
  font-family: 'Poppins', sans-serif;
}
.brand-text {
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: .5px;
}
.brand-text small {
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .85;
  font-family: 'Inter', sans-serif;
  margin-top: 2px;
}
#mainNav.scrolled .brand-text { color: var(--green-dark); }
#mainNav .nav-link {
  color: rgba(255, 255, 255, .9);
  font-weight: 500;
  margin: 0 .25rem;
  position: relative;
}
#mainNav.scrolled .nav-link { color: var(--ink); }
#mainNav .nav-link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 2px;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after { transform: scaleX(1); }
.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }

@media (max-width: 991.98px) {
  #mainNav { background: var(--green-dark); }
  .navbar-collapse {
    background: var(--green-dark);
    margin-top: .75rem;
    padding: 1rem;
    border-radius: 12px;
  }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, #0d4b2c 0%, #125836 45%, #1b7a4b 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(245, 166, 35, .18) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(27, 122, 75, .35) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 2; }

.badge-pill {
  display: inline-block;
  background: rgba(245, 166, 35, .18);
  border: 1px solid rgba(245, 166, 35, .5);
  color: #ffe2ad;
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  box-shadow: 0 0 0 0 rgba(245, 166, 35, .5);
  animation: badgeGlow 2.8s ease-in-out infinite;
}
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, .45); }
  50%      { box-shadow: 0 0 22px 4px rgba(245, 166, 35, .25); }
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  font-weight: 800;
  background: linear-gradient(100deg, #ffffff 0%, #ffe2ad 45%, #ffffff 60%, #ffffff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShimmer 6s linear infinite;
}
@keyframes titleShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -20% center; }
}
.hero-lead { font-size: 1.15rem; max-width: 620px; opacity: .92; color: #fff; }

/* Sliding text */
.hero-text-slider {
  position: relative;
  min-height: 260px;
}
.hero-text-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .7s ease, transform .7s ease;
  pointer-events: none;
}
.hero-text-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Sliding images — diagonal right panel */
.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 52%;
  z-index: 1;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: inherit;
  background: linear-gradient(100deg, rgba(13, 75, 44, .85) 0%, rgba(13, 75, 44, .25) 30%, transparent 60%);
  z-index: 2;
  pointer-events: none;
}
.hero-img-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1s ease, transform 6s ease;
}
.hero-img-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 991.98px) {
  .hero-media {
    width: 100%;
    height: 55%;
    bottom: auto;
    clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
  }
  .hero-media::after {
    background: linear-gradient(180deg, transparent 0%, rgba(13, 75, 44, .55) 70%, rgba(13, 75, 44, .92) 100%);
  }
  .hero-content .row { padding-top: 50vh !important; }
  .hero-text-slider { min-height: 320px; }
}

/* ============ STAT BAR ============ */
.stat-bar {
  background: var(--green);
  color: #fff;
  padding: 2.6rem 0;
}
.stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #ffe2ad;
  line-height: 1;
}
.stat-num::after { content: "+"; }
.stat-label {
  margin: .5rem 0 0;
  font-size: .9rem;
  opacity: .9;
}

/* ============ IMAGE FRAME ============ */
.img-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.img-frame::before {
  content: ""; position: absolute; left: -14px; top: -14px;
  width: 90px; height: 90px;
  border-top: 5px solid var(--gold);
  border-left: 5px solid var(--gold);
  border-top-left-radius: 18px;
  z-index: 2;
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============ ABOUT — office cards ============ */
.office-card {
  display: flex; gap: .8rem; align-items: flex-start;
  background: var(--green-light);
  padding: 1rem 1.1rem;
  border-radius: 14px;
  height: 100%;
}
.office-card i { color: var(--green); font-size: 1.4rem; margin-top: .2rem; }
.office-card h6 { margin: 0 0 .2rem; color: var(--green-dark); font-size: .95rem; }
.office-card p { margin: 0; font-size: .88rem; color: var(--muted); }

/* ============ VISION / MISSION ============ */
.vm-section {
  background: linear-gradient(120deg, var(--green-dark), var(--green));
}
.vm-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 18px;
  padding: 2.2rem;
  height: 100%;
  backdrop-filter: blur(4px);
}
.vm-card i { font-size: 2.4rem; color: var(--gold); }
.vm-card h3 { margin: 1rem 0 .6rem; }
.vm-card p { font-size: 1.1rem; opacity: .95; margin: 0; font-style: italic; }

/* ============ WHO WE SERVE ============ */
.serve-card {
  background: #fff;
  border: 1px solid #eef2ef;
  border-radius: 16px;
  padding: 1.6rem 1rem;
  text-align: center;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.serve-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.serve-card i { font-size: 2.1rem; color: var(--green); display: block; margin-bottom: .6rem; }
.serve-card span { font-weight: 600; font-size: .9rem; color: var(--ink); }

/* ============ THEMATIC AREAS ============ */
.theme-card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #eef2ef;
  transition: transform .25s ease, box-shadow .25s ease;
}
.theme-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.theme-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: grid; place-items: center;
  font-size: 1.8rem; color: #fff; margin-bottom: 1.2rem;
}
.theme-green { background: var(--green); }
.theme-gold { background: var(--gold); }
.theme-red { background: var(--red); }
.theme-card h4 { color: var(--green-dark); font-size: 1.25rem; }
.theme-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.theme-list li {
  position: relative; padding-left: 1.5rem; margin-bottom: .4rem;
  font-size: .9rem; color: var(--muted);
}
.theme-list li::before {
  content: "\F26A"; font-family: "bootstrap-icons";
  position: absolute; left: 0; color: var(--gold-dark); font-size: .85rem;
}

/* ============ OBJECTIVES ============ */
.objectives-section { background: var(--green-light); }
.obj-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  height: 100%;
  display: flex; gap: 1rem; align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease;
}
.obj-card:hover { transform: translateY(-4px); }
.obj-num {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  background: var(--green);
  color: #fff; font-weight: 800;
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: 'Poppins', sans-serif;
}
.obj-card p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ============ VALUES ============ */
.value-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.8rem;
  height: 100%;
  border-bottom: 4px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s ease, transform .25s ease;
}
.value-card:hover { border-color: var(--gold); transform: translateY(-5px); }
.value-card i { font-size: 1.9rem; color: var(--green); }
.value-card h5 { margin: .8rem 0 .4rem; color: var(--green-dark); }
.value-card p { margin: 0; font-size: .9rem; color: var(--muted); }

/* ============ PROJECTS & ACHIEVEMENTS ============ */
.project-pill {
  display: flex; align-items: center; gap: .6rem;
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 600;
  font-size: .9rem;
  padding: .9rem 1rem;
  border-radius: 12px;
  height: 100%;
}
.project-pill i { color: var(--gold-dark); font-size: 1.1rem; }
.achieve-list { list-style: none; padding: 0; margin: 0; }
.achieve-list li {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .55rem 0;
  border-bottom: 1px dashed #dfe7e1;
  font-size: .95rem;
}
.achieve-list li i { color: var(--green); font-size: 1.1rem; margin-top: .15rem; }

/* ============ IMPACT STORIES ============ */
.impact-section { background: var(--bg-soft); }
.story-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.story-img { aspect-ratio: 4 / 3; overflow: hidden; }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.story-card:hover .story-img img { transform: scale(1.07); }
.story-body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.story-body h5 { color: var(--green-dark); font-size: 1.05rem; }
.story-body p { font-size: .88rem; color: var(--muted); flex: 1; }
.story-name { font-weight: 600; font-size: .82rem; color: var(--gold-dark); }

.featured-story { margin-top: 3rem; }
.quote-block {
  border-left: 4px solid var(--gold);
  background: var(--green-light);
  padding: 1.2rem 1.4rem;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  margin-top: 1.5rem;
}
.quote-block cite {
  display: block; margin-top: .6rem;
  font-style: normal; font-weight: 600; color: var(--green-dark);
}

/* ============ LEADERSHIP ============ */
.leader-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.6rem 1rem;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease;
}
.leader-card:hover { transform: translateY(-5px); }
.leader-avatar {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff; font-weight: 800; font-size: 1.3rem;
  display: grid; place-items: center;
  font-family: 'Poppins', sans-serif;
}
.leader-card h6 { margin: 0 0 .2rem; color: var(--ink); font-size: .95rem; }
.leader-role { display: block; color: var(--gold-dark); font-weight: 600; font-size: .82rem; margin-bottom: .3rem; }
.leader-card small { color: var(--muted); font-size: .76rem; }

/* ============ PARTNERS ============ */
.partner-card {
  background: #fff;
  border: 1px solid #e7ede9;
  border-radius: 12px;
  padding: 1.2rem .9rem;
  text-align: center;
  font-weight: 600;
  font-size: .85rem;
  color: var(--green-dark);
  height: 100%;
  display: grid; place-items: center;
  transition: background .25s ease, color .25s ease;
}
.partner-card:hover { background: var(--green); color: #fff; }

/* ============ GET INVOLVED ============ */
.involved-section {
  background: linear-gradient(120deg, var(--green-dark), var(--green));
}
.help-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  padding: 2.2rem;
  height: 100%;
  text-align: center;
  transition: transform .25s ease, background .25s ease;
}
.help-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .14); }
.help-card i { font-size: 2.6rem; color: var(--gold); }
.help-card h4 { margin: 1rem 0 .6rem; }
.help-card p { opacity: .9; font-size: .92rem; margin: 0; }
.support-banner {
  background: var(--gold);
  color: #3d2c00;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 14px 30px rgba(245, 166, 35, .35);
}
.support-banner h4 { color: #3d2c00; }

/* ============ CONTACT ============ */
.form-label { font-weight: 600; font-size: .88rem; color: var(--green-dark); }
.form-control, .form-select {
  border-radius: 10px;
  padding: .7rem .9rem;
  border: 1px solid #d9e2dc;
}
.form-control:focus, .form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 .2rem rgba(27, 122, 75, .15);
}
.contact-info { background: var(--green-light); border-radius: 18px; padding: 2rem; height: 100%; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding: .9rem 0; border-bottom: 1px dashed #cfe0d6; }
.contact-item:last-child { border-bottom: none; }
.contact-item i {
  font-size: 1.2rem; color: #fff; background: var(--green);
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; flex: 0 0 auto;
}
.contact-item h6 { margin: 0 0 .15rem; color: var(--green-dark); font-size: .95rem; }
.contact-item p { margin: 0; font-size: .9rem; color: var(--muted); }
.contact-item a { color: var(--muted); }
.contact-item a:hover { color: var(--green); }

/* ============ FOOTER ============ */
.footer { background: var(--ink); color: #fff; padding: 3.5rem 0 1.8rem; }
.footer .brand-text { color: #fff; }
.footer-title { color: var(--gold); font-size: .9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.footer-links, .footer-reg { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255, 255, 255, .75); font-size: .9rem; }
.footer-links a:hover { color: var(--gold); }
.footer-reg li { font-size: .85rem; color: rgba(255, 255, 255, .75); margin-bottom: .5rem; display: flex; gap: .5rem; align-items: flex-start; }
.footer-reg i { color: var(--gold); margin-top: .15rem; }
.footer-divider { border-color: rgba(255, 255, 255, .12); margin: 2rem 0 1.2rem; }
.footer-social a {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff;
  margin-left: .4rem; transition: background .25s ease;
}
.footer-social a:hover { background: var(--gold); }

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  background: var(--green);
  color: #fff; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all .3s ease;
  z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold); color: #fff; }

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto; }
}
