/* ==========================================================================
   NDISWEBSITE.DESIGN - Core Stylesheet
   Designed for High-Trust Australian NDIS Web Design & Local SEO
   Compliant with WCAG 2.2 AA Standards
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Lexend:wght@300;400;500;600;700&display=swap');

:root {
  --primary-purple: #6B21A8;
  --primary-purple-dark: #4C1D95;
  --primary-purple-light: #9333EA;
  --accent-green: #16A34A;
  --accent-green-bright: #22C55E;
  --accent-green-dark: #15803D;
  --slate-dark: #0B0F19;
  --slate-navy: #0F172A;
  --slate-card: #1E293B;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-dyslexic: 'Lexend', sans-serif;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  color: #1E293B;
  background-color: #FAFAFA;
  overflow-x: hidden;
}

/* Heading Font */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

/* Glassmorphic Navbar */
.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease-in-out;
}

.glass-nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
}

/* Nav Dropdown Animations & Bridge */
.nav-dropdown {
  transform: translateY(8px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
}

.group:hover .nav-dropdown {
  transform: translateY(0);
}

/* Nav Item active underline/pill hover */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #6B21A8;
  border-radius: 9999px;
  transition: all 0.25s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}


/* Glass Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 40px -15px rgba(107, 33, 168, 0.05);
}

.dark-glass-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Text */
.gradient-purple-green {
  background: linear-gradient(135deg, #6B21A8 0%, #16A34A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-purple-text {
  background: linear-gradient(135deg, #581C87 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Background Gradients & Glows */
.bg-radial-glow {
  background-image: radial-gradient(circle at 50% 0%, rgba(107, 33, 168, 0.08) 0%, transparent 70%);
}

.bg-hero-pattern {
  background-color: #0B0F19;
  background-image: 
    radial-gradient(at 10% 20%, rgba(107, 33, 168, 0.3) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(22, 163, 74, 0.2) 0px, transparent 50%);
}

/* PRELOADER STYLES */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

#preloader.loaded {
  opacity: 0;
  transform: scale(1.02);
  visibility: hidden;
  pointer-events: none;
}

.preloader-glow {
  animation: preloaderPulse 2.5s infinite ease-in-out;
}

@keyframes preloaderPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.06); }
}

/* ACCESSIBILITY LIVE TOOL CONTROLS */
/* High Contrast Mode */
body.high-contrast-mode {
  background-color: #000000 !important;
  color: #FFFF00 !important;
}

body.high-contrast-mode .bg-white,
body.high-contrast-mode .bg-slate-50,
body.high-contrast-mode .bg-gray-50,
body.high-contrast-mode .glass-card,
body.high-contrast-mode .glass-nav {
  background-color: #121212 !important;
  color: #FFFFFF !important;
  border-color: #FFFF00 !important;
}

body.high-contrast-mode h1,
body.high-contrast-mode h2,
body.high-contrast-mode h3,
body.high-contrast-mode h4,
body.high-contrast-mode h5,
body.high-contrast-mode h6 {
  color: #FFFF00 !important;
  -webkit-text-fill-color: #FFFF00 !important;
}

body.high-contrast-mode p,
body.high-contrast-mode span,
body.high-contrast-mode li {
  color: #FFFFFF !important;
}

body.high-contrast-mode a {
  color: #00FFFF !important;
  text-decoration: underline !important;
}

body.high-contrast-mode button {
  border: 2px solid #FFFF00 !important;
}

/* Dyslexia Friendly Mode */
body.dyslexia-font-mode,
body.dyslexia-font-mode * {
  font-family: var(--font-dyslexic) !important;
  letter-spacing: 0.05em !important;
  line-height: 1.8 !important;
}

/* Font Size Scales */
body.font-size-large {
  font-size: 1.15rem;
}

body.font-size-xlarge {
  font-size: 1.3rem;
}

/* Focus indicator for WCAG 2.2 AA Compliance */
:focus-visible {
  outline: 3px solid #7C3AED !important;
  outline-offset: 3px !important;
}

/* BEFORE & AFTER SLIDER */
.ba-slider {
  touch-action: pan-y;
  user-select: none;
}

.ba-slider img {
  pointer-events: none;
  object-fit: cover;
}

/* Snapping Reviews Carousel */
.reviews-track {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.reviews-track::-webkit-scrollbar {
  display: none;
}

/* Animated Badges & Pulses */
@keyframes softPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}

.pulse-slow {
  animation: softPulse 3s infinite ease-in-out;
}

/* Ticker Marquee */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* Custom Checkbox styles */
.custom-checkbox input:checked + label .check-icon {
  opacity: 1;
  transform: scale(1);
}

/* Tooltip */
.tooltip-box {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s, visibility 0.2s;
}

.has-tooltip:hover .tooltip-box {
  visibility: visible;
  opacity: 1;
}

/* Print styles for NDIS compliance checklists */
@media print {
  header, nav, #preloader, .ba-slider, footer {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
}
