/* All Trades and Licenses — pre-registration website
   Layout modelled on freshstart.edu.au, in ATL navy and red (taken from the logo).
   Mobile-first, semantic, accessible. No frameworks. */

:root {
  --navy: #1d2b4c;
  --navy-deep: #131d34;
  --red: #c4262e;
  --red-deep: #a11d24;
  --ink: #1b1f2a;
  --ink-soft: #4a5263;
  --paper: #ffffff;
  --grey: #eef0f4;
  --line: #dde1e8;
  --error: #b3261e;
  --ok: #1f7a3d;
  --radius: 6px;
  --wrap: 72rem;
  --narrow: 48rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--red); color: #fff; padding: .6rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: .65rem 1.4rem;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-lg { padding: .85rem 1.9rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-deep); color: #cdd3e0; font-size: .82rem; }
.topbar-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .25rem 1.5rem; padding-top: .45rem; padding-bottom: .45rem;
}
.topbar-contact { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { text-decoration: underline; }
.topbar svg { width: 15px; height: 15px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; }
.topbar-status {
  margin: 0; font-weight: 600; color: #fff;
  background: var(--red); border-radius: 999px; padding: .1rem .7rem; font-size: .75rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(19, 29, 52, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; }
.brand img { width: 190px; }

.nav-toggle {
  background: none; border: 0; padding: .6rem; cursor: pointer;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 2px; position: relative;
}
.nav-toggle .bars::before,
.nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -8px; }
.nav-toggle .bars::after { top: 8px; }

.site-nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line);
  flex-direction: column; padding: .5rem 1rem 1rem;
}
.site-nav.open { display: flex; }
.site-nav a {
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .04em; padding: .7rem 0;
}
.site-nav a:hover { color: var(--red); }
.site-nav .nav-cta { color: #fff; margin-top: .5rem; text-transform: none; letter-spacing: 0; }
.site-nav .nav-cta:hover { color: #fff; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; position: static; flex-direction: row; align-items: center;
    gap: 1.6rem; padding: 0; border: 0;
  }
  .site-nav a { padding: 0; }
  .site-nav .nav-cta { margin: 0 0 0 .4rem; padding: .55rem 1.2rem; }
  .brand img { width: 220px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(rgba(19, 29, 52, .72), rgba(19, 29, 52, .78)),
    url("images/step-4-timber-framing.jpg") center / cover no-repeat;
  padding: 4.5rem 0 5rem;
}
.hero-inner { max-width: 50rem; }
.hero h1 { margin: 0; font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 800; line-height: 1.1; }
.hero .accent { color: #ff4a52; }
.hero-tag { margin: .6rem 0 0; font-size: clamp(1.15rem, 3.6vw, 1.6rem); font-style: italic; font-weight: 500; }
.hero-sub { margin: 1.2rem auto 0; max-width: 40rem; color: #e3e7ef; }
.hero-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

@media (min-width: 900px) { .hero { padding: 7rem 0 7.5rem; } }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-grey { background: var(--grey); }
.section-title {
  margin: 0 0 1rem; text-align: center; color: var(--navy);
  font-size: clamp(1.6rem, 4.5vw, 2.2rem); font-weight: 700; line-height: 1.2;
}
.section-title::after {
  content: ""; display: block; width: 56px; height: 4px; background: var(--red);
  margin: .8rem auto 0; border-radius: 2px;
}
.section-title.left { text-align: left; }
.section-title.left::after { margin-left: 0; }
.section-lede { max-width: 46rem; margin: 0 auto 2.2rem; text-align: center; color: var(--ink-soft); }

.callout {
  background: #fff; border-left: 4px solid var(--red);
  padding: 1rem 1.2rem; border-radius: var(--radius);
}

@media (min-width: 900px) { .section { padding: 5rem 0; } }

/* ---------- Qualification cards ---------- */
.qual-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.25rem; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .qual-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .qual-grid { grid-template-columns: repeat(3, 1fr); } }

.qual-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 12px rgba(19, 29, 52, .08);
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.qual-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(19, 29, 52, .14); }
.qual-head {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; padding: 1.4rem 1.3rem; position: relative;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.qual-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red);
}
.qual-level { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #c8cfdd; }
.qual-code { font-weight: 700; font-size: 1.05rem; letter-spacing: .03em; }
.qual-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.qual-body h3 { margin: 0 0 .5rem; color: var(--navy); font-size: 1.05rem; line-height: 1.35; }
.qual-body p { margin: 0 0 1rem; color: var(--ink-soft); font-size: .92rem; }
.qual-link { margin-top: auto; font-weight: 600; text-decoration: none; font-size: .92rem; }
.qual-link:hover { text-decoration: underline; }

/* ---------- Difference ---------- */
.diff-grid {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: 1.5rem; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .diff-grid { grid-template-columns: repeat(5, 1fr); } }
.diff-grid li { text-align: center; }
.diff-grid p { margin: .8rem 0 0; color: var(--ink-soft); font-size: .92rem; }
.diff-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%; background: var(--navy);
}
.diff-icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- RPL band ---------- */
.rpl-band {
  color: #fff; padding: 3.5rem 0;
  background:
    linear-gradient(rgba(161, 29, 36, .9), rgba(29, 43, 76, .92)),
    url("images/building-construction-hero.jpg") center / cover no-repeat;
}
.rpl-inner { display: grid; gap: 2rem; align-items: center; }
.rpl-copy h2 { margin: 0 0 .8rem; font-size: clamp(1.5rem, 4.5vw, 2.1rem); line-height: 1.2; }
.rpl-copy p { margin: 0 0 1.2rem; color: #f0f2f6; }
.rpl-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.rpl-card {
  background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
}
.rpl-card label { display: block; font-weight: 600; margin-bottom: .4rem; color: var(--navy); }
.rpl-card select { margin-bottom: 1rem; }
.rpl-note { margin: .8rem 0 0; font-size: .8rem; color: var(--ink-soft); text-align: center; }

@media (min-width: 900px) {
  .rpl-band { padding: 5rem 0; }
  .rpl-inner { grid-template-columns: 1.3fr 1fr; gap: 3.5rem; }
}

/* ---------- About ---------- */
.about-inner { display: grid; gap: 2rem; align-items: center; }
.about-photo { border-radius: var(--radius); box-shadow: 0 8px 24px rgba(19, 29, 52, .15); }
@media (min-width: 900px) { .about-inner { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

/* ---------- Student information ---------- */
.download-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.2rem;
  background: #fff; border-radius: var(--radius); padding: 1.3rem 1.4rem;
  border-left: 4px solid var(--red); box-shadow: 0 2px 12px rgba(19, 29, 52, .08);
}
.download-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; background: var(--navy);
}
.download-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.download-text { flex: 1; min-width: 10rem; }
.download-text h3 { margin: 0; color: var(--navy); font-size: 1.1rem; }
.download-text p { margin: .1rem 0 0; color: var(--ink-soft); font-size: .88rem; }
.download-note { margin: 1rem 0 0; font-size: .85rem; color: var(--ink-soft); text-align: center; }

.download-card + .download-card { margin-top: 1rem; }

/* ---------- Course pages ---------- */
.course-hero {
  color: #fff; padding: 3rem 0 3.5rem;
  background:
    linear-gradient(rgba(19, 29, 52, .82), rgba(19, 29, 52, .88)),
    url("images/step-4-timber-framing.jpg") center / cover no-repeat;
}
.course-hero h1 { margin: .3rem 0 0; font-size: clamp(1.7rem, 5.5vw, 2.8rem); line-height: 1.15; max-width: 46rem; }
.crumbs { margin: 0 0 1.2rem; font-size: .82rem; color: #c8cfdd; }
.crumbs a { color: #fff; }
.course-level { margin: 0; color: #ff8a90; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.course-cta { justify-content: flex-start; }
.status-strip { background: #fdf0f0; border-bottom: 1px solid #f3d3d5; color: var(--red-deep); font-size: .9rem; padding: .8rem 0; }
.course-body { max-width: var(--narrow); }
.course-body h2 { color: var(--navy); font-size: 1.4rem; margin: 2.2rem 0 .7rem; }
.course-body h2:first-child { margin-top: 0; }
.course-body ul, .course-body ol { padding-left: 1.3rem; }
.course-body li { margin-bottom: .4rem; }
.course-steps li { margin-bottom: .7rem; }
.unit-table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; }
.unit-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.unit-table caption { text-align: left; font-weight: 700; color: var(--navy); padding-bottom: .5rem; }
.unit-table th { background: var(--navy); color: #fff; text-align: left; padding: .55rem .8rem; font-weight: 600; }
.unit-table td { padding: .5rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.unit-table tbody tr:nth-child(even) td { background: var(--grey); }
.unit-code { font-weight: 600; white-space: nowrap; color: var(--navy); }
.course-end-cta { margin-top: 2.5rem; background: var(--grey); border-radius: var(--radius); padding: 1.6rem; text-align: center; }
.course-end-cta h2 { margin-top: 0; }
.qual-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.qual-links .qual-link { margin-top: 0; }

/* ---------- Contact / EOI ---------- */
.section-navy { background: var(--navy); color: #fff; }
.contact-inner { display: grid; gap: 2.5rem; align-items: start; }
.contact-details h2 { margin: 0 0 .8rem; font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
.contact-details p { color: #dfe4ee; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .9rem; }
.contact-list li { display: grid; gap: .1rem; }
.contact-list span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #aeb8cc; }
.contact-list a { color: #fff; font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }

.eoi-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.5rem; }
.eoi-card h3 { margin: 0 0 1rem; color: var(--navy); font-size: 1.25rem; }

@media (min-width: 900px) { .contact-inner { grid-template-columns: 1fr 1.2fr; gap: 4rem; } }

/* ---------- Forms ---------- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; color: var(--navy); }
.req { color: var(--red); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #c3c9d4; border-radius: var(--radius); padding: .65rem .75rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: 2px solid rgba(29, 43, 76, .25); }
input[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .85rem; margin: .3rem 0 0; }
.hp { position: absolute; left: -9999px; }
.form-disclaimer { font-size: .82rem; color: var(--ink-soft); background: var(--grey); padding: .7rem .8rem; border-radius: var(--radius); }
.form-status { min-height: 1.4em; margin: .7rem 0 0; font-weight: 600; font-size: .9rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--error); }
.privacy-note { font-size: .8rem; color: var(--ink-soft); margin: .3rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #c3cad8; font-size: .9rem; }
.footer-grid { display: grid; gap: 2rem; padding-top: 3rem; padding-bottom: 2.5rem; }
.site-footer h4 { margin: 0 0 .8rem; color: #fff; font-size: .95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer a { color: #c3cad8; text-decoration: none; word-break: break-word; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-disclaimer { margin: 1rem 0 0; font-size: .82rem; color: #9fa9bd; }
.footer-bar { background: var(--red); color: #fff; font-size: .82rem; padding: .8rem 0; }

@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr 1.3fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .qual-card, .btn { transition: none; }
  .qual-card:hover { transform: none; }
}

