:root {
  --ink: #16202a;
  --muted: #617080;
  --line: #dbe3ea;
  --soft: #f5f8fb;
  --white: #ffffff;
  --brand: #0f4c81;
  --brand-dark: #083455;
  --accent: #d6652f;
  --shadow: 0 22px 60px rgba(16, 32, 44, 0.12);
  --radius: 24px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section-pad {
  padding: 86px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 86px;
}

.brand-logo {
  width: min(340px, 46vw);
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #354352;
}

.main-nav a:not(.nav-button) {
  position: relative;
  padding: 8px 0;
}

.main-nav a:not(.nav-button)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.main-nav a:not(.nav-button):hover::after {
  width: 100%;
}

.nav-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-button,
.button.primary {
  color: var(--white);
  background: var(--brand);
  box-shadow: 0 12px 24px rgba(15, 76, 129, 0.22);
}

.button.secondary {
  color: var(--brand-dark);
  background: var(--white);
  border: 1px solid var(--line);
}

.button.light {
  background: var(--white);
  color: var(--brand-dark);
}

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 20%, rgba(214, 101, 47, 0.14), transparent 28%),
    linear-gradient(135deg, #f7fbff 0%, #eef5fb 45%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  align-items: center;
  gap: 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.79rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.55rem, 5vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.hero-text,
.section-heading p,
.split-grid > div:first-child p,
.trainer-copy p,
.cta-box p {
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.hero-media img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: min(260px, calc(100% - 48px));
  padding: 18px;
  border-radius: 20px;
  color: var(--white);
  background: rgba(8, 52, 85, 0.92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.stat {
  display: block;
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 900;
}

.cred-strip {
  padding: 28px 0;
  background: var(--brand-dark);
  color: var(--white);
}

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

.cred-grid div {
  padding: 8px 0 8px 20px;
  border-left: 3px solid var(--accent);
}

.cred-grid strong,
.cred-grid span {
  display: block;
}

.cred-grid span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
}

.courses-section,
.services-section {
  background: var(--soft);
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 36px;
}

.section-heading.compact {
  margin-bottom: 26px;
}

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

.course-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid rgba(219, 227, 234, 0.95);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(16, 32, 44, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  border-color: rgba(15, 76, 129, 0.35);
  box-shadow: var(--shadow);
}

.course-card.featured {
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  color: var(--white);
}

.course-card span {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #e9f2fb;
  font-size: 0.78rem;
  font-weight: 900;
}

.course-card.featured span {
  color: var(--brand-dark);
  background: var(--white);
}

.course-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.course-card.featured p {
  color: rgba(255, 255, 255, 0.78);
}

.other-courses {
  margin-top: 32px;
  padding: 28px;
  border: 1px solid rgba(219, 227, 234, 0.95);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(16, 32, 44, 0.06);
}

.other-courses h3 {
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.other-course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.other-course-list li {
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fbff;
  color: #354352;
  font-weight: 800;
}

.split-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.steps article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
}

.steps span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 900;
}

.steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.trainer-section {
  background:
    linear-gradient(90deg, rgba(8, 52, 85, 0.06), transparent 46%),
    var(--white);
}

.trainer-card {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: var(--white);
  box-shadow: var(--shadow);
}

.trainer-photo-wrap {
  position: relative;
}

.trainer-photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--soft);
}

.hrdc-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 92px;
  border: 6px solid var(--white);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--brand);
  font-weight: 900;
  border-bottom: 2px solid currentColor;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.service-list span {
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: #354352;
  font-weight: 800;
}

.cta-section {
  color: var(--white);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-box .eyebrow,
.cta-box p {
  color: rgba(255, 255, 255, 0.78);
}

.cta-box h2 {
  margin-bottom: 12px;
}


/* Enquiries page */
.nav-button.is-active {
  background: var(--brand-dark);
}

.enquiry-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 16%, rgba(214, 101, 47, 0.14), transparent 30%),
    linear-gradient(135deg, #f7fbff 0%, #eef5fb 45%, #ffffff 100%);
}

.enquiry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 54px;
  align-items: center;
}

.enquiry-copy {
  max-width: 760px;
}

.enquiry-copy h1 {
  font-size: clamp(2.45rem, 5vw, 4.75rem);
  letter-spacing: -0.055em;
}

.enquiry-card {
  padding: 34px;
  border: 1px solid rgba(219, 227, 234, 0.95);
  border-radius: calc(var(--radius) + 8px);
  background: var(--white);
  box-shadow: var(--shadow);
}

.enquiry-card h2 {
  margin-bottom: 24px;
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
}

.contact-detail {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.contact-detail:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-detail span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-detail a {
  color: var(--brand-dark);
  font-size: 1.15rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-detail a:hover {
  color: var(--brand);
}

.enquiry-info {
  background: var(--soft);
}

.enquiry-info-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.enquiry-info-grid > div p {
  color: var(--muted);
  font-size: 1.12rem;
}

.enquiry-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.enquiry-list li {
  position: relative;
  padding: 18px 20px 18px 54px;
  border: 1px solid rgba(219, 227, 234, 0.95);
  border-radius: 18px;
  background: var(--white);
  color: #354352;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(16, 32, 44, 0.05);
}

.enquiry-list li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 23px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(214, 101, 47, 0.12);
}

.site-footer {
  padding: 40px 0;
  background: #071b2b;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-logo {
  width: 260px;
  max-width: 100%;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

.site-footer h2 {
  font-size: 1rem;
  letter-spacing: 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

@media (max-width: 1000px) {
  .hero-grid,
  .split-grid,
  .trainer-card,
  .enquiry-grid,
  .enquiry-info-grid {
    grid-template-columns: 1fr;
  }

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

  .trainer-card {
    padding: 30px;
  }

  .trainer-photo-wrap {
    max-width: 330px;
  }

  .enquiry-card {
    max-width: 560px;
  }
}

@media (max-width: 760px) {
  .section-pad {
    padding: 60px 0;
  }

  .nav-wrap,
  .cta-box,
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-wrap {
    padding: 16px 0;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav a:not(.nav-button) {
    display: none;
  }

  .nav-button {
    width: 100%;
  }

  .hero-grid {
    gap: 32px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
  }

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

  .hero-media img {
    min-height: 260px;
  }

  .floating-card {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    margin: -70px 18px 18px;
  }

  .other-courses {
    padding: 22px;
  }

  .other-course-list li {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .brand-logo {
    width: 260px;
  }

  .course-card,
  .steps article,
  .trainer-card,
  .enquiry-card,
  .enquiry-list li {
    border-radius: 18px;
  }

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

@media (max-width: 760px) {
  .enquiry-grid {
    gap: 32px;
  }

  .enquiry-card {
    padding: 26px;
  }

  .enquiry-list li {
    padding-right: 16px;
  }
}

/* Simple enquiries page */
.simple-enquiry {
  min-height: calc(100vh - 86px);
  background: var(--soft);
}

.simple-enquiry-card {
  max-width: 680px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(16, 32, 44, 0.07);
}

.simple-enquiry-card h1 {
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.05em;
}

.simple-enquiry-card p:not(.eyebrow) {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 1.18rem;
}

.simple-enquiry-card a {
  color: var(--brand);
  font-weight: 900;
}

@media (max-width: 440px) {
  .simple-enquiry-card {
    padding: 28px;
  }
}
