/**
 * WMR Holdings - Dashboard Styles
 * Version: 1.0.0
 * NDIS-compliant color scheme
 */

:root {
  /* Primary - NDIS Purple */
  --primary: #5B21B6;
  --primary-light: #7C3AED;
  --primary-dark: #4C1D95;

  /* Secondary - Trust Blue */
  --secondary: #2563EB;
  --secondary-light: #3B82F6;

  /* Accent - NDIS Green */
  --accent: #10B981;
  --accent-light: #34D399;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  --gradient-hero: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4C1D95 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 40px rgba(124,58,237,0.3);

  /* Radius */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  z-index: 9999;
}
.skip-link:focus { top: 1rem; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gray-900);
}

.logo__icon {
  width: 40px; height: 40px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}
.nav__link:hover, .nav__link--active { color: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn--primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn--secondary:hover { background: var(--primary); color: var(--white); }
.btn--white { background: var(--white); color: var(--primary); }
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }

.hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}
.hero::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'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%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");
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero__title span {
  background: linear-gradient(135deg, var(--accent-light), var(--secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero__buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.stats-bar {
  background: var(--white);
  padding: 3rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stats-bar__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}
.stats-bar__label { color: var(--gray-500); font-size: 0.95rem; margin-top: 0.5rem; }

.section { padding: 5rem 0; }
.section--gray { background: var(--gray-50); }
.section__header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section__label {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.section__title { font-size: 2.25rem; font-weight: 800; margin-bottom: 1rem; }
.section__desc { color: var(--gray-500); font-size: 1.1rem; }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.brand-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.brand-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.brand-card__image {
  height: 200px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.brand-card__logo { font-size: 3rem; color: var(--white); }
.brand-card__badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.brand-card__content { padding: 2rem; }
.brand-card__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.brand-card__desc { color: var(--gray-500); margin-bottom: 1.5rem; line-height: 1.7; }
.brand-card__services { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.brand-card__service {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
}

.video-section {
  background: var(--gray-900);
  padding: 5rem 0;
  overflow: hidden;
}
.video-section__title { color: var(--white); text-align: center; font-size: 2rem; margin-bottom: 3rem; }

.video-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.video-slider::-webkit-scrollbar { display: none; }

.video-card {
  flex: 0 0 350px;
  scroll-snap-align: start;
  background: var(--gray-800);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.video-card:hover { transform: scale(1.02); }

.video-card__thumbnail {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card__play {
  width: 60px; height: 60px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
}
.video-card__duration {
  position: absolute;
  bottom: 0.75rem; right: 0.75rem;
  background: rgba(0,0,0,0.7);
  color: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}
.video-card__content { padding: 1.5rem; }
.video-card__title { color: var(--white); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.video-card__desc { color: var(--gray-400); font-size: 0.9rem; }

.ai-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 5rem 0;
}
.ai-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.ai-section__content { color: var(--white); }
.ai-section__title { font-size: 2.5rem; font-weight: 800; margin-bottom: 1.5rem; }
.ai-section__desc { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 2rem; line-height: 1.8; }
.ai-section__features { list-style: none; margin-bottom: 2rem; }
.ai-section__feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.9);
}
.ai-section__icon {
  width: 24px; height: 24px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.ai-section__demo {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-glow);
}

.ai-widget {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 1000;
}
.ai-widget__trigger {
  width: 64px; height: 64px;
  background: var(--gradient-primary);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  color: var(--white);
  font-size: 1.75rem;
}
.ai-widget__trigger:hover { transform: scale(1.1); }
.ai-widget__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--primary-light);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0; }
}

.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 4rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer__tagline { color: var(--gray-400); margin-bottom: 1.5rem; }
.footer__heading {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  color: var(--gray-300);
}
.footer__link {
  display: block;
  color: var(--gray-400);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}
.footer__link:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .ai-section__grid { grid-template-columns: 1fr; text-align: center; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 2rem; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease forwards; }
