/* ==========================================================================
   Speak Life Now — theme: purple #9703FF, yellow #FFE959, white #FFFFFF
   ========================================================================== */

:root {
  --purple: #9703FF;
  --purple-dark: #6E00C4;
  --purple-light: #F4E5FF;
  --yellow: #FFE959;
  --yellow-dark: #E8CE20;
  --white: #FFFFFF;
  --ink: #1A1229;
  --ink-soft: #5C5468;
  --bg-soft: #FAF7FF;
  --border: #E9DFF7;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-card: 0 20px 40px -20px rgba(151, 3, 255, 0.25);
  --shadow-soft: 0 10px 30px -18px rgba(26, 18, 41, 0.25);

  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --container: 1180px;
}
/* Give very wide screens a wider content column */
@media (min-width: 1800px) { :root { --container: 1320px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
}

p { line-height: 1.7; color: var(--ink-soft); margin: 0 0 1em; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}

.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 14px 28px -12px rgba(151, 3, 255, .55);
}
.btn-primary:hover { background: var(--purple-dark); box-shadow: 0 18px 32px -12px rgba(151, 3, 255, .65); transform: translateY(-2px); }
.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 14px 28px -14px rgba(232, 206, 32, .8);
}
.btn-yellow:hover { background: var(--yellow-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.5);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: .85rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding .25s ease;
}
.site-header.is-scrolled { padding: 12px 0; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 999px;
  padding: 8px 22px 8px 12px;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}
.brand-logo { height: 40px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--white);
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--shadow-soft);
}
.nav-links a {
  font-weight: 600;
  font-size: .88rem;
  color: var(--ink-soft);
  padding: 10px 16px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--purple); }
.nav-links a.active { background: var(--yellow); color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-cta .btn { box-shadow: var(--shadow-soft); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  border: none;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
  transition: background .3s ease, transform .2s ease;
}
.nav-toggle:active { transform: scale(.9); }
.nav-toggle.is-active { background: var(--purple); }
.nav-toggle-bars { position: relative; display: block; width: 20px; height: 14px; }
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  top: 6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform .45s cubic-bezier(.68,-.6,.32,1.6), opacity .2s ease, width .3s ease;
}
.nav-toggle-bars span:nth-child(1) { transform: translateY(-6px); }
.nav-toggle-bars span:nth-child(2) { width: 65%; left: auto; right: 0; }
.nav-toggle-bars span:nth-child(3) { transform: translateY(6px); }
.nav-toggle:hover .nav-toggle-bars span:nth-child(2) { width: 100%; }
.nav-toggle.is-active .nav-toggle-bars span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle.is-active .nav-toggle-bars span:nth-child(2) { opacity: 0; transform: translateX(12px); }
.nav-toggle.is-active .nav-toggle-bars span:nth-child(3) { transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: 100%;
  left: 24px;
  right: 24px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px -20px rgba(26, 18, 41, .45);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px) scale(.96);
  transform-origin: top right;
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,.8,.2,1), visibility 0s linear .35s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .25s ease, transform .45s cubic-bezier(.2,.8,.2,1), visibility 0s;
}
.mobile-menu > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  padding: 13px 16px;
  border-radius: 12px;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity .3s ease var(--d, 0s), transform .4s cubic-bezier(.2,.8,.2,1) var(--d, 0s), background .2s ease, color .2s ease;
}
.mobile-menu > a::after {
  content: '';
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: .3;
  transition: transform .2s ease, opacity .2s ease;
}
.mobile-menu > a:hover { background: var(--bg-soft); color: var(--purple); }
.mobile-menu > a:hover::after { opacity: 1; transform: translateX(3px) rotate(45deg); }
.mobile-menu > a.active { background: var(--yellow); color: var(--ink); }
.mobile-menu > a.active::after { opacity: 1; }
.mobile-menu.is-open > a { opacity: 1; transform: none; }
.mobile-menu.is-open > a:nth-child(1) { --d: .06s; }
.mobile-menu.is-open > a:nth-child(2) { --d: .10s; }
.mobile-menu.is-open > a:nth-child(3) { --d: .14s; }
.mobile-menu.is-open > a:nth-child(4) { --d: .18s; }
.mobile-menu.is-open > a:nth-child(5) { --d: .22s; }
.mobile-menu.is-open > a:nth-child(6) { --d: .26s; }
.mobile-menu.is-open > a:nth-child(7) { --d: .30s; }
.mobile-menu-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease var(--d, 0s), transform .4s cubic-bezier(.2,.8,.2,1) var(--d, 0s);
}
.mobile-menu.is-open .mobile-menu-cta { opacity: 1; transform: none; --d: .36s; }
.mobile-menu-cta .btn { padding: 14px 12px; font-size: .92rem; gap: 8px; }
.mobile-menu-cta .btn svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (max-width: 359px) { .mobile-menu-cta { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mobile-menu > a, .mobile-menu-cta, .nav-toggle-bars span { transition: none; }
}

/* ==========================================================================
   Inner page hero
   ========================================================================== */
.page-hero {
  padding: 168px 0 150px;
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 50% -10%, rgba(151,3,255,.5), transparent 65%),
    linear-gradient(180deg, #1A1229 0%, #150C24 100%);
}
.page-hero .inner { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }

/* Rounded card that overlaps the bottom of the hero */
.section-overlap {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: 40px 40px 0 0;
  margin-top: -64px;
}

/* ==========================================================================
   Initiatives
   ========================================================================== */
.initiatives-list {
  display: flex;
  flex-direction: column;
  gap: 96px;
}
.initiative-row {
  display: grid;
  grid-template-columns: minmax(280px, 566px) 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 36px;
  padding-left: max(24px, calc((100vw - var(--container)) / 2 + 24px));
}
.initiative-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .08em;
  color: var(--purple);
  margin-bottom: 10px;
}
.initiative-text h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.initiative-text p { margin-bottom: 0; }
.initiative-image {
  position: relative;
  width: 100%;
  max-width: 760px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.initiative-image .placeholder-icon { width: 24%; fill: var(--purple); opacity: .4; }
/* Every main photo gets the same 4:3 frame that scales with the column width;
   landscape 4:3 photos fit exactly, portrait ones trim only top/bottom */
.initiative-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

.initiative-strip-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.initiative-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: initiativeScroll 26s linear infinite;
}
.strip-card {
  position: relative;
  flex-shrink: 0;
  height: 150px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #EBDBFF 0px, #EBDBFF 16px, #F7F1FF 16px, #F7F1FF 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}
.strip-card .placeholder-icon { width: 26%; fill: var(--purple); opacity: .4; }
.strip-card img { width: auto; height: 100%; }

@keyframes initiativeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 9px)); }
}
@media (prefers-reduced-motion: reduce) {
  .initiative-strip { animation: none; }
}

/* Strip photos open in a full-screen viewer */
.strip-card { cursor: zoom-in; transition: transform .2s ease, box-shadow .2s ease; }
.strip-card:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
/* Mouse users: pause the strip so a photo can be clicked. Touch screens skip this
   so a tap doesn't leave a card stuck lifted. */
@media (hover: hover) {
  .initiative-strip-wrap:hover .initiative-strip { animation-play-state: paused; }
  .strip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
}
.initiative-strip-wrap { padding: 8px 0; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 64px 16px 24px;
  background: #0F081A; /* solid: Safari lets content bleed through translucent/blurred backdrops */
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }
.lightbox-img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
  transform: scale(.96);
  transition: transform .25s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox.is-open .lightbox-img { transform: none; }
.lightbox-caption { color: rgba(255,255,255,.75); font-size: .9rem; text-align: center; margin: 0; max-width: 640px; }
.lightbox-count { color: rgba(255,255,255,.5); font-size: .8rem; font-weight: 600; }
.lightbox-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.12);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.lightbox-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
@media (hover: hover) { .lightbox-btn:hover { background: var(--purple); } }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
/* On phones the arrows sit below the photo so they never cover it */
@media (max-width: 640px) {
  .lightbox { padding-bottom: 84px; }
  .lightbox-img { max-height: calc(100vh - 220px); max-height: calc(100dvh - 220px); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 18px; transform: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
}
body.lightbox-open { overflow: hidden; }
.lightbox:focus { outline: none; }
/* Phones turned sideways are short: give the photo nearly the full height,
   keep the arrows at the sides and tuck the caption into one small line */
@media (max-height: 500px) and (orientation: landscape) {
  .lightbox { padding: 10px 76px; gap: 6px; }
  .lightbox-img { max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); border-radius: var(--radius-sm); }
  .lightbox-caption { font-size: .78rem; }
  .lightbox-count { display: none; }
  .lightbox-close { top: 10px; right: 12px; }
  .lightbox-prev, .lightbox-next { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox-prev { left: 14px; }
  .lightbox-next { right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox-img { transition: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.65); padding: 76px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .brand { color: var(--white); margin-bottom: 16px; }
.footer-brand p { max-width: 300px; font-size: .92rem; color: rgba(255,255,255,.65); }
.footer-brand p.footer-nonprofit { font-size: .82rem; line-height: 1.6; color: rgba(255,255,255,.55); margin-top: -4px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.footer-social a:hover { background: var(--purple); }
/* Phones keep :hover after a tap — don't leave the icon stuck purple */
@media (hover: none) { .footer-social a:hover { background: rgba(255,255,255,.08); } }
.footer-social a svg { width: 16px; height: 16px; fill: var(--white); }
.footer-col h4 { color: var(--white); font-size: .92rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 20px; }
.footer-col ul { display: grid; gap: 12px; }
/* Footer nav links: padding instead of list gap, so each link is a ~30px tap target
   with the same visual spacing as before */
.footer-col ul:not(.footer-contact) { gap: 0; }
.footer-col ul:not(.footer-contact) a { display: inline-block; padding: 6px 0; }
.footer-col a { font-size: .92rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--yellow); }
.footer-contact li { display: flex; gap: 10px; font-size: .92rem; margin-bottom: 4px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; fill: var(--yellow); flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a:hover { color: var(--yellow); }
/* Inline padding enlarges the tap area without shifting the line */
.footer-credit a { padding: 8px 2px; }
.footer-legal { display: flex; gap: 22px; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
}

@media (max-width: 860px) {
  .page-hero { padding-top: 150px; }
  .initiative-row { grid-template-columns: 1fr; gap: 28px; padding: 0 24px; }
  .initiative-image { order: -1; max-width: none; }
}

@media (max-width: 640px) {
  .brand-logo { height: 34px; }
  .mobile-menu { left: 16px; right: 16px; }
  .section { padding: 68px 0; }
  .page-hero { padding-top: 130px; padding-bottom: 120px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .initiatives-list { gap: 72px; }
  .strip-card { height: 130px; }
}

/* Email link — same look everywhere the address appears */
.email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--purple);
  transition: color .2s ease;
}
/* Invisible padding so the link is an easy tap target on phones */
.email-link { position: relative; }
.email-link::after { content: ''; position: absolute; inset: -12px -6px; }
.email-link svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; margin: 0; }
/* Lighter purple so it stays readable on the dark footer/cards */
.email-link.on-dark { color: #C88BFF; }
/* Hover colors only on devices with a real pointer, so a tap on a phone doesn't leave the link stuck white */
@media (hover: hover) {
  .email-link:hover { color: var(--purple-dark); }
  .email-link.on-dark:hover { color: var(--white); }
}
@media (hover: none) {
  .email-link:hover { color: var(--purple); }
  .email-link.on-dark:hover { color: #C88BFF; }
}
/* Long address may break after the @ on very narrow screens instead of running off the card */
.email-link span { min-width: 0; }
.contact-info-card .email-link { position: relative; z-index: 1; margin-top: 20px; }
@media (max-width: 400px) { .contact-info-card { padding: 32px 22px; } }
