:root {
  --navy: #004680;
  --navy-deep: #0a2d55;
  --navy-darker: #082445;
  --blue: #0065b8;
  --cyan: #40c0f2;
  --ink: #090545;
  --orange: #faad1e;
  --gold: #f7a823;
  --paper: #f6f6f6;
  --white: #fff;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;
  --font: "Heebo", "Rubik", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  overflow-x: clip; /* not "hidden": that makes body a scroll container and breaks the sticky header */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-darker) 100%);
  color: #fff;
}
.site-header__inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  min-width: 0;
  /* flex: 1 1 auto; */
}
.brand__text { min-width: 0; }
.brand__logo {
  width: 64px; height: 64px;
  display: grid; place-items: center;
}
.brand__logo img { width: 64px; height: 64px; object-fit: contain; }
.brand__text b {
  display: block; font-size: 17px; font-weight: 800; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.brand__text span {
  display: block; font-size: 12px; color: var(--gold); font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.site-nav { display: flex; gap: 2px; flex-wrap: nowrap; }
.site-nav a {
  color: #e6eefa; text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 9px; border-radius: 999px; white-space: nowrap;
}
.site-nav a.on, .site-nav a:hover { background: rgba(255,255,255,.14); color: #fff; }

.site-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tel {
  font-weight: 800; font-size: 15px; color: #fff; text-align: center;
  line-height: 1.1; text-decoration: none; white-space: nowrap;
}
.tel small { display: block; font-weight: 400; font-size: 11px; color: #b9cde6; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 14px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn--gold { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.btn--gold:hover { background: #ffb93f; }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); }
.site-logout { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; padding: 8px 16px; white-space: nowrap; }
.site-logout:hover { background: rgba(255,255,255,.1); }
.btn--orange {
  --bg: var(--orange); background: var(--orange); color: var(--ink); border-color: var(--orange);
  min-height: 48px; padding: 0 28px; font-size: 17px; font-weight: 500;
}
.btn--ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.6);
  min-height: 48px; padding: 0 28px; font-size: 17px; font-weight: 500;
}

.search-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 0; display: grid; place-items: center; cursor: pointer;
}
.search-btn svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; }
.site-search { display: none; }
.site-search.open { display: flex; }
.site-search input {
  height: 38px; width: 150px; border-radius: 999px; border: 0;
  padding: 0 14px; font: inherit; font-size: 14px; color: var(--navy-deep); outline: 0;
}

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.4);
  border-radius: 8px; background: transparent; flex-direction: column; justify-content: center; gap: 5px; padding: 8px;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 1px; }

/* Home hero only — do not use bare .hero (course embeds use that class) */
.home-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 720px; display: flex; align-items: center; background: var(--navy); color: #fff;
}
.home-hero__slides, .home-hero__slide { position: absolute; inset: 0; }
.home-hero__slide {
  background-size: cover; background-position: 100% center; opacity: 0;
  transition: opacity 1.2s var(--ease); transform: scale(1.04);
}
.home-hero__slide.is-active { opacity: 1; animation: kenburns 14s linear forwards; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.home-hero__shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to left, rgba(0,70,128,.94) 0%, rgba(0,70,128,.82) 38%, rgba(0,70,128,.25) 72%, rgba(0,70,128,.05) 100%);
}
.home-hero__inner {
  position: relative; z-index: 3; width: min(1200px, 100%);
  margin-inline: auto; padding: 56px 24px 120px;
}
.home-hero__text { max-width: 560px; }
.home-hero h1 { font-weight: 700; font-size: clamp(32px, 5.2vw, 60px); line-height: 1.1; margin: 0; }
.home-hero h1 em {
  display: block; font-style: normal; font-weight: 300; color: var(--orange);
  font-size: .72em; margin-top: 10px;
}
.home-hero__sub { margin-top: 18px; font-size: clamp(17px, 2vw, 22px); font-weight: 300; line-height: 1.5; }
.home-hero__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }

.home-hero__chips {
  position: absolute; z-index: 3; inset-inline: 0; inset-block-end: 0;
  background: linear-gradient(to top, rgba(9,5,69,.78), rgba(9,5,69,0));
  padding: 36px 0 20px;
}
.chips {
  width: min(1200px, 100%); margin-inline: auto; padding-inline: 24px;
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; min-height: 44px;
  color: #fff; text-decoration: none; font-size: 15px; padding: 0 18px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.08); backdrop-filter: blur(4px);
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.chip:hover { background: var(--cyan); color: var(--ink); border-color: var(--cyan); transform: translateY(-2px); }

.home-hero__controls {
  position: absolute; z-index: 4; inset-block-start: 18px; inset-inline-start: 24px;
  display: flex; align-items: center; gap: 10px;
}
.tile__icon svg {
  width: 28px; height: 28px; stroke: var(--ink); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.dots { display: flex; gap: 6px; }
.dot { width: 26px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); border: 0; padding: 0; cursor: pointer; }
.dot.is-active { background: var(--orange); }

/* Stats */
.stats {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--ink) 0%, #0a2a6b 55%, var(--navy) 100%);
}
.stats__inner { width: min(1200px, 100%); margin-inline: auto; padding: 64px 24px 72px; }
.stats__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.stats h2 { font-weight: 700; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; margin: 0; }
.stats h2 em { display: block; font-style: normal; font-weight: 300; color: var(--orange); font-size: .62em; margin-top: 8px; }
.rating {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px;
  border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); font-size: 15px;
}
.rating b { font-weight: 700; font-size: 20px; color: var(--orange); }
.rating .stars { color: var(--orange); letter-spacing: 2px; }
.stats-grid {
  margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  list-style: none; padding: 0;
}
.stat {
  padding: 26px 22px 24px; border-radius: 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
}
.stat svg {
  width: 34px; height: 34px; stroke: var(--cyan); fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.stat .num { display: block; margin-top: 14px; font-weight: 700; font-size: clamp(38px, 4.6vw, 56px); line-height: 1; }
.stat .label { display: block; margin-top: 8px; font-weight: 300; font-size: 18px; }

/* Fields / course tiles */
.fields { padding: 72px 0 80px; background: var(--paper); }
.fields__inner { width: min(1240px, 100%); margin-inline: auto; padding-inline: 24px; }
.fields h2 {
  font-weight: 700; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; max-width: 20em; margin: 0;
}
.fields h2::after {
  content: ""; display: block; width: 72px; height: 5px; margin-top: 14px;
  border-radius: 3px; background: var(--orange);
}
.fields-grid {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 22px;
}
.tile {
  flex: 0 1 calc(25% - 17px); min-width: 250px; background: #fff; border-radius: 18px;
  overflow: hidden; border: 2px solid transparent; box-shadow: 0 2px 10px rgba(9,5,69,.08);
}
.tile__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.07); }
.tile__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,5,69,.78), rgba(9,5,69,0) 60%);
}
.tile__icon {
  position: absolute; z-index: 2; inset-block-start: 14px; inset-inline-start: 14px;
  width: 48px; height: 48px; border-radius: 12px; background: var(--orange);
  display: grid; place-items: center;
}
.tile__title {
  position: absolute; z-index: 2; inset-inline: 16px; inset-block-end: 12px;
  color: #fff; font-weight: 700; font-size: 21px; line-height: 1.2; margin: 0;
}
.tile__toggle {
  all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 18px;
  cursor: pointer; font: 500 16px var(--font); color: var(--blue);
}
.panel { display: none; }
.panel.is-open { display: block; }
.panel__body { padding: 4px 18px 20px; font-size: 16px; line-height: 1.55; border-top: 1px solid #e6e8ef; padding-top: 14px; }
.panel__body p { margin: 0 0 8px; }
.go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; min-height: 44px;
  padding: 0 20px; border-radius: 999px; background: var(--orange); color: var(--ink);
  font-weight: 500; text-decoration: none;
}
.all { margin-top: 36px; text-align: center; }
.all a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 32px;
  border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; font-size: 17px; text-decoration: none;
}

/* Lead form band (avoid .lead — clashes with course embed copy class) */
.lead-band {
  background: #fff; padding: 56px 24px; border-top: 1px solid #e8e8e8;
}
.lead-band__inner {
  width: min(1100px, 100%); margin: 0 auto;
}
.lead-band__inner > img { display: none; }
.lead-band h2 { margin: 0 0 8px; font-size: 28px; color: #211234; font-weight: 400; }
.lead-band p { margin: 0 0 20px; color: #444; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form .full { grid-column: 1 / -1; }
.lead-form label { display: block; font-size: 13px; margin-bottom: 4px; }
.lead-form input, .lead-form textarea, .lead-form select {
  width: 100%; border: 1px solid #dbdbdb; border-radius: 8px; padding: 12px 14px; font: inherit;
}
.lead-form button {
  grid-column: 1 / -1; justify-self: start; border: 0; cursor: pointer;
  background: var(--orange); color: var(--navy); border-radius: 999px; padding: 12px 28px; font-weight: 700;
}
.form-msg { margin-top: 12px; padding: 12px 16px; border-radius: 8px; background: #e8f7e8; color: #0a5; }
.form-msg.err { background: #fdeaea; color: #a00; }

.contact-meta {
  background: #f7f8fb; border-top: 1px solid #e8e8e8; padding: 28px 24px 40px;
}
.contact-meta__inner {
  width: min(960px, 100%); margin: 0 auto; text-align: center;
}
.contact-meta p { margin: 0 0 12px; color: #333; font-size: 16px; line-height: 1.7; }
.contact-meta a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.contact-meta__courses { font-size: 14px; color: #555; }
.contact-meta__courses span { font-weight: 600; color: var(--navy); }

/* Inner pages */
.page-hero {
  background: var(--navy); color: #fff; padding: 48px 24px 64px;
}
.page-hero__inner {
  width: min(1100px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
}
.page-hero h1 { margin: 0 0 16px; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; }
.page-hero p { margin: 0; font-size: 17px; line-height: 1.7; color: #e6eefa; }
.page-hero__media img {
  width: 100%; border-radius: 18px; object-fit: cover; max-height: 360px;
}
.page-body { width: min(900px, 100%); margin: 0 auto; padding: 48px 24px 72px; }
.page-body h2 { color: var(--navy); font-size: 28px; margin: 0 0 16px; }
.page-body p { margin: 0 0 14px; font-size: 17px; line-height: 1.75; color: #333; }
.page-body ul { padding-inline-start: 1.2em; }
.page-body li { margin-bottom: 8px; }
.stat-cards {
  width: min(1100px, 100%); margin: -36px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; z-index: 2;
}
.stat-card {
  background: #fff; border-radius: 16px; padding: 20px 18px;
  box-shadow: 0 8px 24px rgba(9,5,69,.12); text-align: center;
}
.stat-card.accent { background: var(--orange); }
.stat-card strong { display: block; color: var(--navy); font-size: 28px; margin-bottom: 6px; }
.stat-card span { font-size: 14px; color: #555; }

.courses-grid {
  width: min(1100px, 100%); margin: 0 auto; padding: 40px 24px 72px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
}
.course-card {
  background: #fff; border-radius: 14px; padding: 20px; text-decoration: none;
  box-shadow: 0 2px 10px rgba(9,5,69,.08); border: 1px solid #eee;
  transition: transform .2s, border-color .2s;
}
.course-card:hover { transform: translateY(-3px); border-color: var(--cyan); }
.course-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--navy); }
.course-card p { margin: 0; font-size: 14px; color: #666; }

.blog-list { width: min(900px, 100%); margin: 0 auto; padding: 40px 24px 72px; }
.blog-item {
  display: block; padding: 20px 0; border-bottom: 1px solid #e5e5e5;
  text-decoration: none; color: inherit;
}
.blog-item h2 { margin: 0 0 8px; font-size: 22px; color: var(--navy); }
.blog-item p { margin: 0; color: #555; }

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-darker) 100%);
  color: #fff; padding: 48px 24px 24px;
}
.site-footer__inner { max-width: 1160px; margin: 0 auto; }
.site-footer__top {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.1fr; gap: 36px; align-items: start;
}
.footer-logo {
  width: 92px; height: 92px;
  display: grid; place-items: center;
}
.footer-logo img { width: 92px; height: 92px; object-fit: contain; }
.footer-grp { width: 92px; text-align: center; font-size: 13px; font-weight: 700; color: var(--gold); }
.footer-brand h3 { margin: 10px 0 8px; font-size: 22px; font-weight: 800; }
.footer-brand p { margin: 0; color: #b9cde6; font-size: 15px; line-height: 1.6; }
.site-footer h4 { margin: 0 0 14px; font-size: 16px; font-weight: 700; color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.site-footer a { color: #e6eefa; text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: #fff; }
.hours-row {
  display: flex; justify-content: space-between; gap: 20px; font-size: 15px;
  color: #e6eefa; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.1);
}
.hours-row b { font-weight: 500; color: #b9cde6; }
.footer-cta { display: flex; flex-direction: column; gap: 12px; }
.footer-phone {
  font-size: 26px; font-weight: 800; color: #fff; text-align: center; text-decoration: none;
}
.footer-phone small { display: block; font-size: 13px; font-weight: 400; color: #b9cde6; }
.site-footer__mid {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
}
.footer-addr { font-size: 15px; color: #e6eefa; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.footer-social span { font-size: 14px; color: #b9cde6; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12);
  display: grid; place-items: center; color: #fff;
}
.footer-social a svg { width: 18px; height: 18px; display: block; }
.site-footer__bot { margin-top: 20px; text-align: center; font-size: 13px; color: #8fa9c9; }

.whatsapp-float {
  position: fixed; z-index: 90; inset-inline-start: 18px; inset-block-end: 18px;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.whatsapp-float svg { width: 30px; height: 30px; display: block; }

/* Course/service embeds (local HTML copies) sit under shared header */
.embed-page { background: #f4f7fb; }
.embed-page a[href^="http://localhost"],
.embed-page a[href^="/"] { /* keep local */ }

@media (max-width: 1180px) {
  .site-nav a { padding: 9px 6px; font-size: 13px; }
  .tel { display: none; }
}
@media (max-width: 980px) {
  .site-nav, .site-actions .btn--ghost-light, .search-btn, .site-search { display: none !important; }
  .nav-toggle { display: flex; }
  .site-nav.open {
    display: flex !important; position: absolute; inset-inline: 0; top: 100%;
    background: var(--navy-darker); flex-direction: column; padding: 12px 16px 20px; gap: 4px;
  }
  .stats-grid, .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .page-hero__inner { grid-template-columns: 1fr; }
}
/* Keep full desktop nav visible on typical laptop widths used in WAMP preview */
@media (min-width: 981px) {
  .nav-toggle { display: none !important; }
  .site-nav { display: flex !important; position: static; flex-direction: row; background: transparent; padding: 0; }
}
@media (max-width: 700px) {
  .home-hero { min-height: 640px; align-items: flex-end; }
  .home-hero__shade {
    background: linear-gradient(to top, rgba(0,70,128,.96) 0%, rgba(0,70,128,.82) 55%, rgba(0,70,128,.25) 100%);
  }
  .home-hero__cta .btn { flex: 1 1 100%; }
  .tile { flex-basis: 100%; min-width: 0; }
  .stats-grid, .stat-cards { grid-template-columns: 1fr 1fr; }
  .site-footer__top { grid-template-columns: 1fr; }
  .lead-form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero__slide, .home-hero__slide.is-active { animation: none; transform: none; transition: none; }
}
