/* =============================================
   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;
}

/* ---- 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;
  border: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-primary { background: var(--purple-main); color: var(--white); }
.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); }
.btn-ghost   { background: transparent; color: var(--purple-main); border: 2px solid var(--purple-main); }

/* ---- 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, rgba(74,0,128,0.84) 0%, rgba(123,47,190,0.80) 55%, rgba(176,96,240,0.76) 100%),
    url('photo-community.jpg') center 30% / cover no-repeat;
  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: 2.5rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.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; }

/* ---- Stats row ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-box {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1rem;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--purple-main);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  display: block;
}

/* ---- 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;
}

/* ---- Vision / Mission boxes ---- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pillar {
  border-left: 4px solid var(--purple-main);
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

.pillar h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--purple-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.pillar p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* ---- About section on homepage ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
}
.about-text .btn { margin-top: 0.5rem; }

/* ---- Founder block ---- */
.founder-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  max-width: 720px;
  margin: 2rem auto 0;
}

.founder-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--purple-pale);
  color: var(--purple-main);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.founder-block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 0.25rem;
}
.founder-block .founder-role {
  font-size: 0.85rem;
  color: var(--purple-main);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.founder-block p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

@media (max-width: 560px) {
  .founder-block { flex-direction: column; }
}

/* ---- Programme list ---- */
.programme-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1rem;
}

.programme-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  align-items: start;
}

.programme-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--purple-pale);
  color: var(--purple-main);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.programme-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 0.25rem;
}

.programme-purpose {
  font-size: 0.92rem;
  color: var(--purple-main);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.programme-body p {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 0.75rem;
}

.programme-activities {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.programme-activities li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}

.programme-activities li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--purple-light);
  font-size: 0.85rem;
}

.sdg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.sdg-tag {
  background: var(--purple-pale);
  color: var(--purple-deep);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}

@media (max-width: 560px) {
  .programme-item { grid-template-columns: 1fr; }
}

/* ---- Impact page ---- */
.impact-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.impact-area {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.impact-area-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple-main);
  flex-shrink: 0;
  margin-top: 0.45rem;
}

.impact-area p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  border-top: 4px solid var(--purple-main);
}

.project-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 0.5rem;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.project-goal {
  background: var(--purple-pale);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
}

.project-goal strong {
  display: block;
  color: var(--purple-deep);
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-goal ul {
  list-style: none;
  color: var(--text-muted);
}

.project-goal li {
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}
.project-goal li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--purple-main);
  font-size: 0.8rem;
}

/* ---- Partners page ---- */
.partners-why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.why-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.why-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.why-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.partners-placeholder {
  text-align: center;
  padding: 3rem 1.5rem;
  border: 2px dashed #d9c9f0;
  border-radius: var(--radius);
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.partner-types {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.partner-types li {
  background: var(--white);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  box-shadow: var(--shadow);
  font-size: 0.93rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.partner-types li::before {
  content: '🤝';
  font-size: 1rem;
}

.become-partner {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.become-partner h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 1rem;
}

.become-partner p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.97rem;
}

.opportunity-list {
  list-style: none;
  text-align: left;
  margin: 1.25rem 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.opportunity-list li {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 1.5rem;
  position: relative;
}

.opportunity-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--purple-main);
}

/* ---- 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 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; }

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

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

.support-card .card-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.support-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--purple-deep); margin-bottom: 0.5rem; }
.support-card p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 1.25rem; }

/* ---- Social links ---- */
.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: var(--purple-pale);
  color: var(--purple-deep);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.social-link:hover { background: #e0d0f8; }

/* ---- Photo strip ---- */
.photo-strip {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  text-align: center;
  color: var(--white);
}

.photo-strip-outreach {
  background:
    linear-gradient(rgba(74,0,128,0.72), rgba(74,0,128,0.72)),
    url('photo-outreach.jpg') center 40% / cover no-repeat;
}

.photo-strip-community {
  background:
    linear-gradient(rgba(74,0,128,0.72), rgba(74,0,128,0.72)),
    url('photo-community.jpg') center 30% / cover no-repeat;
}

.photo-strip h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.photo-strip p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- CTA banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-main));
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn { margin: 0.35rem; }

/* ---- 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);
}

a.footer-meta {
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 1rem;
  margin-left: 0.25rem;
}
a.footer-meta:hover { color: rgba(255,255,255,0.7); }
