:root {
  --nav-height: 64px;
  --accent: #38bdf8;
  --bg: #0f172a;
  --muted: #94a3b8;
  --nav-collapse: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body, html {
  font-family: 'Inter', sans-serif;
  color: #f1f5f9;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  padding-top: calc(var(--nav-height) + env(safe-area-inset-top));
}

:target { scroll-margin-top: calc(var(--nav-height) + 12px); }
#page-title:focus { outline: 2px solid var(--accent); outline-offset: 8px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 2000;
  background: var(--accent);
  color: #0f172a;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(6px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.logo {
  position: absolute;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo img { width: 40px; height: auto; display: block; }
.logo span {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}
.nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 72%;
}
.nav-links a {
  color: #f1f5f9;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
  padding: 6px 0;
  transition: color .25s;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .25s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

.social {
  position: absolute;
  right: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.burger {
  display: none;
  position: absolute;
  right: 20px;
  font-size: 1.8em;
  color: var(--accent);
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 1200px) {
  .logo { left: 16px; }
  .logo span { font-size: 1.15rem; }
  .nav-links { display: none; max-width: none; }
  .burger { display: block; }
  .social { display: none; }
  .nav-links.show {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: calc(var(--nav-height) + env(safe-area-inset-top));
    right: 16px;
    background: rgba(15,23,42,0.98);
    padding: 14px;
    border-radius: 10px;
    width: 240px;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(2,6,23,0.6);
    align-items: flex-start;
  }
  .nav-links.show a { font-size: 1rem; white-space: normal; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 6px;
}
.cta-btn.secondary:hover {
  background: rgba(56,189,248,0.12);
  color: var(--accent);
}

.cta-btn {
  padding: 10px 28px;
  background: var(--accent);
  color: #0f172a;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background .25s, transform .12s;
  box-shadow: 0 8px 30px rgba(56,189,248,0.06);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
}
.cta-btn:hover { background: #0ea5e9; color: #0f172a; transform: translateY(-2px); }
.cta-btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(56,189,248,0.4);
  box-shadow: none;
}

a.cta-btn, button.cta-btn { color: #0f172a; }
a.cta-btn.secondary { color: var(--accent); }
a.enroll-btn { color: #0f172a; }
.muted { color: var(--muted); font-size: 0.95rem; }
.muted a { color: var(--accent); text-decoration: none; }

/* FORMS */
form.enquiry-form, form.contact-form { display: flex; flex-direction: column; gap: 16px; }
label { color: #cbd5e1; font-weight: 600; font-size: 0.95rem; display: block; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 16px 14px;
  border-radius: 8px;
  border: 1px solid #475569;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 1em;
  font-family: inherit;
  transition: 0.3s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(56,189,248,0.5);
  outline: none;
}
select option { background: #0b1220; color: #e2e8f0; }
input::placeholder,
textarea::placeholder,
.faq-controls input::placeholder {
  color: #94a3b8;
  opacity: 1;
}
textarea { min-height: 140px; resize: vertical; }
.form-row { display: flex; gap: 16px; }
.form-row .col { flex: 1; min-width: 0; }
.form-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.form-actions-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.form-response { margin: 0; }
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  color: #e2e8f0;
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 8px;
  padding: 10px 12px;
}
.form-status.is-error {
  border-color: rgba(220, 38, 38, 0.35);
}

/* INNER PATTERNS */
.intro { display: grid; grid-template-columns: 1fr 260px; gap: 18px; align-items: start; }
.intro .intro-text { min-width: 0; }
.intro .intro-text h2 { margin: 0 0 10px 0; font-size: 1.35rem; color: var(--accent); }
.intro .intro-text p.lead { color: #cbd5e1; margin: 0 0 16px 0; }
.intro .intro-cta {
  position: relative;
  z-index: 1;
  background: rgba(56,189,248,0.03);
  border-radius: 10px;
  padding: 14px;
  border: 1px solid rgba(56,189,248,0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(2,6,23,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
}
.intro .intro-cta strong { color: var(--accent); font-size: 1.02rem; }
.intro .intro-cta p { color: #cbd5e1; margin: 0; font-size: 0.95rem; }
.info-item {
  background: rgba(255,255,255,0.01);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(56,189,248,0.04);
  color: #e2e8f0;
  font-size: 0.95rem;
}
.info-item strong { display: block; color: var(--accent); margin-bottom: 6px; font-size: 1.02rem; }
.info-item a { color: var(--accent); text-decoration: none; }

.faq { margin-top: 6px; display: flex; flex-direction: column; gap: 10px; }
#faq-heading { color: var(--accent); margin-bottom: 8px; }
.faq-topic { margin: 18px 0 8px; font-size: 1.15rem; color: var(--accent); }
.faq-controls { margin: 0 0 12px; }
.faq-controls input[type="search"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(56,189,248,0.14);
  background: rgba(255,255,255,0.02);
  color: #e2e8f0;
  font-family: inherit;
  font-size: 1rem;
}
details.faq-item {
  background: rgba(255,255,255,0.01);
  border-radius: 10px;
  border: 1px solid rgba(56,189,248,0.08);
  color: #cbd5e1;
  padding: 0;
}
details.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::marker { content: ""; }
details.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
details.faq-item[open] summary::after { content: "−"; }
details.faq-item > *:not(summary) {
  padding: 0 16px 14px;
  margin: 0;
  color: #cbd5e1;
  font-size: 0.98rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.course-card {
  background: rgba(255,255,255,0.01);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid rgba(56,189,248,0.08);
}
.course-media {
  width: 100%;
  height: 160px;
  background: #071028;
  border-radius: 8px;
  overflow: hidden;
}
.course-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-body { padding: 10px 6px 0; }
.course-title { font-weight: 700; color: #fff; font-size: 1.02rem; margin-bottom: 6px; }
.course-desc { color: #cbd5e1; font-size: 0.95rem; margin-bottom: 10px; min-height: 44px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }
.enroll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  padding: 8px 12px;
  background: var(--accent);
  color: #0f172a;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.enroll-btn:hover {
  background: #0ea5e9;
  color: #0f172a;
}
.controls { margin: 4px 0 16px; }
.filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.filter-select {
  background: #0b1220;
  border: 1px solid rgba(56,189,248,0.12);
  color: #e2e8f0;
  padding: 8px 28px 8px 10px;
  border-radius: 8px;
  appearance: none;
  min-width: 140px;
}
.select-wrap { position: relative; display: inline-block; }
.select-wrap::after {
  content: "▾";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

/* FOOTER */
footer {
  position: relative;
  z-index: 2;
  background: #0f172a;
  color: var(--muted);
  padding: 25px 20px 10px;
  font-size: 0.9em;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-section { flex: 1 1 200px; margin: 10px 20px; }
.footer-section h3 { color: #38bdf8; margin-bottom: 12px; font-size: 1.1em; }
.footer-section a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 6px;
  transition: all .25s ease;
}
.footer-section a:hover { color: #38bdf8; transform: scale(1.05); }
.social a,
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  transform: none;
}
.social a img,
.footer-social a img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  filter: none;
  transition: transform .25s;
}
.social a:hover img,
.footer-social a:hover img { transform: scale(1.08); }
.footer-social a:hover { color: inherit; transform: none; }
.footer-social { display: flex; gap: 12px; margin-top: 10px; align-items: center; }
.footer-bottom {
  text-align: center;
  margin-top: 15px;
  border-top: 1px solid #1e293b;
  padding-top: 10px;
  font-size: 0.85em;
  color: var(--muted);
}

@media (max-width: 920px) {
  .intro { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .form-actions-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .form-actions-buttons .cta-btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; width: min(100%, 320px); }
  .courses-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .footer-container { flex-direction: column; align-items: center; text-align: center; }
  .footer-section { margin: 12px 0; }
  .courses-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta-btn, .nav-links a, .footer-section a { transition: none; }
}
