/* Boldsteps Youth Centre — brand styles
   Colours taken from the Boldsteps logo:
   blue  #1479e8 · navy #0b1aa6 · red #e0141c · green #1f8a1f · purple #4a16c9 · pink #f01a5c · ink #0d0d2b */

:root {
  --blue: #1479e8;
  --blue-deep: #0b1aa6;
  --red: #e0141c;
  --green: #1f8a1f;
  --purple: #4a16c9;
  --pink: #f01a5c;
  --ink: #0d0d2b;
  --muted: #5a5d75;
  --bg: #f6f8ff;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(13, 13, 43, .10);
  --grad: linear-gradient(120deg, var(--blue) 0%, var(--purple) 55%, var(--red) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
section { padding: 84px 0; }
.eyebrow {
  display: inline-block;
  font-size: .95rem; font-weight: 600;
  color: var(--blue-deep); margin-bottom: .4rem;
}
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 0; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: .98rem; line-height: 1; text-decoration: none;
  background: var(--blue); color: #fff;
  transition: background .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--blue-deep); color: #fff; }
.btn-ghost {
  background: transparent; color: #fff; box-shadow: none; border: 2px solid rgba(255,255,255,.7);
}
.btn-ghost:hover { background: #fff; color: var(--ink); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(13,13,43,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 84px; padding: 4px 0; }
.brand img { height: 78px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue-deep); font-weight: 600; }
.nav-links .btn { padding: .6rem 1.1rem; box-shadow: none; }
.nav-toggle {
  display: none; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  padding: 120px 0 130px;
  background: var(--ink) center/cover no-repeat;
}
.hero .container { position: relative; z-index: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(20,121,232,.3) 0%, rgba(74,22,201,.3) 50%, rgba(224,20,28,.3) 100%);
}
.hero .eyebrow { color: #ffd6e2; }

/* ---------- 3-slide hero banner ---------- */
.hero-slider { position: relative; padding: 0; }
.hero-track { display: grid; }
.hero-track > .slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden;
  transition: opacity .9s ease, visibility .9s ease;
}
.hero-track > .slide.active { opacity: 1; visibility: visible; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(13,13,43,.35); color: #fff; font-size: 1.7rem; line-height: 1;
  display: grid; place-items: center;
}
.hero-arrow:hover { background: rgba(13,13,43,.55); }
.hero-arrow:focus-visible, .hero-dots button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.hero-prev { left: 18px; }
.hero-next { right: 18px; }
.hero-dots {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.hero-dots button {
  width: 12px; height: 12px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 2px solid #fff; background: transparent;
}
.hero-dots button[aria-current="true"] { background: #fff; }
@media (max-width: 760px) {
  .hero-arrow { display: none; }
  .hero-dots { bottom: 16px; }
  .hero { padding: 40px 0 72px; }
  .hero h1 { font-size: 2rem; }
  .hero p.lead { font-size: 1rem; }
}
.hero p.lead { color: #eef2ff; font-size: 1.2rem; }
.hero .tagline { font-size: 1.15rem; font-weight: 600; color: #ffe1ea; margin: -.2rem 0 1rem; letter-spacing: .02em; }
/* Honeypot: hidden from people, visible to bots that fill every field */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-badges { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-badges span {
  padding: .4rem .9rem; border-radius: 999px; font-size: .9rem;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
}

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  padding: 72px 0 64px; color: #fff; position: relative; overflow: hidden;
  background: var(--grad);
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero p { color: #eef2ff; max-width: 60ch; margin: 0; }
.page-hero .eyebrow { color: #ffe1ea; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border-radius: 12px; padding: 28px;
  border: 1px solid #e3e6f2;
}
.icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 1rem; color: #fff;
}
.i-blue { background: var(--blue); }
.i-red { background: var(--red); }
.i-green { background: var(--green); }
.i-purple { background: var(--purple); }
.i-pink { background: var(--pink); }
.i-navy { background: var(--blue-deep); }
.card p { color: var(--muted); margin: 0; }

/* ---------- Split (text + photo) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.photo {
  border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); position: relative;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.tall img { height: 520px; }
.photo.wide img { height: 420px; }
.photo-stack { position: relative; }
.photo-stack .photo.small {
  position: absolute; width: 46%; right: -24px; bottom: -34px; border: 6px solid #fff;
}
.photo-stack .photo.small img { height: 200px; }
.checks { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.checks li { padding-left: 2rem; position: relative; margin-bottom: .7rem; color: var(--muted); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 3px; background: var(--blue);
}

/* ---------- Stats ---------- */
.stats { background: var(--ink); color: #fff; padding: 56px 0; }
.stats .grid { grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat span { color: #c9cde6; font-size: .95rem; }

/* ---------- Gallery teaser / masonry ---------- */
.masonry {
  column-count: 3; column-gap: 18px;
}
.masonry figure {
  break-inside: avoid; margin: 0 0 18px; position: relative; border-radius: 10px;
  overflow: hidden; cursor: zoom-in; background: #fff;
}
.masonry img { width: 100%; height: auto; }
.masonry figcaption {
  position: absolute; left: 14px; bottom: 14px; color: #fff; font-weight: 600; font-size: .9rem;
  padding: .35rem .8rem; border-radius: 999px; background: rgba(13,13,43,.55);
  opacity: 0; transform: translateY(6px); transition: .3s ease;
}
.masonry figure:hover figcaption { opacity: 1; transform: none; }
/* Touch screens have no hover: keep captions visible */
@media (hover: none) {
  .masonry figcaption { opacity: 1; transform: none; font-size: .8rem; left: 10px; bottom: 10px; }
}
.masonry-tag {
  display: inline-block; font-size: .8rem; font-weight: 600; color: var(--blue-deep);
  background: rgba(20,121,232,.1); padding: .25rem .7rem; border-radius: 999px; margin-bottom: 1rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(8,8,24,.92); display: none;
  align-items: center; justify-content: center; z-index: 100; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: 88vh; border-radius: 14px; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer;
}
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Programmes list ---------- */
.programme-list { display: grid; gap: 14px; }
.programme-list div {
  background: #fff; border-radius: 14px; padding: 18px 22px; box-shadow: var(--shadow);
  border-left: 6px solid var(--blue); font-weight: 500;
}

/* ---------- CTA band ---------- */
.cta {
  border-radius: 20px; padding: 56px; color: #fff; text-align: center;
  background: var(--blue-deep); position: relative; overflow: hidden;
}
.cta p { color: #eef2ff; max-width: 60ch; margin: 0 auto 1.6rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: start; }
.info-card { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.info-card .icon { margin: 0; flex-shrink: 0; }
.info-card h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.info-card p, .info-card a { margin: 0; color: var(--muted); word-break: break-word; }
.form-card { padding: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); padding: .85rem 1rem;
  border: 2px solid #e4e7f4; border-radius: 12px; background: #fbfcff; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20,121,232,.15); background: #fff;
}
textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: .8rem; }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: 12px; display: none; font-weight: 500; }
.form-status.ok { display: block; background: rgba(31,138,31,.12); color: #145c14; }
.form-status.err { display: block; background: rgba(224,20,28,.1); color: #9d0d13; }
.map-wrap {
  margin-top: 40px; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); height: 420px; background: #e9ecf8;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9cde6; padding: 64px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo {
  background: #fff; border-radius: 16px; padding: 10px 14px; display: inline-block; margin-bottom: 1rem;
}
.footer-logo img { height: 110px; width: auto; display: block; }
.site-footer h4 { color: #fff; margin: 0 0 1rem; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: #c9cde6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bar {
  margin-top: 48px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .92rem;
}
.designed-by a { font-weight: 600; color: #8fc3ff; text-decoration: underline; }
.designed-by a:hover { text-decoration: underline; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .stats .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .masonry { column-count: 2; }
  .photo-stack .photo.small { right: 12px; }
  .photo.tall img { height: 420px; }
  .photo.wide img { height: 360px; }
}
@media (max-width: 760px) {
  section { padding: 60px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: flex-start; padding: 18px 16px 24px; gap: 16px; display: none;
    box-shadow: 0 16px 30px rgba(13,13,43,.12);
  }
  .nav-links.open { display: flex; }
  .brand img { height: 74px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .cta { padding: 36px 22px; }
  .masonry { column-count: 1; }
  .photo.tall img, .photo.wide img { height: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 72px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .page-hero { padding: 52px 0 48px; }
  .split { gap: 36px; }
  .photo-stack { margin-bottom: 30px; }
  .photo-stack .photo.small { right: 8px; bottom: -24px; }
  .map-wrap { height: 320px; }
  .stats .grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
