/* ===========================================================
   SYMPHONY SKILLS — DESIGN TOKENS
   =========================================================== */
:root {
  /* Color */
  --navy-900: #0A1F3D;
  --navy-800: #0F2A4F;
  --navy-700: #16365E;
  --green-600: #1A7A4C;
  --green-500: #229A5F;
  --green-100: #E3F3EA;
  --bg: #F7F8FA;
  --bg-alt: #FFFFFF;
  --ink: #14213A;
  --ink-soft: #51607A;
  --ink-faint: #8693A8;
  --line: #E4E8EF;

  /* Type */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --container-w: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(10, 31, 61, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 31, 61, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 31, 61, 0.16);
}

/* ===========================================================
   RESET
   =========================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 2px;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}

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

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-500); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--navy-900); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border: 1.5px solid var(--navy-900);
}
.btn-outline:hover { background: var(--navy-900); color: #fff; }

.btn-light {
  background: #fff;
  color: var(--navy-900);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-block { width: 100%; }

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 250, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  height: 50px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.brand-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-600);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--navy-900); }

.nav-cta {
  background: var(--navy-900);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.nav-cta:hover { background: var(--green-600); transform: translateY(-2px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}
.nav-toggle span {
  height: 2px;
  width: 100%;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  padding: 88px 0 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 80px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 18px;
}
.eyebrow-light { color: var(--green-100); }

.hero-copy {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  margin-bottom: 22px;
}

.text-accent { color: var(--green-600); }

.hero-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-900);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* Section divider — echoes the logo's crescent curve */
.section-divider {
  height: 64px;
  width: 100%;
}
.divider-down {
  background: var(--bg);
  clip-path: ellipse(60% 100% at 50% 100%);
  margin-top: -1px;
}
.divider-up {
  background: var(--bg-alt);
  clip-path: ellipse(60% 100% at 50% 0%);
}

/* ===========================================================
   TRUST STRIP
   =========================================================== */
.trust-strip {
  padding: 36px 0 64px;
}
.trust-label {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.trust-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

.trust-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  height: 110px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.trust-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.trust-card-wide {
    grid-column: span 2;
    max-width: 100%;
}

    .trust-card-wide img {
        max-height: 70px;
        width: auto;
    }


/* ===========================================================
   SECTION HEAD (shared)
   =========================================================== */
.section-head {
    max-width: 640px;
    margin-bottom: 56px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.section-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}
.section-lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ===========================================================
   COURSES
   =========================================================== */
.courses {
  background: var(--bg-alt);
  padding: 100px 0;
}

.programme-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.programme-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.programme-table thead th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy-900);
  padding: 16px 20px;
}
.programme-table thead th:first-child { border-top-left-radius: var(--radius-md); }
.programme-table thead th:last-child { border-top-right-radius: var(--radius-md); }

.programme-table tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.programme-table tbody tr:last-child { border-bottom: none; }

.programme-table tbody tr:not(.group-row):hover {
  background: var(--bg-alt);
}

.programme-table td {
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--ink);
  vertical-align: top;
}

.programme-table td[data-label="Programme"] {
  color: var(--ink-faint);
  font-size: 0.85rem;
  white-space: nowrap;
}

.programme-table td[data-label="SAQA ID"] {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-900);
  white-space: nowrap;
}

.programme-table td[data-label="Title"] {
  font-weight: 500;
  min-width: 280px;
}

.programme-table td[data-label="Level"],
.programme-table td[data-label="Credits"] {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green-600);
  white-space: nowrap;
}

.programme-table .group-row td {
  background: var(--green-100);
  color: var(--green-600);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 11px 20px;
}

.courses-cta {
  text-align: center;
  margin-top: 48px;
}

/* ===========================================================
   APPROACH
   =========================================================== */
.approach {
  background: var(--bg-alt);
  padding-bottom: 110px;
}

.approach-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}

.approach-visual {
  position: relative;
  height: 380px;
}
.approach-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--line);
}
.ring-1 { width: 100%; height: 100%; top: 0; left: 0; }
.ring-2 { width: 72%; height: 72%; top: 14%; left: 14%; border-color: var(--green-100); }
.ring-3 {
  width: 44%; height: 44%; top: 28%; left: 28%;
  background: linear-gradient(140deg, var(--navy-900), var(--green-600));
  border: none;
  box-shadow: var(--shadow-lg);
}

.approach-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 36px;
  max-width: 460px;
}

.approach-item {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.approach-item:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 36px; }

.approach-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.approach-item p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 460px;
}

/* ===========================================================
   OUTCOMES
   =========================================================== */
.outcomes {
  padding: 100px 0;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.outcome-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  border: 1px solid var(--line);
}

.outcome-icon {
  font-size: 1.6rem;
  color: var(--green-600);
  margin-bottom: 18px;
}

.outcome-card h3 {
  font-size: 1.02rem;
  margin-bottom: 10px;
}
.outcome-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ===========================================================
   ABOUT BAND
   =========================================================== */
.about-band {
  background: var(--navy-900);
  color: #fff;
  padding: 100px 0;
}

.about-intro {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}

.about-band h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 22px;
}

.about-band p {
  color: rgba(255,255,255,0.78);
  font-size: 1.02rem;
}

.about-intro p { margin: 0 auto; }

.founder-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 44px;
  margin-bottom: 32px;
}

.founder-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow-md);
  background: linear-gradient(140deg, var(--green-600), var(--green-500));
}

.founder-content h3 {
  color: #fff;
  font-size: 1.5rem;
  margin: 4px 0 18px;
}

.founder-bio {
  color: rgba(255,255,255,0.8);
  font-size: 0.98rem;
  max-width: 640px;
  margin-bottom: 28px;
}

.founder-roles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.founder-roles li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 18px;
  border-left: 2px solid var(--green-500);
}

.role-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}

.role-org {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.62);
}

.about-quote-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 36px;
}
.about-quote-card p {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 1.5;
  margin-bottom: 28px;
  max-width: none;
}

/* ===========================================================
   CONTACT
   =========================================================== */
.contact {
  padding: 100px 0 120px;
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.contact-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin-bottom: 18px;
}

.contact-details {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-details li {
  display: flex;
  flex-direction: column;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.contact-details span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.contact-details strong {
  font-weight: 600;
  color: var(--navy-900);
}

.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-row {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
}
.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 8px;
}
.optional { font-weight: 400; color: var(--ink-faint); }

.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--green-600);
  outline: none;
}

.form-note {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--green-600);
  font-weight: 600;
  text-align: center;
  min-height: 1.2em;
}

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding-top: 72px;
}

.footer-inner {
  display: flex;
  justify-content: center;
  padding: 64px 0 56px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  text-align: center;
}

.footer-col { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--green-500); }

.footer-hours {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.footer-credit {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1000px) {
  .trust-logos { grid-template-columns: repeat(2, 1fr); }
  .outcomes-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-visual { order: -1; height: 280px; }
  .contact-grid { grid-template-columns: 1fr; }
  .founder-card { grid-template-columns: 1fr; text-align: center; }
  .founder-photo { margin: 0 auto; }
  .founder-roles li { text-align: left; }
}

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

  .main-nav {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 20px;
    transform: translateY(-150%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 12px; text-align: center; }
  .nav-toggle { display: flex; }

  .brand-tag { display: none; }

  .hero { padding-top: 56px; }
  .hero-actions { flex-direction: column; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }

  .programme-table td, .programme-table th { padding: 12px 14px; font-size: 0.85rem; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 36px; }
  .contact-form { padding: 26px; }
  .trust-logos { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .trust-card { height: 90px; padding: 16px; }
  .founder-card { padding: 28px; }
}

/* ===========================================================
   ACCORDION / DROPDOWN ROWS
   =========================================================== */

/* Extra column header for toggle arrow */
.programme-table thead th:last-child {
  width: 48px;
}

/* Clickable programme row */
.prog-row {
  cursor: pointer;
  transition: background 0.15s ease;
}
.prog-row:hover {
  background: var(--green-100) !important;
}
.prog-row.acc-open {
  background: var(--green-100) !important;
  border-bottom: none !important;
}

/* Toggle icon cell */
.acc-toggle {
  text-align: center;
  width: 48px;
  padding: 0 12px !important;
}
.acc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-600);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.3s ease, background 0.2s ease;
}
.acc-open .acc-icon {
  transform: rotate(45deg);
  background: var(--green-600);
  color: #fff;
}

/* Accordion panel row — hidden by default */
.acc-panel {
  display: none;
}
.acc-panel.acc-open {
  display: table-row;
}
.acc-panel > td {
  padding: 0 !important;
  border-top: none !important;
}

/* Inner content box */
.acc-body {
  padding: 28px 32px 32px;
  background: #fff;
  border-left: 4px solid var(--green-600);
  border-bottom: 1px solid var(--line);
  animation: accSlide 0.25s ease;
}

@keyframes accSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.acc-body h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-900);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 20px 0 6px;
}
.acc-body h4:first-child {
  margin-top: 0;
}
.acc-body p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 680px;
  line-height: 1.65;
}
.acc-cta {
  margin-top: 24px;
}

.acc-toggle {
    text-align: center !important;
    vertical-align: middle !important;
    padding: 0 16px !important;
}

.acc-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    line-height: 1 !important;
    padding: 0 !important;
    font-size: 1rem !important;
}

.trust-card img[alt="Nelson Mandela Community Youth Centre"] {
    max-height: 90px;
    width: 100%;
    object-fit: contain;
    padding: 0;
}

.trust-card:nth-child(3) {
    padding: 8px;
}

.nav-lms {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-100);
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-lms:hover {
  background: var(--green-600);
  transform: translateY(-2px);
}

.nav-lms-icon {
  display: inline-block !important;
  width: 30px !important;
  height: 30px !important;
  max-width: 30px !important;
  object-fit: contain !important;
  filter: invert(35%) sepia(60%) saturate(500%) hue-rotate(115deg) brightness(0.9) !important;
}

.nav-lms:hover .nav-lms-icon {
  filter: brightness(0) invert(1) !important;
}