/* ============================================================
   Revive Foundation – Main Stylesheet
   Complements Tailwind CSS (loaded via CDN in HTML)
   ============================================================ */

/* ── Base ─────────────────────────────────────────────────── */
html { scroll-behavior: smooth; font-family: 'Inter', system-ui, sans-serif; }
body { background-color: #f9f6f0; color: #1a1a1a; }

/* ── Logo SVG size ────────────────────────────────────────── */
.logo-svg { width: 52px; height: 52px; }

/* ── Nav active underline ─────────────────────────────────── */
.nav-link { position: relative; transition: color .2s; }
.nav-link::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: #1a5a3e;
  transition: width .25s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: #1a5a3e; font-weight: 600; }

/* ── Hero gradient overlay (fallback) ─────────────────────── */
.hero-img-wrap {
  background: linear-gradient(135deg, #b8d9c4 0%, #7dbfa0 40%, #4fa07d 100%);
}

/* ── Hero background slideshow ────────────────────────────── */
.hero-slide {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: background .2s ease, transform .2s ease;
}
.hero-dots button:hover {
  transform: scale(1.15);
}
.hero-dots button.active {
  background: rgba(255, 255, 255, 0.95);
}

/* ── Work card hover lift ─────────────────────────────────── */
.work-card {
  transition: transform .25s ease, box-shadow .25s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 90, 62, 0.15);
}

/* ── Activities callout tooltip ───────────────────────────── */
.callout-tooltip {
  display: none;
  position: absolute;
  z-index: 50;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  background: #fff;
  border: 1.5px solid #1a5a3e;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  font-size: 13px;
  line-height: 1.6;
  color: #333;
}
.callout-tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #1a5a3e;
}
.callout-tooltip.show { display: block; }

/* ── Knowledge card hover ─────────────────────────────────── */
.know-card {
  transition: transform .2s, box-shadow .2s, background .2s;
}
.know-card:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 90, 62, .12);
}

/* ── Scroll reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile menu slide ────────────────────────────────────── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
#mobile-menu.open { max-height: 600px; }

/* ── Sticky navbar shadow ─────────────────────────────────── */
#navbar { transition: box-shadow .2s; }
#navbar.scrolled { box-shadow: 0 2px 16px rgba(0, 0, 0, .1); }

/* ── Button styles ────────────────────────────────────────── */
.btn-primary {
  background: #1a5a3e;
  color: #fff;
  border-radius: 6px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 14px;
  transition: background .2s, transform .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary:hover { background: #0f3322; transform: translateY(-1px); }

.btn-outline {
  border: 2px solid #1a5a3e;
  color: #1a5a3e;
  border-radius: 6px;
  padding: 9px 20px;
  font-weight: 600;
  font-size: 14px;
  transition: background .2s, color .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-outline:hover { background: #1a5a3e; color: #fff; }

.btn-ghost {
  color: #1a5a3e;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap .2s;
  border-bottom: 1.5px solid transparent;
}
.btn-ghost:hover { border-bottom-color: #1a5a3e; gap: 8px; }

/* ── Partner card ─────────────────────────────────────────── */
.partner-card {
  transition: transform .2s, box-shadow .2s;
}
.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(26, 90, 62, .13);
}

/* ── Stats counter ────────────────────────────────────────── */
.stat-item { text-align: center; }

/* ── Responsive hero ──────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-img-col { min-height: 260px; border-radius: 12px; margin-top: 24px; }
  .callout-tooltip { width: 240px; }
}

/* ── Section divider ──────────────────────────────────────── */
.section-divider {
  height: 3px;
  background: linear-gradient(90deg, transparent, #1a5a3e40, transparent);
  margin: 0 auto;
  width: 80%;
}

/* ── Ripple animation (Knowledge Centre cards) ────────────── */
@keyframes ripple {
  to { transform: scale(2.5); opacity: 0; }
}
