/* =============================================
   Compassionate Acts Foundation – Stylesheet
   Theme: Purple, warm, mobile-first
   ============================================= */

:root {
  --purple-deep: #4a0080;
  --purple-main: #7b2fbe;
  --purple-light: #9b59d9;
  --purple-pale: #f3eaff;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-muted: #555577;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(75, 0, 130, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* ---- Utility ---- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4rem 0; }
.section-alt { background: var(--purple-pale); }

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 1rem;
  text-align: center;
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.placeholder-note {
  color: #a0522d;
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-primary { background: var(--purple-main); color: var(--white); border: none; }
.btn-white   { background: var(--white); color: var(--purple-deep); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.7); }

/* ---- Header ---- */
header {
  background: var(--purple-deep);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
  text-decoration: none;
}

.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}
.logo-img.small {
  width: 36px;
  height: 36px;
}

.org-name {
  display: block;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.org-tagline {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
}

header nav {
  display: flex;
  gap: 0.25rem;
}

header nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
header nav a:hover, header nav a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.25rem;
  flex-shrink: 0;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(0,0,0,0.25);
  padding: 0.5rem 1.25rem 0.75rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 640px) {
  header nav { display: none; }
  .nav-toggle { display: block; }
  .org-tagline { display: none; }
  .org-name { white-space: normal; font-size: 0.82rem; line-height: 1.25; }
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-main) 60%, #b060f0 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 2rem;
}

.hero-date {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 16px;
  padding: 0.75rem 2rem;
  margin-bottom: 2.5rem;
}

.big-date {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.big-date sup { font-size: 0.9rem; vertical-align: super; }

.hero-school-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.45);
  text-underline-offset: 4px;
}
.hero-school-link:hover { text-decoration-color: rgba(255,255,255,0.9); }

.body-school-link { color: inherit; text-decoration: none; }
.body-school-link:hover strong { text-decoration: underline; color: var(--purple-main); }

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Page hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-main));
  color: var(--white);
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; margin-bottom: 0.75rem; }
.page-hero p  { color: rgba(255,255,255,0.82); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ---- Cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.card-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.card h3   { font-size: 1.15rem; font-weight: 700; color: var(--purple-deep); margin-bottom: 0.5rem; }
.card p    { color: var(--text-muted); font-size: 0.95rem; }
.card-link { display: inline-block; margin-top: 1rem; color: var(--purple-main); font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.card-link:hover { text-decoration: underline; }

/* ---- Needs list ---- */
.needs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.needs-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.need-icon { font-size: 2rem; flex-shrink: 0; }
.needs-list strong { font-size: 1.05rem; color: var(--purple-deep); }
.needs-list p { color: var(--text-muted); font-size: 0.93rem; margin-top: 0.25rem; }

.collection-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 1.5rem;
}

/* ---- Quote banner ---- */
.quote-banner {
  background: var(--purple-main);
  padding: 3rem 0;
  text-align: center;
}
.quote-banner blockquote {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--white);
  font-weight: 500;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ---- About section ---- */
.about-org {
  max-width: 720px;
}
.about-org p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
}
.about-org .btn { margin-top: 1rem; }

/* ---- M-Pesa card ---- */
.mpesa-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.mpesa-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #4caf50;
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mpesa-steps h3 { color: var(--purple-deep); margin-bottom: 0.75rem; font-size: 1.1rem; }
.mpesa-steps ol { padding-left: 1.25rem; color: var(--text-muted); }
.mpesa-steps li { margin-bottom: 0.4rem; font-size: 0.97rem; }

.mpesa-details {
  background: var(--purple-pale);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mpesa-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.mpesa-detail-row span { color: var(--text-muted); font-size: 0.9rem; }
.mpesa-detail-row strong { color: var(--purple-deep); font-size: 1rem; }

.highlight { color: var(--purple-main); font-size: 1.05em; }

.collection-box {
  background: var(--white);
  border-left: 4px solid var(--purple-main);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.7;
}
.collection-box a { color: var(--purple-main); font-weight: 600; }

/* ---- Contact page ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 700px) {
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
}

.contact-info h2, .contact-form-wrap h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; }

.contact-item strong { display: block; color: var(--purple-deep); font-size: 0.95rem; margin-bottom: 0.2rem; }
.contact-item p { color: var(--text-muted); font-size: 0.93rem; margin: 0; }
.contact-item a { color: var(--purple-main); text-decoration: none; font-weight: 600; }
.contact-item a:hover { text-decoration: underline; }
.contact-note { font-size: 0.83rem; color: var(--text-muted); font-style: italic; }

/* ---- Contact form ---- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-form label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: -0.4rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid #d9c9f0;
  border-radius: 8px;
  font-size: 0.97rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--purple-main);
}

.contact-form textarea { resize: vertical; }

.contact-form .btn { align-self: flex-start; margin-top: 0.5rem; }

.form-note {
  color: #2e7d32;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* ---- Footer ---- */
footer {
  background: var(--purple-deep);
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--white); }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
