/* A Touch of Kindness
   Palette from the Wednesday-night photos: vest navy, streetlamp amber, cold white. */

:root {
  --night: #0e1424;
  --navy: #182340;
  --navy-soft: #26325a;
  --lamp: #e9b24a;
  --lamp-deep: #c98f22;
  --white: #ffffff;
  --paper: #f2f4f8;
  --ink: #1b1e27;
  --muted: #555b6b;
  --line: #dde1e8;

  --serif: "Young Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --measure: 66ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; padding: 10px 14px;
  background: var(--lamp); color: var(--night); border-radius: 6px; z-index: 100;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; line-height: 1.2; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-lamp { background: var(--lamp); color: var(--night); }
.btn-lamp:hover { background: #f3c565; color: var(--night); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-soft); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.text-link { color: var(--navy); font-weight: 600; }

/* Header: floating pill with the logo in the centre and links either side; stays fixed and tightens once scrolled */
.top {
  position: fixed; top: 44px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; padding: 0 var(--gutter);
  pointer-events: none; transition: top .25s ease;
}
.top > .pill { pointer-events: auto; }
.top.is-scrolled { top: 14px; }
.pill {
  position: relative;
  display: grid; grid-template-columns: minmax(0,1fr) 150px minmax(0,1fr); align-items: center;
  width: min(1040px, 100%); height: 68px; padding: 0 30px;
  background: rgba(14,20,36,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 999px; color: var(--white);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: rgba(255,255,255,.88); font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--white); }
.nav .btn { padding: 10px 18px; color: var(--night); }
.nav-left { grid-column: 1; justify-self: stretch; justify-content: space-around; gap: 0; padding-right: 10px; }
.nav-right { grid-column: 3; justify-self: stretch; justify-content: space-around; gap: 0; padding-left: 10px; }
.brand {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center;
  width: 150px; height: 150px; margin: 0;
  background: none; filter: drop-shadow(0 8px 20px rgba(0,0,0,.4));
  transition: width .25s ease, height .25s ease;
}
.top.is-scrolled .brand { width: 108px; height: 108px; }
.brand img { width: 100%; height: 100%; object-fit: contain; }
.menu-btn, .nav-mobile { display: none; }

@media (max-width: 960px) {
  .top { top: 16px; }
  .top.is-scrolled { top: 10px; }
  html { scroll-padding-top: 100px; }
  .pill {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    height: auto; min-height: 64px; padding: 8px 10px 8px 16px; border-radius: 36px;
  }
  .nav-left, .nav-right { display: none; }
  .brand { position: static; transform: none; order: 1; width: 96px; height: 96px; margin: -24px 0; }
  .top.is-scrolled .brand { width: 80px; height: 80px; margin: -16px 0; }
  .pill.is-open { max-height: calc(100vh - 32px); overflow-y: auto; }
  .menu-btn {
    order: 2; display: inline-block; padding: 10px 16px; border: 2px solid rgba(255,255,255,.5);
    border-radius: 999px; background: none; color: var(--white); font: inherit; font-weight: 600; cursor: pointer;
  }
  .nav-mobile {
    order: 3; display: none; flex-direction: column; gap: 2px; width: 100%;
    padding: 18px 6px 8px; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.14);
  }
  .nav-mobile a { padding: 10px 4px; }
  .pill.is-open .nav-mobile { display: flex; }
}

/* Hero */
.hero {
  position: relative; min-height: min(94vh, 920px); display: grid; align-items: end;
  background: var(--night); color: var(--white); overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,20,36,.45) 0%, rgba(14,20,36,.15) 35%, rgba(14,20,36,.9) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: clamp(200px, 26vh, 300px) var(--gutter) clamp(56px, 8vw, 100px); width: 100%; text-align: center; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.8rem); letter-spacing: -0.015em; line-height: 1.04; max-width: 17ch; margin: 0 auto; }
.hero-title span { display: inline; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 1.6em; }

@media (prefers-reduced-motion: no-preference) {
  .hero-title, .hero-actions { opacity: 0; transform: translateY(14px); animation: rise .8s ease forwards; }
  .hero-actions { animation-delay: .3s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* Creed */
.creed {
  padding: clamp(64px, 9vw, 120px) var(--gutter); text-align: center;
  font-family: var(--serif); color: var(--navy); font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.35;
}
.creed p { margin: 0 auto .35em; max-width: 30ch; }

/* Supporters / reels */
.reels { background: var(--night); color: var(--white); padding: clamp(64px, 8vw, 110px) 0; }
.reels-head { padding: 0 var(--gutter); margin-bottom: 40px; text-align: center; }
.reels-head h2 { max-width: 20ch; margin: 0 auto; }
.reel-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 22vw, 300px);
  gap: 18px; padding: 0 var(--gutter) 12px; overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent;
}
@media (min-width: 1100px) {
  .reel-strip { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 1320px; margin: 0 auto; overflow: visible; }
}
.reel { margin: 0; scroll-snap-align: start; }
.reel-play {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0;
  border-radius: 14px; overflow: hidden; background: #000; cursor: pointer;
}
.reel-play video { width: 100%; height: 100%; object-fit: cover; }
.reel-icon {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: rgba(255,255,255,.92);
  transition: opacity .15s ease, transform .15s ease;
}
.reel-icon::before {
  content: ""; position: absolute; left: 25px; top: 20px;
  border-left: 20px solid var(--night); border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}
.reel-play:hover .reel-icon { transform: scale(1.06); }
.reel.is-playing .reel-icon { opacity: 0; }
.reel figcaption { padding: 14px 4px 0; text-align: center; }
.reel figcaption strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; }
.reel figcaption span { display: block; color: rgba(255,255,255,.78); font-size: .95rem; margin-top: 4px; }
.reels-more { padding: 32px var(--gutter) 0; margin: 0; max-width: none; color: rgba(255,255,255,.78); text-align: center; }
.reels-more a { color: var(--lamp); }

/* Our Story */
.story { padding: clamp(72px, 10vw, 140px) var(--gutter); text-align: center; }
.story > h2 { color: var(--navy); margin-bottom: 1.2em; }
.story-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 80px); align-items: center; max-width: 1200px; margin: 0 auto; text-align: left; }
.story-photo { margin: 0; }
.story-photo img { border-radius: 16px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.story-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: .6em; }
@media (max-width: 760px) { .story-grid { grid-template-columns: 1fr; } }

.scripture {
  margin: clamp(56px, 8vw, 110px) auto 0; max-width: 760px; padding: 0; text-align: center;
  font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.5; color: var(--navy);
}
.scripture p { margin: 0 auto 1em; max-width: none; }
.scripture-ref { font-family: var(--sans); font-size: 1rem; color: var(--muted); margin-bottom: 1.6em; }

/* Make A Donation */
.donate { background: var(--navy); color: var(--white); padding: clamp(72px, 10vw, 130px) var(--gutter); text-align: center; }
.donate-inner { max-width: 760px; margin: 0 auto; }
.donate h2 { margin-bottom: .5em; }
.donate-sub { margin: 0 auto 1.8em; color: rgba(255,255,255,.85); font-size: 1.1rem; }
.amounts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.amount { position: relative; }
.amount input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.amount span {
  display: inline-block; min-width: 110px; padding: 16px 22px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,.45); font-family: var(--serif); font-size: 1.35rem; line-height: 1; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.amount span:hover { border-color: var(--white); }
.amount input:checked + span { background: var(--white); border-color: var(--white); color: var(--navy); }
.amount input:focus-visible + span { outline: 3px solid var(--lamp); outline-offset: 3px; }
.other-wrap { margin-top: 22px; }
.other-label { display: block; margin-bottom: 10px; color: rgba(255,255,255,.85); }
.other-field {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 18px; border-radius: 999px;
  background: var(--white); color: var(--navy); font-family: var(--serif); font-size: 1.5rem;
}
.other-field input {
  width: 150px; padding: 14px 4px; border: 0; background: none; color: var(--navy);
  font: inherit; text-align: left; outline: none; -moz-appearance: textfield;
}
.other-field input::-webkit-outer-spin-button, .other-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn-big { margin-top: 30px; padding: 18px 40px; font-size: 1.15rem; }
@media (max-width: 640px) { .amount span { min-width: 0; padding: 14px 18px; font-size: 1.15rem; } }

/* Our Gallery */
.gallery { padding: clamp(72px, 10vw, 140px) var(--gutter); background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gallery-head { text-align: center; margin-bottom: 40px; }
.gallery-head h2 { color: var(--navy); margin-bottom: .5em; }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 1200px; margin: 0 auto; }
.mosaic img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.mosaic img:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(2, 1fr); } }

/* Our Sponsors */
.supporters { padding: clamp(72px, 10vw, 140px) var(--gutter); background: var(--white); }
.supporters-head { text-align: center; }
.supporters-head h2 { color: var(--navy); margin-bottom: .7em; }
.logo-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin: 48px auto 0; max-width: 1200px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
@media (max-width: 900px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } }
.logo-grid li { background: var(--white); display: grid; place-items: center; min-height: 170px; padding: 24px; }
.logo-grid a { display: grid; place-items: center; width: 100%; }
.logo-grid img { max-height: 96px; max-width: 82%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 900px) { .logo-grid li { min-height: 130px; } .logo-grid img { max-height: 72px; } }

.partners {
  display: grid; grid-template-columns: 1fr; gap: clamp(48px, 6vw, 80px); max-width: 720px;
  margin: clamp(56px, 8vw, 96px) auto 0; padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); text-align: center;
}
.partners h3 { color: var(--navy); margin-bottom: .8em; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.partners p { margin-left: auto; margin-right: auto; }
.plain-list { margin-bottom: 1.6em; }
.plain-list li { padding: 12px 0; border-top: 1px solid var(--line); font-weight: 500; }
.plain-list li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .partners { grid-template-columns: 1fr; } }

/* Get Involved */
.involved { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.involved-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .2; }
.involved-inner { position: relative; z-index: 1; padding: clamp(72px, 10vw, 140px) var(--gutter); text-align: center; }
.involved h2 { margin-bottom: .8em; }
.involved-text { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.9); max-width: 60ch; margin-left: auto; margin-right: auto; }

/* Footer */
.foot {
  display: grid; justify-items: center; gap: 20px; text-align: center;
  padding: 48px var(--gutter); background: var(--night); color: rgba(255,255,255,.85); border-top: 1px solid rgba(255,255,255,.08);
}
.foot-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.foot-brand img { width: 72px; height: auto; }
.foot-brand p { margin: 0; font-family: var(--serif); color: var(--white); line-height: 1.3; }
.foot-brand span { font-family: var(--sans); color: rgba(255,255,255,.7); font-size: .95rem; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.foot-links a { color: var(--white); text-decoration: none; }
.foot-links a:hover { color: var(--lamp); }
.foot-copy { margin: 0; font-size: .9rem; color: rgba(255,255,255,.7); }
