/* Maphiko Foundation - teal brand palette with the logo's silver and white neutrals */
:root {
  --brand: #0e5a63;
  --brand-deep: #0a3f46;
  --brand-soft: #d9eced;
  --brand-tint: #eef6f7;
  --teal-light: #7fcfd0;
  --graphite: #3b4447;
  --steel: #6b7578;
  --silver: #c3cacc;
  --mist: #e6ebec;
  --paper: #f5f8f8;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(10, 63, 70, 0.10);
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--brand-deep); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-alt { background: var(--paper); }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); margin-bottom: 0.75rem;
}
.lead { font-size: 1.12rem; color: var(--graphite); max-width: 62ch; }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.45rem;
  border-radius: 999px; border: 2px solid transparent; font-family: var(--font-head);
  font-weight: 700; font-size: 0.98rem; text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--brand); color: var(--white); }
.btn-dark:hover { background: var(--brand-deep); }
.btn-light { background: var(--white); color: var(--brand-deep); }
.btn-light:hover { background: var(--brand-soft); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,0.7); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--brand-deep); }

/* Header: white, so the logo reads clearly */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--white); color: var(--brand-deep);
  border-bottom: 1px solid var(--mist); box-shadow: 0 6px 20px rgba(10,63,70,0.05);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand-deep); }
.brand img { width: 200px; height: auto; }
.brand-text { font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; letter-spacing: 0.04em; line-height: 1.1; }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.72rem; color: var(--steel); letter-spacing: 0.14em; text-transform: uppercase; }
.nav-toggle {
  display: none; background: var(--white); border: 1px solid var(--mist); color: var(--brand-deep);
  width: 46px; height: 46px; border-radius: 12px; font-size: 1.15rem; cursor: pointer;
}
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
  text-decoration: none; color: var(--graphite); font-weight: 500; font-size: 0.95rem;
  padding: 0.5rem 0.85rem; border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-tint); }
.site-nav .btn { margin-left: 8px; padding: 0.65rem 1.1rem; font-size: 0.92rem; }
.site-nav .btn-light { background: var(--brand); color: var(--white); }
.site-nav .btn-light:hover { background: var(--brand-deep); }

/* Hero slider */
.hero { position: relative; min-height: clamp(560px, 82vh, 720px); background: var(--brand-deep); color: var(--white); overflow: hidden; isolation: isolate; }
.slide {
  position: absolute; inset: 0; display: flex; align-items: center; isolation: isolate; background: center/cover no-repeat;
  opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0.9s;
}
.slide::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,63,70,0.8) 0%, rgba(10,63,70,0.4) 50%, rgba(10,63,70,0.05) 100%);
}
.slide.active { opacity: 1; visibility: visible; }
.slide-content { padding-bottom: 56px; max-width: 1180px; }
.slide-content > * { max-width: 620px; }
.hero-title { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
.hero .lead { color: rgba(255,255,255,0.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.12); color: var(--white); cursor: pointer;
  display: grid; place-items: center; font-size: 1rem; transition: background 0.2s;
}
.slider-arrow:hover { background: rgba(255,255,255,0.28); }
.slider-arrow.prev { left: 18px; }
.slider-arrow.next { right: 18px; }
.slider-dots { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2; display: flex; gap: 10px; }
.slider-dots button {
  width: 12px; height: 12px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.45); transition: width 0.3s, background 0.3s;
}
.slider-dots button.active { width: 32px; background: var(--white); }

/* Cards and grids */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
  border: 1px solid var(--mist); transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10,63,70,0.14); }
.icon-badge {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--brand); color: var(--white); font-size: 1.4rem;
}
.icon-badge.light { background: var(--brand-soft); color: var(--brand-deep); }
.card p { color: var(--steel); margin: 0; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.photo-stack { position: relative; }
.photo-stack img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; }
.photo-stack .img-main { aspect-ratio: 4 / 5; }
.stat-chip {
  position: absolute; left: -18px; bottom: 28px; background: var(--brand); color: var(--white);
  padding: 16px 20px; border-radius: 14px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 700;
}
.stat-chip i { color: var(--brand-soft); font-size: 1.3rem; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist i { color: var(--brand); margin-top: 5px; }

/* Programme rows */
.programme { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--mist); margin-bottom: 28px; }
.programme:nth-child(even) .programme-img { order: 2; }
.programme-img img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.programme-body { padding: clamp(26px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.programme-body p { color: var(--steel); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.tag { font-size: 0.82rem; font-weight: 600; padding: 0.35rem 0.75rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); }

/* Gallery */
.gallery { columns: 3 260px; column-gap: 16px; }
.gallery figure { margin: 0 0 16px; break-inside: avoid; }
.gallery button {
  display: block; padding: 0; border: 0; width: 100%; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--mist);
}
.gallery img { width: 100%; transition: transform 0.4s, filter 0.3s; }
.gallery button:hover img { transform: scale(1.04); filter: brightness(0.92); }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,63,70,0.95); display: none;
  align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: min(1100px, 100%); border-radius: 12px; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,0.14); color: var(--white); border: 0; width: 48px; height: 48px;
  border-radius: 50%; font-size: 1.2rem; cursor: pointer;
}
.lightbox .close { top: 18px; right: 18px; }
.lightbox .prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Get involved */
.bank-card {
  background: var(--brand-deep); color: var(--white); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.bank-card h3 { color: var(--white); }
.bank-card dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 22px; margin: 1.5rem 0 0; }
.bank-card dt { color: var(--brand-soft); font-size: 0.9rem; }
.bank-card dd { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em; }
.cta-band { background: var(--brand); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band .eyebrow { color: var(--brand-soft); }
.cta-band .lead { margin-inline: auto; color: rgba(255,255,255,0.86); }
.cta-band .hero-actions { justify-content: center; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list strong { display: block; color: var(--brand-deep); font-family: var(--font-head); }
.info-list a { color: var(--graphite); text-decoration: none; border-bottom: 1px solid var(--teal-light); }
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; color: var(--brand-deep); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--brand-deep); background: var(--paper); border: 1px solid var(--mist);
  border-radius: 12px; padding: 0.85rem 1rem; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; background: var(--white); }
.form textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.88rem; color: var(--steel); margin: 0; }

/* Page hero (inner pages) */
.page-hero { background: var(--brand-deep); color: var(--white); padding: clamp(64px, 9vw, 104px) 0; position: relative; overflow: hidden; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.6vw, 3.2rem); }
.page-hero .lead { color: rgba(255,255,255,0.84); }
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 0 0 60px rgba(255,255,255,0.03), 0 0 0 120px rgba(255,255,255,0.02);
}
.crumbs { font-size: 0.9rem; color: var(--brand-soft); margin-bottom: 1rem; }
.crumbs a { text-decoration: none; color: var(--brand-soft); }

/* Footer */
.site-footer { background: var(--brand-deep); color: rgba(255,255,255,0.8); padding: 64px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,0.8); }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-brand { margin-bottom: 1rem; }
.footer-brand img { width: 200px; height: auto; background: var(--white); padding: 12px; border-radius: 14px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.88rem; }
.footer-bottom a { color: var(--white); font-weight: 600; }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.1); }

.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.not-found .code { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; color: var(--brand-soft); line-height: 1; margin: 0; }


/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 560px; }
  .programme { grid-template-columns: 1fr; }
  .programme:nth-child(even) .programme-img { order: 0; }
  .programme-img img { min-height: 240px; max-height: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .photo-stack .stat-chip { left: 14px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--white); padding: 12px 16px 22px; border-top: 1px solid var(--mist);
    box-shadow: 0 16px 30px rgba(10,63,70,0.10);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all 0.25s ease;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a:not(.btn) { padding: 0.9rem 0.6rem; font-size: 1rem; border-radius: 10px; }
  .site-nav .btn { margin: 10px 0 0; justify-content: center; }
  .nav-wrap { position: relative; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .hero { min-height: 640px; }
  .slide { align-items: flex-end; }
  .slide::before { background: linear-gradient(180deg, rgba(10,63,70,0.15) 0%, rgba(10,63,70,0.7) 42%, rgba(10,63,70,0.95) 78%); }
  .slide-content { padding-bottom: 88px; }
  .slider-arrow { display: none; }
  .brand img { width: 150px; }
  .brand-text { font-size: 0.92rem; }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand img { width: 170px; }
  .bank-card dl { grid-template-columns: 1fr; gap: 4px; }
  .bank-card dd { margin-bottom: 12px; }
  .hero-actions .btn, .cta-band .btn { width: 100%; justify-content: center; }
  .stat-chip { position: static; margin-top: 14px; width: fit-content; }
  .photo-stack .img-main { aspect-ratio: 4 / 3; }
  .gallery { columns: 2 150px; }
  .card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---- Modern details ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, var(--brand), var(--teal-light));
  transform-origin: 0 50%; transform: scaleX(0);
}

.site-nav a:not(.btn) { position: relative; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Hero text rises in when a slide becomes active */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.slide.active .slide-content > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.slide.active .slide-content > *:nth-child(2) { animation-delay: 0.12s; }
.slide.active .slide-content > *:nth-child(3) { animation-delay: 0.22s; }

/* Ticker band under the hero */
.ticker { background: var(--brand); color: var(--white); overflow: hidden; white-space: nowrap; padding: 16px 0; }
.ticker-track { display: inline-flex; gap: 48px; padding-right: 48px; animation: ticker 32s linear infinite; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; }
.ticker-track span { display: inline-flex; align-items: center; gap: 48px; }
.ticker-track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-light); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Numbered programme cards */
.num-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.num-card {
  background: var(--white); border-top: 3px solid var(--brand); border-radius: 0 0 var(--radius) var(--radius);
  padding: 26px 24px 30px; box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s;
}
.num-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10,63,70,0.14); }
.num-card h3 { margin-top: 10px; }
.num-card p { color: var(--steel); margin: 0; }
.num { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--teal-light); }
.programme-body .num { margin-bottom: 12px; }
.section-link { margin-top: 2rem; }
.section-link a, .text-link { color: var(--brand); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.section-link a:hover, .text-link:hover { text-decoration: underline; }
.text-link { margin-top: 1rem; }

.photo-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo-frame img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s ease; }
.photo-frame:hover img { transform: scale(1.03); }

.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.ways article { border-top: 2px solid var(--brand-soft); padding-top: 22px; }
.ways p { color: var(--steel); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin: 0; }
.facts div { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.facts dt { font-family: var(--font-head); font-weight: 800; color: var(--brand); font-size: 1.1rem; margin-bottom: 6px; }
.facts dd { margin: 0; color: var(--steel); }

.form-card { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); border: 1px solid var(--mist); }
.form-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.form-card .form-note { margin-bottom: 1.25rem; }

.programme-body .btn, .hero-actions .btn { white-space: normal; }

/* Scroll-linked entrance. Browsers without support just show the content. */
@supports (animation-timeline: view()) {
  @keyframes fade-up { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
  .anim-in { animation: fade-up linear; animation-timeline: view(); animation-range: entry 0% cover 32%; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .slide.active .slide-content > * { animation: none; }
  .anim-in { animation: none; }
}

@media (max-width: 640px) {
  .ticker-track { font-size: 0.85rem; gap: 32px; padding-right: 32px; }
  .ticker-track span { gap: 32px; }
  .facts { grid-template-columns: 1fr; }
}

/* Map on the contact page */
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--mist); background: var(--mist); }
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }

/* Mobile polish: bigger tap targets, tighter header, sturdier dots */
.slider-dots button { position: relative; }
.slider-dots button::before { content: ""; position: absolute; inset: -16px; }
@media (max-width: 640px) {
  .nav-wrap { min-height: 72px; }
  .map-frame iframe { height: 300px; }
  .btn { min-height: 48px; }
  .site-nav a:not(.btn) { min-height: 44px; display: flex; align-items: center; }
  .section { padding: 56px 0; }
  .lightbox .prev, .lightbox .next { top: auto; bottom: 18px; transform: none; }
}

/* Contact details: label above value */
.info-list li { display: block; }
.info-list strong { margin-bottom: 2px; }
