@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0F172A;
  --royal: #1D4ED8;
  --steel: #475569;
  --ivory: #F8FAFC;
  --amber: #F59E0B;
  --white: #FFFFFF;
  --font-head: 'Source Serif 4', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--ivory);
}

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

a { color: var(--royal); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  gap: 1rem;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

.logo span { color: var(--royal); }

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--steel);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--navy);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--navy);
  border-radius: 4px;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--royal);
  text-decoration: none;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}

main { padding-top: 72px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1E3A5F 100%);
  color: var(--white);
  padding: 4rem 0 5rem;
}

.hero h1 { color: var(--white); margin-bottom: 1rem; }

.hero-subtitle {
  font-size: 1.15rem;
  color: #CBD5E1;
  max-width: 640px;
  margin-bottom: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.pathway-diagram {
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.15);
}

.pathway-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pathway-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  border-left: 3px solid var(--amber);
}

.pathway-step strong { color: var(--amber); min-width: 100px; }

.trust-strip {
  background: var(--white);
  border-bottom: 1px solid #E2E8F0;
  padding: 0.875rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--steel);
}

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--white); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-header p { color: var(--steel); margin-top: 0.5rem; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--navy);
  padding: 2.5rem;
  border-radius: 8px;
}

.stat-item { text-align: center; color: var(--white); }

.stat-number {
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--amber);
  display: block;
}

.stat-label { font-size: 0.9rem; color: #94A3B8; margin-top: 0.25rem; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: 6px;
  border-top: 3px solid var(--navy);
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.card-badge {
  display: inline-block;
  background: var(--ivory);
  color: var(--royal);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.card h3 { color: var(--navy); }

.card p { color: var(--steel); font-size: 0.95rem; margin-top: 0.5rem; }

.card-price {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}

/* Outcomes strip */
.outcomes-strip {
  background: #EFF6FF;
  border-left: 4px solid var(--royal);
  padding: 2rem;
  border-radius: 0 6px 6px 0;
}

.outcomes-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.outcomes-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--steel);
}

.outcomes-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--royal);
  font-weight: 700;
}

/* Why section */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.why-item {
  padding: 1.5rem;
  background: var(--white);
  border-radius: 6px;
  border-left: 4px solid var(--amber);
}

.why-item h3 { font-size: 1.1rem; }

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.progress-bar {
  height: 4px;
  background: #E2E8F0;
  border-radius: 2px;
  margin-top: 2rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy), var(--royal));
  width: 100%;
  animation: progressGrow 1.5s ease forwards;
}

@keyframes progressGrow {
  from { width: 0; }
  to { width: 100%; }
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  background: var(--white);
  padding: 1.75rem;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
}

.testimonial blockquote {
  font-style: italic;
  color: var(--steel);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
}

/* Mini FAQ */
.mini-faq details {
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.mini-faq summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--navy);
}

.mini-faq p {
  margin-top: 0.75rem;
  color: var(--steel);
  font-size: 0.95rem;
}

/* CTA */
.cta-section {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 3.5rem 0;
}

.cta-section h2 { color: var(--white); margin-bottom: 1rem; }

.cta-section p { color: #94A3B8; margin-bottom: 1.5rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* Page hero */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0;
}

.page-hero h1 { color: var(--white); }

.page-hero p { color: #CBD5E1; margin-top: 0.75rem; max-width: 640px; }

/* Programme detail */
.programme-block {
  background: var(--white);
  border-radius: 6px;
  border-top: 3px solid var(--navy);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.programme-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--steel);
}

.programme-meta span {
  background: var(--ivory);
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
}

.included-list, .excluded-list {
  margin: 1rem 0;
  padding-left: 1.25rem;
  color: var(--steel);
}

.included-list li { margin-bottom: 0.35rem; }
.excluded-list li { margin-bottom: 0.35rem; }

/* Course cards */
.course-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  border-top: 3px solid var(--navy);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.course-card img { width: 100%; height: 180px; object-fit: cover; }

.course-card-body { padding: 1.5rem; }

.course-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-tag {
  padding: 0.4rem 0.9rem;
  background: var(--white);
  border: 1px solid #CBD5E1;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--steel);
}

.disclaimer-box {
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  border-radius: 6px;
  padding: 1.25rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #78350F;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-block {
  background: var(--white);
  padding: 2rem;
  border-radius: 6px;
  border-top: 3px solid var(--navy);
}

.contact-info-block h3 { margin-bottom: 1rem; }

.contact-detail {
  margin-bottom: 1rem;
  color: var(--steel);
}

.contact-detail strong { color: var(--navy); display: block; margin-bottom: 0.25rem; }

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group label .req { color: #DC2626; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #DC2626;
}

.field-error {
  color: #DC2626;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.consent-group {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.consent-group input { width: auto; margin-top: 0.25rem; }

.consent-group label { font-weight: 400; font-size: 0.9rem; }

.form-note {
  font-size: 0.85rem;
  color: var(--steel);
  margin-top: 1rem;
}

.form-success {
  display: none;
  background: #ECFDF5;
  border: 1px solid #10B981;
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
}

.form-success.visible { display: block; }

.form-success h3 { color: #065F46; margin-bottom: 0.75rem; }

.map-container {
  margin-top: 1.5rem;
  border-radius: 6px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 250px;
  border: 0;
}

/* FAQ page */
.faq-list details {
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.faq-list summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--navy);
  font-family: var(--font-head);
}

.faq-list p {
  margin-top: 1rem;
  color: var(--steel);
}

/* Legal pages */
.legal-content {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 6px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p,
.legal-content li {
  color: var(--steel);
  margin-bottom: 0.75rem;
}

.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.legal-content th,
.legal-content td {
  border: 1px solid #E2E8F0;
  padding: 0.6rem 0.85rem;
  text-align: left;
}

.legal-content th { background: var(--ivory); color: var(--navy); }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.team-member {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 6px;
  border-top: 3px solid var(--royal);
}

.team-member h3 { font-size: 1.05rem; }

.team-member .role { color: var(--royal); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; }

/* 404 */
.error-page {
  text-align: center;
  padding: 5rem 0;
}

.error-page h1 { font-size: 4rem; color: var(--royal); margin-bottom: 0.5rem; }

.error-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #94A3B8;
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo { color: var(--white); margin-bottom: 0.75rem; display: inline-block; }

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a { color: #CBD5E1; text-decoration: none; }

.footer-links a:hover { color: var(--white); }

.footer-disclaimers {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  line-height: 1.6;
}

.footer-disclaimers p { margin-bottom: 0.5rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-top: 1px solid #E2E8F0;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.12);
  padding: 1.25rem;
  display: none;
}

.cookie-banner.visible { display: block; }

.cookie-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.cookie-text {
  flex: 1;
  min-width: 280px;
  font-size: 0.9rem;
  color: var(--steel);
}

.cookie-text a { color: var(--royal); }

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-cookie-accept { background: var(--navy); color: var(--white); padding: 0.5rem 1rem; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; }
.btn-cookie-reject { background: transparent; color: var(--navy); padding: 0.5rem 1rem; border: 2px solid var(--navy); border-radius: 4px; cursor: pointer; font-weight: 600; }
.btn-cookie-manage { background: transparent; color: var(--royal); padding: 0.5rem 1rem; border: none; cursor: pointer; font-weight: 600; text-decoration: underline; }

/* Animations */
.slide-up, .fade-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html.js .slide-up,
html.js .fade-in {
  opacity: 0;
  transform: translateY(28px);
}

html.js .slide-up.visible,
html.js .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.content-image {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .two-col, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem;
    border-bottom: 1px solid #E2E8F0;
  }
  .main-nav.open ul { flex-direction: column; gap: 0.75rem; }
  .header-cta { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

/* Honeypot — must not be visible or focusable for humans */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Error box shown after a failed PHP submission */
.form-error-box {
  display: none;
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
  background: #FEF2F2;
  border-left: 4px solid #B91C1C;
  border-radius: 4px;
  color: #7F1D1D;
}
.form-error-box.visible { display: block; }
.form-error-box h3 { margin: 0 0 0.5rem 0; color: #7F1D1D; }
.form-error-box p { margin: 0; line-height: 1.6; }
