/* ==========================================================================
   Chelmsford Community Support Centre — stylesheet
   Brand tokens taken from the live site; all layout written from scratch.
   ========================================================================== */

:root {
  --theme: #1a685b;
  --theme-dark: #122f2a;
  --accent: #ffac00;
  --title: #1f1f1f;
  --body: #797e88;
  --smoke: #f8f8f8;
  --cream: #fdf8ea;
  --light: #829592;
  --white: #fff;
  --border: #d8dde1;
  --title-font: "Nunito", sans-serif;
  --body-font: "Nunito Sans", sans-serif;
  --script-font: "Caveat", cursive;
  --container: 1290px;
  --gutter: 24px;
  --section-space: 120px;
  --radius: 16px;
  --card-radius: 30px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--title-font);
  color: var(--title);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 { font-size: clamp(38px, 5.4vw, 64px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
h4 { font-size: 20px; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

a { color: var(--theme); text-decoration: none; transition: color .3s ease; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-space) 0; }
.section--smoke { background: var(--smoke); }
.section--cream { background: var(--cream); }
.section--tight { padding: 80px 0; }

.grid { display: grid; gap: 30px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--theme-dark);
  display: grid;
  place-items: center;
  transition: opacity .5s ease, visibility .5s ease;
}

.preloader.is-done { opacity: 0; visibility: hidden; }

.preloader__inner { text-align: center; display: grid; justify-items: center; gap: 28px; }
.preloader__inner img { width: 240px; }

.preloader__spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .2);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Shared bits ---------- */

.subtitle {
  font-family: var(--script-font);
  font-size: 26px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  line-height: 1;
}

.subtitle::before,
.subtitle::after {
  content: "";
  width: 46px;
  height: 2px;
  background: var(--accent);
}

.subtitle--left::before { display: none; }

.section-head { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.section-head p { margin-top: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  border: none;
  border-radius: 999px;
  background: var(--theme);
  color: var(--white);
  font-family: var(--title-font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}

.btn:hover { background: var(--accent); color: var(--theme-dark); transform: translateY(-3px); }
.btn--accent { background: var(--accent); color: var(--theme-dark); }
.btn--accent:hover { background: var(--theme); color: var(--white); }
.btn--outline { background: transparent; border: 2px solid var(--theme); color: var(--theme); }
.btn--outline:hover { background: var(--theme); color: var(--white); }
.btn .icon { font-size: 14px; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--title-font);
  font-weight: 700;
  color: var(--theme);
}

.link-more:hover { gap: 14px; }

/* ---------- Header: contact strip, then logo + menu on one line ---------- */

.info-item { display: flex; align-items: center; gap: 12px; }

.info-item__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  color: var(--theme);
  display: grid;
  place-items: center;
  font-size: 15px;
  flex: none;
}

.info-item__label { font-size: 13px; margin: 0; line-height: 1.3; }

.info-item__value {
  font-family: var(--title-font);
  font-weight: 800;
  color: var(--title);
  font-size: 16px;
  line-height: 1.3;
  margin: 0;
}

.info-item__value a { color: inherit; }

.navbar { position: relative; z-index: 40; background: var(--white); }

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand { flex: none; }
.brand img { width: 240px; }
.footer img.footer__logo { width: 210px; }

.navbar__actions { display: flex; align-items: center; gap: 14px; flex: none; }

.menu {
  display: flex;
  align-items: center;
  background: var(--theme);
  border-radius: 999px;
  padding: 4px 16px;
}

.menu > li { position: relative; }

.menu > li > a {
  display: block;
  padding: 14px 18px;
  color: var(--white);
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 16px;
}

.menu > li > a:hover,
.menu > li.is-active > a { color: var(--accent); }

.menu > li.is-active > a { position: relative; }

.menu > li.is-active > a::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 8px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.menu .has-sub > a::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 11px;
  margin-left: 8px;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--white);
  border-radius: 12px;
  border-top: 3px solid var(--accent);
  box-shadow: 0 18px 40px rgba(18, 47, 42, .16);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}

.menu > li:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }

.submenu a {
  display: block;
  padding: 9px 24px;
  color: var(--title);
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 15px;
}

.submenu a:hover { color: var(--theme); padding-left: 30px; }

.nav-toggle {
  display: none;
  background: var(--theme);
  color: var(--white);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
}

.header--sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 6px 30px rgba(18, 47, 42, .12);
  animation: slideDown .4s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

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

.hero { position: relative; }

.hero__slide {
  position: relative;
  min-height: 720px;
  display: none;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero__slide.is-active { display: flex; }

.hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 19, 17, .78) 0%, rgba(5, 19, 17, .45) 60%, rgba(5, 19, 17, .35) 100%);
}

.hero__content { position: relative; max-width: 860px; padding: 150px 0 120px; text-align: center; margin: 0 auto; }
.hero__content h1 { color: var(--white); margin-bottom: 28px; }
.hero__content .subtitle { color: var(--accent); }

.hero__nav {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}

.hero__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .3s ease, width .3s ease;
}

.hero__dot.is-active { background: var(--accent); border-color: var(--accent); width: 34px; border-radius: 999px; }

/* ---------- Service cards ("We Do it for all People" style) ----------
   Arch icon cap with an amber ring sitting on a white rounded card.
   ------------------------------------------------------------------- */

.services {
  position: relative;
  overflow: hidden;
  /* grey paper texture tinted warm by the cream beneath it */
  background-color: var(--cream);
  background-image: url("../img/services-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
}

/* line-art hands, recoloured from the source PNGs via a mask */
.services__hand {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  display: block;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.services__hand--1 {
  left: -30px;
  top: 90px;
  width: 300px;
  height: 250px;
  background-color: var(--theme);
  -webkit-mask-image: url("../img/hand-1.png");
  mask-image: url("../img/hand-1.png");
}

.services__hand--2 {
  left: -10px;
  top: 250px;
  width: 210px;
  height: 190px;
  background-color: var(--accent);
  -webkit-mask-image: url("../img/hand-2.png");
  mask-image: url("../img/hand-2.png");
}

.services .container { position: relative; z-index: 1; }

.box-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}

.box-grid--4 { grid-template-columns: repeat(4, 1fr); }

.service-card { position: relative; padding: 0; text-align: center; }

/* the arch cap — sits directly on top of the card, same white */
.service-card .box-icon {
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  width: 160px;
  height: 80px;
  position: relative;
  transition: .4s;
  color: var(--theme);
  font-size: 34px;
}

.service-card .box-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 10px solid var(--accent);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  opacity: .3;
  transition: .4s;
}

.service-card .box-icon img,
.service-card .box-icon i {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transform: translateY(10px);
  transition: .4s;
}

.service-card .box-icon i { display: grid; place-items: center; width: auto; height: auto; }

.service-card:hover .box-icon::after { border-color: var(--theme); }
.service-card:hover .box-icon img { transform: translateY(10px) rotateY(180deg); }

.service-card .box-content {
  background: var(--white);
  padding: 40px;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 4px -1px rgba(12, 12, 13, .1), 0 4px 4px -1px rgba(12, 12, 13, .05);
}

.service-card .box-title { margin-bottom: 14px; font-size: 24px; font-weight: 700; }
.service-card .box-title a { color: var(--title); }
.service-card .box-title a:hover { color: var(--theme); }
.service-card .box-text { margin-bottom: 23px; }

/* solid button, amber -> green on hover */
.service-card .th-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--theme-dark);
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 16px;
  transition: .4s;
}

.service-card:hover .th-btn,
.service-card .th-btn:hover { background: var(--theme); color: var(--white); }
.service-card .th-btn i { font-size: 13px; }

.service-card--plain .box-content { padding: 30px 24px; }
.service-card--plain .box-title { font-size: 19px; margin-bottom: 0; }

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

.about__media { position: relative; }

.about__media img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3.4;
}

.about__badge {
  position: absolute;
  right: -10px;
  bottom: -26px;
  background: var(--theme);
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px 30px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(18, 47, 42, .22);
}

.about__badge strong { display: block; font-family: var(--title-font); font-size: 40px; line-height: 1; color: var(--accent); }
.about__badge span { font-size: 14px; font-weight: 600; }

.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin: 26px 0 32px; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--title-font);
  font-weight: 700;
  color: var(--title);
}

.check-list li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--theme);
  flex: none;
  line-height: 1.6;
}

.check-list--plain li { font-weight: 400; font-family: var(--body-font); color: var(--body); }

/* ---------- Founders (image + name only) ---------- */

.founders {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: left;
}

.founders img {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--cream);
  box-shadow: 0 14px 40px rgba(18, 47, 42, .14);
}

.founders__name {
  font-family: var(--title-font);
  font-weight: 800;
  color: var(--title);
  font-size: 28px;
  margin: 0;
}

.founders__role { color: var(--theme); font-weight: 700; font-size: 18px; margin: 0; }

/* ---------- Feature rows & uncropped figures ---------- */

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.feat-figure {
  margin: 0;
  background: var(--smoke);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 44px rgba(18, 47, 42, .1);
}

/* contain, never crop — these images are portrait, square and landscape alike */
.feat-figure img {
  width: auto;
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 10px;
}

.feat-figure--wide { width: 100%; }
.feat-figure--wide img { max-height: 620px; }

/* ---------- Heritage band (full-bleed dark green + poster) ---------- */

.heritage-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--theme-dark);
  align-items: center;
  overflow: hidden;
}

.heritage-band__text {
  width: 100%;
  max-width: calc(var(--container) / 2);
  margin-left: auto;
  padding: 110px 60px 110px var(--gutter);
}

.heritage-band__text h2 { color: var(--white); margin-bottom: 22px; }
.heritage-band__text p { color: rgba(255, 255, 255, .82); margin-bottom: 34px; }

.btn--mid { background: var(--theme); color: var(--white); }
.btn--mid:hover { background: var(--accent); color: var(--theme-dark); }

.heritage-band__media { align-self: stretch; }

.heritage-band__media img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: top center;
}

/* ---------- Page banner ---------- */

.page-banner {
  position: relative;
  padding: 130px 0 110px;
  background: var(--theme-dark) center/cover;
  text-align: center;
  color: var(--white);
}

.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(18, 47, 42, .82); }
.page-banner .container { position: relative; }
.page-banner h1 { color: var(--white); margin-bottom: 10px; }

.breadcrumb { display: flex; justify-content: center; gap: 10px; font-family: var(--title-font); font-weight: 600; }
.breadcrumb a { color: var(--accent); }
.breadcrumb li:not(:first-child)::before { content: "/"; margin-right: 10px; color: rgba(255, 255, 255, .6); }

/* ---------- Prose ---------- */

.prose { max-width: 860px; }
.prose h2 { margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose ul:not(.check-list) { margin: 0 0 20px; }

.prose ul:not(.check-list) li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
}

.prose ul:not(.check-list) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.step-list { counter-reset: step; padding: 0; margin: 0 0 20px; list-style: none; }

.step-list li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  margin-bottom: 16px;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--theme);
  color: var(--white);
  font-family: var(--title-font);
  font-weight: 800;
  display: grid;
  place-items: center;
}

.notice {
  background: var(--cream);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 0 0 40px;
}

.notice h3 { font-size: 20px; }

/* ---------- Forms ---------- */

.form-card {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 40px;
  box-shadow: 0 10px 36px rgba(18, 47, 42, .08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.form-card .btn { align-self: flex-start; margin-top: auto; }

.contact-form { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.contact-form .full { grid-column: 1 / -1; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--body-font);
  font-size: 16px;
  color: var(--title);
  background: var(--white);
}

.contact-form textarea { min-height: 170px; resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--theme);
  box-shadow: 0 0 0 3px rgba(26, 104, 91, .12);
}

.form-note { font-size: 14px; }

/* spam honeypot - hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Registration & consent forms ---------- */

.form-panel {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 48px;
  box-shadow: 0 18px 60px rgba(18, 47, 42, .1);
}

.form-intro { margin-bottom: 32px; }
.req { color: #b3261e; font-weight: 700; }

.big-form { display: grid; gap: 20px; }

.big-form h3 {
  margin: 18px 0 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cream);
  font-size: 20px;
}

.big-form h3:first-of-type { margin-top: 0; }

.big-form label { display: block; font-family: var(--title-font); font-weight: 700; font-size: 15px; }
.big-form label small { display: block; font-weight: 400; font-family: var(--body-font); color: var(--body); margin-top: 6px; }

.big-form input[type=text],
.big-form input[type=email],
.big-form input[type=tel],
.big-form select,
.big-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--body-font);
  font-size: 16px;
  color: var(--title);
  background: var(--white);
}

.big-form textarea { resize: vertical; }

.big-form input:focus,
.big-form select:focus,
.big-form textarea:focus {
  outline: none;
  border-color: var(--theme);
  box-shadow: 0 0 0 3px rgba(26, 104, 91, .12);
}

.big-form .check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  background: var(--cream);
  border-radius: 12px;
  padding: 16px 18px;
}

.big-form .check input { width: auto; margin: 3px 0 0; flex: none; }
.big-form [hidden] { display: none; }
.big-form > div[id] { display: grid; gap: 20px; }
.big-form .btn { justify-self: start; margin-top: 8px; }

@media (max-width: 575px) {
  .form-panel { padding: 30px 22px; }
}

/* ---------- Contact: split panel, info left / form right ---------- */

.contact-panel {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(18, 47, 42, .12);
  background: var(--white);
}

.contact-panel__aside {
  background: var(--theme-dark);
  color: rgba(255, 255, 255, .8);
  padding: 56px 46px;
}

.contact-panel__aside h2 { color: var(--white); font-size: clamp(26px, 2.6vw, 34px); }
.contact-panel__aside > p { margin-bottom: 36px; }

.contact-list { display: grid; gap: 26px; }
.contact-list li { display: flex; align-items: flex-start; gap: 16px; }

.contact-list__ico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex: none;
}

.contact-list__label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 4px;
}

.contact-list p {
  margin: 0;
  font-family: var(--title-font);
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
}

.contact-list a { color: var(--white); }
.contact-list a:hover { color: var(--accent); }

.contact-panel__form { padding: 56px 46px; }
.contact-panel__form h3 { margin-bottom: 26px; }

/* ---------- Donate ---------- */

.give-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.give-card {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 36px 28px;
  text-align: center;
  border: 2px solid transparent;
  box-shadow: 0 8px 30px rgba(18, 47, 42, .07);
  transition: transform .3s ease, border-color .3s ease;
  position: relative;
}

.give-card:hover { transform: translateY(-6px); border-color: var(--accent); }

.give-card__amount {
  display: block;
  font-family: var(--title-font);
  font-weight: 900;
  font-size: 40px;
  color: var(--theme);
  line-height: 1;
  margin-bottom: 14px;
}

.give-card--featured { border-color: var(--accent); }

.give-card__flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--theme-dark);
  font-family: var(--title-font);
  font-weight: 800;
  font-size: 12px;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.give-cta {
  background: var(--theme-dark);
  border-radius: var(--card-radius);
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}

.give-cta h3 { color: var(--white); }
.give-cta p { color: rgba(255, 255, 255, .8); max-width: 560px; }
.give-cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.give-cta .btn--outline { border-color: var(--white); color: var(--white); }
.give-cta .btn--outline:hover { background: var(--white); color: var(--theme); }

/* ---------- About: fact row ---------- */

.fact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.fact {
  background: var(--cream);
  border-radius: var(--card-radius);
  padding: 34px 24px;
  text-align: center;
}

.fact strong {
  display: block;
  font-family: var(--title-font);
  font-weight: 900;
  font-size: 36px;
  line-height: 1;
  color: var(--theme);
  margin-bottom: 8px;
}

.fact span { font-size: 15px; }

/* ---------- About: objectives grid ---------- */

.obj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.obj-card {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 32px 28px;
  box-shadow: 0 4px 4px -1px rgba(12, 12, 13, .08), 0 14px 34px rgba(12, 12, 13, .05);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .35s ease;
}

.obj-card:hover { transform: translateY(-6px); }

.obj-card__num {
  font-family: var(--title-font);
  font-weight: 900;
  font-size: 26px;
  color: var(--accent);
  line-height: 1;
}

.obj-card p { color: var(--body); margin: 0; }

/* ---------- About: founders block ---------- */

.founders--stacked { gap: 34px; }

/* ---------- About: aim & objective list ---------- */

.aim-list { display: grid; gap: 12px; margin: 26px 0 0; }

.aim-list li {
  position: relative;
  padding-left: 34px;
  color: var(--body);
}

.aim-list li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--theme);
  position: absolute;
  left: 0;
  top: 1px;
}

/* ---------- Donate: bank details ---------- */

.bank-card {
  max-width: 920px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 50px;
  box-shadow: 0 10px 36px rgba(18, 47, 42, .08);
}

.bank-details { margin: 26px 0; display: grid; gap: 14px; }

.bank-details > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.bank-details > div:last-child { border-bottom: none; padding-bottom: 0; }

.bank-details dt {
  font-family: var(--title-font);
  font-weight: 700;
  color: var(--body);
  min-width: 170px;
}

.bank-details dd {
  margin: 0;
  font-family: var(--title-font);
  font-weight: 800;
  font-size: 19px;
  color: var(--title);
}

/* breathing room between the last section and the footer */
.pre-footer { height: 90px; background: var(--white); }

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

.gal-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 50px; }

.gal-tab {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 26px;
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 15px;
  color: var(--title);
  cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}

.gal-tab:hover { border-color: var(--theme); color: var(--theme); }
.gal-tab.is-active { background: var(--theme); border-color: var(--theme); color: var(--white); }

.gal-group { margin-bottom: 60px; }
.gal-group[hidden] { display: none; }

.gal-group__title {
  font-size: 26px;
  margin-bottom: 26px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cream);
}

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.gal-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--smoke);
  cursor: zoom-in;
  position: relative;
}

.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gal-item:hover img { transform: scale(1.07); }

.gal-item::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--white);
  background: rgba(18, 47, 42, .45);
  opacity: 0;
  transition: opacity .3s ease;
}

.gal-item:hover::after { opacity: 1; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(8, 20, 18, .93);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.is-open { display: flex; }

.lightbox__img {
  max-width: 88vw;
  max-height: 84vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  border: none;
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 22px;
  display: grid;
  place-items: center;
  transition: background .3s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover { background: var(--accent); color: var(--theme-dark); }

.lightbox__close { top: 26px; right: 26px; font-size: 30px; }
.lightbox__nav--prev { left: 26px; }
.lightbox__nav--next { right: 26px; }

.lightbox__count {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
  margin: 0;
}

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

.faq { max-width: 860px; margin: 0 auto; }

.faq__item {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(18, 47, 42, .07);
  margin-bottom: 16px;
  overflow: hidden;
}

.faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 24px 60px 24px 30px;
  font-family: var(--title-font);
  font-size: 18px;
  font-weight: 800;
  color: var(--title);
  cursor: pointer;
  position: relative;
}

.faq__q::after {
  content: "\2b";
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--theme);
  font-size: 20px;
}

.faq__item.is-open .faq__q::after { content: "\2212"; }
.faq__a { padding: 0 30px 26px; display: none; }
.faq__item.is-open .faq__a { display: block; }

/* ---------- Trusted By ---------- */

.trusted-label {
  text-align: center;
  font-family: var(--title-font);
  font-weight: 800;
  color: var(--title);
  font-size: 20px;
  margin-bottom: 30px;
}

.trusted { display: flex; justify-content: center; align-items: center; gap: 60px; flex-wrap: wrap; }
/* constrain by width too, so wide and compact lockups carry equal weight */
.trusted img {
  max-height: 80px;
  max-width: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: .85;
  transition: opacity .3s ease;
}

.trusted img:hover { opacity: 1; }

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

.footer { background: var(--theme-dark); color: rgba(255, 255, 255, .72); }
.footer__top { padding: 90px 0 60px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer h4 { color: var(--white); margin-bottom: 26px; font-size: 22px; }
.footer img.footer__logo { width: 230px; margin-bottom: 24px; }
.footer a { color: rgba(255, 255, 255, .72); }
.footer a:hover { color: var(--accent); }
.footer__links li { margin-bottom: 10px; }
.footer__links a { display: inline-flex; align-items: center; gap: 10px; }
.footer__links a::before { content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--accent); }
.footer .info-item__icon { background: rgba(255, 255, 255, .08); color: var(--accent); }
.footer .info-item__value, .footer .info-item__value a { color: var(--white); }
.footer .info-item { margin-bottom: 18px; }

.socials { display: flex; gap: 12px; margin-top: 22px; }

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: grid;
  place-items: center;
  color: var(--white);
}

.socials a:hover { background: var(--accent); color: var(--theme-dark); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 24px 0;
  text-align: center;
  font-size: 15px;
}

.scroll-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--theme);
  color: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all .3s ease;
  z-index: 60;
}

.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--accent); color: var(--theme-dark); }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .preloader__spinner { animation: none; }
}

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

@media (max-width: 1299px) {
  .menu > li > a { padding: 14px 12px; font-size: 15px; }
  .brand img { width: 200px; }
  .btn { padding: 14px 26px; font-size: 15px; }
}

@media (max-width: 1199px) {
  :root { --section-space: 90px; }
  .footer__top { grid-template-columns: repeat(2, 1fr); }
  .give-grid { grid-template-columns: repeat(2, 1fr); }
  .box-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .obj-grid { grid-template-columns: repeat(2, 1fr); }
  .feature, .grid--2 { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
  .box-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: grid; place-items: center; }
  .hero__slide { min-height: 600px; }
  .about__badge { position: static; display: inline-block; margin-top: 20px; }
  .services__hand { display: none; }

  /* image first on the culture pages when stacked */
  .feature--media-first .feat-figure { order: -1; }

  .heritage-band { grid-template-columns: 1fr; }
  .heritage-band__text { max-width: none; margin: 0; padding: 70px var(--gutter); }
  .heritage-band__media img { min-height: 0; max-height: 620px; object-position: center; }

  .menu {
    position: absolute;
    top: 100%;
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(18, 47, 42, .18);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding .4s ease;
  }

  .menu:not(.is-open) { box-shadow: none; }
  .menu.is-open { max-height: 80vh; overflow-y: auto; padding: 12px 0; }
  .menu > li > a { padding: 12px 24px; color: var(--title); }
  .menu > li.is-active > a { color: var(--theme); }
  .menu > li.is-active > a::before { display: none; }
  .menu .has-sub > a::after { float: right; }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    border-left: 2px solid var(--cream);
    margin: 0 24px 8px;
    padding: 0;
    display: none;
  }

  .menu > li.is-expanded > .submenu { display: block; }

  .give-cta { padding: 36px; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
}

@media (max-width: 575px) {
  :root { --section-space: 70px; --gutter: 16px; }
  .grid--3, .grid--4, .gallery-grid, .give-grid, .box-grid--4 { grid-template-columns: 1fr; }
  .obj-grid, .fact-row { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr !important; }
  .contact-form { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; padding: 60px 0 40px; }
  .form-card, .box-content { padding: 30px 24px; }
  .contact-panel__aside, .contact-panel__form { padding: 36px 24px; }
  .hero__content { padding: 110px 0 90px; }
  .brand img { width: 170px; }
  .founders { flex-direction: column; text-align: center; }
  .founders img { width: 170px; height: 170px; }
  .give-cta { padding: 30px 24px; }
  .preloader__inner img { width: 190px; }
}
