/* SPM Projects QLD — mobile-first, plain CSS */

:root {
  --ink: #fff;
  --muted: #b5b5b5;
  --paper: #000;
  --raised: #0b0b0b;
  --line: #2e2e2e;
  --line-strong: #444;
  --gutter: 20px;
  --header-h: 70px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.65 Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 18px; }

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}

.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Icons ---------- */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--lg { width: 28px; height: 28px; stroke-width: 1.5; }

/* ---------- Shared type ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow > span { line-height: 1.6; }
.eyebrow-sep { display: none; }
@media (min-width: 600px) {
  .eyebrow-sep { display: inline; }
  .eyebrow-br { display: none; }
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--ink);
}

/* Headings use Montserrat to match the logo; body text stays Arial */
h1, h2, h3,
.cta-row p,
.email-big {
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.75rem, 11vw, 5.4rem);
  letter-spacing: -.045em;
  line-height: 1.04;
  margin: 24px 0;
}

h2 {
  font-size: clamp(2rem, 7vw, 3.2rem);
  letter-spacing: -.035em;
  line-height: 1.12;
  margin: 18px 0 0;
}

h3 {
  font-size: 1.3rem;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin: 0 0 12px;
}

.number,
.step-number {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 2px;
  transition: background-color .2s, color .2s, border-color .2s;
}

.button--primary { background: var(--ink); color: var(--paper); }
.button--primary:hover { background: #dcdcdc; border-color: #dcdcdc; }

.button--ghost { border-color: rgba(255, 255, 255, .6); }
.button--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button--ghost .icon { transition: transform .2s; }
.button--ghost:hover .icon { transform: translateX(3px); }

.button--lg { padding: 15px 20px; font-size: .9375rem; }
.button--block { display: flex; width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

/* ---------- Logo (inline mark + Montserrat wordmark) ---------- */

.logo {
  --mark: 34px;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--mark) * .32);
  color: #f1f2f2;
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  line-height: 1;
  white-space: nowrap;
}

.logo-mark {
  width: var(--mark);
  height: calc(var(--mark) * .952);
  flex: none;
}

.logo-text { display: flex; flex-direction: column; gap: calc(var(--mark) * .16); }

.logo-name {
  font-size: calc(var(--mark) * .36);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.logo-name b {
  font-size: 1.9em;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-right: .1em;
}

.logo-tagline {
  font-size: calc(var(--mark) * .27);
  font-weight: 600;
  letter-spacing: .01em;
}

.logo--full { --mark: 64px; }
.logo--full .logo-name { font-size: calc(var(--mark) * .25); }
.logo--full .logo-tagline { font-size: calc(var(--mark) * .2); }

nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: .875rem;
  font-weight: 600;
}
.nav-link { display: none; padding: 6px 0; }
.nav-link:hover { text-decoration: underline; text-underline-offset: 5px; }
nav .button { padding: 10px 14px; font-size: .8125rem; }

/* ---------- Hero (background video) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 600px;
  min-height: min(calc(100svh - var(--header-h)), 860px);
  background: #000 url("images/hero-poster.webp") center / cover no-repeat;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  container-type: size;
}

/* Cover the box at 16:9, then scale up slightly to crop YouTube's title bar and logo */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  width: max(100cqw, 177.78cqh);
  height: max(100cqh, 56.25cqw);
  border: 0;
  transform: translate(-50%, -50%) scale(1.2);
  opacity: 0;
  animation: hero-fade 1.2s ease 2.5s forwards;
}

@keyframes hero-fade { to { opacity: 1; } }

/* Dark overlay for legibility */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .5) 35%, rgba(0, 0, 0, .92) 100%);
}

.hero-inner {
  padding-top: 72px;
  padding-bottom: 48px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
}

.lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 480px;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  text-shadow: none;
}

/* ---------- Trust bar ---------- */

.strip { border-bottom: 1px solid var(--line); }

.trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 20px;
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 20px;
  list-style: none;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.35;
}
.trust li { display: flex; align-items: center; gap: 10px; }
.trust .icon { width: 20px; height: 20px; color: var(--muted); }
@media (min-width: 480px) {
  .trust { grid-template-columns: 1fr 1fr; }
}

/* Very small phones: header email button becomes icon-only so the logo fits */
@media (max-width: 379px) {
  .nav-email { padding: 10px 12px; }
  .nav-email-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ---------- Sections ---------- */

section { padding: 64px 0; }

.section-head {
  display: grid;
  gap: 24px;
  margin-bottom: 32px;
}
.section-head p { color: var(--muted); margin: 0; max-width: 460px; }

/* Service cards */

.cards {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card { padding: 28px 0; }
.card + .card { border-top: 1px solid var(--line); }
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.card-top .number { color: var(--muted); }
.card p { margin: 0; color: var(--muted); }

/* Inline call to action */

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 40px;
  padding: 24px 20px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 2px;
}
.cta-row p { margin: 0; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.25; }

/* Banner buttons: identical black buttons, inverted on hover */
.cta-row .button {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}
.cta-row .button:hover {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--paper);
}
.cta-row a:focus-visible { outline-color: var(--paper); }

.cta-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }
@media (min-width: 600px) {
  .cta-actions { flex-direction: row; width: auto; }
  .cta-actions .button { flex: none; min-width: 140px; }
}

/* Projects / video */

.projects {
  background: var(--raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.videos { display: grid; gap: 32px; }

.video { margin: 0; }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--line);
  border-radius: 2px;
}

@supports not (aspect-ratio: 16 / 9) {
  .video-frame { height: 0; padding-top: 56.25%; }
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  font-size: .875rem;
  font-weight: 700;
}
.video figcaption .icon { width: 14px; height: 14px; }
.video figcaption .number { color: var(--muted); }

/* Two-column split layouts */

.split { display: grid; gap: 36px; }

.approach-intro p { margin-top: 22px; color: var(--muted); max-width: 400px; }

.steps { list-style: none; padding: 0; margin: 0; }
.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.steps li:first-child { padding-top: 0; }
.step-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
.steps .step-number { display: block; margin-bottom: 4px; color: var(--muted); }
.steps h3 { margin: 0 0 8px; font-size: 1.125rem; }
.steps p { margin: 0; color: var(--muted); }

/* FAQ */

details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }

summary {
  position: relative;
  padding: 22px 36px 22px 0;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 17px;
  font-size: 1.4rem;
  font-weight: 400;
}
details[open] summary::after { content: "−"; }
details p { color: var(--muted); padding: 0 36px 8px 0; }

/* Enquiry */

.enquiry { border-top: 1px solid var(--line); }
.enquiry h2 { font-size: clamp(2.1rem, 7.5vw, 3.3rem); }
.enquiry p { margin-top: 22px; max-width: 470px; }

.email-big {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-bottom: 10px;
  /* Sized to its column so the address always stays on one line */
  font-size: clamp(1rem, 5vw, 2.1rem);
  font-size: clamp(1rem, 5.9cqi, 2.1rem);
  letter-spacing: -.02em;
  line-height: 1.2;
  white-space: nowrap;
  border-bottom: 2px solid var(--ink);
}
.enquiry-intro { container-type: inline-size; min-width: 0; }
.email-big .icon { width: .9em; height: .9em; stroke-width: 2; }
.email-big .arrow { transition: transform .2s; }
.email-big:hover .arrow { transform: translateX(5px); }

/* Inverted white panel */
.enquiry-notes {
  align-self: start;
  padding: 28px 20px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 2px;
}
.enquiry-notes h3 { margin: 0 0 16px; font-size: 1.25rem; letter-spacing: -.03em; }
.enquiry-notes .checklist .icon { color: var(--paper); }
.enquiry-notes .checklist li + li { border-top: 1px solid #e2e2e2; }
.enquiry-notes .button {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}
.enquiry-notes .button:hover {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--paper);
}
.enquiry-notes a:focus-visible { outline-color: var(--paper); }

.checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.checklist li { display: flex; gap: 12px; padding: 10px 0; }
.checklist .icon { margin-top: 4px; width: 18px; height: 18px; color: var(--muted); }

/* Footer */

footer { border-top: 1px solid var(--line); }

.footer {
  display: grid;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 48px;
}

.footer-brand p { margin: 14px 0 0; font-size: .9375rem; color: var(--muted); }
.footer-areas { max-width: 360px; line-height: 1.6; }
.footer-areas strong { color: var(--ink); font-weight: 700; }

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-email,
.footer-phone,
.back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.footer-email { font-size: 1.125rem; font-weight: 700; overflow-wrap: anywhere; }
.footer-phone { font-size: 1.0625rem; }
.footer-abn,
.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .9375rem;
  color: var(--muted);
}
.footer-linkedin:hover { color: var(--ink); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.footer-email:hover,
.footer-phone:hover,
.footer-linkedin:hover,
.back:hover { text-decoration: underline; text-underline-offset: 5px; }

.footer-member { margin: 0; max-width: 220px; }
.footer-member img { width: 140px; border-radius: 6px; }
.footer-member figcaption {
  margin-top: 12px;
  font-size: .875rem;
  line-height: 1.4;
  color: var(--muted);
}


.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}
.back { align-self: flex-start; color: var(--muted); }

/* ---------- ≥ 600px ---------- */

@media (min-width: 600px) {
  :root { --gutter: 32px; --header-h: 76px; }

  .site-header .logo { --mark: 38px; }

  .actions { flex-direction: row; flex-wrap: wrap; }

  .cards { display: grid; grid-template-columns: repeat(3, 1fr); }
  .card { padding: 32px 24px 34px 0; }
  .card + .card {
    border-top: 0;
    border-left: 1px solid var(--line);
    padding-left: 24px;
  }
  .card-top { margin-bottom: 36px; }

  .cta-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
  }
  .cta-row p { font-size: 1.5rem; }
  .enquiry-notes { padding: 36px 36px 32px; }

  .videos { grid-template-columns: 1fr 1fr; gap: 24px; }

}

/* ---------- ≥ 900px ---------- */

@media (min-width: 900px) {
  :root { --gutter: 6%; --header-h: 92px; }

  .site-header .logo { --mark: 44px; }
  .nav-link { display: inline-block; }
  nav .button { padding: 12px 18px; font-size: .875rem; }

  .hero { align-items: center; }
  .hero::after {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .6) 45%, rgba(0, 0, 0, .25) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .85) 100%);
  }
  .hero-inner { padding-top: 96px; padding-bottom: 96px; }
  .hero h1 { margin: 30px 0; }
  .lead { font-size: 1.125rem; }
  .button--lg { padding: 16px 26px; font-size: 1rem; }

  .trust { gap: 16px 40px; padding-top: 22px; padding-bottom: 22px; font-size: .875rem; }

  section { padding: 95px 0; }

  .section-head {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
    gap: 60px;
    margin-bottom: 45px;
  }

  .card { padding: 36px 30px 38px 0; }
  .card + .card { padding-left: 30px; }
  .card h3 { font-size: 1.4rem; }

  .videos { gap: 32px; }

  .split { grid-template-columns: .9fr 1.1fr; gap: 80px; }
  .enquiry .split { grid-template-columns: 1.2fr 1fr; }

  .steps li { gap: 22px; padding: 26px 0; }
  .steps h3 { font-size: 1.15rem; }

  .footer {
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 80px;
    padding-top: 72px;
    padding-bottom: 64px;
  }
  .logo--full { --mark: 72px; }
  .footer-member { max-width: 190px; }
  .footer-member img { width: 150px; }

  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .back { align-self: auto; }
}

@media (min-width: 1200px) {
  .trust { display: flex; justify-content: space-between; gap: 24px; }
  .site-header .logo { --mark: 48px; }
  .split { gap: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .hero-video { display: none; }
}
