/* ==========================================================================
   Auscare PLUS Services — site styles
   Design system: "Eucalyptus & Apricot"
   All text colour pairs below meet WCAG 2.2 AAA (7:1) unless noted.
   ========================================================================== */

:root {
  --cream: #FBF8F3;       /* page background */
  --ink: #1C2B2D;         /* main text            13.8:1 on cream */
  --slate: #3E4C4F;       /* secondary text        8.4:1 on cream */
  --euc: #1F4F46;         /* brand, links, buttons 8.8:1 on cream */
  --euc-dark: #163A33;    /* button hover */
  --sage: #E3EEE8;        /* soft panels */
  --sand: #F3E7D6;        /* warm panels */
  --apricot: #F4B66A;     /* accent: only behind Ink text, or large text on Eucalyptus */
  --apricot-dark: #F0A64F;
  --rust: #8F1D1D;        /* errors                8.4:1 on cream */
  --fern: #1D5A34;        /* success               7.7:1 on cream */
  --line: #D6DCD8;        /* decorative borders */
  --white: #FFFFFF;

  --font-body: 'Atkinson Hyperlegible', Verdana, Tahoma, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(64px, 8vw, 112px);
}

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

html { scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;          /* 18px minimum body text */
  line-height: 1.6;
  letter-spacing: 0.01em;
  word-spacing: 0.04em;
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 60;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.625rem; line-height: 1.2; }

p { margin: 0; }

a { color: var(--euc); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--ink); text-decoration-thickness: 3px; }

/* Focus: always visible, never colour-only */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--apricot); }
[tabindex="-1"]:focus { outline: none; }
[tabindex="-1"]:focus-visible { outline: 3px solid var(--ink); }

.on-dark a { color: var(--cream); }
.on-dark a:hover { color: var(--apricot); }

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

.skip {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 12px 20px;
  border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 16px; color: var(--cream); }

.container { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.lead { font-size: 1.25rem; max-width: 36em; }
.muted { color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
}
.btn svg { flex: 0 0 auto; }
.btn-primary { background: var(--euc); color: var(--cream); }
.btn-primary:hover { background: var(--euc-dark); color: var(--cream); }
.btn-accent { background: var(--apricot); color: var(--ink); }
.btn-accent:hover { background: var(--apricot-dark); color: var(--ink); }
.btn-ghost { border-color: var(--euc); color: var(--euc); background: transparent; }
.btn-ghost:hover { background: var(--sage); color: var(--ink); }
.btn-small { min-height: 48px; padding: 0 24px; }
.on-dark .btn-accent, .on-dark .btn-accent:hover { color: var(--ink); }

/* ---------- Utility bar ---------- */
.utility { background: var(--euc); color: var(--cream); font-size: 1rem; }
.utility .container {
  display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; align-items: center;
  padding-top: 10px; padding-bottom: 10px;
}
.utility-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* ---------- Header & navigation ---------- */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); }
.site-header .container {
  display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-name span { color: var(--euc); }

.nav-toggle { display: none; }
.nav { flex: 1 1 auto; }
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px 8px; justify-content: flex-end; align-items: center;
}
.nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px;
  font-weight: 700; text-decoration: none;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { text-decoration: underline; }
.nav .btn { margin-left: 8px; }

@media (max-width: 900px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px;
    background: transparent; border: 2px solid var(--euc); border-radius: 999px;
    color: var(--euc); font: inherit; font-weight: 700; cursor: pointer;
  }
  .js .nav { flex-basis: 100%; display: none; }
  .js .nav.is-open { display: block; }
  .site-header .container { column-gap: 16px; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a:not(.btn) { display: flex; padding: 0 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 12px 0 0; width: 100%; }
}
@media (max-width: 600px) {
  .utility-email { display: none; }
  .brand-name { font-size: 1.5rem; }
  .brand svg { width: 36px; height: 36px; }
}

/* ---------- Photo placeholders (swap for <img> later) ---------- */
.photo {
  margin: 0; background: var(--sage); border: 2px dashed var(--slate); color: var(--slate);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; padding: 24px; font-weight: 700;
}
.photo small { font-weight: 400; font-size: 1rem; }
.photo--hero { aspect-ratio: 5 / 4; border-radius: 32px 32px 32px 120px; }
.photo--card { aspect-ratio: 16 / 10; border-radius: 16px; font-size: 1rem; }
.photo--wide { aspect-ratio: 16 / 9; border-radius: 32px 32px 32px 120px; }
.photo--split { aspect-ratio: 4 / 3; border-radius: 120px 32px 32px 32px; background: var(--sand); }
/* When real photos arrive, use: <img class="photo-img photo--hero" src="..." alt="..."> */
.photo-img { width: 100%; object-fit: cover; border: 0; }

/* ---------- Hero ---------- */
.hero {
  display: flex; flex-wrap: wrap; gap: 56px; align-items: center;
  padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px);
}
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-media { flex: 1 1 420px; min-width: 0; position: relative; }
.badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  background: var(--sage); color: var(--euc); padding: 8px 16px; border-radius: 999px;
  font-weight: 700; font-size: 1rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.sticker {
  position: absolute; right: -8px; bottom: 28px;
  background: var(--apricot); color: var(--ink); padding: 14px 22px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; transform: rotate(-4deg);
}
@media (max-width: 520px) { .sticker { right: 8px; font-size: 1.0625rem; } }

/* ---------- Trust strip ---------- */
.trust { background: var(--sand); }
.trust .container {
  display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; justify-content: space-between;
  padding-top: 40px; padding-bottom: 40px;
}
.trust ul {
  list-style: none; margin: 0; padding: 0; flex: 1 1 640px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 40px;
}
.trust strong { display: block; }
.ndis-mark {
  flex: 0 0 auto; width: 176px; height: 96px; border: 2px dashed var(--slate); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px;
  font-size: 0.875rem; font-weight: 700; color: var(--slate); line-height: 1.3; background: var(--white);
}

/* ---------- Sections ---------- */
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--sage { background: var(--sage); }
.section--dark { background: var(--euc); color: var(--cream); }
.section-head { max-width: 44em; display: flex; flex-direction: column; gap: 16px; margin-bottom: 56px; }
.section--dark h2, .section--dark h3 { color: var(--apricot); }

/* ---------- Service cards ---------- */
.card-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px;
}
.card {
  background: var(--white); border: 2px solid var(--line); border-radius: 24px;
  padding: 20px 20px 32px; display: flex; flex-direction: column; gap: 16px;
}
.card:hover, .card:focus-within { border-color: var(--euc); }
.card-body { padding: 0 8px; display: flex; flex-direction: column; gap: 8px; }
.card-body .muted { font-size: 1rem; }

.help-band {
  grid-column: 1 / -1; background: var(--euc); color: var(--cream); border-radius: 24px;
  padding: 40px clamp(24px, 4vw, 48px);
  display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between;
}
.help-band > div:first-child { flex: 1 1 420px; display: flex; flex-direction: column; gap: 8px; }
.help-band h2, .help-band h3 { color: var(--apricot); font-size: 1.875rem; }
.help-band .actions { margin: 0; align-items: center; }

/* ---------- Steps ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 48px;
}
.steps li { display: flex; flex-direction: column; gap: 16px; }
.step-num {
  width: 64px; height: 64px; border-radius: 50%; background: var(--apricot); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.875rem; font-weight: 600;
}
.ready {
  margin-top: 56px; background: var(--white); border-radius: 20px; padding: 28px 32px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center;
}
.ready strong { font-size: 1.25rem; }

/* ---------- Split section & quote ---------- */
.split { display: flex; flex-wrap: wrap-reverse; gap: 56px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split-text { display: flex; flex-direction: column; gap: 24px; }
.quote { margin: 0; background: var(--white); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 1.375rem; line-height: 1.45; }
.quote figcaption { color: var(--slate); }

/* ---------- Call-back band ---------- */
.callback { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.callback-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.form-card {
  flex: 1 1 480px; min-width: 0; background: var(--cream); color: var(--ink);
  border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 20px;
}
.form-card a { color: var(--euc); }
.form-card :focus-visible { outline-color: var(--ink); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 32px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.label, legend { font-weight: 700; font-size: 1.1875rem; }
.label .req, legend .req { font-weight: 400; color: var(--slate); }
.hint { color: var(--slate); }
.input, textarea.input {
  width: 100%; min-height: 56px; padding: 0 16px; font: inherit; color: var(--ink);
  background: var(--white); border: 2px solid var(--slate); border-radius: 12px;
}
textarea.input { padding: 14px 16px; line-height: 1.6; resize: vertical; min-height: 140px; }
.input:focus-visible { outline-offset: 2px; }
.input--name, .input--email { max-width: 32em; }
.input--phone { max-width: 20em; }
.input--short { max-width: 14em; }
textarea.input { max-width: 36em; }
.input[aria-invalid="true"] { border: 3px solid var(--rust); }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; }
.choices { display: flex; flex-wrap: wrap; gap: 12px; }
.choices--stack { flex-direction: column; max-width: 32em; }
.choices--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.choice {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 20px;
  background: var(--white); border: 2px solid var(--slate); border-radius: 12px; cursor: pointer; font-weight: 700;
}
.choice:hover { border-color: var(--euc); }
.choice:has(input:checked) { border: 3px solid var(--euc); }
.choice input { width: 28px; height: 28px; margin: 0; accent-color: var(--euc); flex: 0 0 auto; }
.choice .choice-hint { display: block; font-weight: 400; color: var(--slate); font-size: 1rem; }
fieldset[aria-invalid="true"] .choice { border-color: var(--rust); }

.error-msg { color: var(--rust); font-weight: 700; display: flex; gap: 8px; align-items: center; margin: 0; }
.error-msg[hidden] { display: none; }
.error-msg svg { flex: 0 0 auto; }

.error-summary {
  background: var(--white); border: 3px solid var(--rust); border-radius: 20px; padding: 24px 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.error-summary h2 { font-size: 1.5rem; color: var(--rust); }
.error-summary ul { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.error-summary a { color: var(--rust); font-weight: 700; }

.success {
  background: var(--sage); border: 3px solid var(--fern); border-radius: 24px; padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.success h2 { color: var(--fern); font-size: 1.875rem; }
.success-head { display: flex; gap: 16px; align-items: center; }

.preview-note {
  background: var(--sand); border-radius: 12px; padding: 12px 16px; font-size: 1rem;
}

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

[hidden] { display: none !important; }

/* ---------- Page layout with sidebar ---------- */
.page-top { padding-top: 32px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 1rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--slate); }

.with-aside {
  display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start;
  padding-top: 48px; padding-bottom: var(--section-y);
}
.with-aside > .main-col { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.with-aside > aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

.tagline { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.35; color: var(--euc); }

.included {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px;
}
.included li {
  background: var(--white); border: 2px solid var(--line); border-radius: 20px; padding: 24px;
  display: flex; gap: 16px; align-items: flex-start;
}
.included svg { flex: 0 0 auto; margin-top: 2px; }
.included strong { display: block; font-size: 1.1875rem; }

.official {
  background: var(--white); border: 2px solid var(--line); border-radius: 24px; padding: 32px;
  display: flex; flex-direction: column; gap: 16px; margin-top: 16px;
}
.official h2 { font-size: 1.5rem; }
.official dl { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.official dl > div { padding-top: 16px; border-top: 1px solid var(--line); }
.official dt { font-weight: 700; }
.official dd { margin: 0; }

.box { border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.box h2 { font-size: 1.5rem; }
.box--sand { background: var(--sand); }
.box--white { background: var(--white); border: 2px solid var(--line); }
.box--dark { background: var(--euc); color: var(--cream); gap: 16px; }
.box--dark h2 { color: var(--apricot); }
.box ol, .box ul { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 10px; }
.big-phone { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1.2; }

.more-services { border-top: 1px solid var(--line); padding-top: 40px; margin-top: 24px; }
.more-services ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.more-services a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px;
  border: 2px solid var(--euc); border-radius: 999px; font-weight: 700; text-decoration: none;
}
.more-services a:hover { background: var(--sage); }

/* Simple content pages */
.prose { max-width: 44em; display: flex; flex-direction: column; gap: 20px; padding-top: 48px; padding-bottom: var(--section-y); }
.prose h2 { font-size: 1.75rem; margin-top: 16px; }
.prose ul { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); font-size: 1rem; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px;
  padding-top: 40px; padding-bottom: 40px;
}
.footer-grid > div, .footer-grid > nav { display: flex; flex-direction: column; gap: 12px; }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.site-footer h2 { font-family: var(--font-body); font-size: 1.125rem; font-weight: 700; color: var(--apricot); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { border-top: 1px solid var(--slate); padding-top: 24px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 12px; }
.site-footer .ndis-mark { border-style: solid; border-color: var(--white); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .btn, .card, .choice, .more-services a { transition: background-color .15s ease, border-color .15s ease; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  .utility, .nav, .nav-toggle, .skip, .callback, .help-band .actions { display: none !important; }
  body { background: #fff; }
}

/* Values list (About page) */
.values { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.values > div { background: var(--white); border: 2px solid var(--line); border-radius: 20px; padding: 24px; }
.values dt { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; color: var(--euc); margin-bottom: 4px; }
.values dd { margin: 0; }

/* Logos */
.brand img { height: 60px; width: auto; }
.footer-top {
  display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between;
  padding-top: 56px; padding-bottom: 32px; border-bottom: 1px solid var(--slate);
}
.footer-logo { height: 56px; width: auto; }
.footer-top p { max-width: 28em; }
@media (max-width: 600px) { .brand img { height: 48px; } }
a[href^="tel"] { white-space: nowrap; }

/* Real photos */
.photo-img { display: block; width: 100%; height: auto; object-fit: cover; background: var(--sage); }
.photo-img.photo--card { aspect-ratio: 16 / 10; border-radius: 16px; }
.photo-img.photo--wide { aspect-ratio: 16 / 9; border-radius: 32px 32px 32px 120px; }
.photo--hero-portrait { aspect-ratio: 4 / 5; border-radius: 32px 32px 32px 120px; max-height: 680px; }
@media (max-width: 900px) { .photo--hero-portrait { aspect-ratio: 5 / 4; object-position: center 20%; } }

/* Values panel on home */
.values-panel { background: var(--sand); border-radius: 120px 32px 32px 32px; padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; gap: 24px; }
.values-panel h3 { font-size: 1.875rem; }
.values-panel .values > div { padding: 20px; }

/* ---------- Privacy notice above form buttons (normal body text, AAA contrast) ---------- */
.form-privacy { max-width: 36em; color: var(--ink); }

/* ---------- Official "I heart NDIS / Registered NDIS Provider" mark ----------
   Shown exactly as supplied, on its own white background (never recoloured or cropped). */
.footer-ndis { display: block; background: var(--white); border-radius: 12px; padding: 6px; line-height: 0; }
.footer-ndis img { display: block; width: 180px; height: auto; }
.access { display: flex; flex-direction: column; gap: 16px; }
.access-logo { display: block; line-height: 0; }
.access-logo img { display: block; width: 300px; max-width: 100%; height: auto; }
