@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* Brand samples from the supplied VIVALIFE logo; all site colours live here.
   Dark variants provide readable text and white-on-colour controls. */
:root {
  --brand-green: #87C23C;
  --brand-magenta: #DE008B;
  --white: #FFFFFF;
  --black: #000000;
  --primary: color-mix(in srgb, var(--brand-green) 55%, var(--black));
  --primary-dark: color-mix(in srgb, var(--brand-green) 35%, var(--black));
  --primary-mid: color-mix(in srgb, var(--brand-green) 48%, var(--black));
  --primary-light: color-mix(in srgb, var(--brand-green) 10%, var(--white));
  --primary-soft: color-mix(in srgb, var(--brand-green) 18%, var(--white));
  --primary-pale: color-mix(in srgb, var(--brand-green) 28%, var(--white));
  --accent: color-mix(in srgb, var(--brand-magenta) 85%, var(--black));
  --accent-hover: color-mix(in srgb, var(--brand-magenta) 68%, var(--black));
  --button-bg: #DE008B;
  --button-hover: #CC007F;
  --hero-start: #4C7328;
  --hero-end: #557F2D;
  --footer-bg: #F1F7E9;
  --ndis-purple: #6A2875;
  --accent-light: color-mix(in srgb, var(--brand-magenta) 15%, var(--white));
  --cream: color-mix(in srgb, var(--brand-green) 3%, var(--white));
  --gray-50: #F8FAF6;
  --gray-100: #EEF1EA;
  --gray-200: #DAE1D3;
  --gray-300: #ABB8A0;
  --gray-400: #B7C2AE;
  --gray-500: #5F6A56;
  --gray-600: #4A5642;
  --gray-700: #34422D;
  --gray-800: #24331E;
  --gray-900: #172211;
  --on-dark: color-mix(in srgb, var(--white) 90%, transparent);
  --glass: color-mix(in srgb, var(--white) 20%, transparent);
  --primary-shadow: color-mix(in srgb, var(--primary) 14%, transparent);
  --focus-ring: color-mix(in srgb, var(--primary) 30%, transparent);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  background-color: var(--cream);
  color: var(--gray-800);
}

/* ── Shared Divider ── */
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}

/* ── Card Hover ── */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px var(--primary-shadow);
}

/* ── Nav Underline ── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Hero Gradient ── */
.hero-gradient {
  background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
}
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

/* ── Value Card ── */
.value-card {
  border-top: 4px solid transparent;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.value-card:hover {
  border-top-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px var(--primary-shadow);
}

/* ── Form Inputs ── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.75rem;
  background: var(--white);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
  outline: none;
}
.form-input::placeholder {
  color: var(--gray-500);
  opacity: 1;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--button-bg);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 1rem;
}
.btn-primary:hover {
  background: var(--button-hover);
  transform: translateY(-1px);
}
.btn-outline {
  display: inline-block;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ── Mission Quote ── */
.mission-quote {
  border-left: 5px solid var(--primary);
  padding: 1.5rem 2rem;
  background: var(--primary-light);
  border-radius: 0 1rem 1rem 0;
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.8;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── Wave Divider ── */
.wave-bottom {
  line-height: 0;
  overflow: hidden;
}

/* ── Responsive typography ── */
@media (max-width: 640px) {
  .hero-title { font-size: 2.5rem !important; }
}

/* Shared branding, accessible controls and resource links. */
.site-logo { display: block; height: 40px; width: auto; object-fit: contain; }
.footer-brands { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-logo { display: block; height: 84px; width: auto; }
/* Circular provider badge; keep the source logo at its original aspect ratio. */
.ndis-badge {
  --badge-size: 104px;
  width: var(--badge-size);
  height: var(--badge-size);
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ndis-purple);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}
.ndis-badge-featured { --badge-size: 144px; }
.ndis-badge .ndis-logo { display: block; width: 76%; height: auto; }
.ndis-badge-label { font-size: calc(var(--badge-size) * 0.105); line-height: 1.15; }
.provider-registrations { background: var(--footer-bg); color: var(--gray-600); padding: 32px 24px; }
.provider-registrations-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
}
.provider-registration-list { margin: 0; padding: 0; list-style: none; font-size: 16px; font-weight: 600; letter-spacing: 0.08em; line-height: 1.6; }
.provider-registration-list li + li { margin-top: 14px; }
@media (max-width: 639px) {
  .provider-registrations-inner { flex-direction: column; gap: 24px; }
  .provider-registration-list { font-size: 14px; letter-spacing: 0.04em; text-align: center; }
}
.site-footer { background: var(--footer-bg); color: var(--gray-600); }
.site-footer a:hover { color: var(--primary-dark); }
@media (max-width: 767px) {
  .site-logo { height: 36px; }
}
.hero-actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.hero-actions > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  min-height: 56px;
  padding: 12px 20px;
  line-height: 1.5;
  text-align: center;
}
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
  .hero-actions > a { width: 260px; }
}
.brand-button { background: var(--button-bg); color: var(--white); }
.brand-button:hover { background: var(--button-hover); }
.hero-contact:hover { background: var(--white); color: var(--primary); }
.referral-card { border: 2px solid var(--accent); background: var(--white); }
.resource-card { border: 1px solid var(--gray-200); background: var(--white); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.form-input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
[id] { scroll-margin-top: 88px; }
footer address { font-style: normal; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
