@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #242424;
  --paper: #faf8f3;
  --gold: #b88a2e;
  --muted: #565656;
  --border: #dedad2;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 "DM Sans", system-ui, sans-serif; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #89601d; outline-offset: 5px; }
img { display: block; width: 100%; object-fit: cover; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .28em; line-height: .98; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; }
h1 { font-size: clamp(4rem, 8vw, 8.5rem); letter-spacing: -.025em; }
h2 { font-size: clamp(3.3rem, 6vw, 5.75rem); }
h3 { font-size: 2rem; line-height: 1.03; }
em { color: #dbad55; font-style: normal; }
.wrap { width: min(90%, 1280px); margin-inline: auto; }
.skip { position: absolute; transform: translateY(-150%); background: white; padding: .5rem; z-index: 5; }
.skip:focus { transform: translateY(0); }
.top, nav, .credentials .wrap { display: flex; align-items: center; }
.top { justify-content: space-between; min-height: 82px; gap: 1rem; }
nav { gap: clamp(.7rem, 3vw, 2.5rem); }
nav a, .brand { text-decoration: none; font-weight: 700; }
nav a:not(.button):hover { text-decoration: underline; }
.brand { flex: 0 1 clamp(120px, 19vw, 220px); }
.brand img { height: auto; }
.button { display: inline-flex; gap: 1.1rem; align-items: center; padding: .82rem 1.2rem; background: var(--gold); color: var(--ink); text-decoration: none; font-weight: 700; }
.button:hover { background: #d4a64d; }
.button.dark { background: var(--ink); color: white; }
.button.dark:hover { background: #424242; }
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: calc(100svh - 82px);
  background: var(--ink);
  color: white;
}
.hero-slides, .hero-slides img, .hero::after { position: absolute; inset: 0; }
.hero-slides { overflow: hidden; z-index: -2; }
.hero-slides img {
  height: 100%;
  object-position: 66% center;
  opacity: 0;
  transition: opacity .95s ease;
}
.hero-slides img.is-active { opacity: 1; animation: hero-zoom 9s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.075); } }
.hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, rgba(17,16,14,.92), rgba(17,16,14,.64) 47%, rgba(17,16,14,.18)),
              linear-gradient(0deg, rgba(17,16,14,.66), transparent 34%);
}
.hero-copy { padding: 3.5rem 5% 6rem; }
.hero .eyebrow { color: #dbad55; margin-bottom: 1.5rem; }
.intro { max-width: 36ch; margin-bottom: 1.8rem; color: #e8e5de; font-size: 1.12rem; }
.hero.is-paused .is-active { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .hero-slides img { transition: none; }
  .hero-slides img.is-active { animation: none; }
}
.credentials { background: var(--gold); }
.credentials .wrap { gap: .6rem 2.5rem; flex-wrap: wrap; min-height: 58px; padding-block: .8rem; }
.credentials strong { margin-right: auto; }
.credentials span { font-size: .88rem; font-weight: 700; }
.courses, .split { padding-block: clamp(3.2rem, 7vw, 6.5rem); }
.lead, .split p { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
article { display: flex; flex-direction: column; border: 1px solid var(--border); background: #fff; }
article img { aspect-ratio: 1.75; background: #dedad2; }
.card { display: flex; flex-direction: column; flex: 1; padding: 1.35rem; }
.code { color: var(--muted); letter-spacing: .07em; }
.card a { display: flex; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--border); margin-top: auto; padding-top: .9rem; font-weight: 700; }
.training { background: #efede7; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: center; }
.enquiry .button { margin-bottom: .8rem; }
@media (max-width: 760px) {
  .split, .grid { grid-template-columns: 1fr; }
  .hero::after { background: linear-gradient(90deg, rgba(17,16,14,.87), rgba(17,16,14,.5)); }
}
@media (max-width: 390px) {
  nav { gap: .55rem; font-size: .83rem; }
  nav .button { gap: .35rem; padding-inline: .55rem; }
}

.course-tiles article {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(24rem, 34vw, 31rem);
  border: 0;
  background: var(--ink);
  color: white;
}
.course-tiles article img,
.course-tiles article::after {
  position: absolute;
  inset: 0;
  height: 100%;
}
.course-tiles article img {
  z-index: -2;
  transition: transform .45s ease;
}
.course-tiles article::after {
  content: "";
  z-index: -1;
  background: linear-gradient(180deg, #171612b8, #17161220 25%, #171612df 56%, #171612fa);
}
.course-tiles .card { padding: clamp(1.15rem, 2vw, 2rem); }
.course-tiles .code {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  margin-bottom: auto;
  padding-bottom: clamp(4.5rem, 10vw, 9rem);
  color: white;
}
.course-tiles .card h3 { font-size: clamp(1.85rem, 2.65vw, 2.8rem); }
.course-tiles .card a {
  border-color: #ffffff55;
  color: #f4cf82;
  text-decoration: none;
}
.course-tiles .card a::before { content: ""; position: absolute; inset: 0; }
.course-tiles article:focus-within { outline: 3px solid #89601d; outline-offset: 4px; }
.course-tiles article:hover a, .course-tiles a:focus-visible { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
  .course-tiles article:hover img, .course-tiles article:focus-within img { transform: scale(1.045); }
}

.training {
  color: white;
  background: linear-gradient(90deg, #171612b8, #17161226 52%, #171612a6),
    url("https://images.unsplash.com/photo-1671418087163-9a29e29caefa?auto=format&fit=crop&w=1920&q=85") center 55% / cover no-repeat,
    #242424;
}
.training .split {
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: clamp(2rem, 5vw, 4rem);
}
.training .split p { color: #f5f1e9; }
.training .eyebrow { color: #f4cf82; }
.training .split > div {
  background: #171612b8;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.training .split .eyebrow { color: #f4cf82; }
@media (max-width: 760px) {
  .training .split { grid-template-columns: 1fr; gap: 1rem; }
}

.site-footer {
  border-top: 4px solid var(--gold);
  background: var(--ink);
  color: #e8e5de;
  padding-top: clamp(2rem, 5vw, 4rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .85fr 1.1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-brand a {
  display: inline-block;
  width: min(100%, 220px);
}
.footer-brand img { height: auto; }
.site-footer h2 {
  margin: 0 0 .8rem;
  color: #f4cf82;
  font: 700 1rem/1.4 "DM Sans", system-ui, sans-serif;
}
.site-footer p { margin: 0 0 .8rem; font-size: .9rem; }
.footer-brand p { margin-top: .85rem; max-width: 28ch; }
.site-footer nav { display: block; }
.site-footer nav a {
  display: block;
  width: fit-content;
  margin-bottom: .45rem;
  font-size: .9rem;
  font-weight: 500;
}
.site-footer a:hover { color: #f4cf82; }
.site-footer a:focus-visible { outline-color: #f4cf82; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem 1.5rem;
  border-top: 1px solid #ffffff38;
  padding-block: 1rem;
}
.footer-bottom p { margin: 0; font-size: .8rem; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(1.4rem, 4vw, 3rem);
  border-left: 4px solid var(--gold);
  background: linear-gradient(90deg, #171612f5, #171612a6), url("oztrade-scene-1.jpg") center 42% / cover;
}
.footer-cta h2 {
  margin: 0;
  color: white;
  font: 800 clamp(2rem, 4vw, 3.5rem)/1 "Barlow Condensed", "Arial Narrow", sans-serif;
}
.footer-cta a:hover { color: var(--ink); }

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-social a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: .5rem;
  color: white;
  text-decoration: none;
  font: 800 1.4rem/1 Arial, sans-serif;
}
.footer-social a:hover { color: white; filter: brightness(1.2); }
.footer-social .social-facebook { background: #0866ff; }
.footer-social .social-linkedin { background: #0a66c2; }
.footer-social .social-instagram { background: linear-gradient(35deg, #e89b31, #d62976 52%, #5739c8); }
.social-instagram span {
  position: relative;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 2px solid currentColor;
  border-radius: 6px;
}
.social-instagram span::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.social-instagram span::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}
.footer-social .social-tiktok {
  background: #080808;
  text-shadow: -1px -1px #25f4ee, 1px 1px #fe2c55;
}

.course-intro {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: calc(100svh - 82px);
  background: var(--ink);
  color: white;
}
.course-intro::after,
.course-heading img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.course-intro::after {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #171612ed, #171612bf 43%, #17161233);
}
.course-heading { padding-block: clamp(2rem, 6vw, 5rem); }
.course-heading > div { max-width: 680px; }
.course-heading h1 { font-size: clamp(2.9rem, 6vw, 6rem); }
.course-heading img { z-index: -2; object-position: 65% center; }
.course-back { display: inline-block; margin-bottom: 1.5rem; }
.course-heading .eyebrow { color: #f4cf82; }
.course-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-block: 0;
  padding-block: 1.6rem;
}
.course-facts div { padding-left: 1rem; border-left: 3px solid var(--gold); }
.course-facts dt { color: var(--muted); font-size: .85rem; }
.course-facts dd { margin: .25rem 0 0; font-weight: 700; }
.course-jump { position: sticky; top: 0; z-index: 2; display: block; background: var(--paper); border-block: 1px solid var(--border); }
.course-jump .wrap { display: flex; gap: 1.5rem; overflow-x: auto; }
.course-jump a { padding-block: .85rem; white-space: nowrap; }
.course-content { max-width: 900px; padding-block: 1rem 4rem; }
.course-content section { padding-block: 2rem; scroll-margin-top: 4rem; border-bottom: 1px solid var(--border); }
.course-content h2 { font-size: clamp(2.5rem, 5vw, 4rem); }
.course-content details { margin-top: .6rem; padding: .85rem 1rem; background: white; border: 1px solid var(--border); }
.course-content summary { cursor: pointer; font-weight: 700; }
.course-content details p, .course-apply .button + p { margin: .8rem 0 0; }
@media (max-width: 700px) {
  .course-intro::after { background: linear-gradient(90deg, #171612ed, #17161288); }
  .course-facts { grid-template-columns: 1fr; }
}

/* Compact course enquiry panel */
.enquiry.split {
  width: min(90%, 1280px);
  margin-block: clamp(1.75rem, 4vw, 3rem);
  padding-block: 0;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: .5rem;
  overflow: hidden;
  font-size: .9375rem;
}
.enquiry > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 3.2vw, 2.5rem);
  border-bottom: 4px solid var(--gold);
  background: var(--ink);
  color: #fff;
}
.enquiry h2 { font-size: clamp(1.75rem, 3.5vw, 2.65rem); line-height: 1.05; }
.enquiry > div p { margin: 0 0 .65rem; color: inherit; }
.enquiry > div p:last-child { display: flex; flex-wrap: wrap; gap: .2rem .45rem; margin: 0; color: #f3d49a; }
.enquiry-form { min-width: 0; padding: clamp(1rem, 2.8vw, 2rem); }
.enquiry-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem .9rem; }
.enquiry-form label { display: block; font-weight: 600; line-height: 1.3; }
.enquiry-form > label { margin-block: .55rem .65rem; }
.enquiry-form input, .enquiry-form textarea {
  display: block;
  width: 100%;
  margin-top: .2rem;
  padding: .4rem .55rem;
  border: 1px solid #a9a29a;
  border-radius: .25rem;
  background: #fff;
  color: inherit;
  font: 1rem/1.2 "DM Sans", system-ui, sans-serif;
}
.enquiry-form textarea { resize: vertical; }
.enquiry-form button { padding: .45rem .75rem; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.enquiry-form button:disabled { cursor: wait; opacity: .7; }
.enquiry-status { margin: .5rem 0 0; }
.enquiry-status:empty { display: none; }
@media (max-width: 560px) {
  .enquiry.split { grid-template-columns: minmax(0, 1fr); }
}
