/* ===== Azingce Day and Aftercare — brand styles =====
   Colours taken from the crest:
   Navy  #00184A   Gold #F9B90F   Crimson #C62828   Cream #FFF9EC */

:root {
  --navy: #00184a;
  --navy-2: #0a2a6b;
  --navy-soft: #e8edf7;
  --gold: #f9b90f;
  --gold-dark: #d99a00;
  --crimson: #c62828;
  --cream: #fff9ec;
  --ink: #1d2433;
  --muted: #5b6478;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 24, 74, 0.12);
  --shadow-lg: 0 20px 50px rgba(0, 24, 74, 0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-2); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p + p { margin-top: 1em; }
section { padding: 88px 0; }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  font-family: inherit;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #ffc83a; }
.btn-outline { border-color: var(--gold); color: var(--white); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }

/* ----- Header / nav ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand img {
  width: 58px; height: 58px; object-fit: contain;
  background: var(--white); border-radius: 50%; padding: 3px;
  box-shadow: 0 0 0 2px var(--gold);
}
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; font-size: 1.05rem; letter-spacing: .3px; }
.brand-text span { font-size: .78rem; color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase; }

.nav-links { display: flex; gap: 6px; list-style: none; align-items: center; }
.nav-links a {
  color: #dfe6f5; text-decoration: none; font-weight: 500;
  padding: 9px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav-links a.active { background: var(--gold); color: var(--navy); font-weight: 600; }
.nav-links .btn { padding: 9px 20px; font-size: .95rem; }

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 10px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--gold);
  margin: 5px auto; border-radius: 2px; transition: transform .3s, opacity .3s;
}

/* ----- Hero ----- */
.hero {
  position: relative; color: var(--white);
  background:
    radial-gradient(circle at 15% 20%, rgba(249,185,15,.22), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(198,40,40,.25), transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 100px 0 120px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -2px -10%; height: 90px;
  background: var(--white);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; background: rgba(249,185,15,.15); color: var(--gold);
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  letter-spacing: .5px; margin-bottom: 18px; border: 1px solid rgba(249,185,15,.4);
}
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { color: #d5deef; font-size: 1.12rem; margin: 20px 0 30px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badge {
  background: var(--white); border-radius: 50%; width: min(380px, 90%); aspect-ratio: 1;
  margin-inline: auto; display: grid; place-items: center;
  box-shadow: var(--shadow-lg), 0 0 0 12px rgba(249,185,15,.25);
}
.hero-badge img { width: 88%; height: auto; }

.stats {
  position: relative; z-index: 2; margin-top: -60px;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.stat {
  background: var(--white); border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow); border-top: 4px solid var(--gold);
}
.stat strong { display: block; font-size: 1.1rem; color: var(--navy); }
.stat span { color: var(--muted); font-size: .95rem; }

/* ----- Generic section pieces ----- */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head .tag { color: var(--crimson); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; font-size: .85rem; }
.section-head p { color: var(--muted); margin-top: 12px; }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); color: #e7ecf7; }
.bg-navy h2, .bg-navy h3 { color: var(--white); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img {
  width: 100%; height: 100%; min-height: 360px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.split-media::before {
  content: ""; position: absolute; inset: -14px -14px auto auto; width: 120px; height: 120px;
  background: var(--gold); border-radius: 22px; z-index: -1; opacity: .9;
}
.split-media::after {
  content: ""; position: absolute; left: -14px; bottom: -14px; width: 90px; height: 90px;
  border: 6px solid var(--crimson); border-radius: 22px; z-index: -1;
}
.split-text p { color: var(--muted); margin-top: 14px; }
.check-list { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before {
  content: "✓"; flex: 0 0 26px; height: 26px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-weight: 700;
  display: grid; place-items: center; font-size: .9rem;
}

/* ----- Cards ----- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 34px 28px;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 5px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--crimson));
}
.icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: var(--navy); color: var(--gold); font-size: 1.6rem; margin-bottom: 18px;
}
.card p { color: var(--muted); margin-top: 10px; }
.card.dark { background: var(--navy); }
.card.dark h3 { color: var(--white); }
.card.dark p { color: #c9d3ea; }
.card.dark .icon { background: var(--gold); color: var(--navy); }

/* ----- Photo strip ----- */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.photo-strip figure { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/5; box-shadow: var(--shadow); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.photo-strip figure:hover img { transform: scale(1.06); }
.photo-strip figcaption {
  position: absolute; left: 12px; bottom: 12px; background: var(--gold); color: var(--navy);
  padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600;
}

/* ----- Programme list ----- */
.programme {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 34px;
}
.programme:nth-child(even) .prog-media { order: 2; }
.prog-media img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.prog-body { padding: 42px; display: flex; flex-direction: column; justify-content: center; }
.prog-body p { color: var(--muted); margin-top: 12px; }
.pill {
  align-self: flex-start; background: var(--navy-soft); color: var(--navy);
  padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; margin-bottom: 14px;
}

/* ----- Page hero (inner pages) ----- */
.page-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(249,185,15,.25), transparent 40%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white); padding: 80px 0 110px; position: relative; text-align: center; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -2px; height: 70px;
  background: var(--white); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: #d5deef; max-width: 620px; margin: 14px auto 0; }
.crumbs { font-size: .9rem; color: var(--gold); margin-bottom: 12px; }
.crumbs a { color: var(--gold); text-decoration: none; }

/* ----- Gallery (masonry) ----- */
.masonry {
  column-count: 3; column-gap: 18px;
}
.masonry-item {
  break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius); overflow: hidden;
  position: relative; box-shadow: var(--shadow); cursor: zoom-in; background: var(--navy-soft);
  display: block; width: 100%; border: 0; padding: 0;
}
.masonry-item img { width: 100%; height: auto; transition: transform .5s, filter .3s; }
.masonry-item::after {
  content: "View"; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,24,74,.7), transparent 55%);
  color: var(--white); display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 16px; font-weight: 600; opacity: 0; transition: opacity .3s;
}
.masonry-item:hover img { transform: scale(1.04); }
.masonry-item:hover::after, .masonry-item:focus-visible::after { opacity: 1; }
.masonry-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.lightbox {
  position: fixed; inset: 0; background: rgba(0, 12, 38, .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: 86vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox button {
  position: absolute; background: var(--gold); color: var(--navy); border: 0; border-radius: 50%;
  width: 48px; height: 48px; font-size: 1.4rem; cursor: pointer; font-weight: 700;
}
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ----- Contact ----- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start; }
.info-card {
  background: var(--navy); color: #dfe6f5; border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow-lg);
}
.info-card h2 { color: var(--white); font-size: 1.8rem; }
.info-item { display: flex; gap: 16px; margin-top: 24px; align-items: flex-start; }
.info-item .icon { margin: 0; flex: 0 0 52px; width: 52px; height: 52px; font-size: 1.3rem; }
.info-item strong { color: var(--gold); display: block; font-size: .85rem; letter-spacing: 1px; text-transform: uppercase; }
.info-item a { color: var(--white); text-decoration: none; overflow-wrap: anywhere; }
.info-item > div { min-width: 0; }
.info-item a:hover { color: var(--gold); }

.form-card {
  background: var(--white); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow);
  border-top: 5px solid var(--gold);
}
.form-card h2 { margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field label { font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  font: inherit; padding: 13px 15px; border: 2px solid #dde3ef; border-radius: 12px;
  background: #fbfcff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(249,185,15,.25);
}
.field .err { color: var(--crimson); font-size: .85rem; margin-top: 4px; display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--crimson); }
.field.invalid .err { display: block; }
.form-note { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.form-status {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px; display: none; font-weight: 500;
}
.form-status.show { display: block; }
.form-status.ok { background: #e8f7ee; color: #1b6b3a; }
.form-status.info { background: var(--navy-soft); color: var(--navy); }

.map-wrap {
  margin-top: 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 6px solid var(--white); outline: 2px solid var(--gold);
}
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }
.map-caption {
  background: var(--navy); color: var(--white); padding: 16px 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center;
}
.map-caption a { color: var(--gold); font-weight: 600; }

/* ----- Footer ----- */
.site-footer { background: var(--navy); color: #c9d3ea; padding: 70px 0 0; border-top: 5px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 46px; }
.site-footer h4 { color: var(--gold); font-size: 1rem; margin-bottom: 16px; letter-spacing: .5px; }
.site-footer h4 { color: var(--gold); }
.site-footer p, .site-footer li { font-size: .95rem; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: #c9d3ea; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 62px; height: 62px; object-fit: contain; background: var(--white); border-radius: 50%; padding: 3px; }
.footer-brand strong { color: var(--white); font-size: 1.05rem; display: block; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: .9rem;
}
.designed-by { color: #c9d3ea; }
.designed-by a { color: var(--gold); font-weight: 700; text-decoration: none; border-bottom: 1px dashed rgba(249,185,15,.5); }
.designed-by a:hover { border-bottom-style: solid; }

/* ----- Reveal animation ----- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Honeypot: off-screen for people, still present in the DOM for bots */
.hp-field { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  section { padding: 66px 0; }
  .hero-grid, .split, .contact-grid, .programme { grid-template-columns: minmax(0, 1fr); }
  .hero-grid > *, .split > *, .contact-grid > *, .programme > * { min-width: 0; }
  .split.reverse .split-media { order: 0; }
  .programme:nth-child(even) .prog-media { order: 0; }
  .hero-badge { width: 260px; margin-top: 10px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .masonry { column-count: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--navy);
    flex-direction: column; align-items: stretch; padding: 10px 16px 20px; gap: 4px;
    border-bottom: 3px solid var(--gold); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links .btn { text-align: center; }
  .nav { position: relative; }
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stats { margin-top: -40px; }
  .cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .prog-body { padding: 26px; }
  .info-card, .form-card { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .map-wrap iframe { height: 320px; }
}
@media (max-width: 520px) {
  .container { width: min(1140px, 100% - 32px); }
  .brand-text span { display: none; }
  .brand img { width: 50px; height: 50px; }
  .masonry { column-count: 1; }
  .photo-strip { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 100px; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
