/* =========================================================
   PAGE HERO (inner pages)
   ========================================================= */
.page-hero{
  background: var(--sage);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}
.breadcrumb{
  display:flex; align-items:center; gap:8px;
  font-size: 13px; color: var(--ink-soft);
  margin-bottom: 18px;
}
.breadcrumb a{ transition: color .2s var(--ease); }
.breadcrumb a:hover{ color: var(--primary); }
.breadcrumb svg{ width:11px; height:11px; }
.page-hero h1{ font-size: clamp(32px, 4vw, 48px); max-width: 760px; }
.page-hero p{ color: var(--ink-soft); font-size: 16.5px; max-width: 620px; margin-top: 14px; }

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.mv-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.mv-card{
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--primary);
}
.mv-card:nth-child(2){ border-top-color: var(--purple); }
.mv-card .ic{
  width:52px; height:52px; border-radius:14px;
  background: var(--sage);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 20px;
}
.mv-card .ic svg{ width:24px; height:24px; color: var(--forest); }
.mv-card h3{ font-size: 22px; margin-bottom: 12px; }
.mv-card p{ color: var(--ink-soft); font-size: 15px; }

.about-story{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items:center;
}
.about-story-media{ position:relative; }
.about-story-media img{
  border-radius: var(--r-lg);
  width:100%; height: 460px; object-fit:cover;
  box-shadow: var(--shadow-md);
}
.about-story-media .badge-float{
  position:absolute; bottom:-24px; right:-24px;
  background: var(--primary);
  color:#fff;
  padding: 20px 26px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}
.about-story-media .badge-float b{ display:block; font-family:var(--font-display); font-size:26px; }
.about-story-media .badge-float span{ font-size:12px; }
.about-story-text p{ color: var(--ink-soft); font-size: 15.5px; margin-bottom: 18px; }
.about-story-text p:first-of-type{ font-size: 18px; color: var(--forest-2); font-family: var(--font-display); }

/* --- Core verticals list --- */
.vertical-rows{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.vertical-row{
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 28px 20px;
  text-align:center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.vertical-row:hover{ transform: translateY(-5px); box-shadow: var(--shadow-md); }
.vertical-row .ring{
  width:56px; height:56px; border-radius:50%;
  margin: 0 auto 16px;
  display:flex; align-items:center; justify-content:center;
}
.vertical-row .ring svg{ width:26px; height:26px; }
.vertical-row h4{ font-size:15.5px; margin-bottom:8px; }
.vertical-row p{ font-size: 13px; color: var(--ink-soft); }

/* --- Leadership --- */
.leader-block{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items:start;
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
}
.leader-block + .leader-block{ margin-top: 28px; }
.leader-block img{
  width: 100%; height: 320px; object-fit:cover; border-radius: var(--r-md);
}
.leader-block .role-eyebrow{ font-size:12px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--primary-dk); margin-bottom:10px; display:block; }
.leader-block h3{ font-size: 26px; margin-bottom:4px; }
.leader-block .cred{ font-size:14px; color:var(--ink-soft); margin-bottom:20px; }
.leader-block blockquote{
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--forest-2);
  line-height:1.5;
  margin: 0 0 18px;
  padding-left: 20px;
  border-left: 3px solid var(--primary);
}
.leader-block .bio p{ color: var(--ink-soft); font-size:15px; }

/* =========================================================
   SERVICES / PROJECTS DETAIL PAGE
   ========================================================= */
.service-detail{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items:center;
}
.service-detail:nth-child(even) .service-media{ order:2; }
.service-media img{
  width:100%; height: 380px; object-fit:cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.service-copy .tag-chip{
  display:inline-block;
  background: var(--sage);
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.service-copy h2{ font-size: 30px; margin-bottom: 14px; }
.service-copy > p{ color: var(--ink-soft); font-size: 15.5px; margin-bottom: 24px; }
.service-features{ display:grid; gap: 14px; }
.service-feature{
  display:flex; align-items:flex-start; gap: 12px;
  font-size: 14.5px;
  color: var(--ink);
}
.service-feature svg{ width:19px; height:19px; color: var(--primary); flex-shrink:0; margin-top:2px; }

.service-block-divider{
  height:1px;
  background: var(--line);
  margin: 88px 0;
}

/* =========================================================
   EVENTS TIMELINE
   ========================================================= */
.filter-bar{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-chip{
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper);
  transition: all .2s var(--ease);
  cursor: pointer;
}
.filter-chip:hover{ border-color: var(--primary); color: var(--primary); }
.filter-chip.is-active{ background: var(--forest); border-color: var(--forest); color:#fff; }
.filter-chip.is-active:hover{ color:#fff; border-color: var(--forest); }

.timeline{
  position:relative;
  padding-left: 40px;
}
.timeline::before{
  content:"";
  position:absolute; left: 10px; top:8px; bottom:8px;
  width: 2px;
  background: var(--line);
}
.tl-item{
  position:relative;
  padding-bottom: 48px;
}
.tl-item:last-child{ padding-bottom:0; }
.tl-dot{
  position:absolute; left: -40px; top: 4px;
  width: 22px; height:22px; border-radius:50%;
  background: var(--ivory);
  border: 3px solid var(--primary);
}
.tl-item[data-cat="health"] .tl-dot{ border-color: var(--green); }
.tl-item[data-cat="awareness"] .tl-dot{ border-color: var(--primary); }
.tl-item[data-cat="dialysis"] .tl-dot{ border-color: var(--purple); }

.tl-card{
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  display:grid;
  grid-template-columns: 130px 1fr auto;
  gap: 28px;
  align-items:center;
}
.tl-date .cat{
  display:block; font-size:11px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
  color: var(--primary-dk); margin-bottom:6px;
}
.tl-date .d{ font-family: var(--font-display); font-size:17px; color: var(--forest-2); font-weight:600; }
.tl-body h3{ font-size:19px; margin-bottom:6px; }
.tl-body p{ font-size:14px; color: var(--ink-soft); }
.tl-meta{ text-align:right; display:flex; flex-direction:column; gap:8px; align-items:flex-end; }
.tl-meta span{
  font-size:12.5px; font-weight:700; color: var(--forest);
  background: var(--sage); padding:6px 12px; border-radius:999px;
  white-space:nowrap;
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-wrap{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.contact-info-card{
  background: var(--forest-2);
  color:#EDEFE7;
  border-radius: var(--r-lg);
  padding: 44px;
}
.contact-info-card h3{ color:#F5F2E7; font-size:24px; margin-bottom:10px; }
.contact-info-card > p{ color:#C8C4E0; font-size:14.5px; margin-bottom:32px; }
.contact-info-row{
  display:flex; gap:16px; align-items:flex-start;
  padding: 18px 0;
  border-top: 1px solid var(--line-dark);
}
.contact-info-row:first-of-type{ border-top:none; padding-top:0; }
.contact-info-row .ic{
  width:44px; height:44px; border-radius:12px;
  background: rgba(245,138,6,0.18);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.contact-info-row .ic svg{ width:20px; height:20px; color: var(--secondary); }
.contact-info-row b{ display:block; font-size:13px; color:#A9A3CC; text-transform:uppercase; letter-spacing:0.05em; margin-bottom:4px; }
.contact-info-row span, .contact-info-row a{ font-size:15px; color:#EFEDF9; }

.contact-form-card{
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
}
.contact-form-card h3{ font-size: 24px; margin-bottom:6px; }
.contact-form-card > p{ color: var(--ink-soft); font-size:14.5px; margin-bottom:28px; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:20px; margin-bottom:20px; }
.form-group{ display:flex; flex-direction:column; gap:8px; margin-bottom:20px; }
.form-group label{ font-size:13.5px; font-weight:600; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea{
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--ivory);
  transition: border-color .2s var(--ease);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{
  border-color: var(--forest);
  outline:none;
}
.form-group textarea{ resize:vertical; min-height:120px; }
.form-note{ font-size:13px; color:var(--ink-soft); margin-top:14px; }

.map-embed{
  border-radius: var(--r-lg);
  overflow:hidden;
  height: 340px;
  box-shadow: var(--shadow-sm);
  margin-top: 48px;
}
.map-embed iframe{ width:100%; height:100%; border:0; }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}
.gallery-item{
  border-radius: var(--r-md);
  overflow:hidden;
  position:relative;
}
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition: transform .4s var(--ease); }
.gallery-item:hover img{ transform: scale(1.08); }
.gallery-item.span-2{ grid-column: span 2; grid-row: span 2; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px){
  .mv-grid{ grid-template-columns: 1fr; }
  .about-story{ grid-template-columns: 1fr; gap: 48px; }
  .about-story-media img{ height:340px; }
  .vertical-rows{ grid-template-columns: repeat(3,1fr); }
  .leader-block{ grid-template-columns: 1fr; }
  .leader-block img{ height:240px; }
  .service-detail{ grid-template-columns: 1fr; }
  .service-detail:nth-child(even) .service-media{ order:0; }
  .contact-wrap{ grid-template-columns: 1fr; }
  .tl-card{ grid-template-columns: 1fr; text-align:left; gap:10px; }
  .tl-meta{ align-items:flex-start; }
  .gallery-grid{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 620px){
  .vertical-rows{ grid-template-columns: repeat(2,1fr); }
  .form-row{ grid-template-columns:1fr; }
  .leader-block, .contact-form-card, .contact-info-card{ padding:28px; }
  .gallery-grid{ grid-template-columns: 1fr 1fr; grid-auto-rows:140px; }
}

/* --- Mobile Header Actions Layout --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px; /* Space between Donate button and Hamburger */
}

/* --- Fix the hamburger button size and alignment --- */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 44px;   /* Touch-friendly hit area */
  height: 44px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(0,0,0,0.05);
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
  stroke: #1a1a1a; /* Change to match your brand color */
}

/* --- Hide hamburger on desktop, show on mobile --- */
@media (min-width: 992px) { /* Adjust this breakpoint to match your nav breakpoint */
  .menu-toggle {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .menu-toggle {
    display: flex !important;
  }
  
  /* Optional: On mobile, make the Donate button smaller to fit better */
  .header-actions .btn-primary {
    font-size: 14px;
    padding: 6px 16px;
  }
}

/* --- Make sure the mobile nav opens correctly --- */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
}

.mobile-nav.is-open {
  right: 0;
}


/* --- HIDE MOBILE NAV ON DESKTOP --- */
@media (min-width: 992px) { /* Make sure this matches your hamburger breakpoint */
  .mobile-nav {
    display: none !important;
  }
}

/* --- MOBILE NAVIGATION STYLES (Keeps it working on mobile) --- */
@media (max-width: 991px) {
  .mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    right: -100%; /* Starts hidden off-screen */
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
  }

  /* When the "is-open" class is added via JS, slide it in */
  .mobile-nav.is-open {
    right: 0;
  }
}