/* Shared building blocks for every page. Colours, fonts and corner radius come from the tokens,
   so the preview's theme picker restyles all of it. */

/* ---- Sections ---- */
.band { padding: clamp(64px, 9vw, 120px) 0; }
.band--navy { background: var(--ink); color: var(--light); }
.band--light { background: var(--surface); color: var(--navy); }
.band--grey { background: var(--surface-tint); color: var(--navy); }
.band--tight { padding-top: 0; }
.band__head { max-width: 860px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.band__head--left { margin-inline: 0; text-align: left; }
.band__title { margin: 0; font-size: clamp(34px, 5vw, 60px); line-height: 1.1; }
.band--navy .band__title { color: var(--cyan); }
.band--light .band__title, .band--grey .band__title { color: var(--navy); }
.band__note { margin: 14px 0 0; font-size: 16px; color: var(--cyan); }
.band--light .band__note, .band--grey .band__note { color: var(--cyan-dark); }
.band__lede { margin: 18px 0 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; }
.band__foot { margin-top: clamp(32px, 5vw, 48px); text-align: center; }

/* Small uppercase label above a title or a group of numbers. */
.eyebrow { margin: 0 0 14px; font-family: var(--font-body); font-size: 14px; font-weight: 700; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan-dark); }
.band--navy .eyebrow { color: var(--cyan); }

/* Readable running text inside a band. */
.copy { font-size: 17px; line-height: 1.7; }
.copy p { margin: 0 0 1em; }
.copy > :last-child { margin-bottom: 0; }
.copy ul { margin: 0 0 1em; padding-left: 0; list-style: none; }
.copy li { position: relative; margin: 0 0 .6em; padding-left: 28px; }
.copy li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan-dark); }
.band--navy .copy li::before { background: var(--cyan); }
.copy > .band__title { margin-bottom: 20px; }
.copy h3 { margin: 0 0 14px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; color: inherit; }
.band--light .copy h3, .band--grey .copy h3 { color: var(--navy); }
.band--navy .copy h3 { color: #fff; }

/* Text beside a picture. */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--wide-text { grid-template-columns: 1.15fr .85fr; }
.split--top { align-items: start; }
.split + .split { margin-top: clamp(48px, 7vw, 88px); }
.split__img { width: 100%; border-radius: calc(var(--radius) * 1.5); box-shadow: var(--shadow); object-fit: cover; }

/* White card on a light band. */
.card { padding: 28px; border: 1px solid color-mix(in srgb, var(--navy) 8%, transparent); border-radius: var(--radius); background: var(--surface); box-shadow: 0 14px 34px -24px color-mix(in srgb, var(--navy-deep) 45%, transparent); color: var(--navy); }
.card__title { margin: 0 0 10px; font-size: 22px; line-height: 1.25; color: var(--navy); text-transform: none; }
.card p { margin: 0 0 1em; font-size: 16px; line-height: 1.6; }
.card > :last-child { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.icon-dot { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%; background: color-mix(in srgb, var(--cyan-dark) 10%, transparent); color: var(--cyan-dark); }
.icon-dot svg { width: 24px; height: 24px; }

/* ---- How can you help (Home and Support Our Work) ---- */
.help-cta__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.help-cta__card { display: flex; flex-direction: column; padding: 30px 28px 26px; border: 1px solid color-mix(in srgb, var(--navy) 8%, transparent); border-radius: var(--radius); background: #fff; box-shadow: 0 18px 40px -26px color-mix(in srgb, var(--navy-deep) 50%, transparent); color: var(--navy); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.help-cta__card:hover { transform: translateY(-4px); box-shadow: 0 24px 46px -24px color-mix(in srgb, var(--navy-deep) 60%, transparent); }
.help-cta__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; background: color-mix(in srgb, var(--cyan-dark) 10%, transparent); color: var(--cyan-dark); }
.help-cta__icon svg { width: 26px; height: 26px; }
.help-cta__card p { margin: 0 0 20px; font-size: 16px; line-height: 1.6; }
.help-cta__go { align-self: flex-start; margin-top: auto; padding: 11px 22px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 15px; font-weight: 700; line-height: 1; }
.help-cta__card:hover .help-cta__go { background: var(--cyan-dark); }

/* Side-ruled note, as under the CDCP section on Home. */
.note { margin: 28px 0 0; padding-left: 16px; border-left: 3px solid var(--cyan); font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.band--navy .note { color: color-mix(in srgb, var(--light) 80%, transparent); }

/* ---- Buttons ---- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border: 2px solid transparent; border-radius: 999px;
  font-size: 16px; font-weight: 700; line-height: 1; letter-spacing: .02em; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pill:hover { transform: translateY(-2px); }
.pill svg { flex: 0 0 auto; }
.pill--cyan { background: var(--cyan); color: var(--ink); box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--cyan) 60%, transparent); }
.pill--cyan:hover { background: #fff; }
.pill--ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pill--ghost:hover { background: #fff; color: var(--navy-deep); border-color: #fff; }
.pill--navy { background: var(--navy); color: #fff; box-shadow: 0 12px 28px -14px color-mix(in srgb, var(--ink) 90%, transparent); }
.pill--navy:hover { background: var(--cyan-dark); }
.pill--teal { background: var(--cyan-dark); color: #fff; box-shadow: 0 12px 28px -14px color-mix(in srgb, var(--cyan-dark) 70%, transparent); }
.pill--teal:hover { background: var(--navy); }
.pill--outline { border-color: color-mix(in srgb, var(--navy) 35%, transparent); color: var(--navy); }
.pill--outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.text-link { font-weight: 700; color: var(--cyan-dark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { color: var(--navy); }
.band--navy .text-link { color: var(--cyan); }
.band--navy .text-link:hover { color: #fff; }

/* Scroll reveal: components.js adds .reveal-on to <html> and .is-in as each block enters the viewport. */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }
.rise { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---- Page hero: a calmer cousin of the Home video hero ---- */
.page-hero {
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
  min-height: clamp(340px, 52vh, 500px);
  background: var(--ink) center / cover no-repeat; color: #fff;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--ink) 94%, transparent) 0%, color-mix(in srgb, var(--ink) 74%, transparent) 45%, color-mix(in srgb, var(--ink) 30%, transparent) 100%),
    linear-gradient(to top, color-mix(in srgb, var(--ink) 85%, transparent) 0%, color-mix(in srgb, var(--ink) 0%, transparent) 55%);
}
.page-hero--plain { min-height: clamp(300px, 44vh, 440px); background: radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--cyan) 22%, var(--ink)) 0%, var(--ink) 60%); }
.page-hero--plain::before { display: none; }
.page-hero__inner { position: relative; z-index: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 64px 32px clamp(48px, 8vh, 80px); }
.page-hero__title { max-width: 14em; margin: 0; font-family: var(--font-slab); font-size: clamp(36px, 4.6vw, 64px); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; text-transform: none; text-wrap: balance; color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .3); }
.page-hero__lede { max-width: 34em; margin: 20px 0 0; font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; line-height: 1.5; text-wrap: pretty; color: rgba(255, 255, 255, .88); }
.page-hero__actions { margin-top: 30px; }
.page-hero__link { font-size: 16px; font-weight: 700; color: #fff; text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 5px; margin-left: 10px; transition: color .2s; }
.page-hero__link:hover { color: var(--cyan); }

/* Wide photo strip between sections. */
.photo-strip { height: clamp(200px, 26vw, 340px); background: var(--ink) center / cover no-repeat; }

/* Photo banner with one line of text over it (Services emergency note, Volunteers quote). */
.photo-band { position: relative; isolation: isolate; padding: clamp(56px, 8vw, 96px) 0; background: var(--ink) center / cover no-repeat; color: #fff; }
.photo-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 90%, transparent), color-mix(in srgb, var(--ink) 65%, transparent)); }
.photo-band .photo-band__title { max-width: 22em; margin: 0 0 16px; font-size: clamp(24px, 3vw, 38px); font-weight: 700; line-height: 1.2; text-transform: none; text-wrap: balance; color: #fff; }
.photo-band p { max-width: 52em; margin: 0; font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, .88); }

/* ---- Impact numbers ---- */
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 44px) 24px; }
.counter { padding-top: 20px; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.counter__n { font-family: var(--font-slab); font-size: clamp(34px, 4vw, 52px); font-weight: 700; line-height: 1; color: var(--navy); }
.counter__label { margin: 10px 0 0; font-size: 14px; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.band--navy .counter__n { color: #fff; }
.band--navy .counter__label { color: rgba(255, 255, 255, .75); }

/* ---- Accordion list (who we serve, access options) ---- */
.toggle { border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.toggle__item { border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.toggle__heading { margin: 0; font-size: inherit; font-weight: inherit; text-transform: none; letter-spacing: 0; }
.toggle__title { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 4px; background: none; border: 0; text-align: left; font-family: var(--font-slab); font-size: 20px; font-weight: 700; line-height: 1.3; color: inherit; cursor: pointer; transition: color .2s; }
.toggle__title:hover { color: var(--cyan-dark); }
.band--navy .toggle__title:hover { color: var(--cyan); }
.toggle__icon { position: relative; flex: 0 0 auto; order: 2; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, currentColor 10%, transparent); }
.toggle__icon::before, .toggle__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease); }
.toggle__icon::after { transform: rotate(90deg); }
.acc__item.is-open .toggle__icon::after { transform: rotate(0); }
.toggle__panel { display: none; }
.acc__item.is-open .toggle__panel { display: block; }
.toggle__content { padding: 0 4px 22px; font-size: 16px; line-height: 1.7; }
.toggle__content p:last-child { margin-bottom: 0; }
.toggle__content ul { padding-left: 22px; }

/* ---- Carousels (reviews, partner logos, volunteers) ---- */
.carousel { position: relative; padding: 0 0 8px; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; transition: transform .7s var(--ease); will-change: transform; }
.carousel__slide { flex: 0 0 calc(100% / var(--cols, 2)); padding: 6px 12px 36px; box-sizing: border-box; }
.carousel__arrow { position: absolute; top: calc(50% - 20px); z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid color-mix(in srgb, var(--navy) 12%, transparent); border-radius: 50%; background: var(--surface); color: var(--navy); line-height: 0; cursor: pointer; box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--navy-deep) 60%, transparent); transform: translateY(-50%); transition: background-color .2s, color .2s; }
.carousel__arrow:hover { background: var(--navy); color: #fff; }
.carousel__arrow svg { width: 20px; height: 20px; }
.carousel__arrow--prev { left: -22px; }
.carousel__arrow--next { right: -22px; }
.carousel__dots { display: flex; justify-content: center; gap: 8px; }
.carousel__dot { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: color-mix(in srgb, var(--navy) 22%, transparent); cursor: pointer; transition: width .3s var(--ease), background-color .3s; }
.carousel__dot.is-active { width: 24px; background: var(--cyan-dark); }
.carousel--static .carousel__arrow, .carousel--static .carousel__dots { display: none; }
.tm { display: flex; flex-direction: column; height: 100%; }
.tm__card { display: flex; flex-direction: column; flex: 1; padding: 28px; border: 1px solid color-mix(in srgb, var(--navy) 8%, transparent); border-radius: var(--radius); background: var(--surface); box-shadow: 0 14px 34px -24px color-mix(in srgb, var(--navy-deep) 45%, transparent); color: var(--navy); text-align: left; }
.tm__title { order: 3; margin: 16px 0 0; font-family: var(--font-slab); font-size: 18px; font-weight: 700; color: var(--navy); }
.tm__rating { order: 1; margin-bottom: 12px; font-size: 18px; line-height: 1; letter-spacing: 2px; color: #e0a100; }
.tm__content { order: 2; font-size: 16px; line-height: 1.7; }
.tm__content p { margin: 0 0 .8em; }
.tm__content p:last-child { margin-bottom: 0; }
.tm__meta { order: 4; margin-top: 2px; font-size: 14px; color: var(--text-muted); }
.carousel--review .tm__content { font-size: 17px; }
.carousel--review .tm__title { margin-top: auto; padding-top: 18px; }
.carousel--logo .tm__card { text-align: center; }
.carousel--logo .tm__title { order: 0; margin: 0 0 14px; }
.carousel--logo .tm__content { font-size: 15px; line-height: 1.65; color: var(--text-muted); }
.carousel--logo .tm__content img { width: auto; max-width: 100%; max-height: 120px; margin: 0 auto 20px; object-fit: contain; }

/* ---- Before / after sliders ---- */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1140px; margin: 0 auto; }
.ba { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: var(--shadow); user-select: none; --pos: 50%; }
.ba__before, .ba__before img { height: 100%; }
.ba__before { position: relative; }
.ba__before img { width: 100%; display: block; object-fit: cover; }
.ba__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba__after img { width: 100%; height: 100%; object-fit: cover; }
.ba__divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; pointer-events: none; }
.ba__handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50px; background: var(--cyan); color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); }
.ba__label { position: absolute; bottom: 14px; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--navy-deep) 75%, transparent); color: #fff; font-size: 12px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.ba__label--before { left: 14px; }
.ba__label--after { right: 14px; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }

/* ---- Click-to-load YouTube ---- */
.video { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: calc(var(--radius) * 1.25); background: #000; box-shadow: var(--shadow); }
.video__play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.video__play img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video__icon { position: absolute; top: 50%; left: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 10px color-mix(in srgb, var(--cyan) 30%, transparent); transition: transform .3s var(--ease); }
.video__icon::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-40%, -50%); border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent var(--ink); }
.video__play:hover .video__icon { transform: translate(-50%, -50%) scale(1.08); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Tabs (About publications, Volunteers videos) ---- */
.htabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.htabs__tab { padding: 11px 20px; border: 1px solid color-mix(in srgb, var(--navy) 22%, transparent); border-radius: 999px; background: transparent; font-family: var(--font-body); font-size: 15px; font-weight: 700; line-height: 1.2; color: var(--navy); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.htabs__tab:hover { border-color: var(--navy); }
.htabs__tab.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }
.band--navy .htabs__tab { border-color: rgba(255, 255, 255, .35); color: #fff; }
.band--navy .htabs__tab.is-active { border-color: var(--cyan); background: var(--cyan); color: var(--ink); }
.htabs__panel img { margin: 0 auto; max-width: 100%; }
.htabs__panel p { margin: 0; }

/* Plain content block on its own (Privacy, publications). */
.prose { max-width: 780px; margin: 0 auto; font-size: 17px; line-height: 1.75; color: var(--navy); }

.ba-grid > *, .counters > *, .carousel__slide, .htabs__panels { min-width: 0; }

@media (max-width: 1024px) {
  .split, .split--wide-text { grid-template-columns: 1fr; }
  .split__media { max-width: 560px; margin-inline: auto; width: 100%; }
  .cards, .help-cta__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .carousel__arrow--prev { left: -6px; }
  .carousel__arrow--next { right: -6px; }
}
@media (max-width: 767px) {
  .page-hero { min-height: 300px; }
  .page-hero--plain { min-height: 260px; }
  .page-hero__inner { padding: 48px 20px 44px; }
  .page-hero__title { font-size: clamp(32px, 9vw, 40px); }
  .page-hero__lede { font-size: 17px; }
  .page-hero__link { flex-basis: 100%; margin: 6px 0 0; }
  .cards--2 { grid-template-columns: 1fr; }
  .counters { gap: 24px 16px; }
  .counter__n { font-size: 34px; }
  .counter__label { font-size: 12px; }
  .ba-grid { grid-template-columns: 1fr; }
  .carousel__slide { flex-basis: 100%; padding-inline: 4px; }
  .carousel__arrow { display: none; }
  .video__icon { width: 64px; height: 64px; }
  .video__icon::after { border-width: 10px 0 10px 17px; }
  .card { padding: 24px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  .reveal-on [data-reveal] { opacity: 1; transform: none; transition: none; }
  .pill, .carousel__track, .video__icon, .help-cta__card { transition: none; }
}
