@import url('https://cdn-uicons.flaticon.com/4.0.0/uicons-brands/css/uicons-brands.css');
@import url('https://cdn-uicons.flaticon.com/4.0.0/uicons-regular-rounded/css/uicons-regular-rounded.css');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: #F7F3ED;
    color: #2C2C2C;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600 !important;
}

.icon{
  display: inline-flex;
  transform: translateY(1px);
}

/* LIGHT mode — for dark background pages (homepage, impact, donate) */
#navbar .bti-nav-link        { color: rgba(247,243,237,0.72); }
#navbar .bti-nav-link:hover  { background: rgba(255,255,255,0.1); color: #F7F3ED; }
#navbar .bti-nav-link.active { background: rgba(196,154,60,0.2) !important; color: #DDB96A !important; }
#navbar #bti-hamburger       { color: #F7F3ED; }

/* After scroll — always resolve to dark text regardless of mode */
#navbar.scrolled .bti-nav-link        { color: rgba(28,58,42,0.65) !important; }
#navbar.scrolled .bti-nav-link:hover  { background: rgba(28,58,42,0.07) !important; color: #1C3A2A !important; }
#navbar.scrolled .bti-nav-link.active { background: rgba(196,154,60,0.12) !important; color: #1C3A2A !important; }
#navbar.scrolled #bti-hamburger       { color: #1C3A2A !important; }

/* ── Navbar ── */
#navbar {
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: #F7F3ED !important;
    box-shadow: 0 1px 0 rgba(28, 58, 42, 0.12);
}

/* ── Mobile Menu ── */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    max-height: 600px;
}

#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;
}

/* ── 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; }



/* ── Fade-up on scroll ── */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.72s ease, transform 0.72s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Dot pattern */
.dot-bg {
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
}


/* ── CTA shimmer ── */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: #C49A3C;
    color: #fff;
    transition: background 0.3s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::after {
    left: 150%;
}

.btn-primary:hover {
    background: #b08832;
}

.btn-outline {
    border: 1.5px solid #1C3A2A;
    color: #1C3A2A;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-outline:hover {
    background: #1C3A2A;
    color: #F7F3ED;
}

/* ── Noise grain overlay ── */
.grain::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
    z-index: 1;
}


/* ── Image overlay ── */
.img-overlay {
    background: linear-gradient(to top, rgba(14, 32, 25, 0.6) 0%, transparent 50%);
}


/* ══════════════════════════════
       NEWSLETTER
    ══════════════════════════════ */
.nl-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(196, 154, 60, 0.25);
    color: #F7F3ED;
    transition: border-color 0.3s ease;
}

.nl-input:focus {
    outline: none;
    border-color: #C49A3C;
}

.nl-input::placeholder {
    color: rgba(247, 243, 237, 0.3);
}




/* ══════════════════════════════
    NOTYF TOAST NOTIFICATIONS
    ══════════════════════════════ */
.notyf__message {
    font-size: 14px !important;
    color: white !important;
}

/* Toast Base */
.notyf__toast {
    border-radius: 16px !important;
    padding: 4px 12px !important;
}

@media screen and (max-width: 600px) {
    .notyf__toast {
        border-radius: 0 !important;
    }
}
