/* Your Guardian Angel: site styles
   Palette comes from the van wrap: purple and gold.
   Contrast notes (checked against WCAG AA):
   - white on purple 9.9:1, gold on purple 4.5:1, gold on deep purple 5.7:1
   - gold on white fails (2.2:1) and deep gold on white is 3.0:1, so never use gold for text on light backgrounds
   Layout note: pages are kept short by placing headings beside their intro text and
   laying related content side by side on wider screens. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-next.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --purple: #5B2A86;
  --purple-deep: #46206A;
  --purple-ink: #2B1D38;
  --gold: #E0A526;
  --gold-deep: #C28A10;
  --gold-light: #EDB94A;
  --lilac: #F3EDF8;
  --lilac-mid: #E6D9F0;
  --white: #FFFFFF;
  --line: #7A6A8A;
  --error: #A1122A;
  --error-bg: #FDECEE;

  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", Verdana, sans-serif;
  --font-head: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;

  /* Type scale: 18px base, rising a touch on large screens */
  --step-0: clamp(1.125rem, 1.1rem + 0.1vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.2rem + 0.25vw, 1.375rem);
  --step-2: clamp(1.5rem, 1.35rem + 0.6vw, 1.8rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.2vw, 2.4rem);
  --step-4: clamp(2.3rem, 1.7rem + 2.6vw, 3.6rem);

  --measure: 40rem;
  --wrap: 75rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(2.5rem, 1.75rem + 3vw, 4.5rem);
  --radius: 14px;
  --focus: var(--purple);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--purple-ink);
  background: var(--white);
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-stretch: 82%;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--purple);
  margin: 0 0 0.45em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; }

p, ul, ol { margin: 0 0 0.9em; }
p { max-width: var(--measure); text-wrap: pretty; }

a { color: var(--purple); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.16em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden,
.js .to-top-label {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 10;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--purple-ink);
  font-weight: 700;
  border-radius: 0 0 var(--radius) var(--radius);
  --focus: var(--purple-ink);
}
.skip-link:focus-visible { top: 0; }

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

/* Lists styled without bullets keep list semantics for screen readers via role="list" in the HTML */
.plain-list { list-style: none; padding: 0; margin: 0; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.btn:hover { text-decoration: underline; text-decoration-thickness: 0.1em; }
.btn-gold { background: var(--gold); color: var(--purple-deep); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline-light { border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: rgb(255 255 255 / 0.12); }
.btn-purple { background: var(--purple); color: var(--white); }
.btn-purple:hover { background: var(--purple-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; }

/* Dark (purple) areas: gold focus ring so it stays visible */
.site-header, .hero, .page-hero, .band-dark, .site-footer, .feature-auslan { --focus: var(--gold); }

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

.site-header { background: var(--purple); color: var(--white); }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold);
  text-decoration: none;
}
.brand img { width: 3.5rem; height: auto; }
.wordmark {
  font-family: var(--font-head);
  font-stretch: 78%;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.wordmark { white-space: nowrap; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.5rem 1rem;
  border: 2px solid rgb(255 255 255 / 0.7);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: 700 1.05rem/1 var(--font-body);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* Small phones: keep brand and menu button on one line */
@media (max-width: 26rem) {
  .header-inner { column-gap: 0.75rem; }
  .brand { gap: 0.45rem; }
  .brand img { width: 2.5rem; }
  .wordmark { font-size: 1.15rem; }
  .nav-toggle { padding-inline: 0.8rem; }
}
/* Very narrow screens (under 360px): let the name wrap rather than squeeze */
@media (max-width: 22rem) {
  .wordmark { white-space: normal; }
  .wordmark span { display: block; }
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
}
.site-nav a {
  display: inline-block;
  padding: 0.5rem 0.7rem;
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
}
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 0.1em; }
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 0.16em;
}
.site-nav .nav-call {
  margin-left: 0.35rem;
  padding-inline: 1.1rem;
  border: 2px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
}

/* Collapsed menu on small screens. Only applied once JS has run, so the menu is always reachable without it. */
@media (max-width: 70rem) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { flex-basis: 100%; }
  .js .site-nav[data-open="false"] { display: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.25rem; padding-bottom: 0.75rem; }
  .site-nav a { display: block; padding: 0.75rem 0.5rem; font-size: 1.15rem; }
  .site-nav .nav-call { margin: 0.5rem 0 0; text-align: center; }
}

/* ---------- Wave (from the van wrap) ---------- */

.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: clamp(3rem, 2rem + 4vw, 6rem);
}
.wave-back { fill: var(--purple-deep); }
.wave-front { fill: var(--white); }
.wave-line { fill: none; stroke: var(--gold); }

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  background: var(--purple);
  color: var(--white);
  padding-block: clamp(1.75rem, 1rem + 3vw, 3.25rem) clamp(4.5rem, 3rem + 5vw, 7rem);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem 3rem;
  align-items: center;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4.4rem);
  font-stretch: 72%;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin-bottom: 0.4em;
}

/* One orchestrated moment on the home page: the angel's halo glows up, then the gold wave draws across.
   Switched off for anyone who prefers reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .hero .hero-mark { animation: halo-in 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .wave-line {
    stroke-dasharray: 3200;
    stroke-dashoffset: 3200;
    animation: wave-draw 1.8s cubic-bezier(.45, 0, .2, 1) 0.5s forwards;
  }
}
@keyframes halo-in {
  from { opacity: 0; transform: scale(0.92); filter: brightness(1.4); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes wave-draw { to { stroke-dashoffset: 0; } }
.hero h1 span { display: block; }
.hero-lead {
  font-size: var(--step-1);
  line-height: 1.45;
  max-width: 34rem;
  margin-bottom: 1.5rem;
}
.hero-note { display: flex; align-items: center; gap: 0.6rem; margin: 1.25rem 0 0; font-size: 1.125rem; }
.hero-note svg { flex: none; width: 3rem; height: 3rem; color: var(--gold); }
.hero-note a { display: inline-block; padding-block: 0.4rem; font-weight: 700; color: var(--white); }
/* The glowing angel logo on the right of the hero (desktop and tablet) */
.hero-mark { display: none; }

@media (min-width: 48rem) {
  .hero-inner { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .hero-mark { display: block; justify-self: center; width: min(100%, 17rem); }
}

/* Stats: real numbers, counted up once when they scroll into view */
.stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  margin-top: clamp(1.75rem, 1rem + 2vw, 2.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.3);
}
.stat { margin: 0; }
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-stretch: 76%;
  font-weight: 800;
  font-size: var(--step-4);
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stat-label { display: block; margin-top: 0.35rem; font-size: 1.125rem; line-height: 1.35; max-width: 14rem; }
@media (min-width: 48rem) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Inner page hero ---------- */

.page-hero {
  position: relative;
  background: var(--purple);
  color: var(--white);
  padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(3.75rem, 2.5rem + 4vw, 5.5rem);
  overflow: hidden;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 {
  color: var(--white);
  font-stretch: 76%;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.3em;
}
.page-hero .hero-lead { max-width: 44rem; margin-bottom: 0; }
.page-hero a { color: var(--white); }
.page-hero .hero-wave { height: clamp(2.5rem, 1.75rem + 3vw, 4.5rem); }

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

.section { padding-block: var(--space); }
.section-tight { padding-block: calc(var(--space) * 0.7); }
.section-lilac { background: var(--lilac); position: relative; overflow: hidden; }
.section-lilac > .wrap { position: relative; z-index: 1; }

/* Heading beside its intro on wide screens, stacked on phones */
.section-head { display: grid; gap: 0.25rem 3rem; margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.section-head h2 { margin-bottom: 0.2em; }
.section-head p:last-child { margin-bottom: 0; }
@media (min-width: 56rem) {
  .section-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: end; }
}

.blob { position: absolute; pointer-events: none; color: var(--lilac-mid); }
.blob-tr { top: -4rem; right: -6rem; width: clamp(12rem, 26vw, 22rem); }

/* Welcome and About intro, with Kolet */
.split { display: grid; gap: 2rem 3rem; align-items: center; }
.split > div > :last-child { margin-bottom: 0; }
@media (min-width: 48rem) { .split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }

.welcome-figure { margin: 0; justify-self: start; max-width: 15rem; }
.welcome-figure img {
  border-radius: 50% 50% var(--radius) var(--radius) / 38% 38% var(--radius) var(--radius);
  border: 4px solid var(--gold);
  background: var(--lilac);
}
.welcome-figure figcaption { margin-top: 0.6rem; font-size: 1.125rem; line-height: 1.35; }
.welcome-figure strong { display: block; color: var(--purple); font-size: 1.125rem; }
@media (min-width: 48rem) { .welcome-figure { justify-self: end; } }

/* Icon badge: a line icon inside a gold ring, echoing the logo */
.ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--purple);
  background: var(--white);
}
.ico svg { width: 1.6rem; height: 1.6rem; }

/* Home: services in three groups */
.groups { display: grid; gap: 1.5rem; position: relative; }
.group {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--white);
  border-radius: var(--radius);
}
.group h3 { font-size: var(--step-2); margin-bottom: 0.25em; }
.group > p { font-size: 1.125rem; }
.group-links { display: grid; gap: 0.6rem; }
.group-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  min-height: 3rem;
}
.group-links a span { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
.group-links a:hover span { text-decoration-thickness: 0.16em; }
@media (min-width: 56rem) { .groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.groups-cta { margin-top: 1.75rem; position: relative; }

/* Auslan and van */
.features { display: grid; gap: 1.5rem; }
.feature {
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  border-radius: var(--radius);
  border: 2px solid var(--lilac-mid);
  background: var(--white);
}
.feature > :last-child { margin-bottom: 0; }
.feature-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.75rem; }
.feature-head h2 { margin: 0; }
.feature-auslan { background: var(--purple); color: var(--white); border-color: var(--purple); }
.feature-auslan h2 { color: var(--gold); }
.feature-auslan a { color: var(--white); }
.feature-auslan:focus { outline: none; }
.feature-auslan .ico { width: 4.25rem; height: 4.25rem; }
.feature-auslan .ico svg { width: 3.2rem; height: 3.2rem; }
.feature h2 { font-size: var(--step-2); }
@media (min-width: 56rem) { .features { grid-template-columns: 1.2fr 1fr; align-items: stretch; } }

/* Two panels side by side (Getting started and Where we support) */
.duo { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 56rem) { .duo { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }

/* Numbered steps: a real sequence */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.75rem 1fr; grid-template-rows: auto 1fr; gap: 0 1rem; align-items: start; }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 2.75rem; height: 2.75rem;
  display: grid;
  place-items: center;
  border: 3px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--purple);
  background: var(--white);
}
.steps h3 { margin: 0.35rem 0 0.15rem; }
.steps p { margin: 0; }
.steps-row { gap: 1.5rem 2rem; }
@media (min-width: 48rem) { .steps-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Service area */
.lga-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.6rem;
}
.lga-list li {
  padding: 0.7rem 0.9rem;
  background: var(--white);
  border-left: 4px solid var(--purple);
  border-radius: 0 10px 10px 0;
  font-weight: 700;
  color: var(--purple);
  overflow-wrap: anywhere;
}

/* Contact band */
.band-dark { position: relative; background: var(--purple-deep); color: var(--white); padding-block: calc(var(--space) + 1.5rem) var(--space); overflow: hidden; }
/* The van-wrap stripe again, so each page closes the way it opens */
.band-stripe { position: absolute; top: 0; left: 0; width: 100%; height: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.stripe-fill { fill: var(--purple); }
.band-dark .wrap { position: relative; }
.band-dark h2 { color: var(--white); }
.band-dark a:not(.btn) { color: var(--white); }
.contact-band { display: grid; gap: 1.75rem 3rem; align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.contact-list strong { display: block; color: var(--gold); font-size: 1.125rem; }
.contact-list a { font-size: var(--step-1); font-weight: 700; overflow-wrap: anywhere; }
@media (min-width: 56rem) { .contact-band { grid-template-columns: 1.3fr 1fr; } }

/* ---------- Services page ---------- */

.group-nav { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.group-nav a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 100%;
  padding: 1rem 1.1rem;
  background: var(--lilac);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--purple-ink);
}
.group-nav strong { display: block; color: var(--purple); font-size: var(--step-1); text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
.group-nav a:hover strong { text-decoration-thickness: 0.16em; }
.group-nav span span { display: block; font-size: 1.125rem; }
@media (min-width: 48rem) { .group-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.service-group { scroll-margin-top: 1rem; }
.service-grid { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .service-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.service {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--white);
  border: 2px solid var(--lilac-mid);
  border-radius: var(--radius);
  scroll-margin-top: 1rem;
}
.section-lilac .service { border-color: var(--white); }
.service-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.75rem; }
.service-head h3 { margin: 0; font-size: var(--step-2); }
.service p { font-size: 1.125rem; }
.service h4 {
  margin: 0.25rem 0 0.4rem;
  font-size: 1.125rem;
  color: var(--purple);
}
.service .tick-list { font-size: 1.125rem; }
.service .tick-list:last-child { margin-bottom: 0; }

.tick-list { padding-left: 0; list-style: none; }
.tick-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.3rem; }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 0.6rem; height: 0.6rem;
  border: 2px solid var(--gold-deep);
  border-radius: 50%;
}

/* ---------- Home: review summary ---------- */

.review-themes { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.review-themes li {
  position: relative;
  padding: 1.1rem 1.2rem 1.2rem;
  background: var(--lilac);
  border-radius: var(--radius);
}
.review-themes li::before {
  content: "\201C" / "";
  display: block;
  height: 1.6rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  color: var(--gold-deep);
}
.review-themes h3 { margin-bottom: 0.25em; }
.review-themes p { margin: 0; font-size: 1.125rem; }
@media (min-width: 40rem) { .review-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .review-themes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- About page ---------- */

.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem 2rem; }
.values li { padding-left: 1rem; border-left: 4px solid var(--gold); }
.values h3 { margin-bottom: 0.25em; }
.values p { margin: 0; font-size: 1.125rem; }
@media (min-width: 40rem) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .values { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Contact and forms ---------- */

.contact-layout { display: grid; gap: 2.5rem 3.5rem; align-items: start; }
@media (min-width: 60rem) { .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
@media (min-width: 60rem) and (min-height: 48rem) { .contact-aside { position: sticky; top: 1rem; } }

.contact-details { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.9rem; }
.contact-details strong { display: block; color: var(--purple); }
.contact-details a { font-size: var(--step-1); font-weight: 700; overflow-wrap: anywhere; }

.form-panel {
  background: var(--lilac);
  border-radius: var(--radius);
  padding: clamp(1rem, 0.6rem + 1.5vw, 1.75rem);
  scroll-margin-top: 1rem;
}
.form-panel > h2 { font-size: var(--step-2); margin-bottom: 0.3em; }
.form-panel > p { margin-bottom: 1rem; }
.form-panel-white { background: var(--white); }

.form { display: grid; gap: 1rem; }
/* Groups of fields that show or hide together */
.form-block { display: grid; gap: 1rem; }
.form-block[hidden] { display: none; }
.form h3 {
  margin: 0.25rem 0 -0.35rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--lilac-mid);
  font-size: var(--step-1);
}
.form h3:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.form-grid { display: grid; gap: 1rem 1.25rem; align-items: end; }
@media (min-width: 40rem) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form label,
.form legend {
  display: block;
  padding: 0;
  margin-bottom: 0.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--purple-ink);
}
.form .choice label { font-weight: 400; margin: 0; }
.form label.lbl { display: inline-block; }
.optional, .required { font-weight: 400; }
.hint { display: block; margin: -0.1rem 0 0.35rem; font-size: 1.125rem; line-height: 1.35; }

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.4rem 0.8rem;
  font: inherit;
  color: var(--purple-ink);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 10px;
}
.form input[type="file"] {
  display: block;
  width: 100%;
  padding: 0.6rem 0.8rem;
  font: inherit;
  color: var(--purple-ink);
  background: var(--white);
  border: 2px dashed var(--line);
  border-radius: 10px;
}
.form input[type="file"]::file-selector-button {
  margin-right: 0.8rem;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-weight: 700;
  color: var(--white);
  background: var(--purple);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.file-field { position: relative; }
.file-field input[type="file"] { padding-right: 3.6rem; }
.file-remove {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--purple);
  background: var(--lilac);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.file-remove:hover { color: var(--white); background: var(--purple); }
.file-remove:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.file-remove[hidden] { display: none; }
.form textarea { min-height: 5.5rem; resize: vertical; }
.form input[aria-invalid="true"],
.form select[aria-invalid="true"],
.form textarea[aria-invalid="true"] { border-color: var(--error); border-width: 3px; }

.choices { display: grid; gap: 0.1rem; }
.choices-inline { display: flex; flex-wrap: wrap; gap: 0.1rem 1.5rem; }
.choice { display: flex; align-items: flex-start; gap: 0.6rem; padding-block: 0.2rem; line-height: 1.4; }
.choice input {
  flex: none;
  width: 1.4rem; height: 1.4rem;
  margin: 0.05rem 0 0;
  accent-color: var(--purple);
}
@media (min-width: 40rem) { .choices-2 { grid-template-columns: 1fr 1fr; gap: 0.1rem 1.5rem; } }

/* Referral or enquiry: two large options at the top of the contact form */
.form .type-choice legend { font-family: var(--font-head); font-stretch: 82%; font-size: var(--step-1); color: var(--purple); margin-bottom: 0.5rem; }
.type-options { display: grid; gap: 0.6rem; }
@media (min-width: 40rem) { .type-options { grid-template-columns: 1fr 1fr; } }
.form .type-option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  padding: 0.7rem 0.9rem;
  background: var(--white);
  border: 2px solid var(--lilac-mid);
  border-radius: 12px;
  font-weight: 400;
  cursor: pointer;
}
.form .type-option { position: relative; }
.form .type-option label { margin: 0; }
.form .type-option label::after { content: ""; position: absolute; inset: 0; cursor: pointer; }
.form .type-option:hover { border-color: var(--line); }
.form .type-option:has(input:checked) { border-color: var(--purple); box-shadow: inset 0 0 0 1px var(--purple); }
.form .type-option:has(input:focus-visible) { outline: 3px solid var(--purple); outline-offset: 3px; }
.form .type-option input { flex: none; width: 1.5rem; height: 1.5rem; margin: 0.2rem 0 0; accent-color: var(--purple); }
.form .type-option input:focus-visible { outline: none; }
.type-option strong { display: block; font-family: var(--font-head); font-stretch: 82%; font-size: var(--step-1); color: var(--purple); line-height: 1.2; }
.type-option span span { display: block; margin-top: 0.1rem; font-size: 1.125rem; line-height: 1.35; }

.consent { padding: 0.7rem 0.9rem; background: var(--white); border-radius: 10px; }
.form-panel-white .consent { background: var(--lilac); }
.consent .choice label { font-weight: 700; }
.consent .hint { margin: 0.25rem 0 0 2rem; }

.form-error {
  margin-bottom: 0.5rem;
  padding: 0.9rem 1.1rem;
  background: var(--error-bg);
  border-left: 5px solid var(--error);
  border-radius: 0 10px 10px 0;
  color: var(--purple-ink);
  font-weight: 700;
}
.form-error[hidden] { display: none; }
.form-error.field-error { margin: 0.4rem 0 0; padding: 0.5rem 0.8rem; font-size: 1.0625rem; }

.hidden-field { display: none; }

/* ---------- Long text pages (privacy, accessibility) ---------- */

.prose-layout { display: grid; gap: 2rem 4rem; align-items: start; }
@media (min-width: 60rem) {
  .prose-layout { grid-template-columns: 15rem minmax(0, 1fr); }
}
@media (min-width: 60rem) and (min-height: 48rem) { .toc { position: sticky; top: 1rem; } }
.toc {
  padding: 1.1rem 1.3rem;
  background: var(--lilac);
  border-radius: var(--radius);
}
.toc h2 { font-size: var(--step-1); margin-bottom: 0.4em; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.1rem; }
.toc a { display: block; padding: 0.3rem 0; font-weight: 700; font-size: 1.125rem; }

.prose { max-width: 46rem; }
.prose h2 { font-size: var(--step-2); margin-top: 1.5em; scroll-margin-top: 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.3rem; }
.prose p, .prose li { max-width: none; }
.updated { font-size: 1.125rem; }

/* ---------- Registered badge, rating, quote ---------- */

.reg-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
  padding: 0.35rem 1.1rem 0.35rem 0.35rem;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.125rem;
}
.reg-badge img { width: 3rem; height: 3rem; border-radius: 50%; }

.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  max-width: 34rem;
  padding: 0.8rem 1rem;
  background: var(--lilac);
  border-radius: 10px;
  font-size: 1.125rem;
}
.stars { display: inline-flex; gap: 0.1rem; color: var(--gold-deep); }
.stars svg { width: 1.3rem; height: 1.3rem; }

.quote-figure {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 4px solid var(--gold);
  max-width: var(--measure);
}
.quote-figure blockquote { margin: 0; }
.quote-figure p {
  margin: 0 0 0.5rem;
  font-family: var(--font-head);
  font-stretch: 88%;
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1.35;
  color: var(--purple);
}
.quote-figure p::before { content: "\201C"; }
.quote-figure p::after { content: "\201D"; }
.quote-figure figcaption { font-size: 1.125rem; font-weight: 700; }

.reg-panel { max-width: 52rem; display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.25rem; align-items: start; }
.reg-panel img { width: 5.5rem; height: 5.5rem; border-radius: 50%; }
.reg-panel h2 { font-size: var(--step-3); }
.reg-panel p:last-child { margin-bottom: 0; }

.split-even { align-items: start; }
@media (min-width: 48rem) { .split-even { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.feature h3 { font-size: var(--step-1); }
.feature h3 + .tick-list { margin-bottom: 1.25rem; }
.form-panel-spaced { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }

/* ---------- Map (contact page) ---------- */

.map-layout { display: grid; gap: 2rem 2.5rem; align-items: center; }
@media (min-width: 56rem) { .map-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }
.map-panel { position: relative; background: var(--white); border-radius: var(--radius); padding: 0.5rem; }
.gmap-frame { display: block; width: 100%; height: clamp(20rem, 40vw, 27rem); border: 0; border-radius: 10px; }
/* ---------- Back to top ---------- */

.to-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.25rem auto 0;
  padding: 0.6rem 1rem;
  width: fit-content;
  color: var(--white);
  font-weight: 700;
}
.to-top svg { width: 1.3rem; height: 1.3rem; }
/* With JS, it floats in the corner once you've scrolled down */
/* With JS, it floats in the corner once you've scrolled down: a purple disc with a gold ring
   that fills as you read down the page (--progress is set by main.js, 0 to 1). */
.js .to-top {
  --progress: 0;
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 20;
  margin: 0;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  justify-content: center;
  color: var(--white);
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--purple) calc(100% - 4px), transparent calc(100% - 3px)),
    conic-gradient(var(--gold) calc(var(--progress) * 1turn), rgb(255 255 255 / 0.85) 0);
  box-shadow: 0 6px 18px rgb(43 29 56 / 0.28);
  visibility: hidden;
  opacity: 0;
  transform: translateY(0.75rem) scale(0.9);
  transition: opacity 0.25s, transform 0.25s cubic-bezier(.2, .7, .2, 1), visibility 0.25s;
  --focus: var(--purple);
}
.js .to-top svg { width: 1.25rem; height: 1.25rem; transition: transform 0.2s; }
.js .to-top[data-visible="true"] { visibility: visible; opacity: 1; transform: none; }
.js .to-top:hover svg { transform: translateY(-2px); }
.js .to-top:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; box-shadow: 0 0 0 7px var(--purple-ink); }

/* The header takes focus after "Back to top" so keyboard users start again from the top */
.site-header:focus { outline: none; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--purple);
  color: var(--white);
  padding-block: 3rem 1.75rem;
  font-size: 1.125rem;
}
/* Room at the very bottom so the floating Back to top button never covers the last line */
.js .site-footer { padding-bottom: calc(3.25rem + 2.5rem + env(safe-area-inset-bottom)); }
.site-footer a { color: var(--white); }
.site-footer .brand { color: var(--gold); }
.footer-grid { display: grid; gap: 2rem 3rem; }
.footer-grid h2 { font-size: var(--step-1); color: var(--gold); margin-bottom: 0.5em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li a { display: inline-block; padding-block: 0.3rem; }
.footer-grid li { overflow-wrap: anywhere; }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand { min-width: 0; }
.site-footer .wordmark { white-space: normal; }
.site-footer .wordmark span { display: block; }
.footer-reg { font-weight: 700; margin-bottom: 0.25rem; }
.footer-meta p { margin: 0 0 0.25rem; }
.footer-grid .social-list a { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; font-weight: 700; }
.social-list svg { width: 1.5rem; height: 1.5rem; flex: none; }
.acknowledgement { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.3); }
.acknowledgement p { max-width: 50rem; }
.flags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.9rem; }
.flags img { width: auto; height: 1.5rem; border-radius: 2px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.35); }
.copyright { font-size: 1.125rem; margin: 0; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 0.9fr; } }

/* ---------- Motion and print ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-nav, .nav-toggle, .hero-wave, .hero-mark, .blob, .skip-link, .toc, .group-nav, .to-top, .map-panel { display: none !important; }
  .site-header, .hero, .page-hero, .band-dark, .site-footer, .feature-auslan { background: none; color: #000; }
  .hero h1, .page-hero h1, .band-dark h2, .stat-num { color: #000; }
}
