/*
Theme Name:  Level Two
Theme URI:   https://www.leveltwo.org
Author:      Level Two Youth Project
Description: The primary provider of youth services in Felixstowe. Clean, modern theme for the Level Two Youth Project website.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leveltwo
Tags:        charity, youth, community, responsive
*/

/* ============================================================
   Level Two Youth Project — Theme Stylesheet
   ============================================================ */

:root {
  --primary:      #e4703e;
  --primary-dark: #c55a2e;
  --primary-light:#fde8d8;
  --accent:       #5815a3;
  --secondary:    #083973;
  --dark:         #111827;
  --mid:          #6B7280;
  --light:        #F9FAFB;
  --border:       #E5E7EB;
  --white:        #FFFFFF;
  --hero-grad:    linear-gradient(135deg, #083973 0%, #5815a3 55%, #e4703e 100%);
  --cta-grad:     linear-gradient(135deg, #083973 0%, #5815a3 100%);
  --shadow-sm:    0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow:       0 4px 6px -1px rgba(0,0,0,.10), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:    0 10px 15px -3px rgba(0,0,0,.10), 0 4px 6px -2px rgba(0,0,0,.05);
  --radius:       12px;
  --radius-sm:    8px;
  --nav-h:        72px;
}

/* ── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ── WordPress admin bar ──────────────────────────── */
.nav { top: 0; }
.admin-bar .nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .nav { top: 46px; }
}

/* ── Typography ───────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
h4 { font-size: .95rem; font-weight: 700; }
p  { color: var(--mid); line-height: 1.75; }

/* ── Layout ───────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section--tinted { background: var(--light); }
.section__header {
  text-align: center; margin-bottom: 3rem;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.section__header p { max-width: 540px; }
.section__actions {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 2.5rem;
  gap: 1rem; flex-wrap: wrap;
}
.grid    { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ── Badge ────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .775rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .85rem; border-radius: 100px;
}
.badge--red   { background: rgba(228,112,62,.15); color: var(--primary); }
.badge--white { background: rgba(255,255,255,.2); color: var(--white); }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .75rem 1.75rem;
  border-radius: var(--radius-sm); font-size: .95rem; font-weight: 600;
  line-height: 1; transition: all .18s ease;
  border: 2px solid transparent; white-space: nowrap;
  max-width: 100%;
}
.btn--primary,
a.btn--primary,
a.btn--primary:link,
a.btn--primary:visited       { background: var(--primary); color: var(--white); }
.btn--primary:hover,
a.btn--primary:hover         { background: var(--primary-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--outline       { border-color: var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: var(--white); }
.btn--white         { background: var(--white); color: var(--primary); }
.btn--white:hover   { background: var(--light); }
.btn--outline-white       { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--outline-white:hover { background: rgba(255,255,255,.12); }
.btn--dark          { background: var(--dark); color: var(--white); }
.btn--dark:hover    { background: #1f2937; }

/* ── Navigation ───────────────────────────────────── */
.nav {
  position: fixed; left: 0; right: 0; z-index: 200;
  transition: background .25s, box-shadow .25s, padding .25s;
  padding: 1.1rem 0;
}
.nav.scrolled { background: var(--white); box-shadow: var(--shadow-sm); padding: .75rem 0; }
.nav__inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 2rem;
}
.nav__logo {
  display: flex; align-items: center; gap: .7rem;
  font-weight: 800; font-size: 1.1rem; color: var(--white); flex-shrink: 0;
}
.nav.scrolled .nav__logo { color: var(--dark); }
.nav__logo img,
.nav__logo .custom-logo { border-radius: 50%; width: 40px; height: 40px; object-fit: cover; }
.nav__links { display: flex; align-items: center; gap: .15rem; }
.nav__links a {
  padding: .5rem .85rem; border-radius: 6px;
  font-size: .9rem; font-weight: 500;
  color: rgba(255,255,255,.88); transition: all .18s;
}
.nav.scrolled .nav__links a { color: var(--dark); }
.nav__links a:hover, .nav__links a.active {
  background: rgba(255,255,255,.18); color: var(--white);
}
.nav.scrolled .nav__links a:hover,
.nav.scrolled .nav__links a.active { background: var(--light); color: var(--primary); }
.nav__links a.nav__cta,
.nav__links .nav__cta a {
  background: var(--primary); color: var(--white) !important;
  margin-left: .5rem; border-radius: 6px;
}
.nav__links a.nav__cta:hover,
.nav__links .nav__cta a:hover { background: var(--primary-dark) !important; }
.nav__toggle {
  display: none; flex-direction: column;
  justify-content: space-between;
  width: 26px; height: 19px;
  background: none; border: none; padding: 0; flex-shrink: 0;
}
.nav__toggle span {
  display: block; width: 100%; height: 2px;
  border-radius: 2px; background: var(--white); transition: all .25s;
}
.nav.scrolled .nav__toggle span { background: var(--dark); }
.nav__toggle.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; width: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  min-height: 100vh; background: var(--hero-grad);
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 4rem) 0 5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero__inner {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 4rem; align-items: center; position: relative; z-index: 1;
}
.hero__text { color: var(--white); }
.hero__text h1 { color: var(--white); margin: .9rem 0 1.25rem; }
.hero__text h1 em {
  font-style: normal; text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 7px;
}
.hero__text p { color: rgba(255,255,255,.82); font-size: 1.1rem; max-width: 500px; margin-bottom: 2.25rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hero__card {
  background: rgba(255,255,255,.15); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius);
  padding: 1.5rem 1.25rem; color: var(--white); text-align: center;
}
.hero__card--shift { transform: translateY(1.75rem); }
.hero__stat       { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.hero__stat-label { font-size: .82rem; opacity: .8; margin-top: .4rem; }

/* ── Page Hero (inner pages) ──────────────────────── */
.page-hero {
  background: var(--hero-grad);
  padding: calc(var(--nav-h) + 3rem) 0 3.5rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 80% 50%, rgba(255,255,255,.06) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero__inner {
  position: relative; z-index: 1;
  color: var(--white); max-width: 680px;
}
.page-hero__inner h1 { color: var(--white); margin: .75rem 0; overflow-wrap: break-word; word-break: break-word; }
.page-hero__inner p  { color: rgba(255,255,255,.82); font-size: 1.1rem; overflow-wrap: break-word; }

/* ── Service Cards ────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  display: flex; flex-direction: column; gap: .7rem; transition: all .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.card__icon { font-size: 2.1rem; }
.card__link { font-size: .9rem; font-weight: 600; color: var(--primary); margin-top: auto; padding-top: .5rem; }
/* Prevent long user-entered text / email addresses from overflowing card boundaries */
.card p, .card h3, .card strong { overflow-wrap: break-word; word-break: break-word; }

/* ── Card hover background image ──────────────────── */
.card { position: relative; overflow: hidden; }
.card__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--card-img, none);
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .45s ease;
}
.card__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 57, 115, .40) 0%,
    rgba(8, 57, 115, .78) 60%,
    rgba(8, 57, 115, .90) 100%
  );
}
.card:hover .card__bg { opacity: 1; }
.card > *:not(.card__bg) { position: relative; z-index: 1; }
.card:has(.card__bg):hover h3 { color: #fff; }
.card:has(.card__bg):hover p { color: rgba(255,255,255,.82); }
.card:has(.card__bg):hover .card__link { color: #fde8d8; }
.card__link:hover { text-decoration: underline; }

/* ── Programme ────────────────────────────────────── */
.programme__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.programme__text  { display: flex; flex-direction: column; gap: 1.2rem; }
.programme__highlights { display: flex; flex-direction: column; gap: .9rem; }
.highlight {
  display: flex; align-items: center; gap: 1rem;
  background: var(--white); border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); transition: box-shadow .2s;
}
.highlight:hover { box-shadow: var(--shadow); }
.highlight__icon  { font-size: 1.8rem; flex-shrink: 0; }
.highlight strong { display: block; font-weight: 600; color: var(--dark); font-size: .95rem; }
.highlight span   { font-size: .85rem; color: var(--mid); }

/* ── News Cards — full-image poster style ─────────── */
.news-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--secondary);
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  /* No aspect-ratio: image's own dimensions define the card height */
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card img {
  width: 100%;
  height: auto;      /* natural height — no cropping ever */
  display: block;
  transition: transform .3s ease;
}
.news-card:hover img { transform: scale(1.02); }
/* gradient overlay — always visible at bottom */
.news-card__overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top,
    rgba(8,57,115,.97) 0%,
    rgba(8,57,115,.5) 50%,
    transparent 100%);
  padding: 2.5rem 1.1rem 1.1rem;
  transition: padding .25s;
}
.news-card:hover .news-card__overlay { padding-bottom: 1.4rem; }
.news-card__date {
  display: block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: rgba(255,255,255,.7); margin-bottom: .35rem;
}
.news-card__title {
  color: #fff; font-size: .95rem; font-weight: 700;
  line-height: 1.35; margin: 0;
}
/* no-image fallback */
.news-card--empty { min-height: 320px; }

/* ── CTA Section ──────────────────────────────────── */
.cta-section { background: var(--cta-grad); padding: 5rem 0; }
.cta-section__inner {
  text-align: center; display: flex;
  flex-direction: column; align-items: center; gap: 1.1rem;
}
.cta-section h2    { color: var(--white); }
.cta-section p     { color: rgba(255,255,255,.82); max-width: 520px; font-size: 1.05rem; }
.cta-section__btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: .4rem; }

/* ── Contact ──────────────────────────────────────── */
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.contact-item__icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--primary-light); display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; flex-shrink: 0;
}
.contact-item__label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--mid); margin-bottom: .25rem; }
.contact-item__value { font-size: 1rem; font-weight: 600; color: var(--dark); }
.contact-item a:hover { color: var(--primary); }

/* ── Forms ────────────────────────────────────────── */
.form-box { background: var(--light); border-radius: var(--radius); padding: 2.5rem; border: 1px solid var(--border); }
.form-box h3 { margin-bottom: 1.5rem; font-size: 1.3rem; }
.form-group { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--dark); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: .7rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-family: inherit;
  font-size: .95rem; background: var(--white); color: var(--dark);
  transition: border-color .18s; outline: none; width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* ── Map ──────────────────────────────────────────── */
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); line-height: 0; }
.map-wrap iframe { width: 100%; height: 340px; border: 0; }

/* ── Two-col ──────────────────────────────────────── */
.two-col            { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.two-col--wide-left { grid-template-columns: 1.4fr 1fr; }
.two-col--wide-right{ grid-template-columns: 1fr 1.4fr; }
/* Grid cells default to min-width:auto which lets content overflow the track.
   Setting min-width:0 forces cells to respect their 1fr track boundary. */
.two-col > *,
.grid--3 > *,
.grid--2 > * { min-width: 0; }

/* ── Stats ────────────────────────────────────────── */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 3rem 0; }
.stat-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; }
.stat-box__num   { font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-box__label { font-size: .875rem; color: var(--mid); margin-top: .4rem; }

/* ── Footer ───────────────────────────────────────── */
.footer { background: #051e3d; color: rgba(255,255,255,.65); }
.footer__body {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 3rem; padding: 4rem 0 3rem;
}
.footer__brand { display: flex; flex-direction: column; gap: 1rem; }
.footer__brand p { font-size: .875rem; line-height: 1.7; }
.footer__brand img,
.footer__brand .custom-logo-link img { border-radius: 50%; width: 52px; height: 52px; object-fit: cover; }
.footer__social { display: flex; gap: .6rem; }
.footer__social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); transition: all .18s;
}
.footer__social a:hover { background: var(--primary); color: var(--white); }
.footer__col h4,
.footer__funders h4 {
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: rgba(255,255,255,.4); margin-bottom: 1.1rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: .55rem; }
.footer__col a  { font-size: .875rem; transition: color .18s; }
.footer__col a:hover { color: var(--white); }
.footer__funders-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  align-items: center;
}
.footer__funders-logos img {
  display: block;
  width: 100%;
  max-height: 56px;
  object-fit: contain;
  background: rgba(255,255,255,.92);
  border-radius: 6px;
  padding: 7px 10px;
  transition: background .2s;
}
.footer__funders-logos img:hover { background: rgba(255,255,255,1); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.3rem 0; font-size: .825rem; text-align: center; }

/* ── WordPress content styles ─────────────────────── */
.entry-content p               { color: var(--dark); margin-bottom: 1rem; }
.entry-content h2,
.entry-content h3,
.entry-content h4              { margin-bottom: .75rem; margin-top: 1.5rem; }
.entry-content ul              { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.entry-content ol              { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.entry-content li              { color: var(--dark); margin-bottom: .4rem; }
.entry-content a               { color: var(--primary); text-decoration: underline; }
.entry-content img             { border-radius: var(--radius-sm); margin: 1rem 0; }
.entry-content blockquote      { border-left: 4px solid var(--primary); padding-left: 1.5rem; margin: 1.5rem 0; }
.entry-content blockquote p    { font-style: italic; }
.entry-content .wp-block-table { width: 100%; border-collapse: collapse; }
.entry-content table th,
.entry-content table td        { border: 1px solid var(--border); padding: .6rem .9rem; text-align: left; }
.entry-content table th        { background: var(--light); font-weight: 600; color: var(--dark); }

/* WordPress pagination
   WordPress places .page-numbers on each <a>/<span> directly,
   so selectors must target a.page-numbers / span.page-numbers,
   NOT .page-numbers a / .page-numbers span. */
.nav-links {
  display: flex; justify-content: center;
  align-items: center; gap: .4rem; flex-wrap: wrap;
}
.nav-links a.page-numbers,
.nav-links span.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 .5rem; border-radius: 6px;
  font-size: .875rem; font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--border); color: var(--dark); transition: all .18s;
}
.nav-links a.page-numbers:hover        { border-color: var(--primary); color: var(--primary); }
.nav-links span.page-numbers.current   { background: var(--primary); color: var(--white); border-color: var(--primary); }
/* Prev / Next need room for their label text */
.nav-links a.page-numbers.prev,
.nav-links a.page-numbers.next         { padding: 0 1rem; min-width: auto; }

/* ── Uniform photo grid ───────────────────────────
   Used on gallery, awards and activity pages.
   All thumbnails same size, object-fit: cover.   */
.photo-grid-uniform {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 5px;
  margin-bottom: 1rem;
}
.photo-grid-uniform a,
.photo-grid-uniform .photo-thumb,
.photo-grid-uniform .award-photo-tile {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  background: var(--light);
  cursor: zoom-in;
}
.photo-grid-uniform img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform .3s;
}
.photo-grid-uniform a:hover img,
.photo-grid-uniform .photo-thumb:hover img { transform: scale(1.07); }

/* Style WP Gallery blocks inside gallery CPT sections */
.gallery-section .entry-content .wp-block-gallery,
.gallery-section .entry-content .wp-block-image { margin: 0; }
.gallery-section .entry-content { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 5px; }
.gallery-section .entry-content figure img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; }
.gallery-section .entry-content video { grid-column: 1 / -1; width: 100%; border-radius: 8px; background: #000; display: block; }
.gallery-section .entry-content p { grid-column: 1 / -1; font-size: .875rem; color: var(--mid); }

/* ── Form messages ──────────────────────────────── */
.form-notice {
  border-radius: var(--radius-sm); padding: 1rem 1.25rem;
  margin-bottom: 1.5rem; font-size: .95rem; font-weight: 500;
}
.form-notice--success { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.form-notice--error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.field-group { display: flex; flex-direction: column; gap: .5rem; }
.field-option { display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--dark); cursor: pointer; }
.field-option input[type="radio"],
.field-option input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); }
.crisis-box {
  background: #FFF7ED; border: 1px solid #FED7AA;
  border-radius: var(--radius); padding: 1.5rem 2rem; margin: 1.5rem 0;
}
.crisis-box h3 { color: #C2410C; font-size: 1rem; margin-bottom: .75rem; }
.crisis-box ol { padding-left: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.crisis-box li { color: var(--dark); font-size: .9rem; }
.crisis-box a  { color: var(--primary); text-decoration: underline; }
.conditional-fields { display: none; }
.conditional-fields.visible { display: block; }
.form-section-heading {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--mid);
  border-bottom: 1px solid var(--border); padding-bottom: .6rem;
  margin: 1.75rem 0 1.25rem;
}
.form-section-heading:first-child { margin-top: 0; }
.info-list { list-style: disc; padding-left: 1.5rem; display: flex; flex-direction: column; gap: .4rem; }
.info-list li { color: var(--dark); font-size: .95rem; }

/* WordPress alignment classes */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin: 1rem auto; text-align: center; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .8rem; color: var(--mid); text-align: center; margin-top: .4rem; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__body { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand, .footer__funders { grid-column: 1 / -1; }
  .footer__funders-logos { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__cards { grid-template-columns: repeat(3, 1fr); }
  .hero__card--shift { transform: none; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .programme__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col, .two-col--wide-left, .two-col--wide-right { grid-template-columns: 1fr; gap: 2.5rem; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .section { padding: 3.5rem 0; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .hero__cards { grid-template-columns: 1fr; gap: .75rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .stat-row { grid-template-columns: 1fr; }
  .nav__toggle { display: flex; }
  .nav__links {
    display: none; position: fixed; inset: 0;
    background: var(--white); flex-direction: column;
    align-items: center; justify-content: center;
    gap: .5rem; z-index: -1;
    padding: calc(var(--nav-h) + 1rem) 2rem 2rem;
  }
  .nav__links.open { display: flex; z-index: 199; }
  .nav__links a, .nav__links li a {
    font-size: 1.2rem !important; color: var(--dark) !important;
    padding: .8rem 2rem; width: 100%;
    text-align: center; border-radius: 8px;
  }
  .nav__links a:hover, .nav__links a.active,
  .nav__links li a:hover, .nav__links li a.active {
    background: var(--light) !important; color: var(--primary) !important;
  }
  .nav__links a.nav__cta,
  .nav__links .nav__cta a {
    background: var(--primary) !important; color: var(--white) !important;
  }
  .footer__body { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 0 2.5rem; }
  .footer__brand, .footer__funders { grid-column: auto; }
  .cta-section__btns { flex-direction: column; width: 100%; }
  .cta-section__btns .btn { width: 100%; }
  .form-box { padding: 1.75rem; }
  .alignleft, .alignright { float: none; margin: 1rem 0; }
  /* Allow long email/phone buttons to wrap on small screens */
  .btn { white-space: normal; word-break: break-word; text-align: center; }
  /* Prevent card padding crushing narrow content */
  .card { padding: 1.25rem; }
}
