/* =============================================================
   Lumora Community Network, Design System
   Palette extracted from official logo artwork
   ============================================================= */

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

:root {
  --teal:         #119aa8;
  --teal-light:   #e6f7f9;
  --teal-mid:     #0d8491;
  --blue:         #0f54a3;
  --blue-light:   #e8f1fb;
  --blue-mid:     #0c4688;
  --purple:       #6031aa;
  --purple-light: #f3ebfb;
  --purple-mid:   #502894;
  --gold:         #fccb6b;
  --gold-light:   #fef8e8;
  --navy:         #042670;
  --navy-soft:    #1a3a6e;

  --bg:           #ffffff;
  --bg-section:   #f4fafb;
  --bg-section-2: #f7f3fc;
  --bg-warm:      #fffbf3;
  --border:       rgba(17, 154, 168, 0.18);
  --border-strong:rgba(15, 84, 163, 0.28);
  --text:         #0a1f3d;
  --text-secondary:#2a4568;
  --muted:        #5a7088;
  --nav-bg:       rgba(255, 255, 255, 0.96);
  --shadow-sm:    0 2px 8px rgba(4, 38, 112, 0.06);
  --shadow:       0 8px 30px rgba(4, 38, 112, 0.10);
  --shadow-lg:    0 16px 48px rgba(4, 38, 112, 0.14);

  --font-sans:    "DM Sans", system-ui, -apple-system, sans-serif;
  --radius:       0.85rem;
  --radius-sm:    0.5rem;
  --radius-lg:    1.25rem;
  --max-w:        75rem;
  --page-pad:     clamp(1.25rem, 4vw, 2.5rem);
  --nav-h:        4.5rem;

  --fs-body:      1.0625rem;
  --fs-body-lg:   1.15rem;
  --fs-section:   clamp(1.85rem, 3vw, 2.65rem);
  --fs-page-title:clamp(2.1rem, 4vw, 3.25rem);
  --fs-hero:      clamp(2.35rem, 4.5vw, 3.5rem);
}

[data-theme="dark"] {
  --bg:           #071428;
  --bg-section:   #0c1e38;
  --bg-section-2: #121530;
  --bg-warm:      #151228;
  --border:       rgba(17, 154, 168, 0.22);
  --border-strong:rgba(96, 49, 170, 0.35);
  --text:         #eef4fb;
  --text-secondary:#b8c8dc;
  --muted:        #8aa0b8;
  --nav-bg:       rgba(7, 20, 40, 0.95);
  --shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow:       0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg:    0 16px 48px rgba(0, 0, 0, 0.55);
  --teal-light:   rgba(17, 154, 168, 0.12);
  --blue-light:   rgba(15, 84, 163, 0.14);
  --purple-light: rgba(96, 49, 170, 0.14);
  --gold-light:   rgba(252, 203, 107, 0.10);
  --teal:         #2ec4d4;
  --blue:         #4a8fd4;
  --purple:       #9b6fd4;
  --gold:         #ffd98a;
  --navy:         #c8daf0;
  --navy-soft:    #a8c0e0;
}

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.72;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--purple); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; color: var(--text); }

.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--page-pad); }
section { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
section.alt { background: var(--bg-section); }
section.alt2 { background: var(--bg-section-2); }
section.warm { background: var(--bg-warm); }
.text-center { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.85rem;
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--purple));
  border-radius: 2px;
}

.section-title {
  font-size: var(--fs-section);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-sub {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: var(--fs-body-lg);
}

.section-header { text-align: center; margin-bottom: 2.75rem; }

.divider {
  width: 4rem;
  height: 4px;
  margin: 1rem auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--purple));
}

/* ----- Navigation -------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-logo img {
  height: 2.85rem;
  width: auto;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.35rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-links a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  background: var(--blue-light);
  text-decoration: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.theme-toggle:hover { background: var(--teal-light); border-color: var(--teal); }
.theme-toggle svg { width: 1.1rem; height: 1.1rem; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ----- Buttons ----------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(96, 49, 170, 0.28);
}

.btn-primary:hover { color: #fff; box-shadow: 0 6px 22px rgba(96, 49, 170, 0.38); }

.btn-teal {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 16px rgba(17, 154, 168, 0.28);
}

.btn-teal:hover { color: #fff; background: var(--teal-mid); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-outline:hover { background: var(--blue-light); color: var(--blue-mid); }

.btn-white {
  background: #fff;
  color: var(--blue-mid);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover { color: var(--purple-mid); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-outline-white:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.btn-lg { padding: 0.85rem 1.65rem; font-size: 1rem; }

/* ----- Hero -------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(244, 250, 251, 0.92) 0%, rgba(255, 255, 255, 0.88) 45%, rgba(247, 243, 252, 0.90) 100%),
    url('images/placeholders/hero-community.jpg') center / cover no-repeat;
}

[data-theme="dark"] .hero {
  background:
    linear-gradient(160deg, rgba(10, 32, 56, 0.94) 0%, rgba(7, 20, 40, 0.92) 50%, rgba(18, 21, 48, 0.94) 100%),
    url('images/placeholders/hero-community.jpg') center / cover no-repeat;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) var(--page-pad);
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-tagline {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}

.hero h1 .gradient {
  display: block;
  background: linear-gradient(120deg, var(--teal) 0%, var(--blue) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  max-width: 34rem;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}

.hero-stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue);
}

.hero-stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-wrap {
  position: relative;
  max-width: 26rem;
  padding: 1.5rem;
}

.hero-logo-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 203, 107, 0.25) 0%, transparent 70%);
  z-index: 0;
}

.hero-logo-wrap img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 12px 32px rgba(4, 38, 112, 0.15));
}

/* ----- Pillars ----------------------------------------------- */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar {
  padding: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.pillar-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.pillar-icon.teal { background: var(--teal-light); }
.pillar-icon.blue { background: var(--blue-light); }
.pillar-icon.purple { background: var(--purple-light); }
.pillar-icon.gold { background: var(--gold-light); }

.pillar h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pillar p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* ----- Community banner -------------------------------------- */

.community-banner {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(4, 38, 112, 0.88) 0%, rgba(12, 70, 136, 0.85) 45%, rgba(80, 40, 148, 0.88) 100%),
    url('images/placeholders/banner-helping.jpg') center / cover no-repeat;
}

[data-theme="dark"] .community-banner {
  background:
    linear-gradient(135deg, rgba(4, 14, 30, 0.93) 0%, rgba(12, 50, 100, 0.90) 45%, rgba(60, 30, 110, 0.93) 100%),
    url('images/placeholders/banner-helping.jpg') center / cover no-repeat;
}

.community-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(252, 203, 107, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(17, 154, 168, 0.15) 0%, transparent 45%);
  pointer-events: none;
}

.community-banner-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) var(--page-pad);
}

.community-banner-icon {
  width: clamp(8rem, 18vw, 12rem);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}

.community-banner h2 {
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.community-banner p {
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--fs-body-lg);
  margin: 0;
  max-width: 38rem;
}

/* ----- Program cards ----------------------------------------- */

.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.program-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  overflow: hidden;
}

.program-card-body {
  padding: 1.25rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.program-card-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.program-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.program-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.program-badge {
  flex-shrink: 0;
  padding: 0.35rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  color: #fff;
}

.program-badge.teal { background: var(--teal); }
.program-badge.blue { background: var(--blue); }
.program-badge.purple { background: var(--purple); }
.program-badge.gold { background: #c8962a; color: var(--navy); }

.program-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.program-card p {
  flex: 1;
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.program-card-link {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--purple);
}

.program-card-link:hover { color: var(--teal); }

/* ----- Service area ------------------------------------------ */

.service-area-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.county-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.county-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.county-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.county-dot.teal { background: var(--teal); }
.county-dot.blue { background: var(--blue); }
.county-dot.purple { background: var(--purple); }

.county-item strong { display: block; font-size: 1rem; }
.county-item span { font-size: 0.9rem; color: var(--muted); }

.map-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-visual img {
  width: 100%;
  max-width: none;
  margin: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: none;
}

.map-visual p {
  margin: 0;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  color: var(--navy-soft);
  font-size: 1rem;
  background: var(--bg);
  text-align: center;
}

[data-theme="dark"] .map-visual p { color: var(--text); }

/* ----- Team -------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-card {
  padding: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.team-avatar {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.team-avatar.aaron { background: linear-gradient(135deg, var(--blue), var(--teal)); }
.team-avatar.rohith { background: linear-gradient(135deg, var(--teal), var(--purple)); }
.team-avatar.sam { background: linear-gradient(135deg, var(--purple), var(--blue)); }

.team-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.team-role {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 0.85rem;
}

.team-card > p:not(.team-role) {
  margin: 0;
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ----- Page hero (inner pages) ------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(244, 250, 251, 0.93) 0%, rgba(255, 255, 255, 0.90) 100%),
    url('images/placeholders/hero-community.jpg') center / cover no-repeat;
}

.page-hero--about {
  background:
    linear-gradient(135deg, rgba(244, 250, 251, 0.93) 0%, rgba(255, 255, 255, 0.90) 100%),
    url('images/placeholders/hero-community.jpg') center / cover no-repeat;
}

.page-hero--programs {
  background:
    linear-gradient(135deg, rgba(244, 250, 251, 0.93) 0%, rgba(255, 255, 255, 0.90) 100%),
    url('images/placeholders/program-health-nav.jpg') center / cover no-repeat;
}

.page-hero--team {
  background:
    linear-gradient(135deg, rgba(244, 250, 251, 0.93) 0%, rgba(255, 255, 255, 0.90) 100%),
    url('images/placeholders/hero-community.jpg') center / cover no-repeat;
}

.page-hero--contact {
  background:
    linear-gradient(135deg, rgba(244, 250, 251, 0.93) 0%, rgba(255, 255, 255, 0.90) 100%),
    url('images/placeholders/contact-welcome.jpg') center / cover no-repeat;
}

[data-theme="dark"] .page-hero,
[data-theme="dark"] .page-hero--about,
[data-theme="dark"] .page-hero--programs,
[data-theme="dark"] .page-hero--team,
[data-theme="dark"] .page-hero--contact {
  background-color: var(--bg-section);
  background-blend-mode: multiply;
}

[data-theme="dark"] .page-hero {
  background-image:
    linear-gradient(135deg, rgba(10, 32, 56, 0.94) 0%, rgba(7, 20, 40, 0.92) 100%),
    url('images/placeholders/hero-community.jpg');
}

[data-theme="dark"] .page-hero--about {
  background-image:
    linear-gradient(135deg, rgba(10, 32, 56, 0.94) 0%, rgba(7, 20, 40, 0.92) 100%),
    url('images/placeholders/hero-community.jpg');
}

[data-theme="dark"] .page-hero--programs {
  background-image:
    linear-gradient(135deg, rgba(10, 32, 56, 0.94) 0%, rgba(7, 20, 40, 0.92) 100%),
    url('images/placeholders/program-health-nav.jpg');
}

[data-theme="dark"] .page-hero--team {
  background-image:
    linear-gradient(135deg, rgba(10, 32, 56, 0.94) 0%, rgba(7, 20, 40, 0.92) 100%),
    url('images/placeholders/hero-community.jpg');
}

[data-theme="dark"] .page-hero--contact {
  background-image:
    linear-gradient(135deg, rgba(10, 32, 56, 0.94) 0%, rgba(7, 20, 40, 0.92) 100%),
    url('images/placeholders/contact-welcome.jpg');
}

.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--page-pad);
  max-width: 42rem;
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: var(--fs-page-title);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: var(--fs-body-lg);
  margin: 0;
}

/* ----- About layout ------------------------------------------ */

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-visual {
  display: flex;
  justify-content: center;
}

.split-visual img {
  width: 100%;
  max-width: 22rem;
  filter: drop-shadow(0 10px 28px rgba(4, 38, 112, 0.12));
}

.photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 22rem;
  width: 100%;
}

.photo-frame img {
  width: 100%;
  max-width: none;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: none;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-block {
  padding: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.value-block h3 {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
  color: var(--blue);
}

.value-block p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* ----- Contact ------------------------------------------------ */

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

.contact-info-block {
  padding: 1.75rem;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.contact-info-block h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.contact-detail {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-light);
  border-radius: var(--radius-sm);
  color: var(--teal);
  font-size: 1rem;
}

.contact-detail strong { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 0.15rem; }
.contact-detail span, .contact-detail a { font-size: 0.98rem; color: var(--text); }

.contact-form {
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 1.15rem; }

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(17, 154, 168, 0.15);
}

.form-group textarea { min-height: 7rem; resize: vertical; }

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.85rem;
}

/* ----- CTA banner -------------------------------------------- */

.cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 50%, var(--purple) 100%);
  color: #fff;
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) var(--page-pad);
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  font-size: var(--fs-body-lg);
}

.cta-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----- FAQ --------------------------------------------------- */

.faq-list { max-width: 42rem; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--bg);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--teal);
  flex-shrink: 0;
}

.faq-item.open .faq-question::after { content: "−"; }

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.1rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.faq-item.open .faq-answer { display: block; }

/* ----- Footer ------------------------------------------------ */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem var(--page-pad) 2rem;
}

[data-theme="dark"] .site-footer { background: #040e1e; }

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-logo {
  height: 3.5rem;
  width: auto;
  margin-bottom: 0.85rem;
  background: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  display: inline-block;
}

.footer-tagline {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-tagline em { color: var(--gold); font-style: normal; font-weight: 700; }

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-links a:hover { color: var(--gold); }

.footer-col h4 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.footer-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-meta a { color: rgba(255, 255, 255, 0.78); }
.footer-meta a:hover { color: var(--gold); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.section.has-bg-texture {
  position: relative;
}

.section.has-bg-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('images/placeholders/banner-helping.jpg') center / cover no-repeat;
  opacity: 0.04;
  pointer-events: none;
}

[data-theme="dark"] .section.has-bg-texture::before {
  opacity: 0.06;
}

/* ----- Gallery strip ----------------------------------------- */

.gallery-section {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  background: var(--bg-section-2);
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem 1rem 0.85rem;
  background: linear-gradient(transparent, rgba(4, 38, 112, 0.85));
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
}

@media (prefers-reduced-motion: no-preference) {
  .gallery-item:hover img,
  .gallery-item:focus-within img {
    transform: scale(1.04);
  }
}

.program-card-thumb {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.program-card-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* ----- Responsive -------------------------------------------- */

@media (max-width: 960px) {
  .hero-inner,
  .split-layout,
  .service-area-layout,
  .contact-layout,
  .community-banner-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual { order: -1; }
  .hero-logo-wrap { max-width: 16rem; margin: 0 auto; }

  .pillars-grid,
  .programs-grid,
  .team-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }

  .community-banner-inner { text-align: center; justify-items: center; }

  .gallery-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.85rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-item {
    flex: 0 0 min(78vw, 18rem);
    scroll-snap-align: start;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem var(--page-pad) 1rem;
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }

  .nav-toggle { display: flex; }

  .nav-right .btn-primary { display: none; }
}
