/* ==========================================================
   Template #49 — Bridge Outreach
   Palette: Dark Clay #2c2420 | Warm Parchment #faf5ed | Burnt Terracotta #c2592a
   Fonts : Rubik (headings) + Nunito Sans (body)
   Prefix: bo-
   ========================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bo-clay: #2c2420;
  --bo-parchment: #faf5ed;
  --bo-terracotta: #c2592a;
  --bo-terracotta-dark: #a3481f;
  --bo-text: #3d3330;
  --bo-text-light: #7a6e6a;
  --bo-white: #ffffff;
  --bo-radius: 10px;
  --bo-shadow: 0 4px 24px rgba(44,36,32,.10);
  --bo-transition: .35s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--bo-text);
  background: var(--bo-parchment);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--bo-terracotta); text-decoration: none; transition: color var(--bo-transition); }
a:hover { color: var(--bo-terracotta-dark); }

h1, h2, h3, h4 { font-family: 'Rubik', sans-serif; color: var(--bo-clay); line-height: 1.25; }

.bo-container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* ---------- Scroll Reveal ---------- */
.bo-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s ease, transform .7s ease;
}
.bo-reveal.bo-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Demo Banner ---------- */
.bo-demo-banner {
  background: var(--bo-clay);
  color: var(--bo-parchment);
  text-align: center;
  padding: 10px 16px;
  font-size: .85rem;
  position: relative;
  z-index: 1100;
}
.bo-demo-banner a { color: var(--bo-terracotta); font-weight: 700; }
.bo-demo-banner a:hover { text-decoration: underline; }

/* ---------- Navigation ---------- */
.bo-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--bo-transition), box-shadow var(--bo-transition), padding var(--bo-transition);
  margin-top: 40px;
}
.bo-nav.scrolled {
  background: rgba(44,36,32,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
  padding: 10px 0;
}
.bo-nav-inner { display: flex; align-items: center; justify-content: space-between; }

.bo-logo {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--bo-white);
  letter-spacing: -.5px;
}
.bo-logo span { color: var(--bo-terracotta); }

.bo-nav-links { list-style: none; display: flex; align-items: center; gap: 28px; }
.bo-nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .92rem;
  font-weight: 600;
  transition: color var(--bo-transition);
}
.bo-nav-links a:hover { color: var(--bo-white); }
.bo-nav-btn {
  background: var(--bo-terracotta) !important;
  color: var(--bo-white) !important;
  padding: 10px 22px;
  border-radius: var(--bo-radius);
  font-weight: 700 !important;
}
.bo-nav-btn:hover { background: var(--bo-terracotta-dark) !important; }

/* Hamburger */
.bo-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.bo-hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--bo-white);
  border-radius: 2px;
  transition: var(--bo-transition);
}

/* Mobile Panel */
.bo-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1050;
}
.bo-mobile-overlay.bo-active { display: block; }

.bo-mobile-panel {
  position: fixed;
  top: 0; right: -300px;
  width: 280px;
  height: 100%;
  background: var(--bo-clay);
  z-index: 1060;
  padding: 60px 30px 30px;
  transition: right var(--bo-transition);
  overflow-y: auto;
}
.bo-mobile-panel.bo-active { right: 0; }

.bo-mobile-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  color: var(--bo-white);
  font-size: 2rem;
  cursor: pointer;
}
.bo-mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bo-mobile-links a {
  color: rgba(255,255,255,.9);
  font-size: 1.1rem;
  font-weight: 600;
}
.bo-mobile-links a:hover { color: var(--bo-terracotta); }

/* ---------- Buttons ---------- */
.bo-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--bo-radius);
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background var(--bo-transition), color var(--bo-transition), transform .2s ease;
  border: 2px solid transparent;
}
.bo-btn:hover { transform: translateY(-2px); }

.bo-btn-primary { background: var(--bo-terracotta); color: var(--bo-white); }
.bo-btn-primary:hover { background: var(--bo-terracotta-dark); color: var(--bo-white); }

.bo-btn-outline { border-color: var(--bo-white); color: var(--bo-white); background: transparent; }
.bo-btn-outline:hover { background: var(--bo-white); color: var(--bo-clay); }

.bo-btn-white { background: var(--bo-white); color: var(--bo-terracotta); }
.bo-btn-white:hover { background: var(--bo-parchment); color: var(--bo-terracotta-dark); }

.bo-btn-outline-white { border-color: var(--bo-white); color: var(--bo-white); background: transparent; }
.bo-btn-outline-white:hover { background: rgba(255,255,255,.15); }

/* ---------- Labels ---------- */
.bo-label {
  display: inline-block;
  font-family: 'Rubik', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bo-terracotta);
  margin-bottom: 12px;
}
.bo-label-light { color: rgba(255,255,255,.6); }

/* ---------- Section Headers ---------- */
.bo-section-header { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.bo-section-header h2 { font-size: 2.2rem; margin-bottom: 14px; }
.bo-section-header p { color: var(--bo-text-light); font-size: 1.05rem; }

/* ===================================
   1. HERO
   =================================== */
.bo-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bo-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.bo-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44,36,32,.72) 0%, rgba(44,36,32,.88) 100%);
  z-index: 1;
}
.bo-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 20px 80px;
}
.bo-hero-content h1 {
  font-size: 3.6rem;
  color: var(--bo-white);
  margin-bottom: 20px;
  letter-spacing: -.5px;
}
.bo-hero-content h1 em {
  font-style: italic;
  color: var(--bo-terracotta);
}
.bo-hero-content p {
  color: rgba(255,255,255,.8);
  font-size: 1.2rem;
  max-width: 560px;
  margin: 0 auto 36px;
}
.bo-hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===================================
   2. ABOUT — Split Layout
   =================================== */
.bo-about { padding: 110px 0; }
.bo-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.bo-split-img img { border-radius: var(--bo-radius); box-shadow: var(--bo-shadow); }
.bo-split-text h2 { font-size: 2rem; margin-bottom: 18px; }
.bo-split-text p { margin-bottom: 18px; color: var(--bo-text-light); }
.bo-split-text .bo-btn { margin-top: 10px; }

/* ===================================
   3. PROGRAMS — 3 Cards
   =================================== */
.bo-programs { padding: 110px 0; background: var(--bo-white); }
.bo-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.bo-card {
  background: var(--bo-parchment);
  border-radius: var(--bo-radius);
  overflow: hidden;
  box-shadow: var(--bo-shadow);
  transition: transform var(--bo-transition), box-shadow var(--bo-transition);
}
.bo-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(44,36,32,.14); }
.bo-card img { width: 100%; height: 220px; object-fit: cover; }
.bo-card-body { padding: 28px; }
.bo-card-body h3 { font-size: 1.25rem; margin-bottom: 10px; }
.bo-card-body p { color: var(--bo-text-light); font-size: .95rem; }

/* ===================================
   4. IMPACT DASHBOARD
   =================================== */
.bo-impact {
  padding: 100px 0;
  background: var(--bo-clay);
  color: var(--bo-white);
}
.bo-impact h2 { color: var(--bo-white); }
.bo-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.bo-stat { padding: 20px; }
.bo-stat-num {
  display: block;
  font-family: 'Rubik', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--bo-terracotta);
  margin-bottom: 8px;
}
.bo-stat-label {
  font-size: .95rem;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ===================================
   5. FIELD STORY
   =================================== */
.bo-story { padding: 110px 0; }
.bo-split-reverse { direction: rtl; }
.bo-split-reverse > * { direction: ltr; }

.bo-blockquote {
  border-left: 4px solid var(--bo-terracotta);
  padding: 20px 24px;
  margin: 24px 0;
  background: rgba(194,89,42,.06);
  border-radius: 0 var(--bo-radius) var(--bo-radius) 0;
}
.bo-blockquote p {
  font-size: 1.08rem;
  font-style: italic;
  color: var(--bo-text) !important;
  line-height: 1.8;
}
.bo-blockquote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-weight: 700;
  color: var(--bo-terracotta);
  font-size: .9rem;
}

/* ===================================
   6. VOLUNTEER
   =================================== */
.bo-volunteer { padding: 110px 0; background: var(--bo-white); }

.bo-card-volunteer { text-align: center; background: var(--bo-parchment); }
.bo-card-icon {
  width: 56px;
  height: 56px;
  margin: 28px auto 0;
  color: var(--bo-terracotta);
}
.bo-card-icon svg { width: 100%; height: 100%; }
.bo-card-volunteer .bo-card-body { padding: 20px 28px 32px; }

.bo-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  background: rgba(194,89,42,.12);
  color: var(--bo-terracotta);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===================================
   7. UPCOMING TRIPS
   =================================== */
.bo-trips { padding: 110px 0; }

.bo-card-trip img { height: 200px; }
.bo-trip-img-wrap { position: relative; }

.bo-date-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--bo-terracotta);
  color: var(--bo-white);
  border-radius: 8px;
  padding: 8px 14px;
  text-align: center;
  line-height: 1.15;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.bo-date-month {
  display: block;
  font-family: 'Rubik', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.bo-date-day {
  display: block;
  font-family: 'Rubik', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.bo-trip-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: .82rem;
  color: var(--bo-text-light);
  font-weight: 600;
}

/* ===================================
   8. CTA
   =================================== */
.bo-cta {
  padding: 100px 0;
  background: var(--bo-terracotta);
  text-align: center;
}
.bo-cta h2 { color: var(--bo-white); font-size: 2.4rem; margin-bottom: 16px; }
.bo-cta p { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 580px; margin: 0 auto 36px; }
.bo-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===================================
   9. FOOTER
   =================================== */
.bo-footer { background: var(--bo-clay); color: rgba(255,255,255,.7); padding: 80px 0 0; }
.bo-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }

.bo-logo-footer { font-size: 1.3rem; display: inline-block; margin-bottom: 16px; }
.bo-footer-col p { font-size: .92rem; line-height: 1.7; margin-bottom: 20px; }

.bo-social { display: flex; gap: 14px; }
.bo-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  transition: background var(--bo-transition), color var(--bo-transition);
}
.bo-social a:hover { background: var(--bo-terracotta); color: var(--bo-white); }
.bo-social svg { width: 18px; height: 18px; }

.bo-footer-col h4 {
  font-family: 'Rubik', sans-serif;
  color: var(--bo-white);
  font-size: 1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.bo-footer-col ul { list-style: none; }
.bo-footer-col ul li { margin-bottom: 10px; font-size: .92rem; }
.bo-footer-col ul a { color: rgba(255,255,255,.65); }
.bo-footer-col ul a:hover { color: var(--bo-terracotta); }

.bo-footer-bottom {
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  text-align: center;
  font-size: .85rem;
}

/* ===================================
   RESPONSIVE
   =================================== */

/* 1024px */
@media (max-width: 1024px) {
  .bo-hero-content h1 { font-size: 2.8rem; }
  .bo-split { gap: 40px; }
  .bo-stats { grid-template-columns: repeat(2, 1fr); }
  .bo-footer-grid { grid-template-columns: 1fr 1fr; }
}

/* 768px */
@media (max-width: 768px) {
  .bo-nav-links { display: none; }
  .bo-hamburger { display: flex; }

  .bo-hero-content h1 { font-size: 2.2rem; }
  .bo-hero-content p { font-size: 1.05rem; }

  .bo-split { grid-template-columns: 1fr; gap: 36px; }
  .bo-split-reverse { direction: ltr; }

  .bo-grid-3 { grid-template-columns: 1fr; gap: 24px; }

  .bo-section-header h2 { font-size: 1.8rem; }

  .bo-footer-grid { grid-template-columns: 1fr; gap: 36px; }

  .bo-about, .bo-programs, .bo-story, .bo-volunteer, .bo-trips { padding: 72px 0; }
  .bo-impact, .bo-cta { padding: 64px 0; }
}

/* 480px */
@media (max-width: 480px) {
  .bo-hero-content h1 { font-size: 1.75rem; }
  .bo-hero-content p { font-size: .95rem; }

  .bo-btn { padding: 12px 24px; font-size: .88rem; }

  .bo-stat-num { font-size: 2.2rem; }
  .bo-stats { gap: 16px; }

  .bo-cta h2 { font-size: 1.7rem; }

  .bo-trip-meta { flex-direction: column; gap: 4px; }
}
