* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0052A3;
  --secondary: #009B4D;
  --accent: #0088D1;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f0f7ff;
  --bg-white: #ffffff;
  --border: #d4e6f7;
  --shadow: 0 4px 20px rgba(0, 82, 163, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 82, 163, 0.15);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg-light);
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========== HEADER & NAV ========== */
header {
  background: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.logo img {
  display: inline-block;
  height: 48px;
  width: auto;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: color 0.3s;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--secondary);
}

.nav-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white !important;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
}

.nav-btn:hover {
  color: white !important;
  transform: translateY(-2px);
}

.mobile-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  color: inherit;
  touch-action: manipulation;
}

/* ========== DROPDOWN NAVIGATION ========== */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 12px;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0;
}

.nav-dropdown-toggle::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
  transition: transform 0.3s;
}

.nav-dropdown:hover > .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: white;
  top: 100%;
  left: 0;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin-top: 0;
  z-index: 1000;
  border: 1px solid var(--border);
}

.nav-dropdown:hover > .dropdown-menu {
  display: block;
}

.nav-dropdown.open > .dropdown-menu {
  display: block;
}

.nav-dropdown.open > .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu a {
  display: block;
  padding: 0.8rem 1.2rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s;
  border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--primary);
  border-left-color: var(--primary);
  padding-left: 1.5rem;
}

.dropdown-menu a:first-child {
  border-radius: 8px 8px 0 0;
}

.dropdown-menu a:last-child {
  border-radius: 0 0 8px 8px;
}

@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 0.5rem 0;
    z-index: 999;
  }
  nav a, nav .nav-dropdown > a {
    padding: 0.75rem 1.5rem;
    display: block;
    border-bottom: 1px solid #f0f0f0;
  }
  nav .nav-dropdown {
    display: block;
  }
  nav .nav-dropdown::after {
    display: none;
  }
  nav .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    min-width: 0;
    background: #f8fbff;
    display: none;
  }
  nav .nav-dropdown.open > .dropdown-menu {
    display: block;
  }
  nav .dropdown-menu a {
    padding-left: 2.5rem;
    font-size: 0.9rem;
    border-left: none;
    border-bottom: 1px solid #eef3f8;
  }
  nav .dropdown-menu a:hover {
    padding-left: 2.8rem;
  }
  .header-content {
    padding: 1rem;
    position: relative;
  }
  .mobile-menu {
    display: block;
  }
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 3.4rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(30px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.35rem;
  margin-bottom: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero p {
  font-size: 1.02rem;
  opacity: 0.95;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: white;
  color: var(--primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s;
  border: 2px solid white;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary);
}

.btn-light {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-light:hover {
  background: var(--primary);
  color: white;
}

.btn-accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-accent:hover {
  background: #e67e22;
}

.btn-schedule {
  background: var(--secondary);
  color: white;
  border: 2px solid var(--secondary);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

.btn-schedule:hover {
  background: transparent;
  color: white;
  border-color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .hero {
    padding: 2.2rem 0.9rem;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
}

/* ========== SECTIONS ========== */
section {
  padding: 4rem 2rem;
  background: white;
  margin: 2rem 0;
  border-radius: 15px;
}

h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  text-align: center;
}

h3 {
  color: var(--text-dark);
}

/* ========== MOBILE OVERRIDES (improve phone UX) ========== */
@media (max-width: 600px) {
  .container { padding: 0 1rem; }
  .header-content { padding: 0.6rem 1rem; gap: 0.6rem; }
  .logo { font-size: 1.15rem; display: flex; align-items: center; gap: 0.5rem; }
  .logo img { display: none !important; }
  .mobile-menu { font-size: 1.6rem; }
  nav { display: none !important; }
  .hero { padding: 1.6rem 0.8rem; }
  .hero h1 { font-size: 1.4rem; }
  .hero p { font-size: 0.95rem; }
  .hero-buttons { flex-direction: column; gap: 0.6rem; }
  .btn { width: 100%; padding: 0.85rem 1rem; border-radius: 10px; font-size: 1rem; }
  .btn + .btn { margin-top: 0.6rem; }
  section { padding: 1.2rem; margin: 1rem 0; border-radius: 12px; }
  h2 { font-size: 1.6rem; }
  .field-grid { display: block; gap: 0.6rem; }
  .field { width: 100%; }
  input, textarea, select, .input { width: 100%; padding: 0.8rem; font-size: 1rem; border-radius: 8px; }
  textarea { min-height: 110px; }
  .info-note { font-size: 0.95rem; }
  .dropdown-selected { padding: 0.6rem; font-size: 0.98rem; }
  .ndis-card, .ndis-card-body, .ndis-card-header { padding: 0.8rem; }
  .header-content .logo { flex: 1; }
  .nav-btn { padding: 0.5rem 0.9rem; }
}

/* Mobile menu open state: make nav full-width panel */
@media (max-width: 768px) {
  header.mobile-open {
    position: relative;
  }
  header.mobile-open nav {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 0.5rem 0 1.2rem 0;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    z-index: 1100;
    max-height: 72vh;
    overflow: auto;
    border-top: 1px solid #d4e6f7;
  }
  header.mobile-open .mobile-menu { color: var(--primary); }
  header.mobile-open nav a { padding: 0.9rem 1.2rem; font-size: 1rem; }
}

/* Smaller phones tweaks */
@media (max-width: 420px) {
  .hero h1 { font-size: 1.25rem; }
  .logo img { display: none !important; }
  section { padding: 0.9rem; }
  .btn { padding: 0.7rem; font-size: 0.98rem; }
  .hero::before { display: none; }
}

/* Make images responsive */
img { max-width: 100%; height: auto; display: block; }

/* Cards and grids collapse to single column on small screens */
@media (max-width: 600px) {
  .card-grid, .service-grid, .three-col, .two-col { display: block; }
  .card, .service-card { margin-bottom: 1rem; }
}



.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== STATS BANNER ========== */
.stats-banner {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 3rem 2rem;
  margin: 2rem 0;
  border-radius: 15px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ========== CARDS ========== */
.services-grid, .team-grid, .news-grid, .resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card, .team-member, .news-card, .resource-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
}

.service-card:hover, .news-card:hover, .resource-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}

.service-card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.service-card a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}

/* ========== TEAM ========== */
.team-member {
  text-align: center;
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  border: none;
  transition: all 0.3s;
}

.team-member:hover {
  background: white;
  box-shadow: var(--shadow);
}

.member-avatar {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
}

.team-member h3 {
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.team-member .role {
  color: var(--secondary);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

/* ========== NEWS ========== */
.news-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
}

.news-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.news-content {
  padding: 1.5rem;
}

.news-date {
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-card h3 {
  color: var(--primary);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.news-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--secondary);
}

.stars {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-style: italic;
  line-height: 1.7;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary);
}

/* ========== RESOURCES ========== */
.resource-card {
  background: var(--bg-light);
  padding: 1.8rem;
  border-radius: 10px;
  text-align: center;
  border: none;
  transition: all 0.3s;
}

.resource-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.resource-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.resource-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.resource-card a {
  display: inline-block;
  color: white;
  background: var(--secondary);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.resource-card a:hover {
  background: var(--primary);
}

/* ========== GLOBAL SEARCH ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-search-form {
  display: flex;
  align-items: center;
  border: 1px solid #d4e6f7;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  max-width: 290px;
}

.site-search-form input {
  border: none;
  outline: none;
  padding: 0.45rem 0.75rem;
  min-width: 170px;
  font-size: 0.85rem;
}

.site-search-form button {
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 0.48rem 0.7rem;
  cursor: pointer;
}

.site-search-form button:hover {
  background: var(--secondary);
}

/* ========== SEARCH PAGE ========== */
.search-panel {
  background: #fff;
  border: 1px solid #dbe6f1;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.search-panel form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
}

.search-panel input {
  width: 100%;
  border: 1px solid #cfe0ef;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
}

.search-panel button {
  border: 2px solid var(--primary);
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 0.68rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.search-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.search-filters select {
  border: 1px solid #cfe0ef;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  background: #fff;
}

.search-count {
  color: #4b5563;
  margin: 0.4rem 0 1rem;
}

.search-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.search-result-card {
  background: #fff;
  border: 1px solid #dbe6f1;
  border-radius: 10px;
  padding: 1rem;
}

.search-result-card h3 {
  margin: 0.35rem 0;
}

.search-result-card h3 a {
  color: var(--primary);
  text-decoration: none;
}

.search-result-card h3 a:hover {
  text-decoration: underline;
}

.search-result-card p {
  margin: 0;
  color: #4b5563;
}

.search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.search-badge {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.search-cat,
.search-updated {
  color: #6b7280;
  font-size: 0.8rem;
}

.search-empty-state {
  background: #fff;
  border: 1px solid #dbe6f1;
  border-radius: 10px;
  padding: 1rem;
}

@media (max-width: 1024px) {
  .site-search-form {
    display: none;
  }
}

/* ========== LOCATIONS ========== */
.location-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 10px;
  border-top: 4px solid var(--secondary);
}

.location-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.location-info {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ========== FAQs ========== */
.faq-item {
  background: var(--bg-light);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.faq-item:hover {
  background: white;
  box-shadow: var(--shadow);
}

.faq-item h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
}

.faq-item.open p {
  display: block;
}

.faq-item p {
  display: none;
  color: var(--text-light);
  margin-top: 1rem;
  line-height: 1.7;
}

.faq-toggle {
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.faq-item.open .faq-toggle {
  transform: rotate(180deg);
}

/* ========== DONATION SECTION ========== */
.donation-banner {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 3rem 2rem;
  border-radius: 15px;
  text-align: center;
  margin: 2rem 0;
}

.donation-banner h2 {
  color: white;
  margin-bottom: 1rem;
}

.donation-banner p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.donation-options {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.donation-box {
  background: rgba(255, 255, 255, 0.15);
  padding: 1.5rem 2rem;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.donation-box:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: white;
}

.donation-box h3 {
  color: white;
  margin-bottom: 0.3rem;
}

/* ========== CONTACT SECTION ========== */
.contact-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.contact-info-group h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.contact-info-item {
  margin-bottom: 2rem;
}

.contact-info-item strong {
  color: var(--text-dark);
  display: block;
  margin-bottom: 0.5rem;
}

.contact-info-item p {
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.contact-info-item a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary);
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  display: block;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== FOOTER ========== */
footer {
  background: #0a1628;
  color: white;
  padding: 3.5rem 0 0;
  margin-top: 3rem;
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--primary), var(--secondary)) 1;
}

footer a { color: rgba(255,255,255,0.78) !important; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: #fff !important; }
footer p, footer li, footer small { color: rgba(255,255,255,0.7); }

/* ---- main grid ---- */
.footer-main {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.footer-brand span { color: var(--secondary); }

.footer-tagline {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.footer-ndis-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0,155,77,0.15);
  border: 1px solid rgba(0,155,77,0.3);
  color: #6ee7b7;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

.footer-social { display: flex; gap: 0.55rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75) !important;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.footer-social a:hover {
  background: var(--secondary) !important;
  border-color: var(--secondary) !important;
  color: #fff !important;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.footer-col ul li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.4;
}
.footer-col ul li i {
  color: var(--secondary);
  width: 1rem; flex-shrink: 0;
  margin-top: 0.16rem; font-size: 0.78rem;
}
.footer-col ul li a { color: rgba(255,255,255,0.72) !important; font-size: 0.875rem; }
.footer-col ul li a:hover { color: #fff !important; }

/* ---- bottom bar ---- */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
}
.footer-bottom p { color: rgba(255,255,255,0.4); margin: 0; }
.footer-bottom-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,0.5) !important; font-size: 0.82rem; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.85) !important; }
.footer-bottom a { color: rgba(255,255,255,0.5) !important; font-size: 0.82rem; }
.footer-bottom a:hover { color: rgba(255,255,255,0.85) !important; }
.site-version { font-size: 0.72rem; opacity: 0.35; font-family: monospace; letter-spacing: 0.5px; }

/* ---- legacy footer classes (kept for any pages not yet migrated) ---- */
.footer-content {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; padding-bottom: 2.5rem;
}
.footer-section h3 { margin-bottom: 0.9rem; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); }
.footer-section p, .footer-section a { color: rgba(255,255,255,0.7); font-size: 0.875rem; line-height: 1.75; display: block; padding: 0.15rem 0; }
.footer-section a:hover { color: #fff; }

@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1.3fr 1fr 1fr; }
}
@media (max-width: 700px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
  .footer-bottom-links { justify-content: center; }
}

/* ========== SCROLL REVEAL ========== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  background: var(--bg-light);
  padding: 1rem 2rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ========== PERFORMANCE & OPTIMIZATION ========== */

/* Lazy loading image support */
img {
  max-width: 100%;
  height: auto;
}

/* Enhanced image styling */
img[src*="unsplash"] {
  transition: transform 0.3s ease, filter 0.3s ease;
}

img[src*="unsplash"]:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* Image container optimization */
.service-card img,
.news-card img,
.testimonial img {
  border-radius: 8px;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ========== ACCESSIBILITY IMPROVEMENTS ========== */

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* Skip to main content for screen readers */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--secondary);
  color: white;
  padding: 8px 16px;
  z-index: 100;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}

.skip-to-main:focus {
  top: 0;
}

/* Better contrast for text */
h1, h2, h3, h4, h5, h6 {
  color-scheme: light dark;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Form validation states */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown),
select:invalid:not(:placeholder-shown) {
  border-color: #dc3545 !important;
  background: rgba(220, 53, 69, 0.05);
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown),
select:valid:not(:placeholder-shown) {
  border-color: #28a745 !important;
  background: rgba(40, 167, 69, 0.05);
}

/* Error message styling */
.form-error {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: block;
}

/* Success message styling */
.form-success {
  color: #28a745;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: block;
}

/* ========== ENHANCED HOVER EFFECTS ========== */

/* Card lift on hover */
.service-card,
.news-card,
.resource-card,
.team-member {
  will-change: transform, box-shadow;
}

/* Enhanced button effects */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

/* Link hover underline animation */
a:not(.btn):not(.logo) {
  position: relative;
  text-decoration: none;
}

a:not(.btn):not(.logo):hover {
  text-decoration: underline;
}

/* ========== MOBILE OPTIMIZATION ========== */

/* Responsive images */
@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
  }

  .service-card,
  .news-card,
  .team-member {
    padding: 1.5rem;
  }

  .services-grid,
  .team-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  section {
    padding: 2rem 1rem;
    margin: 1rem 0;
  }

  .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }

  .donation-options {
    flex-direction: column;
  }

  .donation-box {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item h3 {
    font-size: 1.8rem;
  }

  nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
  }

  .container {
    padding: 0 1rem;
  }
}

/* ========== LOADING & SHIMMER EFFECT ========== */

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading {
  animation: shimmer 2s infinite;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
}

/* ========== PRINT STYLES ========== */

@media print {
  header,
  footer,
  .mobile-menu,
  .btn {
    display: none;
  }

  section {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  a {
    text-decoration: underline;
  }

  img {
    max-width: 100%;
    page-break-inside: avoid;
  }
}

/* ========== DARK MODE SUPPORT (Optional) ========== */

@media (prefers-color-scheme: dark) {
  :root {
    --bg-light: #1a1a1a;
    --bg-white: #2d2d2d;
    --text-dark: #f0f0f0;
    --text-light: #b0b0b0;
    --border: #444;
  }

  body {
    background: #0a0a0a;
  }
}

/* ========== REDUCED MOTION ========== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ========== MOBILE SAFETY LAYER (PHONE-ONLY) ========== */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .container,
  main,
  section {
    max-width: 100%;
  }

  /* Keep mobile visuals high contrast and avoid blended text on tiny screens */
  body {
    background: #f0f7ff !important;
    color: #1f2937 !important;
  }

  header,
  nav,
  header.mobile-open nav,
  .dropdown-menu {
    background: #ffffff !important;
  }

  nav a,
  .dropdown-menu a,
  .mobile-menu {
    color: #1f2937 !important;
  }

  .dropdown-menu {
    border: 1px solid #d4e6f7 !important;
  }

  .logo {
    background: none !important;
    -webkit-text-fill-color: #0052a3 !important;
    color: #0052a3 !important;
  }

  .logo img {
    display: none !important;
  }

  /* Make long text wrap instead of creating horizontal overflow */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  li,
  a,
  span,
  td,
  th,
  label {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  /* Reduce over-narrow reading columns created by inline max-width styles */
  p[style*="max-width"],
  div[style*="max-width"][style*="margin: 0 auto"],
  div[style*="max-width"][style*="margin:0 auto"] {
    max-width: 100% !important;
  }

  /* Remove glass/blur effects on phone to improve readability */
  [style*="backdrop-filter"],
  .hero-panel {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Force common inline two-column and rigid grids to one column on phones */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1.2fr 0.8fr"],
  [style*="grid-template-columns:1.2fr 0.8fr"],
  [style*="grid-template-columns: 0.82fr 1.18fr"],
  [style*="grid-template-columns:0.82fr 1.18fr"],
  [style*="grid-template-columns: 0.95fr 1.35fr"],
  [style*="grid-template-columns:0.95fr 1.35fr"],
  [style*="grid-template-columns: 1.15fr 0.85fr"],
  [style*="grid-template-columns:1.15fr 0.85fr"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: minmax("],
  [style*="grid-template-columns:minmax("],
  .queue-grid,
  .form-grid,
  .field-grid,
  .action-grid,
  .quick-grid {
    grid-template-columns: 1fr !important;
  }

  /* Neutralize hard min-width values that force sideways scrolling */
  input[style*="min-width"],
  select[style*="min-width"],
  textarea[style*="min-width"],
  button[style*="min-width"],
  [style*="min-width"],
  [data-role="shift-employee"],
  [data-role="occurrence-employee"],
  #invoiceClientFilter,
  .period-nav span,
  .fy-nav span,
  .ndis-cta-text {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  input,
  select,
  textarea,
  button,
  iframe,
  img,
  video {
    max-width: 100% !important;
  }

  .site-search-form {
    max-width: 100%;
    width: 100%;
  }

  .site-search-form input {
    min-width: 0;
    width: 100%;
  }

  /* Keep large tables usable on phones by allowing horizontal scroll */
  .table-wrap,
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 0 !important;
    max-width: 100%;
    width: 100% !important;
  }

  th,
  td {
    word-break: break-word;
  }
}

/* On phones, force light palette even if device is in dark mode */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
  :root {
    --bg-light: #f0f7ff;
    --bg-white: #ffffff;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border: #d4e6f7;
  }

  body {
    background: #f0f7ff !important;
    color: #1f2937 !important;
  }
}

@media (max-width: 480px) {
  [style*="padding: 2rem"],
  [style*="padding:2rem"] {
    padding: 1rem !important;
  }

  [style*="height: 400px"],
  [style*="height:400px"] {
    height: auto !important;
  }

  h1 {
    font-size: 1.4rem !important;
    line-height: 1.25 !important;
  }

  h2 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
  }
}
