:root {
  /* Primary Brand Colors - Matches youradviser.com.au Corporate Navy */
  --primary-600: #0a192f; /* Deep Navy Background / Dark Text Headers */
  --primary-500: #172a45; /* Medium Professional Navy */
  --primary-400: #30475e; /* Steel Slate Blue */
  --primary-300: #f0f4f8; /* Soft Clean Ice Blue Grid Backgrounds */
  --primary-100: #e2e8f0; /* Soft Border Line Grey */
  --primary-50: #f8fafc;  /* Ultra Light Page Bleed Base Accent */

  /* Secondary / Accent Colors - The signature Gold-Orange Accent from the live site */
  --secondary-600: #d97706; /* Darker Gold for interactive text links hover */
  --secondary-500: #f59e0b; /* Bright Trust Amber/Gold for primary buttons, highlights & borders */
  --secondary-400: #fbbf24; /* Soft Gold Highlight hover fill states */
  --secondary-300: #fde68a; /* Soft Gold Background accents */
  --secondary-100: #fef3c7; /* Muted Gold card tint alerts */
  --secondary-50: #fffbeb;  /* Cream/Warm Tint subtle backgrounds */

  /* Accent Colors - Crisp Alert Reds */
  --accent-600: #b91c1c;
  --accent-500: #ef4444;
  --accent-400: #f87171;
  --accent-300: #fca5a5;
  --accent-100: #fee2e2;
  --accent-50: #fef2f2;

  /* Neutral Typography Slate Colors */
  --gray-900: #0f172a; /* Near-Black for crisp readability */
  --gray-800: #1e293b; /* Off-Black Body Text */
  --gray-700: #334155; /* Slate Subheadings */
  --gray-600: #475569; /* Soft Slate Paragraph Text */
  --gray-500: #64748b; /* Core Outlined Boundaries */
  --gray-400: #94a3b8; /* Mid-Tone Placeholder Elements */
  --gray-300: #cbd5e1; /* Regular Light Borders */
  --gray-200: #e2e8f0; /* Thin Light Separators */
  --gray-100: #f1f5f9; /* Clean Component Card Backgrounds */
  --gray-50: #f8fafc;  /* Subtle Main Page Grid Offsets */

  /* Typography */
  --font-primary: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Monaco', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* Animations */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-backdrop: blur(10px);
}

/* ========================================
   DARK MODE COLORS (Corporate Navy & Gold)
   ======================================== */
[data-theme="dark"] {
  /* Invert backgrounds to dark navy / slate shades */
  --primary-50: #020617;   /* Deep darkest slate background */
  --primary-100: #0f172a;  /* Dark slate card layers */
  --primary-300: #1e293b;  /* Muted borders */
  --primary-400: #334155;  /* Lighter text borders */
  --primary-500: #fbbf24;  /* Accent colors turn bright gold */
  --primary-600: #f8fafc;  /* Main text color turns off-white for contrast */

  /* Secondary mappings in dark mode */
  --secondary-50: #0b1329;
  --secondary-100: #1c2541;

  /* Invert gray scale for sharp readability on dark backgrounds */
  --gray-900: #f8fafc; /* Headers turn white */
  --gray-800: #f1f5f9; /* Body text turns off-white */
  --gray-700: #e2e8f0; 
  --gray-600: #cbd5e1; /* Paragraphs turn clear light gray */
  --gray-500: #94a3b8;
  --gray-400: #64748b;
  --gray-300: #475569;
  --gray-200: #334155;
  --gray-100: #1e293b; /* Card backgrounds */
  --gray-50: #0f172a;  /* Container highlights */
  
  /* Glass card overrides for dark mode contrast */
  --glass-bg: rgba(15, 23, 42, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] li, 
[data-theme="dark"] li span {
  color: var(--gray-800) !important;
}

/* Lighten card body text in dark mode */
[data-theme="dark"] .glass-card p,
[data-theme="dark"] .feature-card p {
  color: var(--gray-600) !important; /* Or use #ffffff if you want maximum brightness */
}
[data-theme="dark"] .glass-card:hover,
[data-theme="dark"] .feature-card:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--secondary-500) !important;
  box-shadow: 0 10px 30px -10px rgba(245, 158, 11, 0.15) !important;
  transform: translateY(-5px);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--primary-50);
  min-height: 100vh;
  transition: background-color var(--transition-base), color var(--transition-base);
}

[data-theme="dark"] body {
  background-color: var(--primary-50);
  color: var(--gray-200);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: var(--space-4);
  transition: color var(--transition-base);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-4);
  color: var(--gray-600);
  transition: color var(--transition-base);
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-500);
}

/* ========================================
   MODERN COMPONENTS
   ======================================== */

/* Glass Card Component */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
  transition: var(--transition-base);
}

[data-theme="dark"] .glass-card {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-200);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
}

/* Modern Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: var(--transition-slow);
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  color: white !important;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-400));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white !important;
}

/* Primary actions keep dynamic dark mode setup */
.navbar .btn-primary {
 background: linear-gradient(135deg, #000000 0%, #f59e0b 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  box-shadow: var(--shadow-md) !important;
}

.navbar .btn-primary:hover {
  background: linear-gradient(135deg, #1a1a1a 0%, #fbbf24 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2) !important;
  color: #ffffff !important;
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-200);
}

.btn-outline {
  background: transparent;
  color: var(--primary-600);
  border: 2px solid var(--primary-600);
}

.btn-outline:hover {
  background: var(--primary-600);
  color: white;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* Modern Input System */
.input-group {
  margin-bottom: var(--space-6);
}

.input-label {
  display: block;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}

.input-field {
  width: 100%;
  padding: var(--space-4);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  transition: var(--transition-fast);
  background: white;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-100);
}

/* Modern Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-8);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-300);
  transition: var(--transition-base);
  position: relative;
}

.nav-links {
  display: flex;
  list-style: none;
  /* Reduced gap slightly for better responsiveness */
  gap: clamp(0.5rem, 1.5vw, 2rem); 
  align-items: center;
}

.nav-links a {
  color: var(--gray-700);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  /* Added these two lines to stop wrapping and shrink font */
  white-space: nowrap; 
  font-size: clamp(0.75rem, 1vw, 0.95rem); 
}

.nav-links a:hover {
  background: var(--primary-50);
  color: var(--primary-600);
}

/* Theme Toggle */
.theme-toggle {
  background: var(--gray-100);
  border: none;
  border-radius: var(--radius-full);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: var(--text-xl);
}

.theme-toggle:hover {
  background: var(--gray-200);
  transform: scale(1.1);
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-20) 0;
}

.grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  padding-top: var(--space-6);
  padding-bottom: var(--space-12);
  margin-top: 120px; /* <--- Increased from 80px to clear the bigger navbar */
  background: transparent;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, var(--primary-100) 0%, transparent 70%);
  opacity: 0.5;
}

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

.hero h1 {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background var(--transition-base);
}

/* Changes Hero Title (Claims Support Headline) to White-to-Gold in Dark Mode */
[data-theme="dark"] .hero h1 {
  background: linear-gradient(135deg, #ffffff, var(--secondary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: var(--text-xl);
  color: var(--gray-600);
  margin-bottom: var(--space-4);
}

/* ========================================
   FEATURE CARDS
   ======================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-16);
}

.feature-card {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base), background-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .feature-card {
  background: var(--gray-100); 
}

[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .feature-card h4 {
  color: var(--gray-900);      
}

[data-theme="dark"] .feature-card p {
  color: var(--gray-400);      
}

/* --- FIXED: Dark Mode Icon Adjustments --- */
[data-theme="dark"] .feature-card .feature-icon i {
  color: #ffffff !important; /* Turns the heart, briefcase, etc. solid white */
}

[data-theme="dark"] .feature-card .feature-icon {
  background-color: rgba(255, 255, 255, 0.12) !important; /* Makes the circle container visible against the dark card */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;  /* Ensures stable sizing */
  height: 48px; /* Ensures stable sizing */
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}
/* ----------------------------------------- */

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
}

[data-theme="dark"] .feature-card::before {
  background: linear-gradient(90deg, var(--primary-300), var(--secondary-500));
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

/* ========================================
   RESPONSIVE HAMBURGER NAVIGATION
   ======================================== */
.hamburger-menu {
  display: none !important;
}

@media (max-width: 1024px) {
  .hamburger-menu {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: var(--text-2xl);
    color: #ffffff; /* Visibility on dark nav */
    cursor: pointer;
    padding: var(--space-2);
    order: 3;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0f172a;
    padding: var(--space-6);
    border-bottom: 2px solid var(--primary-400);
    box-shadow: var(--shadow-lg);
    gap: var(--space-4);
    max-height: 80vh;   /* Limit height */
    overflow-y: auto;   /* Allow scroll if menu is long */
  }

  .nav-links.active {
    display: flex;
  }
  
  .nav-links a {
    width: 100%;
    text-align: center;
    padding: var(--space-3);
    color: #cbd5e1 !important;
  }
}

/* ========================================
   FOOTER GRID LAYOUT
   ======================================== */
.footer {
  background: var(--gray-50);
  padding: var(--space-16) 0 var(--space-8) 0;
  border-top: 1px solid var(--gray-200);
  transition: background-color var(--transition-base), border-color var(--transition-base);
}



.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: var(--space-3);
}

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding-top: var(--space-6);
  margin-top: var(--space-6);
}



@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}
/* ========================================
   MOBILE NAVBAR LAYOUT & BUTTON FIXES
   ======================================== */
@media (max-width: 1024px) {
  .navbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: var(--space-2) !important;
    gap: 4px !important;
  }

  /* 1. Shrink Logo Image */
.logo {
    flex: 0 0 auto !important;
    max-width: 120px !important; /* Increased from 90px to 120px */
  }
  
  .logo img {
    width: 100% !important;
    height: auto !important;
    display: block; /* Removes potential whitespace issues under images */
  }

  /* 2. Center the Button: Give it 'flex-grow: 1' to push it to the middle */
.navbar .btn-primary.btn-lg {
    flex: 0 1 auto !important; /* Changed from 1 to 0 1 to prevent it from getting too wide */
    padding: 0 12px !important;
    font-size: 0.75rem !important;
    height: 36px !important;
    margin: 0 6px !important; /* Tightened side margins to give logo more space */
    white-space: nowrap !important;
    justify-content: center !important;
  }

  /* 3. Theme Toggle & Hamburger: Grouped together on the right */
  .nav-utility-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important; /* Tight spacing between toggle and hamburger */
    margin-left: auto !important;
  }

  #themeToggle, .theme-toggle {
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
  }

  #themeText, .theme-toggle span {
    display: none !important;
  }

  .hamburger-menu {
    font-size: 1.25rem !important;
    margin-left: 0 !important;
  }
}

/* ========================================
   LOCKED DARK MODE FOR HEADER & FOOTER
   (Overrides system toggle)
   ======================================== */

/* Header Override */
.navbar {
  background: rgba(15, 23, 42, 0.95) !important;
  border-bottom: 1px solid var(--gray-300) !important;
  color: #f8fafc !important;
}

.navbar .logo {
  color: #ffffff !important;
}

.navbar .nav-links a {
  color: #cbd5e1 !important;
}

.navbar .nav-links a:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fbbf24 !important;
}

/* Footer Override */
.footer {
  background: #0f172a !important;
  border-top: 1px solid var(--gray-300) !important;
  color: #cbd5e1 !important;
}

.footer h4 {
  color: #ffffff !important;
}

.footer a {
  color: #94a3b8 !important;
}

.footer a:hover {
  color: #fbbf24 !important;
}

.footer-bottom {
  border-top: 1px solid #334155 !important;
}
/* ========================================
   LOCKED DARK MODE FOR FOOTER (ENFORCED)
   ======================================== */
.footer, 
.footer p, 
.footer h4, 
.footer a, 
.footer span, 
.footer li {
  color: #cbd5e1 !important; /* Muted Light/Grey text */
}

.footer h4 {
  color: #ffffff !important; /* Headers pop white */
}

.footer a:hover {
  color: #fbbf24 !important; /* Gold hover effect */
}

.footer {
  background: #0f172a !important; /* Dark Navy Background */
  border-top: 1px solid #334155 !important;
}

.footer-bottom {
  border-top: 1px solid #334155 !important;
}

/* Fix specific icon colors in the footer */
.footer .feature-icon i {
  color: #ffffff !important;
}
/* ========================================
   LOCKED EMAIL ICON & LINK (ENFORCED)
   ======================================== */
.locked-email-style i {
  color: var(--primary-500) !important; /* Gold/Primary color */
  font-size: 1.5rem !important;
}

.locked-email-style a {
  color: #cbd5e1 !important; /* Light text color */
  font-weight: 500 !important;
  text-decoration: underline !important;
}

/* Ensure hover state stays locked */
.locked-email-style a:hover {
  color: var(--primary-500) !important;
}

/* Universal Black-to-Gold Theme for Buttons */
.btn-primary-dark {
  background: linear-gradient(135deg, #000000 0%, #f59e0b 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: var(--shadow-md) !important;
}

.btn-primary-dark:hover {
  background: linear-gradient(135deg, #1a1a1a 0%, #fbbf24 100%) !important;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2) !important;
}

/* Force this look when inside a dark theme block */
[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #000000 0%, #f59e0b 100%) !important;
}
/* Fix Outline Button in Dark Mode */
[data-theme="dark"] .btn-outline {
  border-color: var(--secondary-500); /* Keep border Gold */
  color: #ffffff; /* Keep text white so it's readable */
}

[data-theme="dark"] .btn-outline:hover {
  background: var(--secondary-500); /* Fill with Gold on hover */
  color: #000000; /* Dark text for contrast against Gold */
  border-color: var(--secondary-500);
}