/*
 * ═══════════════════════════════════════════════════════
 *  BTI COMPONENTS CSS
 *  Shared styles for navbar.php and footer.php
 *  Blessed to Impact ASBL
 * ───────────────────────────────────────────────────────
 *  Link this in the <head> of every page:
 *  <link rel="stylesheet" href="components.css" />
 * ═══════════════════════════════════════════════════════
 */

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */

#bti-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 20px 0;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}

#bti-navbar.scrolled {
  background: #F7F3ED;
  box-shadow: 0 1px 0 rgba(28,58,42,0.1);
  padding: 12px 0;
}

/* Inner wrapper */
.bti-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ── Logo ── */
.bti-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.bti-logo-mark {
  width: 38px; height: 38px;
  background: #C49A3C;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(196,154,60,0.35);
  transition: transform 0.25s ease;
}
.bti-logo:hover .bti-logo-mark { transform: scale(1.05); }
.bti-logo-mark span {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.bti-logo-text { display: flex; flex-direction: column; }
.bti-logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}
.bti-logo-asbl {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C49A3C;
}

/* ── Desktop links ── */
.bti-nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
@media (min-width: 1024px) {
  .bti-nav-links { display: flex; }
}
.bti-nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  padding: 6px 14px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ── Right group ── */
.bti-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ── Donate button ── */
.bti-donate-btn {
  display: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 50px;
  background: #C49A3C;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.25s ease, transform 0.2s ease;
}
@media (min-width: 768px) {
  .bti-donate-btn { display: inline-block; }
}
.bti-donate-btn:hover { background: #b08832; transform: translateY(-1px); }

/* ── Hamburger ── */
#bti-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
@media (min-width: 1024px) { #bti-hamburger { display: none; } }
#bti-hamburger span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: all 0.3s ease;
}
#bti-hamburger .h1 { width: 22px; }
#bti-hamburger .h2 { width: 22px; }
#bti-hamburger .h3 { width: 14px; }
#bti-hamburger.open .h1 { transform: rotate(45deg) translate(4px, 4.5px); width: 22px; }
#bti-hamburger.open .h2 { opacity: 0; transform: translateX(-8px); }
#bti-hamburger.open .h3 { transform: rotate(-45deg) translate(4px, -4.5px); width: 22px; }

/* ── Mobile menu ── */
#bti-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1);
  background: rgba(14,32,25,0.97);
  backdrop-filter: blur(12px);
}
#bti-mobile-menu.open { max-height: 600px; }
.bti-mob-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 24px 20px;
}
#bti-mobile-menu a {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  padding: 12px 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(247,243,237,0.7);
  transition: color 0.2s ease;
}
#bti-mobile-menu a:hover,
#bti-mobile-menu a.active { color: #DDB96A; }
#bti-mobile-menu .bti-mob-donate {
  text-align: center;
  background: #C49A3C;
  color: #fff !important;
  border-radius: 12px;
  padding: 13px !important;
  margin-top: 12px;
  border-bottom: none !important;
  font-weight: 600;
  font-size: 0.8rem !important;
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════
   NAVBAR COLOUR MODES
══════════════════════════════════════ */

/* LIGHT mode — for dark background pages (homepage, impact, donate) */
#bti-navbar.light .bti-logo-name       { color: #F7F3ED; }
#bti-navbar.light .bti-nav-link        { color: rgba(247,243,237,0.72); }
#bti-navbar.light .bti-nav-link:hover  { background: rgba(255,255,255,0.1); color: #F7F3ED; }
#bti-navbar.light .bti-nav-link.active { background: rgba(196,154,60,0.2); color: #DDB96A; }
#bti-navbar.light #bti-hamburger       { color: #F7F3ED; }

/* DARK mode — for light background pages (about, programs, blog, etc.) */
#bti-navbar.dark .bti-logo-name        { color: #1C3A2A; }
#bti-navbar.dark .bti-nav-link         { color: rgba(28,58,42,0.65); }
#bti-navbar.dark .bti-nav-link:hover   { background: rgba(28,58,42,0.07); color: #1C3A2A; }
#bti-navbar.dark .bti-nav-link.active  { background: rgba(196,154,60,0.12); color: #1C3A2A; font-weight: 500; }
#bti-navbar.dark #bti-hamburger        { color: #1C3A2A; }

/* After scroll — always resolve to dark text regardless of mode */
#bti-navbar.scrolled .bti-logo-name       { color: #1C3A2A !important; }
#bti-navbar.scrolled .bti-nav-link        { color: rgba(28,58,42,0.65) !important; }
#bti-navbar.scrolled .bti-nav-link:hover  { background: rgba(28,58,42,0.07) !important; color: #1C3A2A !important; }
#bti-navbar.scrolled .bti-nav-link.active { background: rgba(196,154,60,0.12) !important; color: #1C3A2A !important; }
#bti-navbar.scrolled #bti-hamburger       { color: #1C3A2A !important; }

