/* ==========================================================================
   DigniRise Foundation — custom stylesheet
   Palette derived from the DigniRise logo
   ========================================================================== */

:root {
  --teal-dark:  #0d3a34;
  --teal:       #135c52;
  --teal-mid:   #1a7a6c;
  --teal-light: #e6f1ee;
  --gold:       #f2a93c;
  --gold-dark:  #d98d1f;
  --gold-light: #ffe1ac;
  --cream:      #fbf6ea;
  --cream-2:    #f4ecd8;
  --ink:        #1c2b28;
  --muted:      #5b6b67;

  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .brand-font {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--teal-dark);
}

p { color: var(--muted); }

::selection { background: var(--gold); color: var(--teal-dark); }

.section-pad { padding: 5.5rem 0; }
@media (max-width: 767px) { .section-pad { padding: 3.5rem 0; } }

.bg-cream    { background-color: var(--cream); }
.bg-cream-2  { background-color: var(--cream-2); }
.bg-teal     { background-color: var(--teal) !important; }
.bg-teal-dark{ background-color: var(--teal-dark) !important; }
.text-teal   { color: var(--teal); }
.text-gold   { color: var(--gold); }

/* section labels */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--gold-dark);
  background: var(--gold-light);
  padding: .35rem .9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-title { font-size: 2.1rem; margin-bottom: .75rem; }
.section-sub { max-width: 640px; }

/* divider accent */
.accent-line {
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--teal-mid));
  border-radius: 4px;
}

/* ---------- buttons ---------- */
.btn-gold {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--teal-dark);
  font-weight: 700;
  padding: .7rem 1.6rem;
  border-radius: 50px;
  transition: all .25s ease;
}
.btn-gold:hover { background-color: var(--gold-dark); border-color: var(--gold-dark); color: #fff; transform: translateY(-2px); }

.btn-outline-cream {
  border: 2px solid rgba(255,255,255,.75);
  color: #fff;
  font-weight: 700;
  padding: .65rem 1.6rem;
  border-radius: 50px;
  transition: all .25s ease;
}
.btn-outline-cream:hover { background: #fff; color: var(--teal-dark); transform: translateY(-2px); }

.btn-teal {
  background-color: var(--teal);
  border-color: var(--teal);
  color: #fff;
  font-weight: 700;
  padding: .7rem 1.6rem;
  border-radius: 50px;
  transition: all .25s ease;
}
.btn-teal:hover { background-color: var(--teal-dark); border-color: var(--teal-dark); color: #fff; transform: translateY(-2px); }

/* ---------- navbar ---------- */
#mainNav {
  transition: all .35s ease;
  padding: .9rem 0;
  background: transparent;
}
#mainNav.scrolled {
  background: rgba(251, 246, 234, .97);
  box-shadow: 0 4px 18px rgba(13, 58, 52, .08);
  padding: .5rem 0;
}
#mainNav .navbar-brand { display: flex; align-items: center; gap: .6rem; }
#mainNav .navbar-brand img { height: 44px; width: 44px; object-fit: contain; border-radius: 50%; background:#fff; padding:3px; transition: height .3s ease, width .3s ease; }
#mainNav.scrolled .navbar-brand img { height: 38px; width: 38px; }
#mainNav .brand-text { line-height: 1.1; }
#mainNav .brand-text strong { font-family: var(--font-head); color: #fff; font-size: 1.15rem; transition: color .3s ease; }
#mainNav .brand-text span { font-family: var(--font-head); color: var(--gold-light); font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; }
#mainNav.scrolled .brand-text strong { color: var(--teal-dark); }
#mainNav.scrolled .brand-text span { color: var(--gold-dark); }

#mainNav .nav-link {
  color: rgba(255,255,255,.92);
  font-weight: 600;
  font-size: .95rem;
  margin: 0 .35rem;
  position: relative;
}
#mainNav.scrolled .nav-link { color: var(--teal-dark); }
#mainNav .nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0%; height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}
#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after { width: 100%; }
#mainNav .navbar-toggler { border-color: rgba(255,255,255,.5); }
#mainNav.scrolled .navbar-toggler { border-color: rgba(13,58,52,.4); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--teal-dark);
}

/* sliding background images */
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.8s ease, transform 7s ease;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* lighter tint so photos stay visible, with extra depth near the bottom for text legibility */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(13,58,52,.45) 0%,
    rgba(13,58,52,.18) 42%,
    rgba(9,38,34,.55) 78%,
    rgba(9,38,34,.82) 100%);
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 88%, var(--cream) 100%);
}
.hero .container { position: relative; z-index: 2; padding-bottom: 5rem; }
.hero .eyebrow { background: rgba(255,255,255,.14); color: var(--gold-light); backdrop-filter: blur(4px); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  text-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.hero h1 span { color: var(--gold); }
.hero p.lead { color: rgba(255,255,255,.92); max-width: 620px; font-size: 1.15rem; text-shadow: 0 2px 12px rgba(0,0,0,.3); }

.hero-scroll {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  opacity: .8;
  animation: bounce 2.2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ---------- stats strip ---------- */
.stats-strip { background: var(--teal-dark); }
.stat-item i { font-size: 1.9rem; color: var(--gold); }
.stat-item .stat-num { font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; color: #fff; }
.stat-item .stat-label { color: rgba(255,255,255,.75); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- about ---------- */
.about-img-wrap { position: relative; }
.about-img-wrap img.main-img {
  border-radius: 18px;
  box-shadow: 0 25px 50px -18px rgba(13,58,52,.45);
}
.about-badge {
  position: absolute;
  bottom: -28px; left: -28px;
  background: #fff;
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  box-shadow: 0 15px 35px -10px rgba(13,58,52,.3);
  display: flex;
  align-items: center;
  gap: .8rem;
}
.about-badge i { font-size: 1.8rem; color: var(--gold-dark); }
@media (max-width: 575px) { .about-badge { left: 10px; bottom: -20px; padding: .8rem 1rem; } }

/* ---------- mission / vision ---------- */
.mv-card {
  border: none;
  border-radius: 18px;
  padding: 2.4rem 2rem;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}
.mv-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -16px rgba(13,58,52,.25); }
.mv-card .icon-circle {
  width: 62px; height: 62px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}
.mv-card.vision { background: var(--teal); color: #fff; }
.mv-card.vision h3, .mv-card.vision p { color: #fff; }
.mv-card.vision .icon-circle { background: rgba(255,255,255,.15); color: var(--gold-light); }
.mv-card.mission { background: #fff; border: 1px solid rgba(13,58,52,.08); }
.mv-card.mission .icon-circle { background: var(--gold-light); color: var(--gold-dark); }

/* ---------- values ---------- */
.value-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.4rem;
  text-align: center;
  height: 100%;
  border: 1px solid rgba(13,58,52,.07);
  transition: all .3s ease;
}
.value-card:hover {
  background: var(--teal);
  transform: translateY(-6px);
  box-shadow: 0 18px 34px -14px rgba(13,58,52,.35);
}
.value-card i { font-size: 2rem; color: var(--teal-mid); transition: color .3s ease; margin-bottom: .9rem; }
.value-card h5, .value-card p { transition: color .3s ease; }
.value-card:hover i { color: var(--gold); }
.value-card:hover h5 { color: #fff; }
.value-card:hover p { color: rgba(255,255,255,.85); }

/* ---------- programs ---------- */
.program-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 420px;
  isolation: isolate;
}
.program-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.program-card:hover img { transform: scale(1.08); }
.program-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,58,52,0) 30%, rgba(9,38,34,.94) 100%);
}
.program-card .content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1.5rem;
  color: #fff;
}
.program-card .num-badge {
  position: absolute; top: 1.2rem; left: 1.2rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.3rem;
  border: 1px solid rgba(255,255,255,.35);
}
.program-card h4 { color: #fff; margin-bottom: .4rem; }
.program-card p { color: rgba(255,255,255,.82); font-size: .93rem; margin-bottom: 0; }

/* activity chips */
.activity-chip {
  background: #fff;
  border-radius: 14px;
  padding: 1.3rem 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  height: 100%;
  border: 1px solid rgba(13,58,52,.07);
}
.activity-chip i { font-size: 1.4rem; color: var(--gold-dark); flex-shrink: 0; margin-top: .15rem; }
.activity-chip p { margin-bottom: 0; color: var(--ink); font-size: .95rem; }

/* ---------- gallery ---------- */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.12); }
.gallery-item .g-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,58,52,0) 50%, rgba(13,58,52,.85) 100%);
  opacity: 0;
  transition: opacity .35s ease;
  display: flex; align-items: flex-end;
  padding: .9rem;
}
.gallery-item:hover .g-overlay { opacity: 1; }
.gallery-item .g-overlay i { color: var(--gold-light); font-size: 1.2rem; }

/* ---------- leadership ---------- */
.team-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.8rem 1.2rem;
  text-align: center;
  height: 100%;
  border: 1px solid rgba(13,58,52,.07);
  transition: all .3s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px -16px rgba(13,58,52,.28); }
.avatar-ring {
  width: 92px; height: 92px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--teal), var(--teal-mid));
  color: var(--gold-light);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  border: 4px solid var(--gold-light);
}
.team-card h6 { margin-bottom: .15rem; color: var(--teal-dark); }
.team-card .role { color: var(--gold-dark); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.team-card .loc { font-size: .82rem; color: var(--muted); }

.board-table {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(13,58,52,.07);
}
.board-table thead { background: var(--teal-dark); color: #fff; }
.board-table th, .board-table td { padding: .9rem 1.2rem; vertical-align: middle; }

/* ---------- get involved ---------- */
.involve-card {
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(13,58,52,.07);
  transition: all .3s ease;
}
.involve-card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px -16px rgba(13,58,52,.25); }
.involve-card .icon-circle {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--teal-light);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}

/* ---------- donate CTA ---------- */
.donate-cta {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 22px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}
.donate-cta h2, .donate-cta p { color: var(--teal-dark); }
.donate-cta::before {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.donate-cta::after {
  content: "";
  position: absolute; left: -40px; bottom: -80px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(13,58,52,.08);
}

/* ---------- contact ---------- */
.contact-info-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px dashed rgba(13,58,52,.15);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item i {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal-light); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.contact-form { background: #fff; border-radius: 20px; padding: 2.2rem; box-shadow: 0 25px 55px -25px rgba(13,58,52,.3); }
.contact-form .form-control {
  border-radius: 10px;
  border: 1px solid rgba(13,58,52,.15);
  padding: .7rem 1rem;
}
.contact-form .form-control:focus {
  border-color: var(--teal-mid);
  box-shadow: 0 0 0 .2rem rgba(19,92,82,.15);
}

/* ---------- footer ---------- */
footer { background: var(--teal-dark); color: rgba(255,255,255,.75); }
footer h5, footer h6 { color: #fff; }
footer a { color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s ease; }
footer a:hover { color: var(--gold); }
footer .social-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: all .25s ease;
}
footer .social-icon:hover { background: var(--gold); color: var(--teal-dark); transform: translateY(-3px); }
.footer-bottom { background: #092824; font-size: .87rem; }

/* ---------- back to top ---------- */
#backToTop {
  position: fixed; right: 22px; bottom: 22px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px -8px rgba(13,58,52,.5);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all .3s ease;
  z-index: 1000;
  border: none;
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { background: var(--gold); color: var(--teal-dark); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: all .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- modal lightbox ---------- */
.lightbox-modal .modal-content { background: transparent; border: none; }
.lightbox-modal img { width: 100%; border-radius: 12px; }
