/* =========================================================
   DEAF SPACES - High-Contrast Community Public Service Theme
   Inspired by Royal Association for Deaf People (RAD)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  --rad-navy: #0A0E24;       /* Brand navy */
  --rad-blue: #6E27D6;       /* Brand violet (formerly action blue) */
  --rad-gold: #6E27D6;       /* Brand violet (formerly high-vis gold) */
  --rad-gold-hover: #561EB1; /* Darker violet for hover states */
  
  /* High-Contrast Light Backdrops */
  --rad-bg-page: #FFFFFF;
  --rad-bg-light: #F0F4F8;   /* Soft accessible blue-grey panel */
  --rad-bg-white: #FFFFFF;
  --rad-text: #0C1520;       /* Deep high-contrast body text */
  --rad-muted: #434D56;      /* Accessible secondary body text */
  --rad-line: #D0D8E0;       /* Structured borders */
  --rad-line-strong: #0A0E24;
  
  --rad-green: #1FA82C;      /* Brand green */
  --rad-magenta: #DD1888;    /* Brand magenta */
  
  --font-headings: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, sans-serif;
  
  --radius-sm: 4px;          /* Crisp structured corners */
  --radius-md: 8px;
  --radius-lg: 12px;
  --border-thick: 4px;
  --maxw: 1200px;
  --transition: 0.2s ease-in-out;
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--rad-text);
  background: var(--rad-bg-page);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--rad-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--transition);
}
a:hover {
  color: var(--rad-navy);
}

/* Accessibility Skip and Focus */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--rad-gold);
  color: #fff;
  padding: 14px 20px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  left: 0;
}
*:focus-visible {
  outline: 4px solid var(--rad-navy);
  outline-offset: 2px;
}

/* Top Utility Accessibility Bar */
.util-bar {
  background: var(--rad-bg-light);
  border-bottom: 1px solid var(--rad-line);
  font-size: 0.85rem;
  color: var(--rad-navy);
  padding: 8px 0;
}
.util-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.util-left, .util-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.util-btn {
  background: none;
  border: 0;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--rad-navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.util-btn:hover {
  text-decoration: underline;
}

/* Layout Wrappers */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--rad-line);
}
.section:last-of-type {
  border-bottom: 0;
}
.section.tight {
  padding: 48px 0;
}

/* Typography elements */
h1, h2, h3, h4 {
  font-family: var(--font-headings);
  color: var(--rad-navy);
  font-weight: 800;
  line-height: 1.2;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
  font-weight: 700;
}
.lead {
  font-size: 1.2rem;
  color: var(--rad-muted);
  max-width: 68ch;
}
.eyebrow {
  display: inline-block;
  background: var(--rad-navy);
  color: #fff;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.eyebrow.gold {
  background: var(--rad-gold);
  color: #fff;
}

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

/* Accessible Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), transform 0.1s ease;
  white-space: nowrap;
}
.btn-green, .btn-gold {
  background: var(--rad-gold);
  color: #fff;
  border-color: var(--rad-gold);
}
.btn-green:hover, .btn-gold:hover {
  background: var(--rad-navy);
  color: #fff;
  border-color: var(--rad-navy);
}
.btn-violet, .btn-navy {
  background: var(--rad-navy);
  color: #fff;
  border-color: var(--rad-navy);
}
.btn-violet:hover, .btn-navy:hover {
  background: #050712;
  border-color: #050712;
}
.btn-ghost {
  background: transparent;
  color: var(--rad-navy);
  border: 2px solid var(--rad-navy);
}
.btn-ghost:hover {
  background: var(--rad-navy);
  color: #fff;
}
.btn-sm {
  padding: 10px 22px;
  font-size: 0.88rem;
}

/* Header & Navigation Area */
header {
  background: var(--rad-bg-white);
  border-bottom: 4px solid var(--rad-navy);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--rad-navy);
  text-decoration: none;
}
.gem {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--rad-navy);
  text-decoration: none;
  padding: 6px 0;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--rad-blue);
  border-bottom: 3px solid var(--rad-gold);
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--rad-navy);
  margin: 5px 0;
}

/* Page Hero Header Block */
.page-hero {
  background: var(--rad-bg-light);
  border-bottom: 2px solid var(--rad-line);
  padding: 48px 0;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  margin-top: 8px;
}
.crumbs {
  font-size: 0.85rem;
  color: var(--rad-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  gap: 8px;
  align-items: center;
}
.crumbs a {
  color: var(--rad-muted);
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}

/* RAD-Inspired Services Showcase Hero */
.hero {
  background: var(--rad-navy);
  color: #fff;
  padding: 64px 0;
  border-bottom: var(--border-thick) solid var(--rad-gold);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-content h1 {
  color: #fff;
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
}
.hero-content h1 span.hi {
  border-bottom: 4px solid var(--rad-gold);
  color: #fff;
}
.hero-content p.lead {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: #fff;
}
.hero-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rad-gold);
}
.bsl-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.bsl-inline .play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rad-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bsl-inline .play svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

/* Image Showcase Pane */
.showcase-pane {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 4px solid #fff;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.showcase-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 14, 36, 0.95);
  color: #fff;
  padding: 16px;
  font-size: 0.9rem;
}
.showcase-caption p {
  color: rgba(255, 255, 255, 0.85);
}

/* Trust Row Block */
.trust {
  background: var(--rad-bg-light);
  border-bottom: 2px solid var(--rad-line);
}
.trust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--rad-navy);
}
.trust-item svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.trust-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--rad-navy);
  border: 2px solid var(--rad-navy);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

/* Stat Grid */
.strip {
  background: var(--rad-bg-light);
  border-bottom: 1px solid var(--rad-line);
  padding: 36px 0;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.strip .n {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--rad-navy);
  line-height: 1;
}
.strip .t {
  font-size: 0.9rem;
  color: var(--rad-muted);
  font-weight: 700;
  margin-top: 4px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.about-points {
  display: grid;
  gap: 24px;
}
.point {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--rad-bg-light);
  border-left: 5px solid var(--rad-navy);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.point h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.point p {
  font-size: 0.95rem;
}

/* Service Blocks (Chunky & Structured) */
.serv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.serv {
  background: var(--rad-bg-white);
  border: 2px solid var(--rad-line);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.serv:nth-child(1) { border-top: 6px solid var(--rad-green); }
.serv:nth-child(2) { border-top: 6px solid var(--rad-magenta); }
.serv:nth-child(3) { border-top: 6px solid var(--rad-gold); }

.serv .ic {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.serv:nth-child(1) .ic { color: var(--rad-green); }
.serv:nth-child(2) .ic { color: var(--rad-magenta); }
.serv:nth-child(3) .ic { color: var(--rad-gold); }

.serv h3 {
  margin-bottom: 10px;
}
.serv p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}
.serv .more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Course Catalogue Grid */
.course-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.course {
  background: var(--rad-bg-white);
  border: 2px solid var(--rad-line);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.course .lvl {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.course.c1 { border-top: var(--border-thick) solid var(--rad-green); }
.course.c1 .lvl { color: var(--rad-green); }
.course.c2 { border-top: var(--border-thick) solid var(--rad-magenta); }
.course.c2 .lvl { color: var(--rad-magenta); }
.course.c3 { border-top: var(--border-thick) solid var(--rad-gold); }
.course.c3 .lvl { color: var(--rad-gold); }

.badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--rad-gold);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rad-line-strong);
}
.course h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.price {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--rad-navy);
  margin-top: 8px;
}
.price .was {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--rad-muted);
  text-decoration: line-through;
  margin-left: 6px;
}
.price-note {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rad-magenta);
  margin-bottom: 16px;
}
.course ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}
.course li {
  display: flex;
  gap: 8px;
  font-size: 0.95rem;
}
.course li svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 4px;
}
.course .btn {
  margin-top: auto;
  justify-content: center;
}

/* Accessible Agenda List (Dates Preview) */
.dates-band {
  background: var(--rad-bg-light);
}
.date-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.date-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--rad-bg-white);
  border: 2px solid var(--rad-line);
  border-radius: var(--radius-md);
  padding: 20px;
}
.date-when {
  display: flex;
  flex-direction: column;
}
.date-when .d {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--rad-navy);
  line-height: 1;
}
.date-when .mo {
  font-size: 0.8rem;
  color: var(--rad-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 2px;
}
.date-info h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.date-info .meta {
  font-size: 0.9rem;
  color: var(--rad-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.date-info .mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.date-info .mode .pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.mode.zoom .pip { background: var(--rad-navy); }
.mode.inperson .pip { background: var(--rad-green); }
.mode.advice .pip { background: var(--rad-magenta); }

/* Structured Organization Profiles */
.team-stack {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}
.member {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--rad-line);
  background: var(--rad-bg-white);
}
.member .row {
  display: grid;
  grid-template-columns: 200px 1fr;
}
.member .photo {
  background: var(--rad-bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--rad-navy);
  padding: 32px 16px;
  border-right: 2px solid var(--rad-line);
}
.member .photo svg {
  width: 48px;
  height: 48px;
  opacity: 0.8;
}
.member .photo .ph-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.member .info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.member .info h3 {
  font-size: 1.4rem;
  margin-bottom: 2px;
}
.member .info .role {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: var(--rad-magenta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.member .info .bio {
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.member .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  border-top: 1px solid var(--rad-line);
  padding-top: 12px;
  font-size: 0.85rem;
}
.member .pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: var(--rad-navy);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: 4px;
}

/* Structured Testimonials */
.tm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.tm {
  background: var(--rad-bg-white);
  border: 2px solid var(--rad-line);
  border-radius: var(--radius-md);
  padding: 28px;
}
.tm .quote {
  font-family: var(--font-headings);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--rad-gold);
}
.tm p {
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 16px;
}
.tm .who {
  font-weight: 700;
  color: var(--rad-navy);
  font-size: 0.95rem;
}
.tm .who span {
  display: block;
  font-weight: 400;
  color: var(--rad-muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

/* Standardized accessible inputs */
form {
  background: var(--rad-bg-white);
  border: 2px solid var(--rad-line-strong);
  border-radius: var(--radius-md);
  padding: 32px;
}
.field {
  margin-bottom: 16px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label {
  display: block;
  font-weight: 700;
  color: var(--rad-navy);
  margin-bottom: 4px;
  font-size: 0.85rem;
  text-transform: uppercase;
}
input, textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--rad-text);
  padding: 10px 12px;
  border: 2px solid var(--rad-line);
  border-radius: var(--radius-sm);
  background: var(--rad-bg-white);
}
input::placeholder, textarea::placeholder {
  color: var(--rad-muted);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--rad-navy);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230A0E24' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
textarea {
  resize: vertical;
  min-height: 100px;
}

/* Call to Action Band */
.cta-band {
  background: var(--rad-navy);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 {
  color: #fff;
  margin-bottom: 6px;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 55ch;
}

/* Clean, Organized Footer */
footer {
  background: var(--rad-navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 54px 0 24px;
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-headings);
  font-weight: 800;
  color: #fff;
  font-size: 1.3rem;
}
.foot-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.foot-col h4 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: var(--font-headings);
}
.foot-col a, .foot-col p {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.foot-col a:hover {
  text-decoration: underline;
  color: #fff;
}
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 36px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Floating Language Widget */
.bsl-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rad-gold);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 16px;
  border: 2px solid var(--rad-navy);
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: background var(--transition), transform var(--transition);
}
.bsl-fab:hover {
  background: var(--rad-navy);
  color: #fff;
}
.bsl-fab .hands {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bsl-fab .hands svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* Courses detail styles */
.course-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.cd {
  background: var(--rad-bg-white);
  border: 2px solid var(--rad-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.cd-top {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-bottom: 2px solid var(--rad-line);
}
.cd-badge {
  width: 100%;
  height: 80px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.cd.l1 .cd-badge { background: var(--rad-green); }
.cd.l2 .cd-badge { background: var(--rad-magenta); }
.cd.l3 .cd-badge { background: var(--rad-gold); color: #fff; }

.cd-badge .lv {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
}
.cd-badge .lb {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
}
.cd-head h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.cd-price {
  text-align: right;
}
.cd-price .p {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--rad-navy);
}
.cd-price .was {
  color: var(--rad-muted);
  text-decoration: line-through;
  font-size: 0.85rem;
}
.cd-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  padding: 24px;
}
.cd-body h4 {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--rad-muted);
  margin-bottom: 12px;
}
.topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.topic {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
}
.topic svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  stroke: var(--rad-navy);
}
.cd-side {
  background: var(--rad-bg-light);
  border-radius: var(--radius-sm);
  padding: 20px;
  border: 1px solid var(--rad-line);
}
.cd-fact {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--rad-line);
  font-size: 0.85rem;
}
.cd-fact:last-of-type {
  border-bottom: 0;
}
.cd-fact .k {
  color: var(--rad-muted);
}
.cd-fact .v {
  color: var(--rad-navy);
  font-weight: 700;
}
.cd-teacher {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rad-line);
}
.cd-teacher .av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rad-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.85rem;
}
.cd-teacher .tn {
  color: var(--rad-navy);
  font-weight: 700;
  font-size: 0.9rem;
}
.cd-teacher .tr {
  color: var(--rad-muted);
  font-size: 0.75rem;
}
.cd-foot {
  padding: 20px 24px;
  border-top: 1px solid var(--rad-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cd-foot .note {
  font-size: 0.85rem;
  color: var(--rad-muted);
}

/* Calendar page specifics */
.cal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.cal-month {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.4rem;
}
.cal-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}
.cal-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cal-legend .pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.cal {
  border: 2px solid var(--rad-navy);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--rad-bg-white);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-dow {
  padding: 10px;
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--rad-navy);
  font-weight: 700;
  border-bottom: 2px solid var(--rad-navy);
  background: var(--rad-bg-light);
}
.cal-cell {
  min-height: 100px;
  border-right: 1px solid var(--rad-line);
  border-bottom: 1px solid var(--rad-line);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cal-cell:nth-child(7n) {
  border-right: 0;
}
.cal-cell.empty {
  background: var(--rad-bg-light);
}
.cal-cell .dn {
  font-size: 0.72rem;
  color: var(--rad-muted);
  font-weight: 700;
}

@media (max-width: 920px) {
  .nav-links {
    position: fixed;
    inset: 122px 0 auto 0;
    background: var(--rad-bg-white);
    border-bottom: 4px solid var(--rad-navy);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0;
    display: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 24px;
  }
  .nav-links .btn {
    margin: 10px 24px;
  }
  .menu-toggle {
    display: block;
  }
  .hero {
    padding: 48px 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .serv-grid, .course-grid, .tm-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .strip-grid {
    grid-template-columns: 1fr 1fr;
  }
  .member .row {
    grid-template-columns: 1fr;
  }
  .member .photo {
    border-right: 0;
    border-bottom: 2px solid var(--rad-line);
    padding: 24px;
  }
  .date-row {
    grid-template-columns: 64px 1fr;
    gap: 12px;
  }
  .date-row .btn {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .cd-top {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }
  .cd-price {
    text-align: left;
  }
  .cd-body {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }
  .topic-grid {
    grid-template-columns: 1fr;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .cal-cell {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   Brand colour distribution + previously missing components
   ========================================================= */

/* Stat numbers cycle through the brand palette */
.strip div:nth-child(1) .n { color: var(--rad-green); }
.strip div:nth-child(2) .n { color: var(--rad-magenta); }
.strip div:nth-child(3) .n { color: var(--rad-gold); }
.strip div:nth-child(4) .n { color: var(--rad-navy); }

/* About points: a coloured left accent per item */
.about-points .point:nth-child(1) { border-left-color: var(--rad-green); }
.about-points .point:nth-child(2) { border-left-color: var(--rad-magenta); }
.about-points .point:nth-child(3) { border-left-color: var(--rad-gold); }

/* Testimonial quote marks cycle through the palette */
.tm:nth-child(1) .quote { color: var(--rad-green); }
.tm:nth-child(2) .quote { color: var(--rad-magenta); }
.tm:nth-child(3) .quote { color: var(--rad-gold); }

/* Calendar event chips (were completely unstyled) */
.ev {
  display: block;
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-decoration: none;
  transition: transform var(--transition), filter var(--transition);
}
.ev:hover { transform: translateY(-1px); filter: brightness(0.94); }
.ev .t { display: block; }
.ev .h { display: block; font-weight: 400; opacity: 0.9; }
.ev.green { background: var(--rad-green); }
.ev.magenta { background: var(--rad-magenta); }
.ev.violet { background: var(--rad-gold); }

/* Contact page layout (grid + detail rows were undefined) */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}
.ci {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ci .ic {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rad-bg-light);
  color: var(--rad-navy);
}
.ci .ic svg { width: 22px; height: 22px; }
.ci:nth-child(1) .ic { color: var(--rad-green); }
.ci:nth-child(2) .ic { color: var(--rad-magenta); }
.ci:nth-child(3) .ic { color: var(--rad-gold); }
.ci:nth-child(4) .ic { color: var(--rad-navy); }
.ci h3 { font-size: 1.05rem; margin-bottom: 2px; }
.ci p { font-size: 0.95rem; }

/* Prototype note flag (used across pages) */
.proto-flag {
  font-size: 0.8rem;
  color: var(--rad-muted);
  margin-top: 14px;
  text-align: center;
}

/* Keep the contact grid single-column on small screens
   (this must come after the base .contact-grid rule above) */
@media (max-width: 920px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Team member colour accents (per-member tint was undefined) */
.member .bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.member .row {
  position: relative;
  z-index: 1;
}
.member.r .bg { background: linear-gradient(120deg, rgba(31, 168, 44, 0.06), rgba(31, 168, 44, 0.13)); }
.member.j .bg { background: linear-gradient(120deg, rgba(221, 24, 136, 0.06), rgba(221, 24, 136, 0.13)); }
.member.f .bg { background: linear-gradient(120deg, rgba(110, 39, 214, 0.06), rgba(110, 39, 214, 0.13)); }
.member.r .photo { color: var(--rad-green); }
.member.j .photo { color: var(--rad-magenta); }
.member.f .photo { color: var(--rad-gold); }
.member.r .info .role { color: var(--rad-green); }
.member.j .info .role { color: var(--rad-magenta); }
.member.f .info .role { color: var(--rad-gold); }

/* 'Book a course' nav button: solid, rounder, always white text
   (the generic .nav-links a colour was overriding the button text) */
.nav-links a.btn {
  border-radius: var(--radius-md);
  border-bottom: 0;
}
.nav-links a.btn-gold,
.nav-links a.btn-gold:hover,
.nav-links a.btn-gold:focus {
  color: #fff;
  border-bottom: 0;
}

/* Course detail checkmarks tinted to match each level */
.cd.l1 .topic svg { stroke: var(--rad-green); }
.cd.l2 .topic svg { stroke: var(--rad-magenta); }
.cd.l3 .topic svg { stroke: var(--rad-gold); }

/* Embedded location map on the contact page */
.map-embed {
  margin-top: 46px;
  border: 2px solid var(--rad-navy);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 380px;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}