/* ==========================================================================
   MyWebDesigns.com.au - Premium High-Converting Stylesheet
   Suraj's Signature Design System & High-Trust Conversion Engine
   ========================================================================== */

:root {
  --brand-blue: #0066FF;
  --brand-cyan: #00D2FF;
  --brand-purple: #7928CA;
  --brand-dark: #0B0F19;
  --brand-slate: #0F172A;
  --brand-green: #10B981;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0066ff;
}

/* Glassmorphism Navigation */
.glass-nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
}
.glass-nav-dark {
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Nav Dropdown */
.nav-dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  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;
  pointer-events: none;
}
.nav-dropdown-trigger:hover .nav-dropdown-menu,
.nav-dropdown-trigger:focus-within .nav-dropdown-menu,
.nav-dropdown-trigger.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-chevron {
  transition: transform 0.25s ease;
}
.nav-dropdown-trigger:hover .nav-chevron,
.nav-dropdown-trigger.open .nav-chevron {
  transform: rotate(180deg);
}

/* Preloader (Clean White, crisp brand logo, live 0% to 100% counter) */
#site-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
}
#site-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#site-preloader img {
  max-width: min(85vw, 420px);
  object-fit: contain;
}
.preloader-progress-bar {
  width: 280px;
  max-width: 80vw;
  height: 5px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin-top: 22px;
}
.preloader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0066FF, #00D2FF, #7928CA);
  border-radius: 999px;
  transition: width 0.08s ease-out;
}

/* Before / After Slider */
.ba-slider {
  position: relative;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}
.ba-slider img {
  pointer-events: none;
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}
.ba-before-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}
.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #00D2FF;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.8);
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
  will-change: left;
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #0066FF;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.5);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  pointer-events: none;
  will-change: left;
}

/* Reviews Track (Snap Scroll without scrollbar) */
.reviews-track {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.reviews-track::-webkit-scrollbar {
  display: none;
}

/* Floating Sticky Mobile Bottom Bar */
.mobile-sticky-bar {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}

/* FAQ Accordion Transitions */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
  opacity: 0;
}
.faq-item.active .faq-answer {
  max-height: 800px;
  transition: max-height 0.45s cubic-bezier(1, 0, 1, 0), opacity 0.35s ease;
  opacity: 1;
}
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

/* Subtle Shimmer & Pulse Animations */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
.shimmer-badge {
  position: relative;
  overflow: hidden;
}
.shimmer-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: shimmer 3s infinite;
}

/* High Contrast Mode for NDIS Accessibility (WCAG 2.1 AA) */
body.high-contrast {
  background-color: #000000 !important;
  color: #ffff00 !important;
}
body.high-contrast .glass-nav,
body.high-contrast header,
body.high-contrast nav,
body.high-contrast section,
body.high-contrast div,
body.high-contrast footer {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #ffff00 !important;
}
body.high-contrast a,
body.high-contrast button {
  background-color: #ffff00 !important;
  color: #000000 !important;
  font-weight: 900 !important;
  border: 2px solid #ffffff !important;
}
body.high-contrast p,
body.high-contrast span,
body.high-contrast li {
  color: #ffffff !important;
}
body.large-text {
  font-size: 120% !important;
}
