:root {
  --ink: #151318;
  --muted: #625c66;
  --line: #e9e2e8;
  --paper: #ffffff;
  --soft: #fbf7fa;
  --charcoal: #201a22;
  --magenta: #e31d86;
  --magenta-dark: #b91469;
  --teal: #00a6a6;
  --amber: #f4b33d;
  --lime: #8cc63f;
  --red: #ef5350;
  --lavender: #9b7ede;
  --shadow: 0 18px 46px rgba(21, 19, 24, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(233, 226, 232, 0.9);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-logo {
  width: clamp(172px, 19vw, 246px);
  height: auto;
  object-fit: contain;
}

.site-footer .brand-logo {
  padding: 8px 10px;
  background: #fff;
  border-radius: var(--radius);
}

.footer-cert-logos {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cert-logo {
  display: block;
  width: 130px;
  height: 87px;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.footer-cert-logo:hover {
  transform: scale(1.08);
}

.footer-cert-logo:hover {
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 6px 20px rgba(104, 36, 107, 0.45);
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
  border-radius: 50%;
  background: conic-gradient(from 20deg, var(--magenta), var(--teal), var(--amber), var(--magenta));
  box-shadow: 0 12px 28px rgba(227, 29, 134, 0.24);
}

.brand-main {
  display: block;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand-sub {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.nav-toggle {
  position: relative;
  z-index: 70;
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(227, 29, 134, 0.35);
  background: var(--charcoal);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(21, 19, 24, 0.08);
  transition: transform 180ms ease, border-color 180ms ease;
}

.nav-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(227, 29, 134, 0.46);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  content: "";
}

.nav-toggle span::before {
  transform: translateY(-7px);
}

.nav-toggle span::after {
  transform: translateY(5px);
}

.nav-links {
  position: static;
  z-index: 60;
  width: auto;
  max-height: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transform-origin: center;
  transition: none;
}

.nav-links.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.nav-links a {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #3f3943;
  background: transparent;
  font-size: 0.94rem;
  font-weight: 880;
  line-height: 1.2;
  box-shadow: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-links a::after {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 5px;
  height: 2px;
  background: var(--magenta);
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
  content: "";
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--magenta-dark);
  background: #fff1f8;
  transform: translateY(-2px);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-links .nav-cta {
  color: #fff;
  background: var(--magenta);
  margin-left: 0;
  box-shadow: 0 10px 24px rgba(227, 29, 134, 0.22);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta.is-active {
  color: #fff;
  background: var(--magenta-dark);
}

.nav-links .nav-cta::after {
  background: #fff;
}

/* Facebook link in the top bar. Icon-only on desktop; the label is
   revealed on mobile, where it sits in the dropdown beside the text links. */
.nav-links .nav-social {
  flex: 0 0 auto;
  width: 44px;
  padding: 0;
  justify-content: center;
  color: var(--magenta-dark);
  border-color: var(--line);
}

.nav-links .nav-social svg {
  width: 21px;
  height: 21px;
  display: block;
}

.nav-links .nav-social:hover {
  color: #fff;
  background: var(--magenta);
  border-color: var(--magenta);
}

/* The sliding underline belongs to the text links, not the icon. */
.nav-links .nav-social::after {
  display: none;
}

.nav-social-label {
  display: none;
}

@media (max-width: 1060px) {
  .nav-links .nav-social {
    width: auto;
    gap: 12px;
    padding: 14px 16px;
    justify-content: flex-start;
  }

  .nav-social-label {
    display: inline;
  }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  line-height: 1.1;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--magenta);
  box-shadow: 0 16px 34px rgba(227, 29, 134, 0.26);
}

.btn-primary:hover {
  background: var(--magenta-dark);
}

.btn-secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

/* Pink outline on transparent — for secondary actions sitting on the dark hero. */
.btn-outline {
  color: #fff;
  background: transparent;
  border-color: var(--magenta);
}

.btn-outline:hover {
  background: var(--magenta);
  border-color: var(--magenta);
}

.btn-dark {
  color: #fff;
  background: var(--charcoal);
}

.btn-small {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 0.88rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--magenta-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 3px;
  background: var(--magenta);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

/* Book-style justified body copy. Headings, buttons, and any centred
   block (.section-head.center, .event-date, .choice) stay as they are. */
.split p,
.section-head:not(.center) p,
.page-hero p,
.feature-card p,
.class-card p,
.card-body p,
.price-card p,
.c-card p,
.sticky-panel p,
.cta-band p,
.faq-answer,
.faq-answer p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Narrow columns produce rivers of whitespace when justified, so ragged
   right reads better on phones. */
@media (max-width: 640px) {
  .split p,
  .section-head:not(.center) p,
  .page-hero p,
  .feature-card p,
  .class-card p,
  .card-body p,
  .price-card p,
  .c-card p,
  .sticky-panel p,
  .cta-band p,
  .faq-answer,
  .faq-answer p {
    text-align: left;
    hyphens: manual;
    -webkit-hyphens: manual;
  }
}

h1,
.hero-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0;
  margin-bottom: 20px;
  max-width: 100%;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
  margin-bottom: 14px;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.18;
  margin-bottom: 10px;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.03rem, 1.7vw, 1.22rem);
}

.section {
  padding: 86px 0;
}

.section-soft {
  background: var(--soft);
}

.section-dark {
  color: #fff;
  background: var(--charcoal);
}

.section-dark .lead,
.section-dark p,
.section-dark .muted {
  color: rgba(255, 255, 255, 0.74);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.center .eyebrow::before {
  display: none;
}

.hero {
  position: relative;
  min-height: 86svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--charcoal);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(to top, rgba(32, 26, 34, 0.94), transparent);
  content: "";
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transform-origin: 50% 20%;
  transition: opacity 900ms ease, transform 5200ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep faces in frame: photos have subjects in the upper portion */
  object-position: 50% 20%;
  transform-origin: 50% 20%;
}

/* Group photo: heads sit right at the top edge of the image */
.hero-slide:first-child img {
  object-position: 50% 0%;
  transform-origin: 50% 0%;
}

.hero-slide.is-active img {
  animation: heroBreath 8s ease-in-out forwards;
}

@keyframes heroBreath {
  from { transform: scale(1.02); }
  to { transform: scale(1.06); }
}

.hero-rad-logo {
  position: absolute;
  top: 28px;
  left: 32px;
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 50%;
  z-index: 3;
  opacity: 0.95;
  animation: statFadeUp 0.8s ease 0.7s both;
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.hero-rad-logo:hover {
  opacity: 1;
  transform: scale(1.06) rotate(6deg);
}

.hero-cert-logos {
  position: absolute;
  top: 208px;
  bottom: 28px;
  left: 32px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  animation: statFadeUp 0.8s ease 0.7s both;
}

.hero-cert-logo {
  width: 190px;
  height: 127px;
  object-fit: contain;
  opacity: 0.95;
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.hero-cert-logo:hover {
  opacity: 1;
  transform: scale(1.06);
}

/* The hero badges are absolutely positioned in the left gutter, so they only
   work while that gutter is wider than they are. The badges end at 222px
   (left: 32px + 190px wide); .hero-content is min(900px, 100% - 32px) centred,
   so its left edge sits at (100vw - 900px) / 2, which only clears 222px from
   1344px up. Any narrower and the badges sit on top of the headline, buttons,
   and stats.

   Below that width they are hidden rather than shrunk: the hero already says
   "RAD certified" and "AIDT certified" in the pills above the headline, and
   the footer carries all four badge images on every page, so nothing is lost. */
@media (max-width: 1343px) {
  .hero-rad-logo,
  .hero-cert-logos {
    display: none;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 18%, rgba(0, 166, 166, 0.34), transparent 24%),
    linear-gradient(90deg, rgba(32, 26, 34, 0.88), rgba(32, 26, 34, 0.42) 48%, rgba(32, 26, 34, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 124px 0 74px;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  max-width: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 6px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 840;
  line-height: 1.1;
  white-space: normal;
}

.hero .pill {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  flex: 0 0 auto;
}

.hero-text {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.stat {
  flex: 1 1 140px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  cursor: default;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  animation: statFadeUp 0.6s ease both;
}

.stat:nth-child(1) { animation-delay: 0.15s; }
.stat:nth-child(2) { animation-delay: 0.28s; }
.stat:nth-child(3) { animation-delay: 0.41s; }
.stat:nth-child(4) { animation-delay: 0.54s; }

.stat:hover {
  transform: translateY(-5px) scale(1.03);
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--magenta);
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.25);
}

.stat strong {
  display: block;
  font-size: 1.38rem;
  line-height: 1;
  transition: color 0.3s ease;
}

.stat:hover strong {
  color: var(--magenta);
}

.stat span {
  color: rgba(255, 255, 255, 0.73);
  font-size: 0.84rem;
}

@keyframes statFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.style-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.style-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-left: 1px solid var(--line);
}

.style-track a,
.style-track span {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-right: 1px solid var(--line);
  color: #342f37;
  font-weight: 900;
  text-align: center;
}

.style-track a:hover {
  color: #fff;
  background: var(--magenta);
}

.grid {
  display: grid;
  gap: 24px;
  min-width: 0;
}

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

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

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

.card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(21, 19, 24, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover {
  border-color: rgba(227, 29, 134, 0.24);
  box-shadow: 0 24px 58px rgba(21, 19, 24, 0.14);
  transform: translateY(-6px);
}

.card-body {
  padding: 22px;
}

.card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
  transition: transform 520ms ease;
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-img.contain-img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  padding: 10px;
}

.card:hover .card-img.contain-img {
  transform: scale(1.02);
}

.feature-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: var(--magenta);
  border-radius: 50%;
  font-weight: 900;
}

/* Keeps icon, heading, and body rows on a shared baseline across cards even
   when one heading wraps to more lines than its neighbours. */
.feature-grid .feature-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  row-gap: 0;
}

.class-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.class-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.class-card p {
  color: var(--muted);
}

.class-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.class-actions,
.class-card .card-body > .btn {
  margin-top: auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 44px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
}

.image-stack {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 14px;
  align-items: end;
}

.image-stack img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.image-stack img:first-child {
  aspect-ratio: 4 / 5;
}

.image-stack img:last-child {
  aspect-ratio: 3 / 4;
  margin-bottom: 42px;
}

.accent-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.accent-list li {
  display: flex;
  gap: 11px;
  color: var(--muted);
}

.accent-list li::before {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  margin-top: 10px;
  background: var(--teal);
  border-radius: 50%;
  content: "";
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 34px;
}

.filter-btn {
  min-height: 40px;
  padding: 9px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 850;
}

.filter-btn.is-active,
.filter-btn:hover {
  color: #fff;
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.page-hero {
  color: #fff;
  background: var(--charcoal);
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.56fr);
  gap: 34px;
  align-items: end;
  min-height: 430px;
  padding: 78px 0 54px;
}

.page-hero h1 {
  max-width: 790px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  overflow-wrap: break-word;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.76);
  max-width: 760px;
}

.page-hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.breadcrumbs {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  font-weight: 760;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 45px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--magenta);
  box-shadow: 0 0 0 4px rgba(227, 29, 134, 0.12);
}

.class-card.is-hidden,
.gallery-item.is-hidden {
  display: none;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 22px;
}

.timeline::before {
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
  content: "";
}

.timeline-item {
  position: relative;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.timeline-item::before {
  position: absolute;
  left: -22px;
  top: 24px;
  width: 12px;
  height: 12px;
  background: var(--magenta);
  border-radius: 50%;
  content: "";
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.price-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.price-card.featured {
  border-color: rgba(227, 29, 134, 0.45);
  box-shadow: var(--shadow);
}

.price {
  margin: 10px 0 16px;
  font-size: 2rem;
  font-weight: 950;
}

.price span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 3/4;
  padding: 0;
  overflow: hidden;
  background: #000;
  border: 0;
  border-radius: var(--radius);
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  transition: transform 260ms ease, opacity 260ms ease;
}

.gallery-item:hover img {
  opacity: 0.82;
  transform: scale(1.04);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(21, 19, 24, 0.86);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-height: 82vh;
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lightbox button {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
}

.event-list {
  display: grid;
  gap: 18px;
}

.event-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.event-date {
  padding: 16px;
  color: #fff;
  background: var(--charcoal);
  border-radius: var(--radius);
  text-align: center;
  font-weight: 900;
}

.event-date span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.post-list {
  display: grid;
  gap: 16px;
}

.post-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.post-link .post-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--magenta);
  border-radius: 50%;
  font-weight: 900;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.choice {
  position: relative;
  display: flex;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: flex;
  flex: 1;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

.choice input:checked + span {
  color: #fff;
  background: var(--magenta);
  border-color: var(--magenta);
}

.questionnaire-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  gap: 28px;
  align-items: start;
}

.sticky-panel {
  position: sticky;
  top: 98px;
  padding: 24px;
  background: var(--charcoal);
  color: #fff;
  border-radius: var(--radius);
}

.sticky-panel p {
  color: rgba(255, 255, 255, 0.74);
}

.result-box {
  min-height: 160px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
}

.result-box ul {
  padding-left: 18px;
}

.contact-panel {
  padding: 28px;
  color: #fff;
  background: var(--charcoal);
  border-radius: var(--radius);
}

.contact-panel a {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* Buttons in the dark panel keep their own colors, not the white link color */
.contact-panel a.btn {
  text-decoration: none;
}

.contact-panel a.btn-secondary {
  color: var(--ink);
}

.faq {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.faq-question {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-weight: 900;
}

.faq-answer {
  display: none;
  padding: 0 18px 18px;
  color: var(--muted);
}

.faq-item.is-open .faq-answer {
  display: block;
}

.cta-band {
  padding: 44px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(227, 29, 134, 0.95), rgba(0, 166, 166, 0.9)),
    var(--magenta);
  border-radius: var(--radius);
}

.cta-band h2 {
  max-width: 740px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  overflow-wrap: break-word;
}

.cta-band .eyebrow {
  color: #fff;
}

.cta-band .eyebrow::before {
  background: rgba(255, 255, 255, 0.7);
}

/* Testimonial carousel. The quote is centred to match the section heading
   above it, and deliberately left ragged-right — justifying a short centred
   pull-quote opens gaps between words. */
.testimonials {
  text-align: center;
}

.testimonial {
  max-width: 780px;
  margin: 0 auto;
}

.testimonial .lead {
  margin-bottom: 14px;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.5;
}

.testimonial p:last-child {
  margin-bottom: 0;
  font-size: 0.94rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-dark .testimonial p:last-child {
  color: rgba(255, 255, 255, 0.55);
}

/* The button is a 44px touch target; the visible dot is the ::before. */
.testimonial-dot {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
}

/* Inactive is a dot; the active one stretches into a pill, so the current
   slide reads at a glance rather than relying on colour alone. */
.testimonial-dot::before {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  transition: width 260ms ease, background 200ms ease;
  content: "";
}

.testimonial-dot:hover::before {
  background: rgba(255, 255, 255, 0.6);
}

.testimonial-dot.is-active::before {
  width: 34px;
  background: var(--magenta);
}

.muted {
  color: var(--muted);
}

.site-footer {
  margin-top: 40px;
  padding: 88px 0 24px;
  color: #fff;
  background: #171217;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 32px;
  padding: 10px;
}

.footer-grid h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: grid;
  gap: 7px;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

@media (max-width: 1060px) {
  .nav {
    justify-content: flex-start;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: fixed;
    top: 86px;
    right: 16px;
    width: min(390px, calc(100vw - 32px));
    max-height: calc(100svh - 116px);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px;
    overflow-y: auto;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 251, 0.98)),
      #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 28px 80px rgba(21, 19, 24, 0.24);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px) scale(0.97);
    transform-origin: top right;
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-links a {
    min-height: 56px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    font-size: 1.04rem;
    box-shadow: 0 10px 22px rgba(21, 19, 24, 0.04);
  }

  .nav-links a::after {
    left: 16px;
    right: 16px;
    bottom: 8px;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .split,
  .split.reverse,
  .page-hero-inner,
  .questionnaire-layout {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    max-width: 13ch;
  }

  .page-hero p {
    max-width: 38ch;
  }

  .sticky-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 62px 0;
  }

  .hero {
    min-height: 86svh;
  }

  .hero-content {
    padding: 86px 0 48px;
  }

  .hero-kicker .pill {
    flex: 0 1 min(100%, 270px);
    justify-content: center;
    text-align: center;
  }

  .hero-text {
    max-width: 32ch;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .pricing-grid,
  .footer-grid,
  .form-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

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

  .page-hero-inner {
    min-height: 0;
    padding: 56px 0 38px;
  }

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

  .cta-band {
    padding: 28px;
  }

  .brand-sub {
    display: none;
  }

  /* Tap targets: everything touchable gets to 44px, the minimum a
     fingertip can hit reliably. */
  .footer-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .btn-small {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 0.94rem;
  }

  /* Small print is harder to read on a phone held at arm's length. */
  .breadcrumbs {
    font-size: 0.92rem;
  }

  .eyebrow {
    font-size: 0.88rem;
  }

  .pill {
    font-size: 0.9rem;
  }

  .field label {
    font-size: 0.88rem;
  }

  .stat span {
    font-size: 0.88rem;
  }

  .footer-bottom {
    font-size: 0.92rem;
  }

  /* 2 x 2 rather than four squeezed into one row. */
  .footer-cert-logo {
    width: min(130px, calc(50% - 20px));
    height: auto;
    aspect-ratio: 130 / 87;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(var(--max), calc(100% - 24px));
  }

  .hero-title,
  h1 {
    font-size: 2.55rem;
  }

  .page-hero h1 {
    max-width: 12ch;
  }

  .page-hero p {
    max-width: 31ch;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
