/* Design Tokens */
:root {
  /* Colors - Australian Outback Palette */
  --color-primary: #2D3748;
  --color-primary-dark: #1a202c;
  --color-ochre: #A85230;
  --color-ochre-light: #B77152;
  --color-sand: #D4A574;
  --color-sand-light: #E8C9A0;
  --color-eucalyptus: #7C8D7C;
  --color-eucalyptus-light: #98A898;
  --color-charcoal: #2D3748;
  --color-neutral-50: #f8fafc;
  --color-neutral-100: #f1f5f9;
  --color-neutral-200: #e2e8f0;
  --color-neutral-300: #cbd5e1;
  --color-neutral-700: #334155;
  --color-neutral-800: #2D3748;
  --color-neutral-900: #1a202c;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Borders */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  
  /* 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);
  
  /* Typography */
  --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

/* Base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--color-neutral-800);
  background-color: #ffffff;
}

/* Enhanced focus styles for accessibility */
.focus\:ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgb(59 130 246 / 0.5);
}

/* Focus styles for all interactive elements */
a:focus,
button:focus,
[tabindex]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgb(59 130 246 / 0.5);
  border-radius: 2px;
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-primary);
  color: white;
  padding: 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  z-index: 1000;
  font-weight: 500;
}

.skip-link:focus {
  top: 6px;
}

/* Custom button styles with depth */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 150ms ease;
  cursor: pointer;
  border: none;
  min-height: 44px; /* Touch target size */
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-ochre) 0%, #8B3A1F 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(168, 82, 48, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 82, 48, 0.4);
  background: linear-gradient(135deg, #B77152 0%, var(--color-ochre) 100%);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(168, 82, 48, 0.3);
}

.btn-secondary {
  background: white;
  color: var(--color-ochre);
  border: 2px solid var(--color-ochre);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--color-ochre);
  color: white;
  border-color: var(--color-ochre);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 82, 48, 0.25);
}

/* Card styles */
.card {
  background: white;
  border: 1px solid rgba(168, 82, 48, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg);
  transition: all 200ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(168, 82, 48, 0.2);
}

/* Navigation enhancements */
.nav-link {
  position: relative;
  transition: color 150ms ease;
}

.nav-link:hover {
  color: var(--color-ochre);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-ochre), var(--color-sand));
  transition: width 200ms ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active::after {
  width: 100%;
}

/* Background patterns */
.bg-pattern {
  position: relative;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(168, 82, 48, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(212, 165, 116, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(124, 141, 124, 0.05) 0%, transparent 70%);
}

/* Subtle circuit pattern overlay with ochre tones */
.bg-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(90deg, rgba(168, 82, 48, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(168, 82, 48, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  opacity: 0.7;
}

/* Mobile navigation */
.mobile-nav {
  transform: translateX(-100%);
  transition: transform 250ms ease;
  background-color: #ffffff;
}

.mobile-nav.open {
  transform: translateX(0);
}

/* Micro-animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 200ms ease forwards;
}

/* Print styles */
@media print {
  .btn, .nav-toggle, nav {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-neutral-700: #000000;
    --color-primary: #0000ee;
  }
  
  .btn-primary {
    background: var(--color-primary);
    border: 2px solid #000000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Custom Color Utilities - Australian Outback Palette */
/* Text Colors */
.text-ochre { color: var(--color-ochre) !important; }
.text-ochre-light { color: var(--color-ochre-light) !important; }
.text-sand { color: var(--color-sand) !important; }
.text-sand-light { color: var(--color-sand-light) !important; }
.text-eucalyptus { color: var(--color-eucalyptus) !important; }
.text-eucalyptus-light { color: var(--color-eucalyptus-light) !important; }
.text-primary { color: var(--color-primary) !important; }
.text-primary-dark { color: var(--color-primary-dark) !important; }
.text-charcoal { color: var(--color-primary) !important; }

/* Background Colors */
.bg-ochre { background-color: var(--color-ochre) !important; }
.bg-ochre\/10 { background-color: rgba(168, 82, 48, 0.1) !important; }
.bg-ochre\/20 { background-color: rgba(168, 82, 48, 0.2) !important; }
.bg-sand { background-color: var(--color-sand) !important; }
.bg-sand\/10 { background-color: rgba(212, 165, 116, 0.1) !important; }
.bg-sand\/20 { background-color: rgba(212, 165, 116, 0.2) !important; }
.bg-eucalyptus { background-color: var(--color-eucalyptus) !important; }
.bg-eucalyptus\/10 { background-color: rgba(124, 141, 124, 0.1) !important; }
.bg-eucalyptus\/20 { background-color: rgba(124, 141, 124, 0.2) !important; }
.bg-primary { background-color: var(--color-primary) !important; }
.bg-primary\/5 { background-color: rgba(45, 55, 72, 0.05) !important; }
.bg-primary\/10 { background-color: rgba(45, 55, 72, 0.1) !important; }
.bg-soft-grey { background-color: #f8f9fb !important; }

/* Border Colors */
.border-ochre { border-color: var(--color-ochre) !important; }
.border-sand { border-color: var(--color-sand) !important; }
.border-eucalyptus { border-color: var(--color-eucalyptus) !important; }
.border-eucalyptus\/20 { border-color: rgba(124, 141, 124, 0.2) !important; }
.border-primary { border-color: var(--color-primary) !important; }

/* Hover States */
.hover\:text-primary:hover { color: var(--color-primary) !important; }
.hover\:text-primary-dark:hover { color: var(--color-primary-dark) !important; }
.hover\:bg-ochre\/20:hover { background-color: rgba(168, 82, 48, 0.2) !important; }
.hover\:bg-sand\/20:hover { background-color: rgba(212, 165, 116, 0.2) !important; }

/* Group Hover States */
.group:hover .group-hover\:bg-ochre\/20 { background-color: rgba(168, 82, 48, 0.2) !important; }
.group:hover .group-hover\:bg-sand\/20 { background-color: rgba(212, 165, 116, 0.2) !important; }
.group:hover .group-hover\:text-primary { color: var(--color-primary) !important; }

/* ============================================================
   ELEMENT-SPECIFIC OVERRIDES - Australian Outback Palette
   Direct element selectors to override Tailwind CDN defaults
   ============================================================ */

/* Typography - Ochre accents for emphasis */
body h1,
body h2,
body h3 {
  color: var(--color-charcoal) !important;
}

/* Ochre accents on specific text elements */
body .text-ochre,
body span.text-ochre,
body strong.text-ochre {
  color: var(--color-ochre) !important;
}

/* Body text - warmer gray tone */
body p,
body li,
body .prose {
  color: #4a5568 !important;
}

/* Muted text - lighter warm gray */
body .text-gray-600,
body .text-gray-500 {
  color: #718096 !important;
}

/* Dark text elements */
body .text-gray-700,
body .text-gray-800 {
  color: var(--color-charcoal) !important;
}

/* Navigation links - ochre on hover */
nav a:hover,
nav .nav-link:hover {
  color: var(--color-ochre) !important;
}

/* Badges and labels with ochre */
body .bg-ochre\/10 {
  background-color: rgba(168, 82, 48, 0.1) !important;
  color: var(--color-ochre) !important;
}

/* Sand-toned backgrounds */
body .bg-sand\/5,
section.bg-sand\/5 {
  background-color: rgba(212, 165, 116, 0.05) !important;
}

body .from-sand\/5 {
  --tw-gradient-from: rgba(212, 165, 116, 0.05) !important;
}

body .to-eucalyptus\/5 {
  --tw-gradient-to: rgba(124, 141, 124, 0.05) !important;
}

/* Colored boxes and callouts */
body .bg-red-50 {
  background-color: rgba(168, 82, 48, 0.08) !important;
}

body .border-red-400,
body .border-red-200 {
  border-color: var(--color-ochre) !important;
}

body .text-red-700,
body .text-red-800 {
  color: var(--color-ochre) !important;
}

body .bg-green-50 {
  background-color: rgba(124, 141, 124, 0.08) !important;
}

body .border-green-200 {
  border-color: var(--color-eucalyptus) !important;
}

body .text-green-700,
body .text-green-800 {
  color: var(--color-eucalyptus) !important;
}

body .bg-green-100 {
  background-color: rgba(124, 141, 124, 0.15) !important;
}

body .bg-blue-50 {
  background-color: rgba(212, 165, 116, 0.08) !important;
}

body .bg-blue-100 {
  background-color: rgba(212, 165, 116, 0.15) !important;
}

body .text-blue-700,
body .text-blue-800 {
  color: var(--color-sand) !important;
}

body .border-blue-200 {
  border-color: var(--color-sand) !important;
}

body .bg-yellow-50 {
  background-color: rgba(212, 165, 116, 0.12) !important;
}

/* Accent borders */
body .border-accent,
body .border-l-4.border-accent {
  border-color: var(--color-ochre) !important;
  border-width: 4px !important;
}

body .border-l-4.border-primary {
  border-color: var(--color-charcoal) !important;
  border-width: 4px !important;
}

/* Primary/accent gradient backgrounds */
body .from-primary\/5 {
  --tw-gradient-from: rgba(168, 82, 48, 0.1) !important;
}

body .to-accent\/5 {
  --tw-gradient-to: rgba(212, 165, 116, 0.1) !important;
}

/* Footer stays charcoal */
/* Footer stays charcoal with better text contrast */
footer.bg-charcoal {
  background-color: var(--color-charcoal) !important;
}

footer h3,
footer p,
footer .text-gray-300,
footer .text-gray-400 {
  color: #E5E5E5 !important;
}

footer .border-gray-700 {
  border-color: #4A5568 !important;
}/* ============================================================
   DRAMATIC VISUAL ENHANCEMENTS - Outback Tech Aesthetic
   ============================================================ */

/* Hero sections with ochre gradients */
section.py-16:first-of-type {
  background: linear-gradient(135deg, rgba(168, 82, 48, 0.05) 0%, rgba(212, 165, 116, 0.08) 50%, rgba(124, 141, 124, 0.05) 100%);
}

/* Nav bar with subtle ochre accent */
nav {
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--color-ochre), var(--color-sand), var(--color-eucalyptus)) 1;
}

/* Cards get ochre hover effects */
.card,
article > div > section {
  transition: all 300ms ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(168, 82, 48, 0.15);
}

/* Headings get subtle ochre shimmer on hover */
h1, h2, h3 {
  transition: all 200ms ease;
  position: relative;
}

h1::after, h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-ochre), var(--color-sand));
  opacity: 0;
  transition: opacity 200ms ease;
}

h1:hover::after, h2:hover::after {
  opacity: 1;
}

/* Blockquotes get ochre accents - but subtle in grids */
blockquote {
  border-left-color: var(--color-ochre) !important;
  border-left-width: 5px !important;
  background: linear-gradient(90deg, rgba(168, 82, 48, 0.05), transparent) !important;
  padding-left: 1.5rem !important;
}

/* Remove heavy styling from blockquotes in grids/grouped layouts */
.grid blockquote,
[class*="grid"] blockquote {
  border-left: none !important;
  background: none !important;
  padding-left: 0 !important;
  font-style: italic;
}

/* Strong tags get ochre color */
strong {
  color: var(--color-ochre) !important;
  font-weight: 600;
}

/* Links get ochre treatment */
a:not(.btn):not(.nav-link) {
  color: var(--color-ochre);
  text-decoration: underline;
  text-decoration-color: rgba(168, 82, 48, 0.3);
  text-decoration-thickness: 2px;
  transition: all 150ms ease;
}

a:not(.btn):not(.nav-link):hover {
  color: #8B3A1F;
  text-decoration-color: var(--color-ochre);
}

/* Badge/pill elements */
span[class*="rounded-full"],
.inline-block[class*="rounded-full"] {
  background: linear-gradient(135deg, var(--color-ochre), var(--color-sand)) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(168, 82, 48, 0.3);
  font-weight: 600;
}

/* Grid items get ochre borders on hover - but not in content grids */
.grid > .card {
  transition: all 250ms ease;
  position: relative;
}

.grid > .card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: inherit;
  transition: border-color 250ms ease;
  pointer-events: none;
}

.grid > .card:hover::before {
  border-color: var(--color-ochre);
}

/* Disable ::before on content grids that have colored boxes or blockquotes */
.grid > div[class*="bg-red"],
.grid > div[class*="bg-green"],
.grid > div[class*="bg-blue"],
.grid > div[class*="bg-yellow"],
.grid > div[class*="bg-ochre"],
.grid > div[class*="bg-sand"],
.grid > blockquote {
  position: static;
}

.grid > div[class*="bg-red"]::before,
.grid > div[class*="bg-green"]::before,
.grid > div[class*="bg-blue"]::before,
.grid > div[class*="bg-yellow"]::before,
.grid > div[class*="bg-ochre"]::before,
.grid > div[class*="bg-sand"]::before {
  display: none;
}/* Footer stays charcoal */
footer.bg-charcoal {
  background-color: var(--color-charcoal) !important;
}
