:root {
  --mam-ink: #15120f;
  --mam-charcoal: #27211c;
  --mam-cream: #fffaf0;
  --mam-gold: #f1b522;
  --mam-red: #c9262e;
  --mam-green: #1d6b47;
  --mam-teal: #0f6f75;
  --mam-line: rgba(21, 18, 15, .13);
  --mam-line-soft: rgba(255, 255, 255, .18);
  --mam-shadow: 0 22px 70px rgba(21, 18, 15, .14);
  --mam-shadow-soft: 0 14px 40px rgba(21, 18, 15, .09);
}

* {
  letter-spacing: 0;
}

body {
  color: var(--mam-ink);
  background:
    linear-gradient(180deg, #fffdf8 0%, #f8f4ea 48%, #fffdf8 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--mam-red);
  text-decoration: none;
}

a:hover {
  color: #921820;
}

.fw-black {
  font-weight: 900;
}

.mam-navbar {
  padding: 1.1rem 0;
  background: linear-gradient(180deg, rgba(21, 18, 15, .36), rgba(21, 18, 15, .08));
  backdrop-filter: blur(18px);
  transition: background .25s ease, padding .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}

.mam-navbar .navbar-brand,
.mam-navbar .nav-link {
  color: #fff;
}

.mam-navbar .navbar-brand {
  position: relative;
  padding-bottom: .18rem;
  font-size: 1.18rem;
}

.mam-navbar .navbar-brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--mam-gold), var(--mam-red), var(--mam-green));
  transform: scaleX(.56);
  transform-origin: left;
  transition: transform .25s ease;
}

.mam-navbar .navbar-brand:hover::after {
  transform: scaleX(1);
}

.mam-navbar .nav-link {
  position: relative;
  padding-inline: .9rem;
  color: rgba(255, 255, 255, .82);
  font-weight: 800;
  transition: color .2s ease;
}

.mam-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .2rem;
  height: 2px;
  background: var(--mam-gold);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}

.mam-navbar .nav-link:hover,
.mam-navbar .nav-link:focus {
  color: #fff;
}

.mam-navbar .nav-link:hover::after,
.mam-navbar .nav-link:focus::after {
  opacity: 1;
  transform: translateY(0);
}

.mam-navbar .navbar-toggler {
  background: rgba(255, 255, 255, .88);
}

.mam-navbar.is-scrolled,
.mam-navbar:has(.navbar-collapse.show) {
  padding: .65rem 0;
  background: rgba(21, 18, 15, .9);
  border-bottom-color: rgba(241, 181, 34, .18);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .22);
}

.btn {
  border-radius: 8px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.btn-mam-primary {
  color: #1d1207;
  border-color: var(--mam-gold);
  background: linear-gradient(135deg, #ffd96a, var(--mam-gold));
  box-shadow: 0 16px 34px rgba(241, 181, 34, .3);
}

.btn-mam-primary:hover {
  color: #1d1207;
  border-color: #f6c747;
  transform: translateY(-1px);
}

.hero-section {
  min-height: 86vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center 42%;
  color: #fff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(100deg, rgba(21, 18, 15, .86) 0%, rgba(21, 18, 15, .58) 48%, rgba(21, 18, 15, .18) 100%),
    linear-gradient(180deg, rgba(21, 18, 15, .18), rgba(21, 18, 15, .42));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 7rem;
  padding-bottom: 5rem;
}

.eyebrow,
.section-kicker {
  margin-bottom: .85rem;
  color: var(--mam-red);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem .75rem;
  border: 1px solid rgba(241, 181, 34, .24);
  border-radius: 8px;
  color: #ffe194;
  background: rgba(21, 18, 15, .28);
  backdrop-filter: blur(10px);
}

.section-kicker.light {
  color: var(--mam-gold);
}

.display-title {
  max-width: 850px;
  margin-bottom: 1rem;
  font-size: clamp(4.2rem, 13vw, 9.5rem);
  line-height: .86;
  font-weight: 950;
  text-shadow: 0 10px 32px rgba(0, 0, 0, .34);
}

.hero-lead {
  max-width: 760px;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 8px 24px rgba(0, 0, 0, .44);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}

.section-pad {
  padding: 6rem 0;
}

.section-pad > .container {
  position: relative;
}

.section-title {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1;
  font-weight: 930;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 2rem;
}

.stats-row div {
  border: 1px solid rgba(21, 18, 15, .08);
  border-left: 4px solid var(--mam-gold);
  border-radius: 8px;
  padding: .85rem 1rem;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--mam-shadow-soft);
  backdrop-filter: blur(10px);
}

.stats-row strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.stats-row span {
  color: #6f6459;
  font-weight: 700;
}

.image-panel {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(21, 18, 15, .08);
  box-shadow: var(--mam-shadow);
  transform: rotate(.4deg);
}

.image-panel img {
  width: 100%;
  min-height: 440px;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

.image-panel:hover img {
  transform: scale(1.035);
}

.feature-band {
  padding: 4.5rem 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(39, 33, 28, .98), rgba(55, 36, 22, .96) 52%, rgba(23, 62, 50, .98)),
    linear-gradient(90deg, rgba(241, 181, 34, .08), rgba(201, 38, 46, .08));
  border-block: 1px solid rgba(255, 255, 255, .1);
}

.feature-card,
.doc-card,
.cta-panel,
.admin-card,
.metric-card,
.mam-form,
.login-card {
  border: 1px solid var(--mam-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--mam-shadow);
}

.feature-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 2rem;
  color: var(--mam-ink);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.feature-card::before,
.doc-card::before,
.timeline-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--mam-gold), var(--mam-red), var(--mam-green));
  opacity: .9;
}

.feature-card:hover,
.doc-card:hover,
.timeline-item:hover {
  transform: translateY(-4px);
  border-color: rgba(241, 181, 34, .34);
  box-shadow: 0 28px 80px rgba(21, 18, 15, .16);
}

.feature-card i {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--mam-red), #8d1a22);
  font-size: 1.35rem;
  box-shadow: 0 12px 24px rgba(201, 38, 46, .2);
}

.feature-card h3,
.doc-card h3 {
  font-size: 1.22rem;
  font-weight: 900;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.timeline-item {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid var(--mam-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--mam-shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.timeline-item span,
.doc-card span {
  display: inline-block;
  margin-bottom: .7rem;
  color: var(--mam-teal);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-item h3 {
  font-weight: 900;
}

.timeline-date {
  color: #6d6258;
  font-weight: 800;
}

.montreal-band {
  padding: 5.5rem 0;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(21, 18, 15, .96), rgba(29, 107, 71, .9)),
    url('../img/mamafrika-hero.jpeg') center/cover;
  border-block: 1px solid rgba(241, 181, 34, .18);
}

.montreal-band h2 {
  max-width: 760px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: .98;
  font-weight: 940;
}

.montreal-band p {
  color: rgba(255, 255, 255, .82);
  font-size: 1.08rem;
}

.cta-panel {
  padding: 2rem;
  color: var(--mam-ink);
  border-color: rgba(241, 181, 34, .24);
}

.cta-panel p {
  color: #6d6258;
}

.documents-section {
  background:
    linear-gradient(180deg, #f7f3e9, #eef3ed 100%);
}

.doc-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 1.5rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.doc-card > i {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--mam-green), var(--mam-teal));
  font-size: 1.25rem;
}

.doc-card p {
  min-height: 96px;
  color: #6d6258;
}

.doc-card a {
  font-weight: 900;
}

.site-footer {
  padding: 3.5rem 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(21, 18, 15, .98), rgba(28, 48, 38, .98));
  border-top: 1px solid rgba(241, 181, 34, .18);
}

.form-page {
  background: #f8f5ed;
}

.content-page {
  background: #fffdf8;
}

.content-hero {
  min-height: 58vh;
  display: flex;
  align-items: end;
  padding: 9rem 0 4.5rem;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.content-hero h1 {
  max-width: 960px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: .92;
  font-weight: 950;
  text-shadow: 0 12px 36px rgba(0, 0, 0, .32);
}

.content-hero p:last-child {
  max-width: 800px;
  color: rgba(255, 255, 255, .86);
  font-size: 1.18rem;
}

.soft-band {
  background: linear-gradient(180deg, #f6f1e8, #eef4ed);
}

.content-panel,
.program-card,
.contact-card {
  height: 100%;
  padding: 2rem;
  border: 1px solid var(--mam-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--mam-shadow-soft);
}

.content-panel h2,
.content-panel h3,
.program-card h3,
.contact-card h2 {
  font-weight: 930;
}

.narrative-block {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-left: 6px solid var(--mam-gold);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--mam-shadow);
}

.narrative-block h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: .96;
  font-weight: 950;
}

.program-card {
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--mam-gold), var(--mam-red));
}

.program-card span {
  display: inline-block;
  margin-bottom: .8rem;
  color: var(--mam-teal);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.program-card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.program-card li {
  margin-bottom: .45rem;
}

.timeline.compact {
  grid-template-columns: 1fr;
}

.contact-card i {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--mam-red), var(--mam-green));
  font-size: 1.35rem;
}

.form-hero {
  padding: 8.5rem 0 4rem;
  color: #fff;
  background: linear-gradient(100deg, rgba(21, 18, 15, .92), rgba(201, 38, 46, .68)), url('../img/mamafrika-costumes.jpeg') center/cover;
}

.form-hero h1 {
  max-width: 850px;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: .96;
  font-weight: 950;
}

.form-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, .84);
  font-size: 1.15rem;
}

.mam-form {
  padding: 2rem;
}

.registration-wizard {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, .72);
}

.form-section {
  padding: 1.4rem;
  border: 1px solid rgba(21, 18, 15, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
}

.form-section-heading {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.form-section-heading > span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #1d1207;
  background: linear-gradient(135deg, #ffe28a, var(--mam-gold));
  font-weight: 950;
}

.form-section-heading h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 930;
}

.form-section-heading p {
  margin: .15rem 0 0;
  color: #75695f;
}

.form-control,
.form-select {
  border-radius: 8px;
  border-color: rgba(21, 18, 15, .18);
  min-height: 46px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--mam-gold);
  box-shadow: 0 0 0 .22rem rgba(241, 181, 34, .22);
}

.choice-grid {
  display: grid;
  gap: .65rem;
}

.choice-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-pill,
.check-line {
  display: flex;
  gap: .6rem;
  align-items: center;
  min-height: 46px;
  margin: 0;
  padding: .7rem .8rem;
  border: 1px solid rgba(21, 18, 15, .14);
  border-radius: 8px;
  background: #fff;
  font-weight: 780;
}

.choice-pill input,
.check-line input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--mam-red);
}

.choice-pill:has(input:checked),
.check-line:has(input:checked) {
  border-color: rgba(201, 38, 46, .34);
  background: #fff5e4;
  box-shadow: 0 8px 20px rgba(201, 38, 46, .08);
}

.mini-group {
  height: 100%;
  padding: 1rem;
  border: 1px solid rgba(21, 18, 15, .1);
  border-radius: 8px;
  background: #fffaf0;
}

.mini-group h3 {
  font-size: .95rem;
  font-weight: 930;
}

.mini-group .check-line {
  min-height: 0;
  margin-top: .5rem;
  padding: .55rem .65rem;
  font-size: .94rem;
}

.consent-line {
  margin-bottom: .65rem;
}

.sticky-aside {
  position: sticky;
  top: 6rem;
}

.choir-fields {
  display: none;
  padding: 1rem;
  border-radius: 8px;
  background: #f7efe5;
}

.choir-fields.is-open {
  display: block;
}

.contact-strip {
  padding: 1.25rem;
  border-left: 5px solid var(--mam-gold);
  background: #fff;
  box-shadow: var(--mam-shadow);
}

.contact-strip p {
  margin-bottom: .65rem;
  font-weight: 750;
}

.contact-strip p:last-child {
  margin-bottom: 0;
}

.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, var(--mam-ink), #263c31);
}

.login-card {
  width: min(100%, 430px);
  padding: 2rem;
}

.login-card h1 {
  font-weight: 950;
}

.admin-body {
  background: #f4f2ed;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.5rem;
  color: #fff;
  background: var(--mam-ink);
}

.admin-brand {
  display: block;
  margin-bottom: 2rem;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 950;
}

.admin-menu {
  display: grid;
  gap: .4rem;
}

.admin-menu a {
  display: flex;
  gap: .7rem;
  align-items: center;
  padding: .78rem .85rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, .78);
  font-weight: 800;
}

.admin-menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.admin-main {
  min-width: 0;
  padding: 1.5rem;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--mam-line);
  border-radius: 8px;
  background: #fff;
}

.admin-page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-page-title h1 {
  margin: 0;
  font-weight: 950;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.admin-card,
.metric-card {
  padding: 1.25rem;
}

.metric-card span {
  display: block;
  color: #74685e;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 950;
}

.status-pill {
  display: inline-flex;
  padding: .25rem .55rem;
  border-radius: 8px;
  background: #f3ead9;
  color: #6a4100;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-table td {
  vertical-align: middle;
}

.registration-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: .5rem;
}

.registration-details > div {
  padding: 1rem;
  border: 1px solid rgba(21, 18, 15, .08);
  border-radius: 8px;
  background: #fff;
}

.registration-details h3 {
  margin-bottom: .75rem;
  color: var(--mam-red);
  font-size: .9rem;
  font-weight: 950;
  text-transform: uppercase;
}

.registration-details p {
  margin-bottom: .45rem;
}

@media (max-width: 991.98px) {
  .timeline {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .section-pad {
    padding: 4rem 0;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .display-title {
    font-size: clamp(3rem, 16vw, 4.7rem);
  }

  .hero-section::before {
    background: linear-gradient(90deg, rgba(21, 18, 15, .72), rgba(21, 18, 15, .5)), linear-gradient(180deg, rgba(21, 18, 15, .18), rgba(21, 18, 15, .42));
  }

  .hero-actions .btn {
    width: 100%;
  }

  .mam-form {
    padding: 1.25rem;
  }

  .registration-wizard {
    padding: .65rem;
  }

  .form-section {
    padding: 1rem;
  }

  .form-section-heading {
    flex-direction: column;
  }

  .choice-grid.two,
  .choice-grid.three,
  .registration-details {
    grid-template-columns: 1fr;
  }

  .content-hero {
    min-height: 52vh;
    padding: 8rem 0 3rem;
  }

  .admin-page-title,
  .admin-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-menu {
    grid-template-columns: 1fr;
  }
}
