:root {
  --ink: #18203a;
  --ink-soft: #48506a;
  --blue: #1247b7;
  --blue-deep: #0b2d76;
  --red: #d6262f;
  --gold: #ffcb32;
  --paper: #fbfcf7;
  --mist: #eef5ff;
  --white: #ffffff;
  --line: rgba(24, 32, 58, 0.16);
  --shadow: 0 20px 60px rgba(13, 30, 70, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

button,
a,
input,
select,
textarea {
  border-radius: 6px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--white);
  padding: 0.65rem 1rem;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem max(1rem, calc((100vw - var(--max)) / 2));
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(12, 22, 44, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 44px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-family: Cambria, Georgia, serif;
  font-size: 1.1rem;
}

.brand small {
  font-size: 0.74rem;
  color: currentColor;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.28rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.site-header.is-scrolled .primary-nav,
.site-header.nav-active .primary-nav {
  background: var(--mist);
  border-color: var(--line);
}

.primary-nav a {
  text-decoration: none;
  padding: 0.62rem 0.9rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.primary-nav a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.site-header.is-scrolled .primary-nav a:hover,
.site-header.nav-active .primary-nav a:hover {
  background: var(--white);
}

.nav-toggle {
  display: none;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  padding: 0.58rem 0.8rem;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: end;
  grid-template-columns: minmax(1rem, 1fr) minmax(0, 700px) minmax(260px, 360px) minmax(1rem, 1fr);
  gap: 2rem;
  overflow: hidden;
  color: var(--white);
  padding: 8rem 0 4rem;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("assets/campus-front.jpeg");
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero-overlay {
  background:
    linear-gradient(100deg, rgba(10, 22, 55, 0.88) 0%, rgba(10, 22, 55, 0.7) 43%, rgba(10, 22, 55, 0.18) 100%),
    repeating-linear-gradient(110deg, rgba(255, 203, 50, 0.42) 0 3px, transparent 3px 46px);
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  grid-column: 2;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero h1 {
  max-width: 12ch;
  margin: 0;
  font-family: Cambria, Georgia, serif;
  font-size: 4.8rem;
  line-height: 0.95;
  font-weight: 900;
  text-wrap: balance;
}

.hero-lede {
  max-width: 650px;
  margin: 1.3rem 0 0;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.1rem;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.button-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(214, 38, 47, 0.28);
}

.button-primary:hover {
  background: #b51f28;
}

.button-light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-deep);
}

.button-light:hover {
  background: var(--gold);
  color: var(--ink);
}

.hero-panel {
  grid-column: 3;
  align-self: end;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  padding: 1.2rem;
  border-top: 8px solid var(--gold);
  box-shadow: var(--shadow);
}

.hero-panel img {
  width: 170px;
  height: auto;
  margin-bottom: 1rem;
}

.hero-panel p {
  margin: 0 0 1.2rem;
  color: var(--ink-soft);
}

.hero-panel dl {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.hero-panel dt {
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.hero-panel dd {
  margin: 0;
  font-weight: 800;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1rem;
}

.section-kicker {
  color: var(--red);
}

.intro-grid,
.section-heading,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 2rem;
  align-items: start;
}

.section h2,
.feature-band h2 {
  margin: 0;
  font-family: Cambria, Georgia, serif;
  font-size: 2.7rem;
  line-height: 1.06;
  color: var(--ink);
  text-wrap: balance;
}

.section p,
.feature-band p {
  color: var(--ink-soft);
}

.intro p,
.section-heading p {
  margin: 1rem 0 0;
  max-width: 680px;
  font-size: 1.06rem;
}

.trust-panel {
  border-left: 6px solid var(--gold);
  background: var(--mist);
  padding: 1.2rem;
}

.trust-panel h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.trust-panel p {
  margin: 0;
}

.courses {
  max-width: none;
  background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%);
}

.courses > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.course-card {
  display: grid;
  grid-template-rows: 210px 1fr;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 7px solid var(--blue);
  box-shadow: 0 16px 36px rgba(13, 30, 70, 0.08);
}

.course-card:nth-child(2) {
  border-top-color: var(--red);
}

.course-card:nth-child(3) {
  border-top-color: var(--gold);
}

.course-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-card div {
  padding: 1.15rem;
}

.course-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.25rem;
}

.course-card ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.text-link {
  justify-self: end;
  align-self: center;
  color: var(--blue);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.step-grid article {
  background: var(--paper);
  padding: 1.2rem;
}

.step-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 34px;
  margin-bottom: 1rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
}

.step-grid article:nth-child(2) span {
  background: var(--red);
}

.step-grid article:nth-child(3) span {
  background: var(--blue);
}

.step-grid article:nth-child(4) span {
  background: var(--gold);
  color: var(--ink);
}

.step-grid h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
}

.step-grid p {
  margin: 0;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1rem;
  border-top: 10px solid var(--gold);
  border-bottom: 10px solid var(--red);
}

.feature-band > div {
  max-width: 760px;
}

.feature-band p {
  margin: 1rem 0 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr;
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-grid figure {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

.gallery-grid .gallery-large {
  min-height: 460px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid figcaption {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.8rem;
  background: rgba(255, 255, 255, 0.93);
  padding: 0.55rem 0.7rem;
  color: var(--ink);
  font-weight: 900;
}

.contact-section {
  align-items: stretch;
}

.contact-copy {
  padding-right: 1rem;
}

.contact-copy p {
  max-width: 660px;
}

.contact-list {
  display: grid;
  gap: 0.55rem;
  margin: 1.4rem 0;
}

.contact-list a {
  width: fit-content;
  color: var(--blue);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

address {
  margin: 1.5rem 0;
  font-style: normal;
  font-weight: 800;
}

.hours {
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  background: var(--mist);
  border-left: 6px solid var(--blue);
}

.hours strong {
  color: var(--red);
}

.enquiry-form {
  align-self: start;
  display: grid;
  gap: 0.9rem;
  padding: 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 8px solid var(--red);
  box-shadow: var(--shadow);
}

.enquiry-form h3 {
  margin: 0;
  font-family: Cambria, Georgia, serif;
  font-size: 1.7rem;
}

.enquiry-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 800;
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffefa;
  padding: 0.75rem;
  color: var(--ink);
}

.enquiry-form textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.floating-whatsapp {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 0.95rem;
  background: #1f9f55;
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: opacity 180ms ease, transform 180ms ease;
}

body.hide-whatsapp .floating-whatsapp,
body.show-whatsapp.hide-whatsapp .floating-whatsapp {
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem max(1rem, calc((100vw - var(--max)) / 2));
  background: var(--ink);
  color: var(--white);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1rem minmax(0, 1fr) 1rem;
    gap: 1.5rem;
    padding-top: 7.5rem;
  }

  .hero-content,
  .hero-panel {
    grid-column: 2;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-panel {
    max-width: 520px;
  }

  .intro-grid,
  .section-heading,
  .contact-section,
  .feature-band {
    grid-template-columns: 1fr;
  }

  .text-link {
    justify-self: start;
  }

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

  .course-card {
    grid-template-columns: minmax(220px, 0.8fr) 1fr;
    grid-template-rows: auto;
  }

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

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

  .gallery-large {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  body.nav-open {
    overflow: hidden;
  }

  .site-header {
    padding: 0.65rem 1rem;
  }

  .brand img {
    width: 48px;
    height: 38px;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    inset: 64px 1rem auto 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.6rem;
  }

  .site-header.nav-active .primary-nav {
    display: flex;
  }

  .primary-nav a {
    padding: 0.85rem 0.9rem;
  }

  .hero {
    padding-bottom: 2rem;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero-lede {
    font-size: 1.08rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 3.5rem 1rem;
  }

  .section h2,
  .feature-band h2 {
    font-size: 2rem;
  }

  .course-card {
    grid-template-columns: 1fr;
    grid-template-rows: 220px 1fr;
  }

  .step-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-large {
    grid-column: auto;
  }

  .gallery-grid figure,
  .gallery-grid .gallery-large {
    min-height: 310px;
  }

  .floating-whatsapp {
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
  }

  body.show-whatsapp .floating-whatsapp {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-footer {
    display: grid;
  }
}

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