/* Global responsive helpers and overrides */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
}

img, picture, video, canvas, svg, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
}

button, input, textarea, select {
  font: inherit;
}

section, header, footer, main {
  width: 100%;
}

.hero h1,
.hero h2,
.hero h3 {
  line-height: 1.05;
}

@media (max-width: 1024px) {
  .hero h1 { font-size: clamp(3rem, 5vw, 4rem); }
  .hero h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
  .hero { min-height: 32vh; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: clamp(2.25rem, 8vw, 3rem); }
  .hero h2 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .hero { min-height: 28vh; }
  .md\:flex-row { flex-direction: column !important; }
  .two-column, .content-grid, .values-grid, .story-grid, .icon-grid, .project-grid,
  .contact-grid, .donation-slabs, .footer-content, .impact-stats {
    grid-template-columns: 1fr !important;
  }
  section,
  .hero,
  .faq-section,
  .contact-section {
    padding-left: min(24px, 6vw) !important;
    padding-right: min(24px, 6vw) !important;
  }
  .btn-gold,
  .btn-outline {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    margin-bottom: 12px !important;
  }
}

@media (max-width: 480px) {
  .hero { min-height: 26vh; }
  .btn-gold,
  .btn-outline {
    padding: 12px 16px !important;
  }
}

/* ------------------------------------------------------------------ *
 * Organisation at a Glance — the GCM fact panel (see asset/js/org-data.js)
 * ------------------------------------------------------------------ */
.org-glance {
  margin-top: 60px;
  padding: 40px;
  border-radius: 14px;
  background-color: var(--bg-main, #F4F8FC);
  border: 1px solid var(--border-soft, #E1EAF4);
}

.org-glance > h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-deep, #1E3A5F);
  margin: 0 0 28px;
}

.org-glance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
  margin: 0;
}

.org-fact {
  border-left: 3px solid var(--accent-main, #2C7BE5);
  padding-left: 16px;
}

.org-fact dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #6B7280);
  margin-bottom: 8px;
}

.org-fact dt i {
  color: var(--accent-main, #2C7BE5);
  margin-right: 8px;
}

.org-fact dd {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-dark, #1F2937);
}

.org-fact dd.org-fact-note {
  margin-top: 6px;
  font-size: 13.5px;
  font-style: italic;
  color: var(--text-muted, #6B7280);
}

@media (max-width: 900px) {
  .org-glance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .org-glance { padding: 28px 20px; margin-top: 40px; }
  .org-glance-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* Project pages: where the project is based */
.project-basecard {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 10px;
  background-color: var(--bg-soft, #E9F2FB);
  border-left: 3px solid var(--accent-main, #2C7BE5);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-dark, #1F2937);
}

.project-basecard i {
  color: var(--accent-main, #2C7BE5);
  margin-top: 4px;
  flex-shrink: 0;
}

/* ------------------------------------------------------------------ *
 * Quiet callout — honest notes, pull-quotes, sensitivity disclosures
 * ------------------------------------------------------------------ */
.callout {
  margin: 30px 0;
  padding: 20px 24px;
  border-radius: 8px;
  background-color: var(--bg-main, #F4F8FC);
  border-left: 3px solid var(--accent-main, #2C7BE5);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted, #6B7280);
}

.callout strong {
  color: var(--text-dark, #1F2937);
}

.callout.callout-quote {
  font-style: italic;
}

.callout-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-main, #2C7BE5);
  font-style: normal;
  margin-bottom: 8px;
}

/* Urgent variant — safety-critical or time-sensitive notices */
.callout.callout-urgent {
  background-color: #FDF1F0;
  border-left: 3px solid #C0392B;
  color: #6B4A47;
}

.callout.callout-urgent strong {
  color: #7A2E27;
}

.callout.callout-urgent .callout-label {
  color: #C0392B;
}

/* Small status pills for a project's urgency/priority tags */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tag-pill {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 30px;
}

.tag-pill.tag-new {
  background-color: var(--bg-soft, #E9F2FB);
  color: var(--accent-main, #2C7BE5);
}

.tag-pill.tag-safety {
  background-color: #FDF1F0;
  color: #C0392B;
}

.tag-pill.tag-urgent {
  background-color: #C0392B;
  color: #FFFFFF;
}
