/*!
 * Inițiativa Verde App CSS v1.0.0
 * Modern Eco Design System with Bootstrap 5 Integration
 * Copyright 2025 Inițiativa Verde Platform
 */

/* ==========================================================================
   DESIGN TOKENS & CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
  /* Paletă Extinsă pentru Contrast Vizual Mai Bun */
  --primary: #2fbf71;      /* Verde principal - butoane/acțiuni */
  --primary-dark: #1a8050;  /* Verde închis - hover states */
  --primary-light: #4fd085; /* Verde deschis - accente */
  --secondary: #0a0a0a;    /* Negru - text principal */
  --accent: #f8f9fa;       /* Gri deschis - backgrounds neutri */
  
  /* Nuante pentru adâncime vizuală */
  --gray-50: #f8f9fa;
  --gray-100: #e9ecef;
  --gray-200: #dee2e6;
  --gray-300: #ced4da;
  --gray-400: #adb5bd;
  --gray-500: #6c757d;
  --gray-600: #495057;
  --gray-700: #343a40;
  --gray-800: #212529;
  --gray-900: #000000;
  
  /* Alias-uri pentru compatibilitate */
  --brand-700: var(--primary-dark);
  --brand-600: var(--primary);
  --brand-500: var(--primary);
  
  /* Backgrounds & Surfaces - FORCED WHITE FOR LIGHT THEME ONLY */
  --bg: #ffffff;           /* Force white background */
  --surface: #ffffff;      /* Card/surface background */
  --surface-elevated: #ffffff; /* Elevated surfaces also white */
  
  /* Text Colors - Contrast îmbunătățit */
  --ink: #000000;              /* Negru pur pentru text principal - contrast maxim */
  --ink-inverse: #ffffff;
  --ink-secondary: #2d3748;    /* Gri închis pentru text secundar - contrast mai bun */
  --ink-tertiary: #4a5568;     /* Gri mediu pentru text terțiar - mai mult contrast */
  
  /* Toate feedback-urile folosesc aceleași 3 culori */
  --ok: var(--primary);    /* Success = verde */
  --warning: var(--secondary); /* Warning = negru */
  --danger: var(--secondary);  /* Error = negru */
  --info: var(--primary);      /* Info = verde */
  
  /* Typography Scale - Font optimizat pentru limba română */
  --font-primary: 'Source Sans Pro', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 1.875rem;    /* 30px */
  --font-size-4xl: 2.25rem;     /* 36px */
  --font-size-5xl: 3rem;        /* 48px */
  
  /* Fluid Typography */
  --font-size-fluid-sm: clamp(0.875rem, 1.5vw, 1rem);
  --font-size-fluid-md: clamp(1rem, 2vw, 1.25rem);
  --font-size-fluid-lg: clamp(1.5rem, 4vw, 2.5rem);
  --font-size-fluid-xl: clamp(2.5rem, 5vw, 4rem);
  
  /* Spacing System - 8px base */
  --space-0: 0;
  --space-1: 0.25rem;      /* 4px */
  --space-2: 0.5rem;       /* 8px */
  --space-3: 0.75rem;      /* 12px */
  --space-4: 1rem;         /* 16px */
  --space-5: 1.25rem;      /* 20px */
  --space-6: 1.5rem;       /* 24px */
  --space-8: 2rem;         /* 32px */
  --space-10: 2.5rem;      /* 40px */
  --space-12: 3rem;        /* 48px */
  --space-16: 4rem;        /* 64px */
  --space-20: 5rem;        /* 80px */
  --space-24: 6rem;        /* 96px */
  
  /* Shadows - Enhanced for better visual contrast */
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px 0 rgb(0 0 0 / 0.06);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.15), 0 2px 4px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.2), 0 4px 6px -2px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.25), 0 10px 10px -5px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.35);
  --shadow-card: 0 2px 8px rgb(0 0 0 / 0.1), 0 1px 4px rgb(0 0 0 / 0.08);
  --shadow-card-hover: 0 8px 25px rgb(0 0 0 / 0.15), 0 4px 10px rgb(0 0 0 / 0.1);
  
  /* Border Radius */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-3xl: 2rem;      /* 32px */
  --radius-full: 9999px;
  
  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-offcanvas: 1045;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
  
  /* Bootstrap Integration - Paleta Simplificată (3 culori) */
  --bs-primary: var(--primary);
  --bs-primary-rgb: 47, 191, 113;
  --bs-success: var(--primary);
  --bs-success-rgb: 47, 191, 113;
  --bs-info: var(--primary);
  --bs-info-rgb: 47, 191, 113;
  --bs-warning: var(--secondary);
  --bs-warning-rgb: 10, 10, 10;
  --bs-danger: var(--secondary);
  --bs-danger-rgb: 10, 10, 10;
  --bs-secondary: var(--accent);
  --bs-secondary-rgb: 248, 249, 250;
  --bs-light: var(--accent);
  --bs-light-rgb: 248, 249, 250;
  --bs-dark: var(--secondary);
  --bs-dark-rgb: 10, 10, 10;
  --bs-font-sans-serif: var(--font-primary);
  --bs-body-font-family: var(--font-primary);
  --bs-body-font-size: var(--font-size-base);
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.6;
  --bs-body-color: var(--ink);
  --bs-body-bg: #ffffff;  /* Force white body background */
  --bs-border-radius: var(--radius-md);
  --bs-border-radius-sm: var(--radius-sm);
  --bs-border-radius-lg: var(--radius-lg);
  --bs-border-radius-xl: var(--radius-xl);
  --bs-border-radius-2xl: var(--radius-2xl);
  --bs-box-shadow: var(--shadow-md);
  --bs-box-shadow-sm: var(--shadow-sm);
  --bs-box-shadow-lg: var(--shadow-lg);
  --bs-link-color: var(--primary);
  --bs-link-hover-color: var(--secondary);
}

/* DARK THEME DISABLED - LIGHT THEME ONLY */
/* Dark theme styles removed - platform uses light theme exclusively */

/* ==========================================================================
   BASE STYLES & RESETS
   ========================================================================== */

/* Enhanced Font Rendering */
body {
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
  font-variant-ligatures: common-ligatures;
}

/* Focus Styles - Enhanced Accessibility */
*:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Remove default focus for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Skip Link Enhancement */
.skip-link {
  position: absolute;
  top: -40px;
  left: var(--space-2);
  background: var(--brand-500);
  color: white;
  padding: var(--space-2) var(--space-4);
  text-decoration: none;
  z-index: var(--z-toast);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 500;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.skip-link:focus {
  top: 0;
  transform: translateY(0);
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Spacing Utilities */
.space-y-1 > * + * { margin-top: var(--space-1) !important; }
.space-y-2 > * + * { margin-top: var(--space-2) !important; }
.space-y-3 > * + * { margin-top: var(--space-3) !important; }
.space-y-4 > * + * { margin-top: var(--space-4) !important; }
.space-y-6 > * + * { margin-top: var(--space-6) !important; }
.space-y-8 > * + * { margin-top: var(--space-8) !important; }

/* Text Utilities */
.text-fluid-sm { font-size: var(--font-size-fluid-sm); }
.text-fluid-md { font-size: var(--font-size-fluid-md); }
.text-fluid-lg { font-size: var(--font-size-fluid-lg); }
.text-fluid-xl { font-size: var(--font-size-fluid-xl); }

.text-brand { color: var(--brand-500) !important; }
.text-brand-600 { color: var(--brand-600) !important; }
.text-brand-700 { color: var(--brand-700) !important; }

/* Background brand colors */
.bg-brand { background-color: var(--brand-500) !important; }
.bg-brand-600 { background-color: var(--brand-600) !important; }
.bg-brand-700 { background-color: var(--brand-700) !important; }
.text-ink { color: var(--ink) !important; }
.text-ink-secondary { color: var(--ink-secondary) !important; }
.text-ink-tertiary { color: var(--ink-tertiary) !important; }

/* Background Utilities */
.bg-surface { background-color: var(--surface) !important; }
.bg-surface-elevated { background-color: var(--surface-elevated) !important; }
.bg-gradient-eco {
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-600) 100%) !important;
}

/* Shadow Utilities */
.shadow-eco-sm { box-shadow: var(--shadow-sm); }
.shadow-eco-md { box-shadow: var(--shadow-md); }
.shadow-eco-lg { box-shadow: var(--shadow-lg); }
.shadow-eco-xl { box-shadow: var(--shadow-xl); }

/* Border Radius Utilities */
.rounded-eco-sm { border-radius: var(--radius-sm) !important; }
.rounded-eco-md { border-radius: var(--radius-md) !important; }
.rounded-eco-lg { border-radius: var(--radius-lg) !important; }
.rounded-eco-xl { border-radius: var(--radius-xl) !important; }
.rounded-eco-2xl { border-radius: var(--radius-2xl) !important; }

/* ==========================================================================
   COMPONENT ENHANCEMENTS
   ========================================================================== */

/* FORCE WHITE BACKGROUNDS - LIGHT THEME ONLY */
body {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/* Bootstrap Dropdown - Force White Background */
.dropdown-menu {
  background-color: #ffffff !important;
  border: 1px solid #E5E7EB !important;
}

.dropdown-item {
  background-color: #ffffff !important;
  color: #111827 !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #F3F4F6 !important;
  color: #10B981 !important;
}

/* Enhanced Buttons */
.btn {
  font-weight: 500;
  font-family: var(--font-primary);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-width: 1px;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--brand-500);
  border-color: var(--brand-500);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  box-shadow: var(--shadow-lg);
}

.btn-primary:focus {
  background: var(--brand-600);
  border-color: var(--brand-600);
  box-shadow: 0 0 0 0.2rem rgba(47, 191, 113, 0.25);
}

.btn-outline-primary {
  border-color: var(--brand-500);
  color: var(--brand-600);
}

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

/* Enhanced Cards */
.card {
  background-color: var(--surface);
  border: 1px solid var(--bs-gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Enhanced Forms */
.form-control {
  font-family: var(--font-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--bs-gray-300);
  transition: all 0.2s ease;
  background-color: var(--surface);
}

.form-control:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 0.2rem rgba(47, 191, 113, 0.25);
  background-color: var(--surface);
}

.form-control:focus-visible {
  outline: none;
}

/* Enhanced Navbar */
.navbar {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
  background-color: rgba(26, 26, 26, 0.9) !important;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Dark theme navbar links */
[data-theme="dark"] .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="dark"] .navbar-nav .nav-link:hover {
  color: #ffffff !important;
}

[data-theme="dark"] .navbar-brand {
  color: #ffffff !important;
}

/* Dark theme footer */
[data-theme="dark"] footer,
[data-theme="dark"] .footer {
  background-color: rgba(26, 26, 26, 0.95) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="dark"] footer h6,
[data-theme="dark"] .footer h6 {
  color: #ffffff !important;
}

[data-theme="dark"] footer a,
[data-theme="dark"] .footer a {
  color: rgba(255, 255, 255, 0.8) !important;
}

[data-theme="dark"] footer a:hover,
[data-theme="dark"] .footer a:hover {
  color: #ffffff !important;
}

/* Dark theme footer paragraph text */
[data-theme="dark"] footer p,
[data-theme="dark"] .footer p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-brand {
  font-weight: 700;
  transition: transform 0.2s ease;
}

.navbar-brand:hover {
  transform: scale(1.02);
}

/* Enhanced Dropdowns */
.dropdown-menu {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2);
  background-color: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dropdown-item {
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-4);
  transition: all 0.2s ease;
  font-weight: 500;
}

.dropdown-item:hover {
  background-color: rgba(47, 191, 113, 0.1);
  color: var(--brand-600);
  transform: translateX(4px);
}

/* Enhanced Offcanvas */
.offcanvas {
  background-color: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.offcanvas-header {
  border-bottom: 1px solid var(--bs-gray-200);
}

/* Enhanced Toasts */
.toast {
  border-radius: var(--radius-xl);
  border: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-xl);
}

/* ==========================================================================
   ANIMATIONS & TRANSITIONS
   ========================================================================== */

/* Fade In Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation Classes */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-down {
  animation: fadeInDown 0.6s ease-out forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.4s ease-out forwards;
}

/* Delay Classes */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ==========================================================================
   CONTRAST UTILITY CLASSES - Înlocuitori pentru text-muted
   ========================================================================== */

.text-contrast-high {
  color: var(--ink) !important;
  font-weight: 500;
}

.text-contrast-medium {
  color: var(--ink-secondary) !important;
  font-weight: 450;
}

.text-contrast-low {
  color: var(--ink-tertiary) !important;
  font-weight: 400;
}

/* Override Bootstrap's text-muted pentru contrast mai bun */
.text-muted {
  color: var(--ink-secondary) !important;
  font-weight: 450;
}

/* Gradient backgrounds pentru consistency - Design unitar cu textură */
.bg-gradient-primary {
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(47, 191, 113, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
}

.bg-gradient-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%),
    linear-gradient(-45deg, transparent 40%, rgba(255,255,255,0.03) 50%, transparent 60%);
  pointer-events: none;
}

/* Hero stats styling - consistent cu testimonials */
.hero-stats .stat-item {
  text-align: center;
}

.hero-stats .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero-stats .stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   DESIGN SYSTEM UNITAR - Card Components
   ========================================================================== */

/* Card styling unitar pentru toată aplicația */
.card {
  border: none !important;
  box-shadow: var(--shadow-card) !important;
  transition: all 0.3s ease;
  border-radius: var(--radius-lg) !important;
}

.card:hover {
  box-shadow: var(--shadow-card-hover) !important;
  transform: translateY(-2px);
}

/* Feature cards styling */
.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  padding: 1.5rem;
}

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

/* Stat cards styling */
.stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Buttons styling unitar */
.btn {
  border-radius: var(--radius-md) !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-light {
  background: var(--surface) !important;
  border-color: var(--gray-200) !important;
  color: var(--ink) !important;
}

.btn-light:hover {
  background: var(--gray-100) !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   RESPONSIVE DESIGN & LAYOUT FIXES
   ========================================================================== */

/* Main Content Spacing - Fix pentru spatiere dupa navbar */
main {
  padding-top: 0; /* No padding */
}

/* Hero section are padding propriu - nu se aplica la el */
.hero-section main,
.hero-main {
  padding-top: 0; /* Full-width hero fără spațiu deasupra */
}

/* Pagini normale au nevoie de spatiu dupa navbar */
.content-page {
  padding-top: 0; /* No padding */
  min-height: calc(100vh - 100px);
}

/* Mobile First Approach */
@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
  
  .btn-lg {
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-base);
  }
  
  .display-1 { font-size: var(--font-size-4xl); }
  .display-2 { font-size: var(--font-size-3xl); }
  .display-3 { font-size: var(--font-size-2xl); }
  .display-4 { font-size: var(--font-size-xl); }
  .display-5 { font-size: var(--font-size-lg); }
  
  /* Mobile spacing adjustments */
  main {
    padding-top: 0; /* No padding */
  }

  .content-page {
    padding-top: 0; /* No padding */
  }
}

/* Tablet */
@media (min-width: 768px) {
  .hero-section {
    min-height: 85vh; /* Large for homepage by default */
  }
  
  /* Small hero for all pages except homepage */
  body:not(.homepage) .hero-section {
    min-height: 25vh;
  }

  main {
    padding-top: 0;
  }

  .content-page {
    padding-top: 0;
  }
}

/* Desktop */
@media (min-width: 992px) {
  .hero-section {
    min-height: 90vh; /* Large for homepage by default */
  }
  
  /* Small hero for all pages except homepage */
  body:not(.homepage) .hero-section {
    min-height: 30vh;
  }

  main {
    padding-top: 0;
  }

  .content-page {
    padding-top: 0;
  }
}

/* ==========================================================================
   ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

/* Reduced Motion */
@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;
  }
  
  .btn:hover,
  .card:hover,
  .dropdown-item:hover {
    transform: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .btn-outline-primary {
    border-width: 2px;
  }
  
  .card {
    border-width: 2px;
  }
  
  .form-control {
    border-width: 2px;
  }
}

/* Focus Enhancement for Keyboard Navigation */
.btn:focus-visible,
.form-control:focus-visible,
.dropdown-item:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

/* GPU Acceleration for Animations */
.btn,
.card,
.dropdown-item {
  will-change: transform;
}

/* Optimize font loading */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiA.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   SKIP TO CONTENT BUTTON
   ========================================================================== */

.skip-to-content-btn {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: var(--z-fixed);
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-500);
  color: white;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
}

.skip-to-content-btn:focus,
.skip-to-content-btn:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  background: var(--brand-600);
  color: white;
  text-decoration: none;
  box-shadow: var(--shadow-xl);
  scale: 1.05;
}

.skip-to-content-btn:focus {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
}

.skip-to-content-btn:active {
  scale: 0.95;
}

/* Show button when focused or when user scrolled down */
body:has(.skip-to-content-btn:focus) .skip-to-content-btn,
body.scrolled .skip-to-content-btn {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dark theme support */
[data-theme="dark"] .skip-to-content-btn {
  background: var(--brand-500);
  box-shadow: 0 10px 25px -5px rgba(47, 191, 113, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .skip-to-content-btn:hover,
[data-theme="dark"] .skip-to-content-btn:focus {
  background: var(--brand-600);
  box-shadow: 0 20px 25px -5px rgba(47, 191, 113, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .skip-to-content-btn {
    bottom: 1rem;
    left: 1rem;
    width: 3rem;
    height: 3rem;
    font-size: 1.125rem;
  }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  .navbar,
  .btn,
  .toast,
  .offcanvas,
  .dropdown-menu,
  #scroll-to-top {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .container {
    max-width: none !important;
  }
  
  a {
    text-decoration: none !important;
    color: black !important;
  }
  
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }
}