:root {
  --navy-950: #0c1231;
  --navy-900: #121a43;
  --navy-800: #1c285f;
  --navy-700: #263777;
  --gold-500: #c9a65d;
  --gold-300: #e5cf99;
  --ink: #10172e;
  --muted: #626a7e;
  --line: #e4e7ee;
  --soft: #f4f5f8;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(16, 23, 46, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy-950);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  height: 100px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(18, 26, 67, 0.08);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  width: 74px;
  height: 82px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  padding: 10px 0;
  color: #30374c;
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: normal;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.header-call {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 15px;
  color: var(--navy-900);
  background: #f5f1e8;
  border: 1px solid #e8ddc2;
  border-radius: 9px;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease;
}

.header-call:hover {
  background: #f0e8d7;
  transform: translateY(-2px);
}

.header-call-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--navy-900);
  border-radius: 50%;
}

.header-call-icon svg {
  width: 18px;
}

.header-call small,
.header-call strong {
  display: block;
}

.header-call small {
  margin-bottom: 1px;
  color: #73778a;
  font-size: 0.7rem;
}

.header-call strong {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-900);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -300px;
  right: -230px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(201, 166, 93, 0.25) 0%, rgba(201, 166, 93, 0) 68%);
}

.hero-pattern {
  position: absolute;
  z-index: -1;
  inset: 0 51% 0 0;
  opacity: 0.08;
  background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #000, transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 80px;
  align-items: center;
  min-height: 620px;
  padding-block: 82px;
}

.hero-copy {
  max-width: 720px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 42px;
  padding: 8px 13px;
  color: #f1e5c8;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--gold-300);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(229, 207, 153, 0.1);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold-500);
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero h1,
.section-heading h2,
.cta-section h2,
.contact-spotlight h2,
.enquiry-dialog h2 {
  font-family: "Inter", sans-serif;
  letter-spacing: normal;
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(3rem, 5.2vw, 5rem);
  line-height: 1.02;
}

.hero-lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.73);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-family: "Inter", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

.button svg {
  width: 18px;
}

.button-primary {
  color: var(--navy-950);
  background: var(--gold-300);
  border-color: var(--gold-300);
}

.button-primary:hover {
  background: #efdcae;
  border-color: #efdcae;
}

.button-ghost {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 46px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.trust-divider {
  width: 4px;
  height: 4px;
  background: var(--gold-500);
  border-radius: 50%;
}

.contact-spotlight {
  position: relative;
  padding: 34px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  border-top: 4px solid var(--gold-500);
  border-radius: 3px;
  box-shadow: var(--shadow);
}

.contact-kicker,
.dialog-kicker {
  color: var(--navy-700);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-spotlight h2 {
  margin: 12px 0 8px;
  font-size: 1.8rem;
  line-height: 1.16;
}

.contact-spotlight > p {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.contact-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.contact-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  color: var(--navy-700);
  background: #eff1f8;
  border-radius: 50%;
}

.contact-icon svg {
  width: 20px;
}

.contact-link small,
.contact-link strong {
  display: block;
}

.contact-link small {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.73rem;
}

.contact-link strong {
  font-family: "Inter", sans-serif;
  font-size: 0.94rem;
}

.contact-arrow {
  width: 18px;
  color: var(--gold-500);
  transition: transform 180ms ease;
}

.contact-link:hover .contact-arrow {
  transform: translateX(4px);
}

.courses-section {
  padding: 105px 0 112px;
  background: var(--soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.35rem, 4vw, 3.6rem);
  line-height: 1.08;
}

.section-heading > div > p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.course-count {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 6px;
}

.course-count strong {
  color: var(--navy-700);
  font-family: "Inter", sans-serif;
  font-size: 2.1rem;
  line-height: 1;
}

.course-count span {
  max-width: 70px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.25;
}

.course-tools {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin: 42px 0 28px;
}

.search-field {
  display: flex;
  width: min(420px, 100%);
  height: 50px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: var(--white);
  border: 1px solid #dcdfe7;
  border-radius: 7px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-field:focus-within {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(38, 55, 119, 0.1);
}

.search-field svg {
  width: 21px;
  color: #777d8e;
  flex: 0 0 auto;
}

.search-field input {
  width: 100%;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.search-field input::placeholder {
  color: #8b91a1;
}

.filters {
  display: flex;
  gap: 8px;
}

.filter-button {
  min-height: 43px;
  padding: 9px 14px;
  color: #555c6e;
  background: transparent;
  border: 1px solid #d6d9e1;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.filter-button:hover,
.filter-button.active {
  color: var(--white);
  background: var(--navy-900);
  border-color: var(--navy-900);
}

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

.course-card {
  position: relative;
  display: flex;
  min-height: 238px;
  flex-direction: column;
  padding: 27px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gold-500);
  transition: width 240ms ease;
}

.course-card:hover {
  border-color: #cfd4e1;
  box-shadow: 0 14px 35px rgba(16, 23, 46, 0.08);
  transform: translateY(-4px);
}

.course-card:hover::before {
  width: 100%;
}

.course-card[hidden] {
  display: none;
}

.course-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.course-code {
  color: var(--navy-700);
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.course-area {
  padding: 5px 8px;
  color: #6e5a2c;
  background: #f7f0df;
  border-radius: 4px;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.course-card h3 {
  margin: 27px 0 24px;
  font-family: "Inter", sans-serif;
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: normal;
}

.enquire-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding: 15px 0 0;
  color: var(--navy-700);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.enquire-button span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  background: #eff1f8;
  border-radius: 50%;
  transition: transform 180ms ease, color 180ms ease, background-color 180ms ease;
}

.enquire-button:hover span {
  color: var(--white);
  background: var(--navy-700);
  transform: rotate(45deg);
}

.no-results {
  padding: 70px 24px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
}

.no-results h3 {
  margin: 0 0 8px;
  font-family: "Inter", sans-serif;
  font-size: 1.4rem;
}

.no-results p {
  margin: 0 0 20px;
  color: var(--muted);
}

.no-results button {
  padding: 8px 0;
  color: var(--navy-700);
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-weight: 700;
  cursor: pointer;
}

.cta-section {
  color: var(--white);
  background: var(--navy-800);
  border-top: 1px solid rgba(255,255,255,.08);
}

.cta-inner {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-block: 58px;
}

.cta-section h2 {
  max-width: 600px;
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.12;
}

.button-light {
  color: var(--navy-950);
  background: var(--white);
}

.button-outline-light {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
}

.button-outline-light:hover {
  background: rgba(255,255,255,.08);
}

.site-footer {
  padding: 32px 0;
  color: rgba(255, 255, 255, 0.6);
  background: var(--navy-950);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 38px;
  align-items: center;
}

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

.footer-brand img {
  width: 48px;
  height: 54px;
  padding: 4px;
  object-fit: contain;
  background: var(--white);
  border-radius: 3px;
}

.footer-brand p {
  max-width: 150px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 0.76rem;
  line-height: 1.4;
}

.footer-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.72rem;
}

.copyright {
  margin: 0;
  font-size: 0.7rem;
  white-space: nowrap;
}

.enquiry-dialog {
  width: min(700px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-top: 4px solid var(--gold-500);
  border-radius: 7px;
  box-shadow: 0 30px 90px rgba(6, 10, 29, 0.38);
}

.enquiry-dialog::backdrop {
  background: rgba(7, 11, 30, 0.74);
  backdrop-filter: blur(4px);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 32px 23px;
  border-bottom: 1px solid var(--line);
}

.enquiry-dialog h2 {
  margin: 8px 0 0;
  font-size: 1.65rem;
}

.dialog-close {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  color: #454b5c;
  background: var(--soft);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.dialog-close svg {
  width: 20px;
}

.enquiry-dialog form {
  padding: 27px 32px 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-field {
  display: block;
  margin-bottom: 16px;
}

.form-field > span {
  display: block;
  margin-bottom: 7px;
  color: #383f52;
  font-size: 0.78rem;
  font-weight: 700;
}

.form-field em {
  color: #858a98;
  font-style: normal;
  font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfbfc;
  border: 1px solid #d9dce4;
  border-radius: 6px;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(38, 55, 119, 0.1);
}

.form-field input[readonly] {
  color: var(--navy-700);
  background: #f2f3f8;
  font-weight: 700;
}

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

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 5px;
}

.form-footer p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.form-status {
  margin: 2px 0 17px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.45;
}

.form-status.is-success {
  color: #185c3b;
  background: #edf8f2;
  border-color: #bfe4cf;
}

.form-status.is-error {
  color: #8a2929;
  background: #fff1f1;
  border-color: #efc5c5;
}

#submit-enquiry:disabled {
  opacity: 0.68;
  cursor: wait;
  transform: none;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(3rem, 6.2vw, 4.4rem);
  }

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

  .course-tools,
  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .course-tools {
    display: flex;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-details {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 32px, 620px);
  }

  .site-header {
    height: 82px;
  }

  .brand img {
    width: 58px;
    height: 66px;
  }

  .desktop-nav {
    display: none;
  }

  .header-call {
    padding: 9px 11px;
  }

  .header-call small {
    display: none;
  }

  .header-call strong {
    font-size: 0.8rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-block: 62px 68px;
  }

  .status-pill {
    margin-bottom: 32px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 12vw, 4rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .contact-spotlight {
    padding: 27px 23px;
  }

  .courses-section {
    padding: 78px 0 82px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .course-count {
    display: none;
  }

  .course-tools {
    margin-top: 34px;
  }

  .filters {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .filter-button {
    flex: 0 0 auto;
  }

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

  .course-card {
    min-height: 210px;
  }

  .cta-inner {
    min-height: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-details {
    grid-column: auto;
    grid-row: auto;
    flex-direction: column;
  }

  .copyright {
    white-space: normal;
  }

  .dialog-header {
    padding: 23px 20px 19px;
  }

  .enquiry-dialog h2 {
    font-size: 1.35rem;
  }

  .enquiry-dialog form {
    padding: 22px 20px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .form-footer p {
    max-width: none;
  }
}

@media (max-width: 430px) {
  .header-call-icon {
    width: 31px;
    height: 31px;
  }

  .header-call strong {
    font-size: 0.72rem;
  }

  .hero-actions,
  .hero-actions .button,
  .cta-actions,
  .cta-actions .button {
    width: 100%;
  }

  .trust-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .trust-divider {
    display: none;
  }

  .contact-link {
    grid-template-columns: auto 1fr;
  }

  .contact-link strong {
    font-size: 0.8rem;
  }

  .contact-arrow {
    display: none;
  }
}

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