/* =============================================================
   Taley Sylvester Children Foundation — style.css
   Global stylesheet. No page-level styles. All styling lives here.
   ============================================================= */

/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --magenta:        #8B1A6B;
  --magenta-hover:  #C2337A;
  --magenta-pale:   #f9eef6;
  --magenta-border: rgba(139,26,107,0.2);
  --dark:           #1a1a1a;
  --text:           #2d2d2d;
  --muted:          #666666;
  --gray-light:     #f7f5f5;
  --gray-border:    #e0dede;
  --white:          #ffffff;
  --hero-bg-start:  #1a0814;
  --hero-bg-end:    #3d0a2e;
  --hero-pink:      #d966b0;
  --footer-bg:      #120810;
  --radius-sm:      6px;
  --radius:         8px;
  --radius-lg:      14px;
  --shadow:         0 2px 12px rgba(0,0,0,0.07);
  --shadow-md:      0 4px 24px rgba(0,0,0,0.11);
  --transition:     0.2s ease;
  --max-width:      1100px;
  --font:           'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--magenta); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--magenta-hover); }
ul, ol { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark);
}
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Sections ── */
.section         { padding: 4rem 0; }
.section--alt    { background: var(--gray-light); }
.section--dark   { background: linear-gradient(135deg, var(--hero-bg-start) 0%, var(--hero-bg-end) 100%); }
.section--center { text-align: center; }

.section__label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 0.5rem;
}
.section--dark .section__label { color: var(--hero-pink); }

.section__title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 0.75rem;
}
.section--dark .section__title { color: var(--white); }

.section__sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.section--dark .section__sub  { color: rgba(255,255,255,0.65); }
.section--center .section__sub { margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 2px solid transparent;
  text-align: center;
  line-height: 1.4;
}
.btn--primary {
  background: var(--magenta);
  color: var(--white);
  border-color: var(--magenta);
}
.btn--primary:hover {
  background: var(--magenta-hover);
  border-color: var(--magenta-hover);
  color: var(--white);
}
.btn--outline {
  background: transparent;
  color: var(--magenta);
  border-color: var(--magenta);
}
.btn--outline:hover {
  background: var(--magenta);
  color: var(--white);
}
.btn--white {
  background: var(--white);
  color: var(--magenta);
  border-color: var(--white);
  font-weight: 700;
}
.btn--white:hover {
  background: var(--magenta-pale);
  color: var(--magenta);
  border-color: var(--magenta-pale);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}
.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
}
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
/*.nav__logo img  { height: 46px; width: auto; }*/
.nav__links     { display: none; list-style: none; gap: 2rem; align-items: center; }
.nav__links a   { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.nav__links a:hover,
.nav__links a.active { color: var(--magenta); }
.nav__cta       { display: none; }
.nav__toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav open */
.nav--open .nav__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  padding: 1.5rem 1.25rem;
  gap: 1.25rem;
  box-shadow: var(--shadow-md);
}
.nav--open .nav__cta { display: block; margin-top: 0.25rem; }

@media (min-width: 768px) {
  .nav__links  { display: flex; }
  .nav__cta    { display: inline-block; }
  .nav__toggle { display: none; }
}

/* ── Hero (homepage) ── */
.hero {
  background: linear-gradient(135deg, var(--hero-bg-start) 0%, var(--hero-bg-end) 100%);
  padding: 5rem 1.25rem 0;
  text-align: center;
}
.hero__content  { max-width: 680px; margin: 0 auto; }
.hero__title    { color: var(--white); margin-bottom: 1.25rem; }
.hero__title span { color: var(--hero-pink); }
.hero__sub {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}
.hero__btns { justify-content: center; margin-bottom: 3.5rem; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 680px;
  margin: 0 auto;
}
.hero__stat {
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}
.hero__stat:last-child { border-right: none; }
.hero__stat-num {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--hero-pink);
  line-height: 1.2;
}
.hero__stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--hero-bg-start) 0%, var(--hero-bg-end) 100%);
  padding: 3.5rem 1.25rem;
  text-align: center;
}
.page-hero__title {
  color: var(--white);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
}
.page-hero__sub {
  color: rgba(255,255,255,0.62);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ── Mission Strip ── */
.mission-strip {
  background: var(--magenta);
  padding: 2.5rem 1.25rem;
  text-align: center;
}
.mission-strip__quote {
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.85;
  font-style: italic;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }

.card--accent {
  border-left: 4px solid var(--magenta);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.card--top-accent { border-top: 3px solid var(--magenta); }

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--magenta-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--magenta);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card__tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--magenta);
  background: var(--magenta-pale);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}
.card__title  { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card__body   { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.75rem; }
.card__link   { font-size: 0.875rem; font-weight: 600; color: var(--magenta); }
.card__link:hover { color: var(--magenta-hover); }
.card__meta   { font-size: 0.8rem; color: var(--muted); }

.card--media {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.card--center { text-align: center; }
.card--center .card__icon { margin-left: auto; margin-right: auto; }

/* ── Notice box ── */
.notice {
  background: var(--magenta-pale);
  border: 1px solid var(--magenta-border);
  border-left: 4px solid var(--magenta);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
}
.notice--dark {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  border-left-color: var(--hero-pink);
  color: rgba(255,255,255,0.8);
}

/* ── Grids ── */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Checklist ── */
.checklist { display: flex; flex-direction: column; gap: 0.6rem; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.checklist li svg {
  width: 16px;
  height: 16px;
  stroke: var(--magenta);
  fill: none;
  stroke-width: 2.5;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ── Stat row (impact) ── */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) {
  .impact-grid { grid-template-columns: repeat(4, 1fr); }
}
.impact-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}
.impact-card__num   { font-size: 1.4rem; font-weight: 700; color: var(--hero-pink); line-height: 1.2; }
.impact-card__label { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 0.3rem; line-height: 1.4; }

/* ── Steps ── */
.steps { display: flex; flex-direction: column; gap: 1.75rem; }
.step  { display: flex; gap: 1.25rem; align-items: flex-start; }
.step__num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--magenta);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.step__title { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.step__body  { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ── Board ── */
.board { display: flex; flex-direction: column; gap: 3.5rem; }
.board__member {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.board__photo-wrap {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--magenta-pale);
  border: 3px solid var(--gray-border);
}
.board__photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.board__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--magenta);
  opacity: 0.25;
}
.board__title  { color: var(--magenta); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.3rem; }
.board__name   { font-size: 1.5rem; margin-bottom: 1rem; }
.board__bio    { color: var(--muted); line-height: 1.8; margin: 0; font-size: 0.97rem; }

@media (min-width: 768px) {
  .board__member          { grid-template-columns: 260px 1fr; }
  .board__member--reverse { grid-template-columns: 1fr 260px; }
  .board__member--reverse .board__photo-wrap { order: 2; }
  .board__member--reverse .board__info       { order: 1; }
}

/* ── Values ── */
.value-card {
  text-align: center;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  background: var(--white);
}
.value-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--magenta-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.value-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--magenta);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.value-card__name { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem; }
.value-card__desc { font-size: 0.875rem; color: var(--muted); margin: 0; }

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 540px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (min-width: 900px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery__item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--gray-light);
  position: relative;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,8,20,0);
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery__item:hover .gallery__item-overlay { background: rgba(26,8,20,0.38); }
.gallery__item-overlay svg { opacity: 0; transition: opacity 0.2s ease; }
.gallery__item:hover .gallery__item-overlay svg { opacity: 1; }

.gallery__empty {
  padding: 2.5rem;
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border: 2px dashed var(--gray-border);
}
.gallery__empty svg { margin: 0 auto 0.75rem; opacity: 0.35; }
.gallery__group     { margin-bottom: 3.5rem; }
.gallery__group-title { font-size: 1.15rem; margin-bottom: 0.25rem; }
.gallery__group-desc  { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.1rem; }

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.is-open     { display: flex; }
.lightbox__img        { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__close {
  position: fixed;
  top: 1rem; right: 1.25rem;
  background: none; border: none;
  color: var(--white); font-size: 2.25rem;
  cursor: pointer; line-height: 1; z-index: 1001;
  opacity: 0.75; transition: opacity var(--transition);
}
.lightbox__close:hover { opacity: 1; }
.lightbox__nav {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); border: none;
  color: var(--white); font-size: 1.75rem;
  width: 46px; height: 46px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 1001; transition: background var(--transition);
}
.lightbox__nav:hover  { background: rgba(255,255,255,0.28); }
.lightbox__prev       { left: 1rem; }
.lightbox__next       { right: 1rem; }
.lightbox__caption {
  position: fixed; bottom: 1.25rem;
  left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem; white-space: nowrap;
}

/* ── Download box ── */
.download-box {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  max-width: 480px;
}
.download-box svg    { margin: 0 auto 1rem; stroke: var(--magenta); }
.download-box h3     { margin-bottom: 0.4rem; }
.download-box p      { color: var(--muted); font-size: 0.875rem; margin-bottom: 1.25rem; }

/* ── Bank transfer box ── */
.bank-box {
  background: linear-gradient(135deg, var(--hero-bg-start) 0%, var(--hero-bg-end) 100%);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.bank-box__label    { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hero-pink); margin-bottom: 0.4rem; }
.bank-box__title    { color: var(--white); font-size: 1.1rem; margin-bottom: 0.75rem; }
.bank-box__sub      { color: rgba(255,255,255,0.6); font-size: 0.875rem; margin-bottom: 1.25rem; }
.bank-box__details  {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.bank-box__field-label { font-size: 0.72rem; color: rgba(255,255,255,0.4); margin-bottom: 0.2rem; }
.bank-box__field-value { color: var(--white); font-weight: 600; font-size: 0.9rem; }
.bank-box__field-value--accent { color: var(--hero-pink); font-size: 1.1rem; letter-spacing: 0.04em; }
.bank-box__note     { color: rgba(255,255,255,0.45); font-size: 0.8rem; }
.bank-box__note a   { color: var(--hero-pink); }

/* ── Contact info list ── */
.contact-list        { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.contact-list__item  { display: flex; gap: 0.875rem; align-items: flex-start; }
.contact-list__icon  {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--magenta-pale);
  display: flex; align-items: center; justify-content: center;
}
.contact-list__icon svg { width: 18px; height: 18px; stroke: var(--magenta); fill: none; stroke-width: 1.75; }
.contact-list__meta  { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.2rem; }
.contact-list__value { font-size: 0.95rem; }

/* ── Forms ── */
.form__group   { margin-bottom: 1.25rem; }
.form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--dark);
}
.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(139,26,107,0.1);
}
.form__textarea { resize: vertical; min-height: 130px; }
.form__hint     { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }
.form__submit   { width: 100%; padding: 0.9rem; font-size: 1rem; }

/* ── Alerts ── */
.alert          { padding: 1rem 1.25rem; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 1.5rem; }
.alert--success { background: #edf7ed; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert--error   { background: #fdecea; color: #c62828; border: 1px solid #ef9a9a; }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--gray-border); margin: 2rem 0; }

/* ── Social links ── */
.social-links     { display: flex; gap: 0.75rem; }
.social-links__a  {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: background var(--transition), color var(--transition);
}
.social-links__a:hover { background: var(--magenta); color: var(--white); }
.social-links__a svg   { width: 17px; height: 17px; fill: currentColor; }

/* ── Footer ── */
.footer {
  background: var(--footer-bg);
  padding: 3rem 1.25rem 2rem;
  text-align: center;
}
.footer__centered {
  max-width: 560px;
  margin: 0 auto;
}
.footer__name {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.footer__tagline {
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  margin-bottom: 0;
}
.footer__divider {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 1.25rem 0;
}
.footer__copy {
  color: rgba(255,255,255,0.3);
  font-size: 0.78rem;
  margin: 0;
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.sr-only     { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }