/* ============================================
   Legacy Disability Support - Main Stylesheet
   Fixed: horizontal dropdown, mobile layout,
   button/text contrast, spacing & overlap issues
   ============================================ */

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

/* ---- CSS Variables ---- */
:root {
  --teal-dark:    #1a6b6b;
  --teal-mid:     #2a9090;
  --teal-light:   #3eb8b8;
  --purple-deep:  #6b2d8b;
  --purple-mid:   #8b3aaa;
  --purple-light: #b05ec4;
  --pink:         #e0607e;
  --pink-light:   #f0a0b5;
  --pink-blush:   #fce8ef;
  --gold:         #c9a84c;
  --white:        #ffffff;
  --off-white:    #f9f7fc;
  --text-dark:    #1a1a2e;
  --text-mid:     #4a4a6a;
  --text-light:   #7a7a9a;
  --border:       #e8e0f0;
  --shadow-sm:    0 2px 12px rgba(42,144,144,0.10);
  --shadow-md:    0 8px 32px rgba(42,144,144,0.14);
  --shadow-lg:    0 20px 60px rgba(42,144,144,0.18);
  --grad-teal:    linear-gradient(135deg, var(--teal-dark), var(--teal-light));
  --grad-purple:  linear-gradient(135deg, var(--purple-deep), var(--purple-light));
  --grad-brand:   linear-gradient(135deg, var(--teal-dark) 0%, var(--purple-mid) 60%, var(--pink) 100%);
  --grad-hero:    linear-gradient(160deg, #0d4a4a 0%, #1a6b6b 35%, #3a1a55 70%, #6b2d8b 100%);
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    28px;
  --radius-full:  9999px;
  --transition:   all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--text-dark);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p  { color: var(--text-mid); font-size: 1rem; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-mid);
  background: rgba(62,184,184,0.10);
  border: 1px solid rgba(62,184,184,0.25);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.section-title { margin-bottom: 14px; }
.section-sub   { max-width: 600px; margin: 0 auto 40px; text-align: center; }

/* ---- Utilities ---- */
.container { width: 92%; max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* ---- Buttons — guaranteed visible always ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::after { opacity: 1; }

/* Primary: always teal→purple→pink gradient, white text */
.btn-primary {
  background: var(--grad-brand);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(107,45,139,0.30);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(107,45,139,0.42);
  color: #ffffff !important;
}

/* Outline: teal border, dark text → fills on hover */
.btn-outline {
  background: transparent;
  color: var(--teal-dark) !important;
  border-color: var(--teal-mid);
}
.btn-outline:hover {
  background: var(--teal-dark);
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* White button: white bg, dark teal text */
.btn-white {
  background: #ffffff;
  color: var(--teal-dark) !important;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

/* Ghost white: for use ON coloured backgrounds (CTA sections) */
.btn-ghost-white {
  background: transparent;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.65);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.15);
  color: #ffffff !important;
}

.btn-lg { padding: 15px 36px; font-size: 1rem; }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }

/* ======================================================
   NAVBAR — fixed transparent → solid on scroll
   ====================================================== */
/* ======================================================
   NAVBAR
   ====================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 0;
}
.navbar.transparent { background: transparent; }
.navbar.scrolled {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.09);
}

/* Tighter inner on scroll */
.navbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 0;
  transition: padding 0.3s ease;
}
.navbar-logo { justify-self: flex-start; }
.navbar-actions { justify-self: flex-end; display: flex; align-items: center; gap: 16px; }
.navbar.scrolled .navbar-inner { padding: 8px 0; }

/* Logo */
.navbar-logo img {
  height: 48px;
  width: auto;
  transition: height 0.3s ease;
  object-fit: contain;
  display: block;
}
.navbar.scrolled .navbar-logo img { height: 36px; }

/* Desktop links */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.navbar-links > li > a,
.navbar-links > li > .nav-dropdown-trigger {
  font-size: 0.84rem;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}
.navbar.transparent .navbar-links > li > a,
.navbar.transparent .navbar-links > li > .nav-dropdown-trigger { color: rgba(255,255,255,0.92); }
.navbar.scrolled .navbar-links > li > a,
.navbar.scrolled .navbar-links > li > .nav-dropdown-trigger { color: var(--text-dark); }
.navbar-links > li > a.active {
  color: var(--teal-mid) !important;
  font-weight: 700;
  background: rgba(62,184,184,0.08);
}

.navbar.transparent .navbar-links > li > a.active {
  color: #fff !important;
  background: rgba(255,255,255,0.2);
}

.navbar.transparent .navbar-links > li > a:hover,
.navbar.transparent .navbar-links > li > .nav-dropdown-trigger:hover { color: #fff; background: rgba(255,255,255,0.15); }
.navbar.scrolled .navbar-links > li > a:hover,
.navbar.scrolled .navbar-links > li > .nav-dropdown-trigger:hover { color: var(--teal-mid); background: rgba(62,184,184,0.08); }

/* Referral pill button and icons in navbar */
.navbar-actions .btn-nav {
  background: var(--grad-brand) !important;
  color: #ffffff !important;
  padding: 9px 22px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 15px rgba(107,45,139,0.25);
  transition: var(--transition);
}
.navbar-actions .btn-nav:hover { opacity: 0.95; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(107,45,139,0.35); }

/* Search bar inline styling */
.nav-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  transition: width 0.4s ease;
  width: 40px; /* starts small */
}

.nav-search-wrap.expanded {
  width: 200px; /* expands on click */
}

.nav-search-input {
  width: 0;
  opacity: 0;
  padding: 6px 0px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  outline: none;
  transition: all 0.4s ease;
  background: var(--white);
  color: var(--text-dark);
}

.nav-search-wrap.expanded .nav-search-input {
  width: 160px;
  opacity: 1;
  padding: 6px 12px;
  margin-right: 8px;
}

.nav-icon-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important; /* Force white icon */
}

.navbar.scrolled .nav-icon-btn { color: var(--text-dark) !important; }
.nav-icon-btn:hover { transform: scale(1.1); }

/* Inline Search Results */
.nav-search-results {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  width: 280px;
  padding: 8px;
  margin-top: 10px;
  z-index: 1100;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border);
  display: none;
}

.nav-search-results.active {
  display: block;
}

.search-item {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  border-bottom: 1px solid var(--off-white);
  transition: background 0.2s ease;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: var(--off-white);
}

.search-item-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.search-item-desc {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.4;
}


/* ======================================================
   DROPDOWN — compact, positioned below navbar, not full-width
   ====================================================== */
.nav-dropdown { position: relative; }

/* Invisible hover bridge */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%; left: -16px; right: -16px;
  height: 10px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.13);
  border: 1px solid var(--border);
  padding: 8px;
  min-width: 240px;
  width: max-content;
  max-width: 280px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 999;
}
.nav-dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* Simple list items — name only, no icon, no description */
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-dark) !important;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}
.dropdown-menu a:hover {
  background: var(--off-white);
  color: var(--teal-mid) !important;
}
/* Colour dot accent on hover */
.dropdown-menu a::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal-mid);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.dropdown-menu a:hover::before { opacity: 1; }

/* "All Services" link at bottom of dropdown */
.dropdown-menu .dropdown-all {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  color: var(--teal-mid) !important;
  font-weight: 600;
  font-size: 0.82rem;
}
.dropdown-menu .dropdown-all::before { display: none; }

/* ======================================================
   HAMBURGER + MOBILE MENU
   ====================================================== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.transparent .hamburger span { background: #ffffff; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Animate down from top on mobile */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  height: auto;
  max-height: 90vh;
  background: #ffffff;
  z-index: 998;
  padding: 80px 0 32px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateY(0);
}

/* Dark backdrop behind mobile menu */
.mobile-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 997;
}
.mobile-menu-backdrop.open { display: block; }

/* Mobile nav items */
.mobile-menu > a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark) !important;
  padding: 13px 24px;
  border-bottom: 1px solid var(--border);
  transition: color 0.18s ease, padding-left 0.18s ease;
  display: block;
}
.mobile-menu > a:hover { color: var(--teal-mid) !important; padding-left: 30px; }

/* Mobile services accordion */
.mob-acc { border-bottom: 1px solid var(--border); }
.mob-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-align: left;
}
.mob-acc-btn:hover { color: var(--teal-mid); }
.mob-chevron { transition: transform 0.28s ease; font-size: 0.72rem; color: var(--text-light); }

.mob-acc-panel {
  display: none;
  flex-direction: column;
  background: var(--off-white);
  padding: 6px 0;
}
.mob-acc-panel.open { display: flex; }
.mob-acc-panel a {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-mid) !important;
  padding: 10px 32px;
  transition: color 0.15s ease, background 0.15s ease;
  display: block;
  text-decoration: none;
}
.mob-acc-panel a:hover {
  color: var(--teal-mid) !important;
  background: rgba(62,184,184,0.06);
}

/* Referral CTA at bottom of mobile menu */
.mobile-menu-cta {
  padding: 20px 24px 0;
  margin-top: auto;
}
.mobile-menu-cta .btn {
  width: 100%;
  justify-content: center;
  font-size: 0.9rem;
}

/* ======================================================
   FOOTER
   ====================================================== */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.88rem; margin: 14px 0 20px; line-height: 1.8; }
.footer-logo { height: 48px; }

.footer h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 18px;
}
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.60); transition: var(--transition); }
.footer-links a:hover { color: #fff; padding-left: 4px; }

.footer-contact-item {
  display: flex; align-items: flex-start; gap: 11px;
  margin-bottom: 12px; font-size: 0.86rem;
  color: rgba(255,255,255,0.65);
}
.footer-contact-item i { color: var(--teal-light); margin-top: 3px; flex-shrink: 0; }
.footer-social { display: flex; gap: 9px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--teal-mid); color: #fff; transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.40); margin: 0; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.78rem; color: rgba(255,255,255,0.40); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--teal-light); }

.ndis-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}
.ndis-badge i { color: var(--teal-light); }

/* ======================================================
   HERO
   ====================================================== */
.hero {
  min-height: 100vh;
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 80% 20%, rgba(62,184,184,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(176,94,196,0.22) 0%, transparent 55%);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.18;
  animation: floatBlob 8s ease-in-out infinite;
  pointer-events: none;
}
.hero-blob-1 { width: 400px; height: 400px; background: var(--teal-light); top: -100px; right: 5%; }
.hero-blob-2 { width: 300px; height: 300px; background: var(--purple-mid); bottom: -50px; left: 10%; animation-delay: -3s; }
.hero-blob-3 { width: 200px; height: 200px; background: var(--pink); top: 40%; right: 30%; animation-delay: -6s; }
@keyframes floatBlob {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(20px,-20px) scale(1.05); }
  66%      { transform: translate(-15px,15px) scale(0.97); }
}

.hero-content { position: relative; z-index: 1; }

.hero-tagline {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--radius-full);
  padding: 6px 18px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.hero-tagline i { color: var(--teal-light); }

.hero h1 { color: #ffffff; margin-bottom: 18px; }
.hero h1 span { background: var(--grad-teal); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: rgba(255,255,255,0.80); margin-bottom: 32px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.58); margin-top: 4px; }

.scroll-down {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.40);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2.5s ease-in-out infinite;
}
.scroll-down::after {
  content: '';
  display: block;
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ======================================================
   PAGE HERO (inner pages)
   ====================================================== */
.page-hero {
  padding: 100px 0 48px;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  padding: 100px 0 48px !important;
  height: auto !important;
  min-height: 0 !important;
  background-size: cover !important;
  background-position: center 25% !important;
  background-repeat: no-repeat !important;
}
.page-hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.35) 100%);
  z-index: 0;
}
.page-hero:not(.page-hero-bg)::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 40%, rgba(62,184,184,0.20), transparent);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .hero-blob { position: absolute !important; z-index: 0 !important; opacity: 0.10; }
.page-hero h1 { color: #ffffff; margin-top: 8px; }
.page-hero p  { color: rgba(255,255,255,0.75); max-width: 600px; margin-top: 10px; }

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.52);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.65); transition: var(--transition); }
.breadcrumb a:hover { color: var(--teal-light); }
.breadcrumb i { font-size: 0.55rem; }

/* ======================================================
   SECTIONS
   ====================================================== */
section { padding: 88px 0; }
.section-light { background: var(--off-white); }
.section-dark  { background: var(--text-dark); }
.section-teal  { background: var(--grad-teal); }

/* ======================================================
   CARDS
   ====================================================== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-brand);
  opacity: 0; transition: var(--transition);
}
.card:hover::before { opacity: 1; }

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.service-card::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.40s;
  z-index: 0;
}
.service-card:hover::after { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-link { color: #ffffff !important; }
.service-card:hover .service-icon { background: rgba(255,255,255,0.18) !important; color: #ffffff !important; }

.service-img-wrapper {
  margin: -36px -28px 24px -28px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}
.service-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.service-card:hover .service-img { transform: scale(1.05); }

.service-icon {
  width: 58px; height: 58px;
  border-radius: var(--radius-md);
  background: rgba(62,184,184,0.10);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--teal-mid);
  margin-bottom: 20px;
  transition: var(--transition);
  flex-shrink: 0;
}
.service-card h3 { margin-bottom: 10px; color: var(--text-dark); transition: var(--transition); }
.service-card p  { font-size: 0.9rem; transition: var(--transition); }
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--teal-mid);
  transition: var(--transition);
}
.service-link i { transition: transform 0.3s; }
.service-card:hover .service-link i { transform: translateX(4px); }

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-light); }
.feature-img-wrapper { margin-bottom: 18px; border-radius: var(--radius-md); overflow: hidden; }
.feature-img { width: 100%; height: 170px; object-fit: cover; display: block; transition: transform 0.5s ease; }
.feature-card:hover .feature-img { transform: scale(1.05); }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 18px;
}
.feature-card h4 { margin-bottom: 9px; }
.feature-card p  { font-size: 0.88rem; }

/* ======================================================
   CTA SECTION — text and buttons always visible
   ====================================================== */
.cta-section {
  background: var(--grad-brand);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
/* Force white text inside CTA — nothing should be invisible */
.cta-section h2  { color: #ffffff !important; margin-bottom: 14px; position: relative; }
.cta-section p   { color: rgba(255,255,255,0.85) !important; position: relative; margin-bottom: 32px; }
.cta-section .section-label {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.28);
  color: #ffffff !important;
  position: relative;
}
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
/* Buttons inside CTA get explicit contrast treatment */
.cta-section .btn-white { background: #ffffff; color: var(--teal-dark) !important; }
.cta-section .btn-ghost-white,
.cta-section .btn-outline {
  background: transparent;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.60);
}
.cta-section .btn-ghost-white:hover,
.cta-section .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: #ffffff !important;
}

/* ======================================================
   FORMS
   ====================================================== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 7px;
}
.form-label span { color: var(--pink); }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.93rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--teal-mid); box-shadow: 0 0 0 4px rgba(62,184,184,0.12); }
.form-control::placeholder { color: var(--text-light); }
.form-control.error   { border-color: var(--pink); }
.form-control.success { border-color: #38c97e; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control   { appearance: none; cursor: pointer; }
.form-error { font-size: 0.8rem; color: var(--pink); margin-top: 4px; display: none; }
.form-error.visible { display: block; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ======================================================
   CONTACT
   ====================================================== */
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.contact-info-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: var(--radius-md);
  background: rgba(62,184,184,0.10);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-mid); font-size: 1rem;
}
.contact-info-item h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}
.contact-info-item p { font-size: 0.9rem; color: var(--text-dark); margin: 0; }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; height: 300px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 100%; border: none; }

.hours-table { width: 100%; }
.hours-row {
  display: flex; justify-content: space-between;
  padding: 8px 0; font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
}
.hours-row:last-child { border-bottom: none; }
.hours-row .day    { font-weight: 500; color: var(--text-dark); }
.hours-row .time   { color: var(--text-mid); }
.hours-row .closed { color: var(--pink); }

/* ======================================================
   NDIS / STEPS / FAQ
   ====================================================== */
.ndis-steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.ndis-step {
  padding: 36px 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
  margin-top: 18px;
}
.ndis-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ndis-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px; left: 24px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #ffffff;
  font-weight: 700; font-size: 0.88rem;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif;
}

.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--teal-mid); box-shadow: var(--shadow-sm); }
.faq-question {
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  font-weight: 600; font-size: 0.93rem;
  color: var(--text-dark);
  transition: var(--transition);
}
.faq-question:hover { color: var(--teal-mid); }
.faq-item.open .faq-question { color: var(--teal-mid); }
.faq-toggle {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; color: var(--text-mid);
  transition: var(--transition);
}
.faq-item.open .faq-toggle { background: var(--teal-mid); color: #fff; transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1); }
.faq-answer-inner { padding: 0 22px 20px; font-size: 0.9rem; color: var(--text-mid); line-height: 1.8; }

/* ======================================================
   TEAM / VALUES
   ====================================================== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: #ffffff;
  margin: 0 auto 18px;
}
.team-card h3 { font-size: 1rem; margin-bottom: 4px; }
.team-role { font-size: 0.8rem; color: var(--teal-mid); font-weight: 500; margin-bottom: 10px; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.value-card { padding: 28px 20px; border-radius: var(--radius-lg); text-align: center; transition: var(--transition); }
.value-card:hover { transform: translateY(-4px); }
.value-icon { font-size: 1.8rem; margin-bottom: 14px; display: block; }
.value-card h4 { margin-bottom: 7px; }
.value-card p { font-size: 0.86rem; }
.value-card:nth-child(1) { background: rgba(62,184,184,0.08); border: 1px solid rgba(62,184,184,0.20); }
.value-card:nth-child(2) { background: rgba(107,45,139,0.06); border: 1px solid rgba(107,45,139,0.15); }
.value-card:nth-child(3) { background: rgba(224,96,126,0.07); border: 1px solid rgba(224,96,126,0.18); }
.value-card:nth-child(4) { background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.20); }
.value-card:nth-child(5) { background: rgba(42,144,144,0.07);  border: 1px solid rgba(42,144,144,0.18); }
.value-card:nth-child(6) { background: rgba(139,58,170,0.06); border: 1px solid rgba(139,58,170,0.15); }

/* ======================================================
   LISTS & MISC
   ====================================================== */
.benefits-list li { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 12px; font-size: 0.92rem; color: var(--text-mid); }
.benefits-list li i { color: var(--teal-mid); margin-top: 3px; flex-shrink: 0; }

.eligibility-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.eligibility-box { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.eligibility-box.teal   { background: rgba(62,184,184,0.07); border-color: rgba(62,184,184,0.22); }
.eligibility-box.purple { background: rgba(107,45,139,0.06); border-color: rgba(107,45,139,0.15); }
.eligibility-box h3 { margin-bottom: 14px; }
.eligibility-box li { margin-bottom: 9px; display: flex; gap: 9px; align-items: flex-start; font-size: 0.9rem; color: var(--text-mid); }
.eligibility-box li i { color: var(--teal-mid); margin-top: 2px; }

.stats-bar { background: var(--grad-brand); padding: 40px 0; }
.stats-inner { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.stat-item-num { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; color: #ffffff; line-height: 1; }
.stat-item-label { font-size: 0.82rem; color: rgba(255,255,255,0.70); margin-top: 6px; }

.form-success {
  display: none;
  background: rgba(56,201,126,0.10);
  border: 1px solid rgba(56,201,126,0.30);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  color: #238a52;
  font-size: 0.92rem;
  margin-top: 18px;
  align-items: center;
  gap: 12px;
}
.form-success.visible { display: flex; }
.form-success i { font-size: 1.2rem; }

/* ======================================================
   ANIMATIONS
   ====================================================== */
.fade-up    { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-left  { opacity: 0; transform: translateX(-28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-right { opacity: 0; transform: translateX(28px);  transition: opacity 0.65s ease, transform 0.65s ease; }
.scale-in   { opacity: 0; transform: scale(0.93);        transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.visible, .fade-left.visible, .fade-right.visible, .scale-in.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.10s; }
.delay-2 { transition-delay: 0.20s; }
.delay-3 { transition-delay: 0.30s; }
.delay-4 { transition-delay: 0.40s; }
.delay-5 { transition-delay: 0.50s; }

/* ======================================================
   TWO-COLUMN LAYOUT
   ====================================================== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col.reversed > :first-child { order: 2; }
.two-col.reversed > :last-child  { order: 1; }

.img-block { border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.img-block img { width: 100%; height: 380px; object-fit: cover; }
.img-overlay {
  position: absolute; bottom: 22px; left: 22px;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 11px;
}
.img-overlay-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  color: #ffffff; font-size: 1rem;
}
.img-overlay p { margin: 0; font-size: 0.8rem; }
.img-overlay strong { display: block; font-size: 0.9rem; }

/* ======================================================
   REFERRAL
   ====================================================== */
.referral-intro {
  background: rgba(62,184,184,0.06);
  border: 1px solid rgba(62,184,184,0.18);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 32px;
  display: flex; gap: 14px; align-items: flex-start;
}
.referral-intro i { color: var(--teal-mid); font-size: 1.3rem; margin-top: 2px; flex-shrink: 0; }
.referral-intro p { margin: 0; font-size: 0.9rem; }

.checkbox-group { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.checkbox-item {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.88rem;
}
.checkbox-item:hover { border-color: var(--teal-mid); background: rgba(62,184,184,0.05); }
.checkbox-item input { accent-color: var(--teal-mid); cursor: pointer; }
.checkbox-item.checked { border-color: var(--teal-mid); background: rgba(62,184,184,0.08); }

/* ======================================================
   ACCREDITATION STRIP
   ====================================================== */
.accreditation-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.accreditation-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
}
.accred-item {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.82rem; color: var(--text-light); font-weight: 500;
}
.accred-item i { font-size: 1.2rem; color: var(--teal-mid); }

/* ======================================================
   RESPONSIVE — TABLET (≤1024px)
   ====================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .two-col { gap: 36px; }

}

/* ======================================================
   RESPONSIVE — MOBILE (≤768px)
   ====================================================== */
@media (max-width: 768px) {
  /* Section spacing */
  section { padding: 56px 0; }
  .container { width: 94%; }

  /* Hide desktop nav, show hamburger */
  .navbar-links { display: none !important; }
  .navbar-inner {
    display: flex !important;
    justify-content: space-between !important;
  }
  .navbar-actions .btn-nav { display: none !important; }
  .hamburger { display: flex; }

  /* Hero */
  .hero {
    min-height: 100svh;
    padding: 100px 0 56px;
    align-items: flex-start;
  }
  .hero h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
  .hero p { font-size: 0.96rem; }
  .hero-actions { flex-direction: column; gap: 10px; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 20px; margin-top: 36px; padding-top: 24px; }
  .hero-stat-num { font-size: 1.7rem; }

  /* Hide visual side card on mobile hero */
  .hero-visual { display: none !important; }
  .hero-home .container { grid-template-columns: 1fr !important; gap: 0 !important; }

  /* Page hero */
  .page-hero { padding: 88px 0 36px; }
  .page-hero h1 { font-size: clamp(1.6rem, 5.5vw, 2.2rem); }

  /* Two-column → single */
  .two-col { grid-template-columns: 1fr !important; gap: 28px; }
  .two-col.reversed > :first-child { order: 1; }
  .two-col.reversed > :last-child  { order: 2; }

  /* Grids */
  .services-grid  { grid-template-columns: 1fr; }
  .features-grid  { grid-template-columns: 1fr; }
  .team-grid      { grid-template-columns: 1fr 1fr; gap: 16px; }
  .values-grid    { grid-template-columns: 1fr 1fr; gap: 14px; }
  .ndis-steps     { grid-template-columns: 1fr; }
  .stats-inner    { grid-template-columns: 1fr 1fr; gap: 16px; }
  .eligibility-grid { grid-template-columns: 1fr; }
  .checkbox-group { grid-template-columns: 1fr; }
  .form-grid-2    { grid-template-columns: 1fr; }

  /* Footer */
  .footer { padding: 48px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
  .footer-bottom-links { justify-content: center; flex-wrap: wrap; gap: 12px; }

  /* Contact */
  .contact-card { padding: 24px; }

  /* CTA */
  .cta-section { padding: 52px 0; }
  .cta-actions { flex-direction: column; align-items: center; gap: 10px; width: 100%; }
  .cta-actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Accred strip */
  .accreditation-inner { gap: 20px; justify-content: flex-start; }

  /* Service cards */
  .service-card { padding: 28px 22px; }
  .service-img { height: 160px; }

  /* Feature cards */
  .feature-card { padding: 24px 20px; }

  /* Value cards */
  .value-card { padding: 22px 16px; }

  /* Referral sidebar goes below form on mobile */
  .referral-layout { grid-template-columns: 1fr !important; }
}

/* ======================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ====================================================== */
@media (max-width: 480px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.1rem; }
  .btn-lg { padding: 13px 24px; font-size: 0.92rem; }
  .team-grid  { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .accreditation-inner { flex-direction: column; align-items: flex-start; }
  .mobile-menu { padding: 76px 20px 36px; }
}

/* ======================================================
   REDUCED MOTION
   ====================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ======================================================
   ADDITIONAL MOBILE FIXES
   ====================================================== */

/* img-overlay can overflow on small screens — clamp it */
@media (max-width: 480px) {
  .img-overlay {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    font-size: 0.8rem;
  }
  .img-overlay strong { font-size: 0.85rem; }
}

/* Feature icon (text-only variant used in index why-section) */
.feature-icon[style*="background:none"] {
  background: none !important;
  box-shadow: none !important;
  margin-bottom: 12px;
}

/* Prevent absolute blobs from creating scroll overflow on mobile */
.hero-blob { max-width: 100vw; overflow: hidden; }

/* Fix ndis-steps counter top spacing so number badge doesn't clip */
@media (max-width: 768px) {
  .ndis-steps { margin-top: 16px; }
  .ndis-step  { margin-top: 24px; }
}

/* Testimonial slider full-width on mobile */
@media (max-width: 480px) {
  .testimonial-card { padding: 24px 18px; }
  .testimonial-text { font-size: 0.95rem; }
}

/* Ensure the hero form wrap on index doesn't overflow on very small screens */
@media (max-width: 480px) {
  .hero-form-wrap { padding: 20px !important; }
}

/* Contact / referral sidebar sticky on mobile should stop being sticky */
@media (max-width: 768px) {
  [style*="position:sticky"] { position: relative !important; top: auto !important; }
}

/* Ensure section labels are always visible on gradient bg */
.page-hero .section-label {
  background: rgba(255,255,255,0.13) !important;
  border-color: rgba(255,255,255,0.24) !important;
  color: #ffffff !important;
}

/* Fix .two-col alignment that contained fixed heights */
.img-block img {
  height: clamp(220px, 35vw, 380px);
  object-fit: cover;
}


/* ======================================================
   MOBILE PADDING & SPACING OVERHAUL
   All text must have safe distance from screen edges
   ====================================================== */
@media (max-width: 768px) {
  /* Base container gets more breathing room */
  .container { width: 90%; }

  /* Section padding */
  section { padding: 52px 0; }

  /* Hero */
  .hero { padding: 100px 0 52px; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .hero p   { font-size: 0.95rem; line-height: 1.7; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 18px; margin-top: 32px; padding-top: 24px; flex-wrap: wrap; }
  .hero-stat-num { font-size: 1.6rem; }
  .hero-stat-label { font-size: 0.76rem; }

  /* Page hero */
  .page-hero { padding: 88px 0 36px; }
  .page-hero h1 { font-size: clamp(1.55rem, 6vw, 2rem); }
  .page-hero p  { font-size: 0.92rem; }
  .breadcrumb   { font-size: 0.76rem; }

  /* Headings */
  h2 { font-size: clamp(1.45rem, 5.5vw, 2rem); }
  h3 { font-size: clamp(1.05rem, 4vw, 1.3rem); }

  /* Section label */
  .section-label { font-size: 0.7rem; padding: 4px 12px; }

  /* Grids all single column or auto-fill */
  .services-grid       { grid-template-columns: 1fr; gap: 16px; }
  .features-grid       { grid-template-columns: 1fr; gap: 14px; }
  .team-grid           { grid-template-columns: 1fr 1fr; gap: 14px; }
  .values-grid         { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ndis-steps          { grid-template-columns: 1fr; gap: 28px; }
  .stats-inner         { grid-template-columns: 1fr 1fr; gap: 14px; }
  .eligibility-grid    { grid-template-columns: 1fr; gap: 14px; }
  .checkbox-group      { grid-template-columns: 1fr; gap: 8px; }
  .form-grid-2         { grid-template-columns: 1fr; gap: 0; }
  .footer-grid         { grid-template-columns: 1fr; gap: 28px; }

  /* Two-col → single */
  .two-col { grid-template-columns: 1fr !important; gap: 28px; }
  .two-col.reversed > :first-child { order: 1; }
  .two-col.reversed > :last-child  { order: 2; }

  /* Cards */
  .service-card   { padding: 24px 20px; }
  .feature-card   { padding: 22px 18px; }
  .value-card     { padding: 20px 16px; }
  .contact-card   { padding: 22px 18px; }
  .testimonial-card { padding: 26px 20px; }

  /* CTA */
  .cta-section { padding: 48px 0; }
  .cta-section h2 { font-size: 1.5rem; }
  .cta-section p  { font-size: 0.92rem; }
  .cta-actions { flex-direction: column; align-items: center; gap: 10px; }
  .cta-actions .btn { width: 100%; max-width: 300px; justify-content: center; }

  /* Footer */
  .footer { padding: 48px 0 24px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
  .footer-bottom-links { justify-content: center; gap: 14px; flex-wrap: wrap; }

  /* Forms */
  .referral-intro { padding: 18px 20px; flex-direction: column; gap: 10px; }
  .form-control { font-size: 0.92rem; padding: 11px 14px; }

  /* Referral & Contact layouts */
  .referral-layout { grid-template-columns: 1fr !important; }

  /* Mobile menu */
  .mobile-menu { padding: 68px 0 32px; }

  /* Accreditation */
  .accreditation-inner { gap: 16px; }
  .accred-item { font-size: 0.78rem; }

  /* Remove sticky on mobile */
  [style*="position:sticky"] { position: relative !important; top: auto !important; }
}

@media (max-width: 480px) {
  .container { width: 92%; }
  section { padding: 44px 0; }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }
  p  { font-size: 0.93rem; }

  .btn-lg { padding: 13px 22px; font-size: 0.9rem; }
  .btn    { padding: 11px 20px; font-size: 0.88rem; }

  .team-grid   { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-item-num { font-size: 1.9rem; }

  .service-img { height: 150px; }
  .page-hero { padding: 80px 0 30px; }

  /* Testimonial */
  .testimonial-card   { padding: 22px 16px; }
  .testimonial-text   { font-size: 0.9rem; }
  .testimonial-quote  { font-size: 2.2rem; }

  /* FAQ */
  .faq-question { padding: 15px 16px; font-size: 0.88rem; }
  .faq-answer-inner { padding: 0 16px 16px; }

  /* NDIS steps */
  .ndis-step { padding: 32px 20px 22px; }

  /* Contact card */
  .contact-card { padding: 18px 16px; }
  .map-embed    { height: 240px; }

  /* img overlay hidden on very small screens */
  .img-overlay { display: none; }

  /* Footer */
  .footer-grid { gap: 22px; }
  .footer-logo { height: 40px; }
}

/* ======================================================
   GENERAL UI POLISH
   ====================================================== */

/* Smoother focus rings for accessibility */
*:focus-visible {
  outline: 2px solid var(--teal-mid);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Service card image zoom is contained */
.service-img-wrapper { overflow: hidden; }

/* Smoother card transitions */
.service-card, .feature-card, .value-card, .team-card, .ndis-step {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

/* Feature icon always shows gradient background */
.feature-icon {
  background: var(--grad-brand) !important;
  color: #fff !important;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 16px;
  flex-shrink: 0;
}

/* Stats bar text is always white */
.stats-bar .stat-item-num,
.stats-bar .stat-item-label { color: #fff; }
.stats-bar .stat-item-label { color: rgba(255,255,255,0.72); }

/* Ensure hero stat labels are white */
.hero-stat-label { color: rgba(255,255,255,0.60); }

/* Page hero section-label always white */
.page-hero .section-label {
  background: rgba(255,255,255,0.13) !important;
  border-color: rgba(255,255,255,0.25) !important;
  color: #fff !important;
}

/* Breadcrumb spacing */
.breadcrumb { margin-bottom: 12px; }

/* Smooth img-block heights */
.img-block img {
  height: clamp(220px, 30vw, 380px);
  object-fit: cover;
  width: 100%;
}

/* Make the two-col gap tighter on medium screens */
@media (min-width: 769px) and (max-width: 1024px) {
  .two-col { gap: 36px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ======================================================
   SEARCH OVERLAY
   ====================================================== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  padding: 100px 5%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.search-close {
  position: absolute;
  top: 30px; right: 40px;
  background: none; border: none;
  font-size: 2rem; color: var(--text-dark);
  cursor: pointer; transition: transform 0.3s;
}
.search-close:hover { transform: rotate(90deg); color: var(--pink); }
.search-container {
  width: 100%; max-width: 800px;
  margin: 0 auto;
}
.search-input {
  width: 100%;
  padding: 16px 200px 16px 64px;
  font-size: 1.4rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: 'DM Sans', sans-serif;
  box-shadow: var(--shadow-sm);
}
.search-input:focus { border-color: var(--teal-mid); box-shadow: 0 0 0 4px rgba(62,184,184,0.12); }
.search-input-icon {
  position: absolute; left: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem; color: var(--text-light);
}
.search-results {
  margin-top: 30px;
  display: flex; flex-direction: column; gap: 10px;
  max-height: 60vh;
  overflow-y: auto;
}
.search-result-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
  text-decoration: none;
}
.search-result-item:hover {
  border-color: var(--teal-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: var(--teal-mid);
}
.search-result-item i { color: var(--teal-light); }
.no-results {
  text-align: center;
  padding: 40px;
  color: var(--text-mid);
  font-size: 1.1rem;
}
@media (max-width: 768px) {
  .search-input { font-size: 1.1rem; padding: 14px 110px 14px 44px; }
  .search-input-icon { font-size: 1.1rem; left: 16px; }
  .search-container form button { padding: 6px 16px !important; font-size: 0.9rem !important; height: 38px; min-height: auto !important; top: 7px !important; right: 7px !important; }
  .search-close { top: 20px; right: 20px; font-size: 1.5rem; }
  .search-result-item { font-size: 0.95rem; padding: 12px 18px; }
}

/* ---- SEARCH OVERLAY ---- */
.search-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(14, 94, 126, 0.95);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex; justify-content: center; align-items: flex-start;
  padding-top: 15vh;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.search-overlay.active { opacity: 1; pointer-events: all; }
.search-overlay-content { width: 90%; max-width: 650px; position: relative; }
.search-close { 
  position: absolute; right: 0; top: -50px;
  background: none; border: none; color: #fff; font-size: 2.5rem; cursor: pointer;
}
.search-overlay-content input {
  width: 100%; padding: 20px 24px; font-size: 1.2rem;
  border-radius: 30px; border: none; outline: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.search-results { margin-top: 16px; display: flex; flex-direction: column; gap: 8px;}
.search-result-item {
  background: rgba(255,255,255,0.1); padding: 16px; border-radius: 12px;
  color: #fff; text-decoration: none; transition: background 0.2s;
}
.search-result-item:hover { background: rgba(255,255,255,0.2); }
