/* Golden Furniture - Main Stylesheet - COMPLETE SEO OPTIMIZED */
:root {
  --brand-green: #0B5E2F;
  --accent-yellow: #F2C500;
  --glass-bg: rgba(255, 255, 255, 0.10);
  --text-dark: #1F2937;
  --text-light: #6B7280;
  --border-light: #E5E7EB;
  --focus-ring: #0B5E2F;
  --error-red: #DC2626;
  --success-green: #059669;
  --warning-yellow: #D97706;
}

/* Font Faces with Performance Optimization */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: local('Poppins Light'), local('Poppins-Light'),
       url('../fonts/poppins-light.woff2') format('woff2'),
       url('../fonts/poppins-light.woff') format('woff');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Poppins Regular'), local('Poppins-Regular'),
       url('../fonts/poppins-regular.woff2') format('woff2'),
       url('../fonts/poppins-regular.woff') format('woff');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Poppins SemiBold'), local('Poppins-SemiBold'),
       url('../fonts/poppins-semibold.woff2') format('woff2'),
       url('../fonts/poppins-semibold.woff') format('woff');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Poppins Bold'), local('Poppins-Bold'),
       url('../fonts/poppins-bold.woff2') format('woff2'),
       url('../fonts/poppins-bold.woff') format('woff');
}

/* Base Styles with SEO Optimization */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Smooth scrolling with accessibility consideration */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Account for fixed header */
}

body {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #f9fafb;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* SEO Hidden Elements */
.seo-heading,
.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;
}

/* Skip to content link for accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--brand-green);
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  font-weight: 600;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 6px;
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Glass Morphism with fallback */
.glass-morphism {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(12px)) {
  .glass-morphism {
    background: rgba(255, 255, 255, 0.85);
  }
}

/* Loading Spinner */
.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--brand-green);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Fade In Animation */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Slide Up Animation */
.slide-up {
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(40px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button Styles with Accessibility */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
}

.btn:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.btn:focus:not(:focus-visible) {
  outline: none;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

.btn-primary {
  background-color: var(--brand-green);
  color: white;
}

.btn-primary:hover {
  background-color: #0a4d26;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(11, 94, 47, 0.4);
}

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

.btn-secondary {
  background-color: transparent;
  color: white;
  border-color: white;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--brand-green);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--brand-green);
  border-color: var(--brand-green);
}

.btn-outline:hover {
  background-color: var(--brand-green);
  color: white;
  transform: translateY(-2px);
}

/* Card Styles */
.card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.card-header {
  padding: 24px 24px 0;
}

.card-body {
  padding: 24px;
}

.card-footer {
  padding: 0 24px 24px;
}

/* Form Styles with Accessibility */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: white;
  color: var(--text-dark);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(11, 94, 47, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-light);
  opacity: 0.7;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: var(--error-red);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-error::before {
  content: '⚠ ';
}

.form-success {
  color: var(--success-green);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-success::before {
  content: '✓ ';
}

/* Utility Classes */
.text-brand { color: var(--brand-green); }
.text-accent { color: var(--accent-yellow); }
.text-error { color: var(--error-red); }
.text-success { color: var(--success-green); }
.text-warning { color: var(--warning-yellow); }

.bg-brand { background-color: var(--brand-green); }
.bg-accent { background-color: var(--accent-yellow); }
.bg-error { background-color: var(--error-red); }
.bg-success { background-color: var(--success-green); }
.bg-warning { background-color: var(--warning-yellow); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-padding {
  padding: 5rem 0;
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand-green), #0a4d26);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Section Specific */
.hero-background {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(11, 94, 47, 0.8), rgba(0, 0, 0, 0.6));
}

/* Navigation Styles */
.nav-link {
  position: relative;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 8px 0;
}

.nav-link:hover {
  color: var(--brand-green);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-green);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--brand-green);
}

.nav-link.active::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background: white;
  z-index: 999;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Testimonial Cards */
.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 4rem;
  color: var(--accent-yellow);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.3;
}

.testimonial-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-green), var(--accent-yellow));
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* Image Optimization */
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Lazy Loading for Images */
.lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy.loaded {
  opacity: 1;
}

/* Aspect Ratio Boxes for Images */
.aspect-ratio-box {
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* 4:3 Aspect Ratio */
  overflow: hidden;
}

.aspect-ratio-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal.open .modal-content {
  transform: translateY(0);
}

/* SEO Schema Styling */
.schema-item {
  display: none; /* Hidden but accessible to search engines */
}

/* Performance Optimizations */
@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;
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    color: black;
    background: white;
    font-size: 12pt;
    line-height: 1.5;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
  
  .btn,
  .nav-link,
  .mobile-menu-button {
    display: none !important;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
  
  .card {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  /* Hide decorative elements */
  .hero-background::before,
  .testimonial-card::before,
  .testimonial-card::after,
  .glass-morphism {
    display: none;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --brand-green: #004d00;
    --accent-yellow: #b38600;
    --text-dark: #000000;
    --text-light: #333333;
    --border-light: #000000;
  }
  
  .btn {
    border-width: 3px;
  }
  
  .nav-link::after {
    height: 3px;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-dark: #f3f4f6;
    --text-light: #d1d5db;
    --border-light: #374151;
  }
  
  body {
    background-color: #111827;
    color: var(--text-dark);
  }
  
  .card {
    background-color: #1f2937;
  }
  
  .form-input,
  .form-textarea,
  .form-select {
    background-color: #374151;
    color: var(--text-dark);
    border-color: #4b5563;
  }
  
  .form-input::placeholder,
  .form-textarea::placeholder {
    color: #9ca3af;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .section-padding {
    padding: 3rem 0;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  /* Mobile Typography */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 0.75rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .card {
    border-radius: 12px;
  }
  
  /* Mobile Navigation Improvements */
  .mobile-menu {
    padding-top: 60px;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn:hover {
    transform: none;
  }
  
  .card:hover {
    transform: none;
  }
  
  .nav-link:hover::after {
    width: 0;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .gallery-item:hover .gallery-overlay {
    transform: translateY(100%);
  }
  
  /* Increase touch targets */
  .btn,
  .nav-link,
  .form-input,
  .form-select {
    min-height: 44px;
  }
  
  input,
  select,
  textarea {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
}

/* Performance: Reduce animations for low-end devices */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* SEO: Schema.org visibility */
[itemscope] {
  /* Schema.org support */
}

[itemtype] {
  /* Schema.org type support */
}

/* Focus Visible Polyfill */
.js-focus-visible :focus:not(.focus-visible) {
  outline: none;
}

/* Loading State */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Error State */
.has-error {
  border-color: var(--error-red) !important;
}

.has-success {
  border-color: var(--success-green) !important;
}

/* Warning State */
.has-warning {
  border-color: var(--warning-yellow) !important;
}

/* Visually Hidden but Accessible */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Text Overflow */
.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: var(--brand-green);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0a4d26;
}

/* Selection Color */
::selection {
  background-color: rgba(11, 94, 47, 0.3);
  color: var(--text-dark);
}

::-moz-selection {
  background-color: rgba(11, 94, 47, 0.3);
  color: var(--text-dark);
}

/* Performance: Will-change hints */
.performance-optimize {
  will-change: transform, opacity;
}

/* SEO: Structured data helpers */
.structured-data {
  display: none;
}

/* Print QR Code for URLs */
@media print {
  .print-qr {
    display: block !important;
    page-break-before: always;
  }
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion) {
  .fade-in,
  .slide-up {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Performance: Critical above-the-fold CSS */
.critical-css {
  /* Add critical styles that must load immediately */
}

/* SEO: Breadcrumb styling */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--brand-green);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: var(--text-light);
}

/* Performance: Image loading states */
.img-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* SEO: Rich snippet helpers */
.rating-stars {
  display: inline-flex;
  align-items: center;
}

.rating-value {
  margin-left: 4px;
  font-weight: 600;
}

/* Accessibility: Focus ring for keyboard navigation */
.keyboard-focus :focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Performance: Containment */
.contain-layout {
  contain: layout style paint;
}

.contain-content {
  contain: content;
}

/* SEO: Local business info */
.local-business-info {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Print optimization */
@media print {
  @page {
    margin: 2cm;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1 {
    font-size: 24pt;
    page-break-after: avoid;
  }
  
  h2, h3 {
    page-break-after: avoid;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  a {
    word-wrap: break-word;
  }
  
  /* Don't break important content */
  .no-break {
    page-break-inside: avoid;
  }
}

/* Performance: Font loading optimization */
.fonts-loaded body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

.fonts-loading body {
  font-family: system-ui, -apple-system, sans-serif;
}

/* SEO: Semantic markup helpers */
.article-meta {
  font-size: 0.875rem;
  color: var(--text-light);
}

.author-name {
  font-weight: 600;
  color: var(--brand-green);
}

.published-date {
  color: var(--text-light);
}

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

/* Performance: Optimize repaints */
.will-change-transform {
  will-change: transform;
}

/* SEO: Rich results optimization */
.rich-result-item {
  display: block;
}

/* Print contact info */
@media print {
  .contact-info-print {
    display: block !important;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
  }
}

/* Performance: GPU acceleration */
.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Accessibility: High contrast focus */
.high-contrast :focus {
  outline: 3px solid #000;
  outline-offset: 2px;
}

/* SEO: JSON-LD display */
.json-ld-data {
  display: none;
}

/* Performance: Image optimization */
.img-optimized {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Mobile-first breakpoints */
@custom-media --mobile (max-width: 767px);
@custom-media --tablet (min-width: 768px) and (max-width: 1023px);
@custom-media --desktop (min-width: 1024px);

/* CSS Custom Properties for themes */
:root {
  --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);
  --animation-duration: 300ms;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Utility classes using CSS custom properties */
.rounded-sm { border-radius: var(--border-radius-sm); }
.rounded-md { border-radius: var(--border-radius-md); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-xl { border-radius: var(--border-radius-xl); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

.p-xs { padding: var(--spacing-xs); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }
.p-2xl { padding: var(--spacing-2xl); }
.p-3xl { padding: var(--spacing-3xl); }

.m-xs { margin: var(--spacing-xs); }
.m-sm { margin: var(--spacing-sm); }
.m-md { margin: var(--spacing-md); }
.m-lg { margin: var(--spacing-lg); }
.m-xl { margin: var(--spacing-xl); }
.m-2xl { margin: var(--spacing-2xl); }
.m-3xl { margin: var(--spacing-3xl); }

/* Animation utilities */
.animate-fade-in {
  animation: fadeIn var(--animation-duration) var(--animation-timing);
}

.animate-slide-up {
  animation: slideUp var(--animation-duration) var(--animation-timing);
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Transition utilities */
.transition-all {
  transition: all var(--animation-duration) var(--animation-timing);
}

.transition-transform {
  transition: transform var(--animation-duration) var(--animation-timing);
}

.transition-opacity {
  transition: opacity var(--animation-duration) var(--animation-timing);
}

/* Focus utilities */
.focus-ring {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.focus-ring:focus:not(:focus-visible) {
  outline: none;
}

/* SEO utilities */
.text-balance {
  text-wrap: balance;
}

/* Performance utilities */
.will-change-opacity {
  will-change: opacity;
}

.will-change-transform {
  will-change: transform;
}

/* Accessibility utilities */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Print utilities */
@media print {
  .print-hidden {
    display: none !important;
  }
  
  .print-visible {
    display: block !important;
  }
  
  .print-break-before {
    page-break-before: always;
  }
  
  .print-break-after {
    page-break-after: always;
  }
  
  .print-break-inside-avoid {
    page-break-inside: avoid;
  }
}

/* Dark mode utilities */
@media (prefers-color-scheme: dark) {
  .dark\:invert {
    filter: invert(1);
  }
}

/* Reduced motion utilities */
@media (prefers-reduced-motion: reduce) {
  .motion-reduce\:animate-none {
    animation: none;
  }
  
  .motion-reduce\:transition-none {
    transition: none;
  }
}

/* High contrast utilities */
@media (prefers-contrast: high) {
  .contrast-high\:border-thick {
    border-width: 2px;
  }
}

/* Touch device utilities */
@media (hover: none) and (pointer: coarse) {
  .touch\:min-h-44 {
    min-height: 44px;
  }
  
  .touch\:min-w-44 {
    min-width: 44px;
  }
}

/* Container queries support */
@container (min-width: 640px) {
  .container\:flex-row {
    flex-direction: row;
  }
}

/* View transition support */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-group(*) {
    animation-duration: var(--animation-duration);
    animation-timing-function: var(--animation-timing);
  }
}