:root {
  --navy: #12366f;
  --navy-deep: #0b2856;
  --blue: #1b66ae;
  --sky: #edf5fb;
  --red: #c9473d;
  --ink: #172033;
  --muted: #657087;
  --line: #dbe4ed;
  --white: #fff;
  --sand: #f7f4ed;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(12, 38, 75, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 10px 14px;
  border-radius: 6px; font-weight: 800;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: relative;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid rgba(18, 54, 111, .08);
}
.nav-shell {
  max-width: 1240px; height: 88px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 62px; height: 62px; object-fit: contain; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { color: var(--navy); font-family: Georgia, serif; font-size: 21px; }
.brand small { color: var(--red); margin-top: 6px; font-size: 10px; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; }
.primary-nav { display: flex; align-items: center; gap: 34px; }
.primary-nav a { text-decoration: none; font-size: 14px; font-weight: 750; color: #3a465b; }
.primary-nav a:not(.nav-contact):hover { color: var(--navy); }
.primary-nav .nav-dropdown { position: relative; }
.primary-nav .nav-dropdown-toggle {
  appearance: none; border: 0; background: transparent; padding: 8px 0;
  color: #3a465b; font-size: 14px; font-weight: 750; line-height: 1.5;
}
.primary-nav .nav-dropdown-toggle:hover, .primary-nav .nav-dropdown-toggle:focus-visible { color: var(--navy); }
.primary-nav .dropdown-menu {
  min-width: 220px; padding: 8px; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 14px 30px rgba(18,54,111,.12);
}
.primary-nav .courses-dropdown-menu { min-width: 260px; }
.primary-nav .dropdown-item { padding: 10px 12px; border-radius: 4px; color: #3a465b; font-size: 13px; font-weight: 650; }
.primary-nav .dropdown-item:hover, .primary-nav .dropdown-item:focus { background: #edf5fb; color: var(--navy); }
.primary-nav .nav-contact {
  background: var(--navy); color: var(--white); padding: 12px 18px;
  border-radius: 6px; box-shadow: 0 8px 20px rgba(18,54,111,.16);
}
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

.hero {
  min-height: 600px;
  background:
    radial-gradient(circle at 12% 75%, rgba(37, 107, 176, .10), transparent 28%),
    linear-gradient(135deg, #f9fbfd 0%, #edf5fb 100%);
  overflow: hidden;
}
.hero-grid {
  max-width: 1240px; min-height: 600px; margin: 0 auto; padding: 56px 28px 0;
  display: grid; grid-template-columns: 49% 51%; align-items: center;
}
.hero-copy { position: relative; z-index: 2; padding: 40px 20px 90px 0; }
.eyebrow, .kicker {
  color: var(--red); font-size: 12px; font-weight: 850;
  text-transform: uppercase; letter-spacing: .16em;
}
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; }
.eyebrow span { width: 34px; height: 2px; background: var(--red); }
.hero h1, .section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy-deep);
  line-height: .98;
  letter-spacing: -.035em;
}
.hero h1 { font-size: clamp(52px, 6vw, 82px); }
.hero h1 em { color: var(--blue); font-weight: 400; }
.hero-lede {
  max-width: 570px; margin: 28px 0 32px;
  color: #536078; font-size: 18px; line-height: 1.75;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  min-height: 52px; display: inline-flex; align-items: center; justify-content: center;
  gap: 28px; padding: 12px 20px; border-radius: 6px;
  text-decoration: none; font-weight: 800; font-size: 14px;
}
.button-primary { background: var(--navy); color: var(--white); }
.button-primary:hover { background: var(--navy-deep); }
.button-secondary { border: 1px solid #bdcad8; color: var(--navy); background: rgba(255,255,255,.55); }
.hero-visual { position: relative; align-self: end; height: 544px; }
.hero-image {
  position: absolute; right: -10%; bottom: 0; width: 112%; height: 100%;
  background: linear-gradient(180deg, rgba(237,245,251,.08), rgba(237,245,251,.05)), url("assets/circuit.jpg") center 28% / cover no-repeat;
  clip-path: polygon(12% 6%, 100% 0, 100% 100%, 0 100%, 0 20%);
  border-radius: 18px 0 0 18px;
  box-shadow: var(--shadow);
}
.hero-badge {
  position: absolute; left: -28px; bottom: 42px; width: 144px; height: 144px;
  border-radius: 50%; background: var(--navy); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 7px solid #f3f7fb; box-shadow: 0 16px 34px rgba(18,54,111,.22);
  text-align: center;
}
.hero-badge strong { font-family: Georgia, serif; font-size: 28px; line-height: 1; }
.hero-badge span { margin-top: 3px; font-size: 13px; font-weight: 800; }
.hero-badge small { margin-top: 8px; color: #b9ceed; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }

.trust-strip {
  max-width: 1184px; min-height: 112px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: center;
  border-bottom: 1px solid var(--line);
}
.trust-item { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 38px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-number, .trust-icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--navy); font: 700 28px Georgia, serif; }
.trust-icon { font-size: 20px; }
.trust-item > span:last-child { display: grid; }
.trust-item strong { color: var(--navy); font-size: 14px; }
.trust-item small { color: var(--muted); font-size: 12px; }

.section { max-width: 1184px; margin: 0 auto; padding: 112px 28px; }
.section-heading h2, .contact h2, .facility-copy h2, .accreditation-copy h2 { font-size: clamp(42px, 5vw, 64px); }
.kicker { margin: 0 0 16px; }
.about-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 70px; align-items: center; margin-top: 48px; }
.about-photo { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-photo img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.about-copy { padding-right: 20px; }
.about-copy p { color: var(--muted); }
.about-copy .lead { color: var(--ink); font-size: 20px; line-height: 1.65; }
.about-copy .about-location { color: var(--muted); font-size: 13px; }
.about-location strong { color: var(--navy); }
.text-link { display: inline-flex; gap: 16px; margin-top: 14px; color: var(--navy); text-decoration: none; font-weight: 850; border-bottom: 2px solid #bdcbda; padding-bottom: 5px; }

.courses { max-width: none; padding-left: max(28px, calc((100% - 1128px) / 2)); padding-right: max(28px, calc((100% - 1128px) / 2)); background: var(--sand); }
.heading-row { display: flex; justify-content: space-between; align-items: end; }
.heading-row > p { max-width: 360px; color: var(--muted); margin: 0 0 4px; }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.course-card { position: relative; min-height: 320px; padding: 38px 36px; background: var(--white); border: 1px solid #ebe6dc; border-radius: 12px; }
.course-card.featured { background: var(--navy); color: var(--white); transform: translateY(-12px); box-shadow: 0 22px 40px rgba(18,54,111,.18); }
.course-index { position: absolute; right: 24px; top: 20px; color: #9aa6b4; font: 700 12px Georgia, serif; }
.featured .course-index { color: #a9c1df; }
.course-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--sky); color: var(--navy); font-size: 24px; }
.featured .course-icon { background: rgba(255,255,255,.12); color: var(--white); }
.course-card h3 { margin: 48px 0 12px; color: var(--navy); font-family: Georgia, serif; font-size: 25px; }
.featured h3 { color: var(--white); }
.course-card p { margin: 0; color: var(--muted); font-size: 15px; }
.featured p { color: #cfdbed; }

.facilities { max-width: none; padding: 112px max(28px, calc((100% - 1128px) / 2)); background: var(--navy-deep); color: var(--white); }
.facility-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 70px; align-items: center; }
.facility-copy .kicker { color: #8cb2df; }
.facility-copy h2 { color: var(--white); }
.facility-copy > p { color: #bccae0; max-width: 430px; }
.facility-list { list-style: none; padding: 20px 0 0; margin: 0; display: grid; gap: 12px; }
.facility-list li { display: flex; align-items: center; gap: 12px; color: #edf3fa; }
.facility-list span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 12px; }
.facility-image { border: 8px solid rgba(255,255,255,.07); border-radius: var(--radius); overflow: hidden; }
.facility-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.accreditation { padding-top: 96px; padding-bottom: 96px; }
.accreditation-card { min-height: 420px; display: grid; grid-template-columns: 1fr 1fr; background: var(--sky); border-radius: var(--radius); overflow: hidden; }
.certificate-mark { display: grid; place-items: center; padding: 54px; background: var(--white); }
.certificate-mark img { max-height: 240px; object-fit: contain; }
.accreditation-copy { display: flex; flex-direction: column; justify-content: center; align-items: start; padding: 56px 70px; }
.accreditation-copy h2 { font-size: clamp(38px, 4vw, 56px); }
.accreditation-copy p:not(.kicker) { max-width: 440px; color: var(--muted); }

.contact { max-width: none; min-height: 520px; display: grid; grid-template-columns: 38% 62%; background: var(--navy); color: var(--white); }
.contact-heading { padding: 90px 40px 90px max(28px, calc((100vw - 1128px) / 2)); background: linear-gradient(145deg, rgba(255,255,255,.04), transparent); }
.contact-heading .kicker { color: #91b4df; }
.contact h2 { color: var(--white); }
.contact-details { display: grid; grid-template-columns: repeat(2, 1fr); align-content: center; padding: 60px max(28px, calc((100vw - 1128px) / 2)) 60px 50px; border-left: 1px solid rgba(255,255,255,.10); }
.contact-item { min-height: 112px; padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.12); border-right: 1px solid rgba(255,255,255,.12); }
.contact-item:nth-child(even) { border-right: 0; }
.contact-item:hover strong { color: #aecdf3; }
.contact-label { color: #91b4df; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 5px; }
.contact-item strong { font-size: 18px; }
.contact-address { grid-column: 1 / -1; min-height: 126px; border-bottom: 0; }
.contact-address strong { max-width: 620px; line-height: 1.5; }

.site-footer { max-width: 1184px; margin: 0 auto; padding: 0 28px; }
.footer-main { min-height: 150px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; }
.footer-main > p { justify-self: center; color: var(--muted); font-size: 12px; text-align: center; }
.back-top { justify-self: end; color: var(--navy); text-decoration: none; font-size: 13px; font-weight: 800; }
.brand-footer img { width: 54px; height: 54px; }
.footer-base { min-height: 64px; display: flex; align-items: center; justify-content: space-between; padding-right: 72px; border-top: 1px solid var(--line); color: var(--muted); }

:focus-visible { outline: 3px solid #e5a642; outline-offset: 3px; }

@media (max-width: 1080px) {
  .primary-nav { gap: 18px; }
  .hero-grid { grid-template-columns: 52% 48%; }
  .hero h1 { font-size: 58px; }
  .about-grid, .facility-grid { gap: 40px; }
  .contact-heading { padding-left: 28px; }
}

@media (max-width: 760px) {
  .nav-shell { height: 76px; }
  .brand img { width: 54px; height: 54px; }
  .nav-toggle { display: block; cursor: pointer; }
  .primary-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    padding: 18px 28px 24px; background: var(--white);
    border-top: 1px solid var(--line); box-shadow: 0 20px 30px rgba(18,54,111,.10);
  }
  .primary-nav.open { display: grid; gap: 4px; }
  .primary-nav a { padding: 10px 4px; }
  .primary-nav .nav-dropdown-toggle { width: 100%; padding: 10px 4px; text-align: left; }
  .primary-nav .dropdown-menu { position: static !important; min-width: 0; margin: 0; padding: 0 0 0 12px; border: 0; box-shadow: none; }
  .primary-nav .dropdown-item { white-space: normal; }
  .primary-nav .nav-contact { margin-top: 8px; text-align: center; }

  .hero { min-height: auto; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; padding: 30px 20px 0; }
  .hero-copy { padding: 32px 0 48px; }
  .hero h1 { font-size: clamp(44px, 13vw, 62px); }
  .hero-lede { font-size: 16px; }
  .hero-visual { height: 420px; }
  .hero-image { width: calc(100% + 40px); right: -20px; clip-path: none; border-radius: 14px 14px 0 0; }
  .hero-badge { width: 118px; height: 118px; left: 12px; bottom: 20px; }
  .trust-strip { margin: 0 20px; grid-template-columns: 1fr; padding: 12px 0; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 10px; }
  .trust-item:last-child { border-bottom: 0; }

  .section { padding: 78px 20px; }
  .section-heading h2, .contact h2, .facility-copy h2, .accreditation-copy h2 { font-size: 42px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 34px; }
  .about-copy { padding: 0; }
  .courses { padding-left: 20px; padding-right: 20px; }
  .heading-row { display: block; }
  .heading-row > p { margin-top: 24px; }
  .course-grid { grid-template-columns: 1fr; }
  .course-card { min-height: 260px; }
  .course-card.featured { transform: none; }
  .course-card h3 { margin-top: 38px; }

  .facilities { padding-left: 20px; padding-right: 20px; }
  .facility-grid { grid-template-columns: 1fr; }
  .facility-image { order: -1; }
  .accreditation-card { grid-template-columns: 1fr; }
  .certificate-mark { padding: 36px; }
  .certificate-mark img { max-height: 190px; }
  .accreditation-copy { padding: 44px 28px 50px; }

  .contact { grid-template-columns: 1fr; }
  .contact-heading { padding: 70px 20px 44px; }
  .contact-details { grid-template-columns: 1fr; padding: 0 20px 50px; border-left: 0; }
  .contact-item, .contact-item:nth-child(even) { border-right: 0; }
  .contact-address { grid-column: auto; }

  .site-footer { padding: 0 20px; }
  .footer-main { grid-template-columns: 1fr auto; }
  .footer-main > p { display: none; }
  .footer-base { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
