/* ============================= */
/* D&B SOFTWARE COMPONENT STYLES */
/* ============================= */


/* ============================= */
/* ANNOUNCEMENT BAR */
/* ============================= */

.announcement-bar{
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--color-border);
}

.announcement-content{
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  min-height:48px;
}

.announcement-content p{
  font-size:14px;
  color:var(--color-text-muted);
}

.announcement-content a{
  color:var(--color-primary);
  font-weight:600;
  margin-left:6px;
}

.announcement-content a:hover{
  color:var(--color-primary-hover);
}


/* ============================= */
/* SITE HEADER / NAV */
/* ============================= */

.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background: rgba(15,31,47,0.88);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--color-border);
}

.nav-wrapper{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:82px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  flex-shrink:0;
}

.brand-logo{
  width:48px;
  height:48px;
  object-fit:contain;
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}

.brand-name{
  font-size:17px;
  font-weight:700;
  color:var(--color-text);
}

.brand-subtitle{
  font-size:12px;
  color:var(--color-text-muted);
  letter-spacing:.03em;
}

.site-nav{
  display:flex;
  align-items:center;
}

.nav-list{
  display:flex;
  align-items:center;
  gap:26px;
}

.nav-list li{
  display:flex;
  align-items:center;
}

.nav-list a{
  font-size:15px;
  font-weight:500;
  color:var(--color-text-muted);
  transition:var(--transition);
}

.nav-list a:hover{
  color:var(--color-text);
}

.nav-list a.active{
  color:var(--color-text);
}

.nav-button{
  padding:12px 18px;
  border:1px solid rgba(201,179,124,0.3);
  border-radius:var(--radius-md);
  background: rgba(201,179,124,0.08);
  color:var(--color-primary) !important;
  font-weight:600 !important;
}

.nav-button:hover,
.nav-button.active{
  background: var(--color-primary);
  color:#111 !important;
  border-color:var(--color-primary);
}


/* ============================= */
/* MOBILE MENU BUTTON */
/* ============================= */

.mobile-menu-toggle{
  display:none;
  width:46px;
  height:46px;
  border:1px solid var(--color-border);
  border-radius:12px;
  background:rgba(255,255,255,0.03);
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
}

.mobile-menu-toggle span{
  width:18px;
  height:2px;
  background:var(--color-text);
  border-radius:999px;
  transition:var(--transition);
}


/* ============================= */
/* HERO INFO CARD */
/* ============================= */

.hero-info-card{
  background:linear-gradient(
    180deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.03)
  );
  border:1px solid var(--color-border);
  border-radius:var(--radius-lg);
  padding:32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.hero-info-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  padding:16px 0;
  border-bottom:1px solid rgba(255,255,255,0.06);
}

.hero-info-row:last-child{
  border-bottom:none;
  padding-bottom:0;
}

.hero-info-row:first-child{
  padding-top:0;
}

.info-label{
  font-size:13px;
  color:var(--color-text-muted);
  text-transform:uppercase;
  letter-spacing:.08em;
}

.hero-info-row strong{
  font-size:15px;
  color:var(--color-text);
  text-align:right;
}


/* ============================= */
/* SECTION HEADING */
/* ============================= */

.section-heading{
  margin-bottom:42px;
  max-width:760px;
}

.section-heading p{
  max-width:64ch;
}


/* ============================= */
/* PAGE HERO HELPERS */
/* ============================= */

.hero-text{
  font-size:18px;
  max-width:720px;
  color:var(--color-text-muted);
}


/* ============================= */
/* PROJECT / BLOG / FEATURE CARDS */
/* ============================= */

.project-card,
.project-showcase-grid article,
.featured-project-card,
.blog-card,
.featured-post-card,
.update-card,
.giving-card,
.category-card,
.principle-card,
.story-card,
.testimonial-card,
.impact-stat,
.sidebar-card,
.faq-item{
  background:var(--color-card);
  border:1px solid var(--color-border);
  border-radius:var(--radius-lg);
  transition:var(--transition);
}

.project-card,
.featured-project-card,
.blog-card,
.update-card,
.giving-card,
.category-card,
.principle-card,
.story-card,
.testimonial-card,
.impact-stat,
.sidebar-card,
.faq-item{
  padding:30px;
}

.project-card:hover,
.featured-project-card:hover,
.blog-card:hover,
.update-card:hover,
.giving-card:hover,
.category-card:hover,
.principle-card:hover,
.story-card:hover,
.testimonial-card:hover,
.impact-stat:hover,
.sidebar-card:hover{
  transform:translateY(-4px);
  border-color:rgba(255,255,255,0.14);
}

.project-topline,
.blog-card-meta,
.featured-post-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:16px;
}

.project-type,
.project-category,
.post-tag,
.update-type{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(201,179,124,0.1);
  border:1px solid rgba(201,179,124,0.18);
  color:var(--color-primary);
  font-size:12px;
  font-weight:600;
  letter-spacing:.03em;
}

.post-date{
  color:var(--color-text-muted);
  font-size:13px;
}

.project-points,
.sidebar-list,
.contact-info-list{
  margin-top:16px;
}

.project-points li,
.sidebar-list li,
.contact-info-list li{
  color:var(--color-text-muted);
  margin-bottom:10px;
}

.text-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:18px;
  color:var(--color-primary);
  font-weight:600;
}

.text-link:hover{
  color:var(--color-primary-hover);
}


/* ============================= */
/* TIMELINE / PROCESS */
/* ============================= */

.timeline-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:24px;
}

.timeline-step{
  background:var(--color-card);
  border:1px solid var(--color-border);
  border-radius:var(--radius-lg);
  padding:28px;
}

.step-number,
.story-number{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:999px;
  margin-bottom:14px;
  background:rgba(201,179,124,0.1);
  border:1px solid rgba(201,179,124,0.18);
  color:var(--color-primary);
  font-weight:700;
  font-size:14px;
}


/* ============================= */
/* FORMS */
/* ============================= */

.contact-form,
.donation-form{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.form-grid{
  display:grid;
  gap:18px;
}

.form-row{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.form-label{
  font-size:14px;
  font-weight:600;
  color:var(--color-text);
}

.optional{
  color:var(--color-text-muted);
  font-weight:500;
}

input,
select,
textarea{
  width:100%;
  background:rgba(255,255,255,0.04);
  border:1px solid var(--color-border);
  border-radius:var(--radius-md);
  color:var(--color-text);
  padding:14px 16px;
  font:inherit;
  outline:none;
  transition:var(--transition);
}

input::placeholder,
textarea::placeholder{
  color:#8f9bad;
}

input:focus,
select:focus,
textarea:focus{
  border-color:rgba(201,179,124,0.55);
  box-shadow:0 0 0 3px rgba(201,179,124,0.12);
}

textarea{
  resize:vertical;
  min-height:120px;
}

.checkbox-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
}

.checkbox-row input[type="checkbox"]{
  width:18px;
  height:18px;
  margin-top:2px;
  accent-color:var(--color-primary);
}

.checkbox-row label{
  color:var(--color-text-muted);
  font-size:14px;
}


/* ============================= */
/* DONATION UI */
/* ============================= */

.frequency-toggle{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.frequency-option,
.amount-option{
  min-height:50px;
  border-radius:var(--radius-md);
  border:1px solid var(--color-border);
  background:rgba(255,255,255,0.04);
  color:var(--color-text);
  font-weight:600;
  transition:var(--transition);
}

.frequency-option:hover,
.amount-option:hover{
  border-color:rgba(201,179,124,0.35);
  background:rgba(201,179,124,0.06);
}

.frequency-option.active,
.amount-option.active{
  background:rgba(201,179,124,0.14);
  border-color:rgba(201,179,124,0.42);
  color:var(--color-primary);
}

.amount-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}

.input-with-prefix{
  position:relative;
}

.input-with-prefix span{
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  color:var(--color-text-muted);
  pointer-events:none;
}

.input-with-prefix input{
  padding-left:34px;
}

.trust-pill{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(201,179,124,0.2);
  background:rgba(201,179,124,0.08);
  color:var(--color-primary);
  font-size:13px;
  font-weight:600;
}

.donate-trust-points{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
}

.secure-note{
  font-size:13px;
  color:var(--color-text-muted);
  text-align:center;
}


/* ============================= */
/* CONTACT PAGE HELPERS */
/* ============================= */

.contact-label{
  display:block;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.07em;
  color:var(--color-text-muted);
  margin-bottom:4px;
}

.sidebar-actions{
  display:flex;
  flex-direction:column;
  gap:12px;
}


/* ============================= */
/* FEATURED POST */
/* ============================= */

.featured-post-card{
  padding:40px;
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}

.featured-post-content p + p{
  margin-top:14px;
}


/* ============================= */
/* IMPACT / STATS */
/* ============================= */

.impact-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:24px;
}

.impact-number,
.giving-amount,
.metric-number{
  display:block;
  color:var(--color-primary);
  font-size:24px;
  font-weight:700;
  margin-bottom:8px;
}

.impact-label,
.metric-label{
  color:var(--color-text-muted);
  font-size:14px;
}


/* ============================= */
/* CTA UTILITY */
/* ============================= */

.cta-content{
  flex:1;
}

.cta-content p{
  max-width:58ch;
}


/* ============================= */
/* FOOTER LOGO */
/* ============================= */

.footer-logo{
  width:52px;
  height:52px;
  object-fit:contain;
  margin-bottom:14px;
}


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

@media (max-width: 900px){

  .mobile-menu-toggle{
    display:flex;
  }

  .site-nav{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:rgba(15,31,47,0.98);
    border-bottom:1px solid var(--color-border);
    padding:18px 5%;
    display:none;
  }

  .site-nav.open{
    display:block;
  }

  .nav-list{
    flex-direction:column;
    align-items:flex-start;
    gap:18px;
  }

  .nav-list li,
  .nav-list a{
    width:100%;
  }

  .nav-button{
    text-align:center;
  }

  .hero-info-row{
    flex-direction:column;
    gap:6px;
  }

  .hero-info-row strong{
    text-align:left;
  }
}

@media (max-width: 700px){

  .announcement-content{
    padding:10px 0;
  }

  .announcement-content p{
    font-size:13px;
  }

  .brand-subtitle{
    display:none;
  }

  .hero-info-card,
  .project-card,
  .featured-project-card,
  .blog-card,
  .update-card,
  .giving-card,
  .category-card,
  .principle-card,
  .story-card,
  .testimonial-card,
  .impact-stat,
  .sidebar-card,
  .faq-item,
  .featured-post-card{
    padding:22px;
  }

  .amount-grid,
  .frequency-toggle{
    grid-template-columns:1fr;
  }
}