/* ==========================================================================
   MASCA NSW — Welfare section
   One stylesheet for all five pages. Edit a value here, it changes everywhere.
   ========================================================================== */

:root {
  --navy:       #0C126A;
  --navy-deep:  #060A4A;
  --navy-soft:  #222359;
  --gold:       #FAB248;
  --gold-ink:   #A9670A;
  --ink:        #12142B;
  --muted:      #55597A;
  --band:       #F6F7FC;
  --line:       #DFE2F0;
  --cream:      #FFF4E0;
  --on-navy:    #C5C8E8;
  --green:      #7CB542;
  --green-ink:  #1F3A08;
  --good:       #1F6B3A;
  --bad:        #9B2C2C;

  --wrap:       1140px;
  --gutter:     24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Header and footer run nearly edge to edge, like the main site.
   The content column below them stays at 1140px for readability. */
.site-header .wrap,
.site-footer .wrap {
  max-width: 100%;
  padding-inline: clamp(24px, 4.6vw, 96px) clamp(20px, 3.0vw, 62px);
}

.site-header {
  background: var(--navy);
  border-bottom: 4px solid var(--gold);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  flex-wrap: nowrap;
}
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand-logo { height: 56px; width: auto; max-height: 56px; }
.brand img { display: block; }

/* Fallback wordmark, shown only if logo.png is missing */
.brand-fallback {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
}
.brand-fallback span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  margin-top: 4px;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 30px;
}
.site-nav > a,
.nav-item > a {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 7px;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  padding-block: 23px;
}
.site-nav a:hover { color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav .caret { width: 12px; height: 12px; flex-shrink: 0; transition: transform .18s; }

/* ---------- Dropdown menus ---------------------------------------------- */

.nav-item { position: relative; display: flex; align-items: center; }
.nav-item:hover .caret { transform: rotate(180deg); }

.nav-sub {
  position: absolute;
  top: 100%;
  left: -24px;
  min-width: 250px;
  background: var(--navy);
  border-top: 3px solid var(--gold);
  padding-block: 10px;
  box-shadow: 0 18px 44px rgba(0,0,0,.34);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-sub a {
  display: block;
  padding: 11px 24px;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.nav-sub a:hover { background: rgba(255,255,255,.09); color: var(--gold); }
.nav-sub a[aria-current="page"] { color: var(--gold); }

/* the last menu (Welfare) opens leftwards so it never runs off the screen */
.site-nav > .nav-item:last-child .nav-sub { left: auto; right: -24px; }

/* ---------- Hero -------------------------------------------------------- */

.hero {
  background: var(--navy);
  color: #fff;
  padding-block: 90px;
}
.hero.hero-green { background: var(--green); color: var(--green-ink); }
.hero.hero-center { text-align: center; }
.hero.hero-center .hero-sub { margin-inline: auto; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}
.hero-green .eyebrow { color: var(--green-ink); }

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.05;
  font-weight: 700;
  margin: 0 0 18px;
  text-wrap: balance;
  max-width: 17ch;
}
.hero.hero-center h1 { margin-inline: auto; }

.hero-sub {
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.6;
  color: #E4E6F6;
  margin: 0;
  max-width: 62ch;
}
.hero-green .hero-sub { color: var(--green-ink); }

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

section { padding-block: 84px; }
section.band { background: var(--band); }
section.navy { background: var(--navy); color: #fff; }
section.tight { padding-block: 48px; }

h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 18px;
  text-wrap: balance;
}
.navy h2 { color: #fff; }

h3 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 10px;
}
.navy h3 { color: #fff; }

p { margin: 0 0 16px; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
.navy p { color: var(--on-navy); }
.lede { font-size: 18px; }
.small { font-size: 16px; color: var(--muted); }
.navy .small { color: var(--on-navy); }

.section-intro { max-width: 64ch; margin-bottom: 36px; }

/* two-column text + image */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }

/* ---------- Image placeholders ------------------------------------------ */

.photo {
  background: var(--band);
  border: 1px dashed #B9BFDD;
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.hero .photo { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); color: #C9CCEA; }

/* A real photo in a photo slot. Any image dropped in here is cropped to the
   same shape, so the layout never shifts no matter what you upload. */
.photo-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
}
.photo-credit {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  max-width: none;
}

/* ---------- Logo slideshow ---------------------------------------------- */
/* A horizontal slide rather than a crossfade, because these three panels are
   three different colours and fading one into another just muddies them.
   The fourth panel is a copy of the first, so when the track snaps back to
   the start the picture on screen never changes. No JavaScript.            */

.logo-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.logo-track {
  display: flex;
  width: 400%;
  height: 100%;
  animation: logoSlide 18s infinite;
  animation-timing-function: cubic-bezier(.62, 0, .36, 1);
}
.logo-slide {
  flex: 0 0 25%;
  width: 25%;
  height: 100%;
}
.logo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Six seconds a panel: five still, one sliding. */
@keyframes logoSlide {
  0%,     27.78% { transform: translateX(0); }
  33.33%, 61.11% { transform: translateX(-25%); }
  66.67%, 94.44% { transform: translateX(-50%); }
  100%           { transform: translateX(-75%); }
}

.logo-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
}
.logo-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  animation: logoDot 18s infinite;
}
.logo-dots span:nth-child(2) { animation-delay: 6s; }
.logo-dots span:nth-child(3) { animation-delay: 12s; }

@keyframes logoDot {
  0%    { background: var(--navy); }
  30.5% { background: var(--navy); }
  30.6% { background: var(--line); }
  100%  { background: var(--line); }
}

.logo-show .photo-credit { text-align: center; }

/* Anyone who has asked their computer to reduce motion sees all three at once,
   with nothing moving. */
@media (prefers-reduced-motion: reduce) {
  .logo-slider { aspect-ratio: auto; overflow: visible; border: 0; background: transparent; }
  .logo-track  { width: 100%; animation: none; gap: 8px; }
  .logo-slide  { flex: 1 1 0; width: auto; height: auto; aspect-ratio: 4 / 3;
                 border: 1px solid var(--line); }
  .logo-slide:nth-child(4) { display: none; }
  .logo-dots { display: none; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 32px;
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--navy);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s, color .18s, border-color .18s;
}
.btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.btn-onnavy { background: #fff; color: var(--navy); border-color: #fff; }
.btn-onnavy:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.arrow {
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  font-size: 16px;
  margin-top: auto;
}
.arrow:hover { text-decoration: underline; }

/* ---------- Cards ------------------------------------------------------- */

.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.cards.two  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.three{ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (max-width: 720px) { .cards.two { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .18s, transform .18s;
}
.card:hover { border-color: var(--navy); transform: translateY(-3px); }
.card h3 { margin: 0; }
.card p { margin: 0; flex-grow: 1; font-size: 16px; }
.card .btn { align-self: flex-start; margin-top: 6px; }

.card-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.feature {
  background: #fff;
  border: 2px solid var(--gold);
  padding: 34px;
  display: flex;
  gap: 36px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--ink);
  padding: 4px 10px;
  margin-bottom: 10px;
}

/* ---------- Numbered steps --------------------------------------------- */

.steps {
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.step-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}
.checklist {
  display: grid;
  gap: 30px 36px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.checklist h3 { color: var(--gold); font-size: 18px; margin-bottom: 6px; }
.checklist p { color: #fff; font-size: 16px; }

/* ---------- Callouts ---------------------------------------------------- */

.callout {
  background: var(--cream);
  border-left: 6px solid var(--gold);
  padding: 22px 26px;
  margin-top: 28px;
}
.callout h3 { color: var(--navy); font-size: 19px; }
.callout p { font-size: 17px; }

.two-col {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.panel { border: 1px solid var(--line); padding: 28px; }
.panel.good { border-top: 5px solid var(--good); }
.panel.bad  { border-top: 5px solid var(--bad); }
.panel h3.good-label { color: var(--good); }
.panel h3.bad-label  { color: var(--bad); }
.panel ul { margin: 0; padding-left: 20px; }
.panel li { margin-bottom: 10px; }

/* ---------- FAQ (native accordion, no JavaScript) ----------------------- */

.faq { max-width: 860px; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 400;
  color: var(--muted);
}
.faq details[open] summary::after { content: "\2013"; }
.faq summary:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.faq details p { padding: 0 0 20px; font-size: 17px; }

/* ---------- Help band --------------------------------------------------- */

.help {
  background: var(--navy);
  color: #fff;
  padding-block: 64px;
}
.help .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.help h2 { margin-bottom: 8px; color: #fff; }
.help p { color: var(--on-navy); margin: 0; }

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

.site-footer {
  background: var(--navy-soft);
  color: #fff;
  padding-block: 56px 28px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand img { height: 64px; width: auto; }

.footer-nav { display: flex; flex-direction: column; gap: 16px; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}
.footer-nav a:hover { color: var(--gold); }
.footer-nav a[aria-current="page"] { color: var(--gold); }
.footer-nav .caret { width: 12px; height: 12px; }

.footer-social h4 {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.social-links { display: flex; gap: 14px; }
.social-links a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  transition: background .18s, border-color .18s, color .18s;
}
.social-links a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-soft); }
.social-links svg { width: 18px; height: 18px; }

.footer-rule {
  border: 0;
  border-top: 1px solid rgba(255,255,255,.85);
  margin: 44px 0 20px;
}
.footer-copy { margin: 0; font-size: 15px; font-weight: 700; color: #fff; max-width: none; }

.disclaimer {
  font-size: 15px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 40px;
  max-width: 78ch;
}

/* ---------- Mobile ------------------------------------------------------ */

@media (max-width: 860px) {
  section { padding-block: 52px; }
  .hero { padding-block: 60px; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse > :first-child { order: 0; }
  .feature { flex-direction: column; align-items: flex-start; gap: 20px; }
  .help .wrap { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .card .btn { width: auto; }
  .site-header .wrap { flex-wrap: wrap; min-height: 0; padding-block: 14px; }
  .site-nav { flex-wrap: wrap; gap: 4px 18px; }
  .site-nav > a, .nav-item > a { padding-block: 6px; }
  .nav-sub { display: none; }
  .brand-logo { height: 46px; max-height: 46px; }
  .site-nav a { font-size: 15px; }
  .brand-logo { height: 44px; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
}

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