/* Google Fonts loaded via HTML for better performance */

/* Fallback fonts with size adjustments to match web fonts */
@font-face {
  font-family: 'Inter Fallback';
  src: local('system-ui'), local('-apple-system'), local('BlinkMacSystemFont'), local('Segoe UI'), local('Roboto');
  size-adjust: 107%; /* Adjust to match Inter's metrics */
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Poppins Fallback';
  src: local('system-ui'), local('-apple-system'), local('BlinkMacSystemFont'), local('Segoe UI'), local('Roboto');
  size-adjust: 105%; /* Adjust to match Poppins' metrics */
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* CSS Custom Properties (Variables) */
:root {
  /* Vicuña Color Palette */
  --vicuna-50: #faf8f5;
  --vicuna-100: #f4f0e8;
  --vicuna-200: #e8ddd0;
  --vicuna-300: #d9c5b0;
  --vicuna-400: #c7a688;
  --vicuna-500: #b8906b;
  --vicuna-600: #a67c5a;
  --vicuna-700: #8a654b;
  --vicuna-800: #715340;
  --vicuna-900: #5c4435;

  /* Andes Color Palette */
  --andes-50: #f0f9ff;
  --andes-100: #e0f2fe;
  --andes-200: #bae6fd;
  --andes-300: #7dd3fc;
  --andes-400: #38bdf8;
  --andes-500: #0ea5e9;
  --andes-600: #0284c7;
  --andes-700: #0369a1;
  --andes-800: #075985;
  --andes-900: #0c4a6e;

  /* Sage Color Palette */
  --sage-50: #f6f7f6;
  --sage-100: #e3e7e3;
  --sage-200: #c7d2c7;
  --sage-300: #a3b5a3;
  --sage-400: #7a927a;
  --sage-500: #5c7a5c;
  --sage-600: #486148;
  --sage-700: #3c4f3c;
  --sage-800: #334133;
  --sage-900: #2d372d;

  /* Typography Scale */
  --font-family-sans: 'Inter', 'Inter Fallback', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-display: 'Poppins', 'Poppins Fallback', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Font Sizes - Responsive Typography Scale */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Spacing Scale */
  --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.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-vicuna: 0 4px 6px -1px rgba(184, 144, 107, 0.1), 0 2px 4px -1px rgba(184, 144, 107, 0.06);
  --shadow-andes: 0 4px 6px -1px rgba(14, 165, 233, 0.1), 0 2px 4px -1px rgba(14, 165, 233, 0.06);
}

/* Responsive Typography Scale */
@media (min-width: 640px) {
  :root {
    --text-lg: 1.25rem;    /* 20px */
    --text-xl: 1.5rem;     /* 24px */
    --text-2xl: 1.875rem;  /* 30px */
    --text-3xl: 2.25rem;   /* 36px */
    --text-4xl: 3rem;      /* 48px */
    --text-5xl: 3.75rem;   /* 60px */
    --text-6xl: 4.5rem;    /* 72px */
  }
}

@media (min-width: 1024px) {
  :root {
    --text-2xl: 2rem;      /* 32px */
    --text-3xl: 2.5rem;    /* 40px */
    --text-4xl: 3.5rem;    /* 56px */
    --text-5xl: 4.5rem;    /* 72px */
    --text-6xl: 6rem;      /* 96px */
  }
}

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Skip Link for Screen Readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--vicuna-600);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 9999;
  font-weight: var(--font-medium);
  transition: top 0.3s ease;
}

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

html {
  font-family: var(--font-family-sans);
  scroll-behavior: smooth;
}

/* Font loading states to prevent layout shift */
html:not(.fonts-loaded):not(.fonts-failed) {
  /* Use fallback fonts until web fonts load */
  font-family: 'Inter Fallback', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html:not(.fonts-loaded):not(.fonts-failed) h1,
html:not(.fonts-loaded):not(.fonts-failed) h2,
html:not(.fonts-loaded):not(.fonts-failed) h3,
html:not(.fonts-loaded):not(.fonts-failed) h4,
html:not(.fonts-loaded):not(.fonts-failed) h5,
html:not(.fonts-loaded):not(.fonts-failed) h6 {
  font-family: 'Poppins Fallback', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html.fonts-failed {
  /* If fonts fail to load, stick with fallbacks */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html.fonts-failed h1,
html.fonts-failed h2,
html.fonts-failed h3,
html.fonts-failed h4,
html.fonts-failed h5,
html.fonts-failed h6 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  line-height: var(--leading-normal);
  color: #1f2937;
  background: linear-gradient(to bottom right, rgba(250, 248, 245, 0.3), white, rgba(240, 249, 255, 0.3));
  min-height: 100vh;
  font-size: var(--text-base);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-display);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  /* Prevent layout shift during font loading */
  font-display: swap;
}

/* Typography Utility Classes */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }
.text-6xl { font-size: var(--text-6xl); }

.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

.font-sans { font-family: var(--font-family-sans); }
.font-display { font-family: var(--font-family-display); }

.leading-tight { line-height: var(--leading-tight); }
.leading-snug { line-height: var(--leading-snug); }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }
.leading-loose { line-height: var(--leading-loose); }

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

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

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.company-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  display: block;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--vicuna-600);
  background: rgba(184, 144, 107, 0.1);
}

.nav-link:focus {
  outline: 2px solid var(--vicuna-600);
  outline-offset: 2px;
  color: var(--vicuna-600);
  background: rgba(184, 144, 107, 0.1);
}

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

.nav-link:focus-visible {
  outline: 2px solid var(--vicuna-600);
  outline-offset: 2px;
}

/* Enhanced Focus Styles for Accessibility */
section:focus {
  outline: 2px solid var(--vicuna-600);
  outline-offset: 4px;
}

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

/* Service Card Focus Styles */
.service-card:focus {
  outline: 2px solid var(--vicuna-600);
  outline-offset: 4px;
  margin-bottom: 0;
}

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

.service-card:focus-visible {
  outline: 2px solid var(--vicuna-600);
  outline-offset: 4px;
}

/* Enhanced Button Focus States */
button:focus,
.btn-primary:focus,
.btn-secondary:focus,
.btn-andes:focus,
.btn-sage:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .vicuna-text-gradient,
  .text-gradient-vicuna,
  .text-gradient-andes,
  .text-gradient-sage,
  .text-gradient-vicuna-andes {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--vicuna-800);
  }
  
  .card,
  .card-vicuna,
  .card-andes,
  .card-sage {
    border: 2px solid var(--vicuna-600);
  }
  
  .btn-primary,
  .btn-secondary,
  .btn-andes,
  .btn-sage {
    border: 2px solid currentColor;
  }
}

/* Hero Section */
.hero {
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(to bottom right, rgba(250, 248, 245, 0.3), white, rgba(240, 249, 255, 0.3));
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-6);
  background: linear-gradient(to right, var(--vicuna-600), var(--andes-600));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
}

.hero-tagline {
  font-size: var(--text-xl);
  margin-bottom: var(--space-8);
  color: #6b7280;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--leading-relaxed);
}

.hero-cta {
  display: inline-block;
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
}

/* Services Section */
.services {
  padding: 4rem 2rem;
}

.section-title {
  text-align: center;
  font-size: var(--text-4xl);
  margin-bottom: var(--space-12);
  color: #1f2937;
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  text-align: center;
}

.service-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  color: #1f2937;
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
}

.service-description {
  color: #6b7280;
  line-height: 1.6;
}

/* Contact Section */
.contact {
  padding: 4rem 2rem;
  background: rgba(250, 248, 245, 0.3);
}

.contact-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.contact-description {
  color: #6b7280;
  margin-bottom: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.contact-item {
  display: flex;
  justify-content: center;
}

.contact-email {
  display: inline-block;
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
}

.contact-phone {
  display: inline-block;
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
  text-decoration: none;
}

/* Footer */
.footer {
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-text {
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.build-info {
  color: #9ca3af;
  font-size: var(--text-xs);
  margin-bottom: 1rem;
  font-family: 'Courier New', monospace;
}

.build-info span {
  font-weight: var(--font-medium);
}

/* Enhanced Modal Styles with Accessibility */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .modal-overlay {
    transition: none;
  }
  
  .modal-content {
    opacity: 1 !important;
    transition: none !important;
  }
  
  .card, .card-vicuna, .card-andes, .card-sage {
    margin-bottom: 0 !important;
    transition: none !important;
  }
}

.modal-content {
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  margin: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  position: relative;
}

.modal-overlay.active .modal-content {
  opacity: 1;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 1rem;
}

.modal-title {
  font-size: 1.5rem;
  color: #1f2937;
  margin: 0;
  font-weight: var(--font-semibold);
}

.modal-close {
  font-size: 1.5rem;
  padding: 0.5rem;
  min-width: auto;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.modal-close:focus {
  outline: 2px solid var(--vicuna-600);
  outline-offset: 2px;
}

.modal-body {
  line-height: 1.6;
}

.modal-body h3 {
  margin: 1.5rem 0 0.75rem;
  color: #1f2937;
  font-size: 1.125rem;
  font-weight: var(--font-semibold);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 0.25rem;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  margin-bottom: 0.75rem;
  color: #4b5563;
}

.modal-body p strong {
  color: #1f2937;
  font-weight: var(--font-medium);
}

.modal-body a {
  color: var(--vicuna-600);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.modal-body a:hover {
  color: var(--vicuna-700);
}

.modal-body a:focus {
  outline: 2px solid var(--vicuna-600);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Mobile modal styles */
@media (max-width: 768px) {
  .modal-content {
    margin: 1rem;
    max-height: 90vh;
  }
  
  .modal-title {
    font-size: 1.25rem;
  }
  
  .modal-close {
    width: 2rem;
    height: 2rem;
    font-size: 1.25rem;
  }
}

/* Enhanced Responsive Design System */

/* Mobile First - Base styles (320px+) */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
  .nav {
    padding: var(--space-3) var(--space-4);
  }
  
  .nav-menu {
    display: none; /* Hide navigation on very small screens */
  }
  
  .company-name {
    font-size: var(--text-lg);
  }
  
  .hero {
    padding: var(--space-20) var(--space-4) var(--space-12);
  }
  
  .hero-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
  }
  
  .hero-tagline {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
  }
  
  .hero-cta {
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-6);
  }
  
  .services, .contact {
    padding: var(--space-12) var(--space-4);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .section-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-8);
  }
  
  .service-title {
    font-size: var(--text-lg);
  }
  
  .contact-title {
    font-size: var(--text-xl);
  }
  
  .contact-email, .contact-phone {
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-6);
  }
  
  .contact-info {
    gap: var(--space-3);
  }
  
  .footer {
    padding: var(--space-6) var(--space-4);
  }
}

/* Large Mobile (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .nav {
    padding: var(--space-4);
  }
  
  .nav-menu {
    gap: var(--space-3);
  }
  
  .nav-link {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
  }
  
  .hero {
    padding: var(--space-24) var(--space-6) var(--space-16);
  }
  
  .hero-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-5);
  }
  
  .hero-tagline {
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
  }
  
  .services, .contact {
    padding: var(--space-16) var(--space-6);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .section-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-10);
  }
}

/* Tablet Portrait (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    padding: 0 var(--space-6);
  }
  
  .nav {
    padding: var(--space-4) var(--space-6);
  }
  
  .nav-menu {
    gap: var(--space-6);
  }
  
  .hero {
    padding: var(--space-24) var(--space-8) var(--space-20);
  }
  
  .hero-title {
    font-size: var(--text-4xl);
  }
  
  .hero-tagline {
    font-size: var(--text-xl);
  }
  
  .services, .contact {
    padding: var(--space-20) var(--space-8);
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
  
  /* Make the third service card span both columns on tablet */
  .service-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .section-title {
    font-size: var(--text-4xl);
  }
}

/* Desktop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
  .container {
    padding: 0 var(--space-8);
  }
  
  .nav {
    padding: var(--space-4) var(--space-8);
  }
  
  .hero {
    padding: var(--space-24) var(--space-8) var(--space-24);
  }
  
  .services, .contact {
    padding: var(--space-24) var(--space-8);
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
  
  /* Reset the tablet-specific styling */
  .service-card:nth-child(3) {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }
}

/* Large Desktop / Ultra-wide (1440px+) */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
    padding: 0 var(--space-10);
  }
  
  .nav {
    padding: var(--space-5) var(--space-10);
  }
  
  .hero {
    padding: var(--space-24) var(--space-10) var(--space-24);
  }
  
  .hero-content {
    max-width: 900px;
  }
  
  .hero-title {
    font-size: var(--text-6xl);
  }
  
  .hero-tagline {
    font-size: var(--text-2xl);
  }
  
  .services, .contact {
    padding: var(--space-24) var(--space-10);
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-10);
    max-width: 1200px;
  }
  
  .section-title {
    font-size: var(--text-5xl);
  }
  
  .contact-card {
    max-width: 700px;
  }
}

/* High DPI / Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .vicuna-text-gradient,
  .text-gradient-vicuna,
  .text-gradient-andes,
  .text-gradient-sage,
  .text-gradient-vicuna-andes {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: var(--space-16) var(--space-6) var(--space-12);
  }
  
  .hero-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
  }
  
  .hero-tagline {
    font-size: var(--text-base);
    margin-bottom: var(--space-4);
  }
  
  .services, .contact {
    padding: var(--space-10) var(--space-6);
  }
}

/* Component Styles */
/* Button Components */
.btn-primary {
  background: linear-gradient(to right, var(--vicuna-500), var(--vicuna-600));
  color: white;
  font-weight: var(--font-medium);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  display: inline-block;
  text-align: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover {
  background: linear-gradient(to right, var(--vicuna-600), var(--vicuna-700));
  box-shadow: var(--shadow-md);
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(184, 144, 107, 0.3), var(--shadow-md);
  background: linear-gradient(to right, var(--vicuna-600), var(--vicuna-700));
}

.btn-primary:focus:not(:focus-visible) {
  box-shadow: var(--shadow-md);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--vicuna-600);
  outline-offset: 2px;
}

.btn-secondary {
  background: linear-gradient(to right, #f3f4f6, #e5e7eb);
  color: #1f2937;
  font-weight: var(--font-medium);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  display: inline-block;
  text-align: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-secondary:hover {
  background: linear-gradient(to right, #e5e7eb, #d1d5db);
  box-shadow: var(--shadow-md);
}

.btn-secondary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.3), var(--shadow-md);
  background: linear-gradient(to right, #e5e7eb, #d1d5db);
}

.btn-secondary:focus:not(:focus-visible) {
  box-shadow: var(--shadow-md);
}

.btn-secondary:focus-visible {
  outline: 2px solid #6b7280;
  outline-offset: 2px;
}

.btn-andes {
  background: linear-gradient(to right, var(--andes-500), var(--andes-600));
  color: white;
  font-weight: var(--font-medium);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  display: inline-block;
  text-align: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-andes:hover {
  background: linear-gradient(to right, var(--andes-600), var(--andes-700));
  box-shadow: var(--shadow-md);
}

.btn-andes:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3), var(--shadow-md);
  background: linear-gradient(to right, var(--andes-600), var(--andes-700));
}

.btn-andes:focus:not(:focus-visible) {
  box-shadow: var(--shadow-md);
}

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

.btn-sage {
  background: linear-gradient(to right, var(--sage-500), var(--sage-600));
  color: white;
  font-weight: var(--font-medium);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  display: inline-block;
  text-align: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-sage:hover {
  background: linear-gradient(to right, var(--sage-600), var(--sage-700));
  box-shadow: var(--shadow-md);
}

.btn-sage:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(92, 122, 92, 0.3), var(--shadow-md);
  background: linear-gradient(to right, var(--sage-600), var(--sage-700));
}

.btn-sage:focus:not(:focus-visible) {
  box-shadow: var(--shadow-md);
}

.btn-sage:focus-visible {
  outline: 2px solid var(--sage-600);
  outline-offset: 2px;
}
  
/* Card Components */
.card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(232, 221, 208, 0.5);
  padding: var(--space-6);
  transition: box-shadow 0.2s ease;
  /* Prevent layout shift by using margin instead of transform */
  margin-bottom: 2px;
}

.card:hover {
  box-shadow: var(--shadow-md);
  margin-bottom: 0;
}

.card-vicuna {
  background: linear-gradient(to bottom right, var(--vicuna-50), white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(232, 221, 208, 0.5);
  padding: var(--space-6);
  transition: box-shadow 0.2s ease;
  /* Prevent layout shift by using margin instead of transform */
  margin-bottom: 2px;
}

.card-vicuna:hover {
  box-shadow: var(--shadow-vicuna);
  margin-bottom: 0;
}

.card-andes {
  background: linear-gradient(to bottom right, var(--andes-50), white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(186, 230, 253, 0.5);
  padding: var(--space-6);
  transition: box-shadow 0.2s ease;
  /* Prevent layout shift by using margin instead of transform */
  margin-bottom: 2px;
}

.card-andes:hover {
  box-shadow: var(--shadow-andes);
  margin-bottom: 0;
}

.card-sage {
  background: linear-gradient(to bottom right, var(--sage-50), white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(199, 210, 199, 0.5);
  padding: var(--space-6);
  transition: box-shadow 0.2s ease;
  /* Prevent layout shift by using margin instead of transform */
  margin-bottom: 2px;
}

.card-sage:hover {
  box-shadow: var(--shadow-md);
  margin-bottom: 0;
}
  
/* Removed unused card variants and input styles for better performance */
  
/* Legacy Text Gradient Classes (for backward compatibility) */
.vicuna-text-gradient {
  background: linear-gradient(to right, var(--vicuna-600), var(--andes-600));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
  font-kerning: auto;
  transform: translateZ(0);
  will-change: transform;
}

.sage-text-gradient {
  background: linear-gradient(to right, var(--sage-500), var(--sage-600));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
  font-kerning: auto;
  transform: translateZ(0);
  will-change: transform;
}
  
/* Utility Classes */
.glass-effect {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-vicuna { box-shadow: var(--shadow-vicuna); }
.shadow-andes { box-shadow: var(--shadow-andes); }

/* Legacy shadow classes */
.vicuna-shadow { box-shadow: var(--shadow-vicuna); }
.andes-shadow { box-shadow: var(--shadow-andes); }
  
/* Color Utility Classes */
/* Vicuña Background Colors */
.bg-vicuna-50 { background-color: var(--vicuna-50); }
.bg-vicuna-100 { background-color: var(--vicuna-100); }
.bg-vicuna-200 { background-color: var(--vicuna-200); }
.bg-vicuna-300 { background-color: var(--vicuna-300); }
.bg-vicuna-400 { background-color: var(--vicuna-400); }
.bg-vicuna-500 { background-color: var(--vicuna-500); }
.bg-vicuna-600 { background-color: var(--vicuna-600); }
.bg-vicuna-700 { background-color: var(--vicuna-700); }
.bg-vicuna-800 { background-color: var(--vicuna-800); }
.bg-vicuna-900 { background-color: var(--vicuna-900); }

/* Vicuña Text Colors */
.text-vicuna-50 { color: var(--vicuna-50); }
.text-vicuna-100 { color: var(--vicuna-100); }
.text-vicuna-200 { color: var(--vicuna-200); }
.text-vicuna-300 { color: var(--vicuna-300); }
.text-vicuna-400 { color: var(--vicuna-400); }
.text-vicuna-500 { color: var(--vicuna-500); }
.text-vicuna-600 { color: var(--vicuna-600); }
.text-vicuna-700 { color: var(--vicuna-700); }
.text-vicuna-800 { color: var(--vicuna-800); }
.text-vicuna-900 { color: var(--vicuna-900); }

/* Andes Background Colors */
.bg-andes-50 { background-color: var(--andes-50); }
.bg-andes-100 { background-color: var(--andes-100); }
.bg-andes-200 { background-color: var(--andes-200); }
.bg-andes-300 { background-color: var(--andes-300); }
.bg-andes-400 { background-color: var(--andes-400); }
.bg-andes-500 { background-color: var(--andes-500); }
.bg-andes-600 { background-color: var(--andes-600); }
.bg-andes-700 { background-color: var(--andes-700); }
.bg-andes-800 { background-color: var(--andes-800); }
.bg-andes-900 { background-color: var(--andes-900); }

/* Andes Text Colors */
.text-andes-50 { color: var(--andes-50); }
.text-andes-100 { color: var(--andes-100); }
.text-andes-200 { color: var(--andes-200); }
.text-andes-300 { color: var(--andes-300); }
.text-andes-400 { color: var(--andes-400); }
.text-andes-500 { color: var(--andes-500); }
.text-andes-600 { color: var(--andes-600); }
.text-andes-700 { color: var(--andes-700); }
.text-andes-800 { color: var(--andes-800); }
.text-andes-900 { color: var(--andes-900); }

/* Sage Background Colors */
.bg-sage-50 { background-color: var(--sage-50); }
.bg-sage-100 { background-color: var(--sage-100); }
.bg-sage-200 { background-color: var(--sage-200); }
.bg-sage-300 { background-color: var(--sage-300); }
.bg-sage-400 { background-color: var(--sage-400); }
.bg-sage-500 { background-color: var(--sage-500); }
.bg-sage-600 { background-color: var(--sage-600); }
.bg-sage-700 { background-color: var(--sage-700); }
.bg-sage-800 { background-color: var(--sage-800); }
.bg-sage-900 { background-color: var(--sage-900); }

/* Sage Text Colors */
.text-sage-50 { color: var(--sage-50); }
.text-sage-100 { color: var(--sage-100); }
.text-sage-200 { color: var(--sage-200); }
.text-sage-300 { color: var(--sage-300); }
.text-sage-400 { color: var(--sage-400); }
.text-sage-500 { color: var(--sage-500); }
.text-sage-600 { color: var(--sage-600); }
.text-sage-700 { color: var(--sage-700); }
.text-sage-800 { color: var(--sage-800); }
.text-sage-900 { color: var(--sage-900); }
  
/* Gradient Utility Classes */
/* Background Gradients */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-l { background-image: linear-gradient(to left, var(--tw-gradient-stops)); }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.bg-gradient-to-tr { background-image: linear-gradient(to top right, var(--tw-gradient-stops)); }
.bg-gradient-to-tl { background-image: linear-gradient(to top left, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.bg-gradient-to-bl { background-image: linear-gradient(to bottom left, var(--tw-gradient-stops)); }

/* Predefined Gradient Combinations */
.gradient-vicuna-primary {
  background: linear-gradient(to right, var(--vicuna-500), var(--vicuna-600));
}

.gradient-vicuna-secondary {
  background: linear-gradient(to right, var(--vicuna-600), var(--vicuna-700));
}

.gradient-andes-primary {
  background: linear-gradient(to right, var(--andes-500), var(--andes-600));
}

.gradient-andes-secondary {
  background: linear-gradient(to right, var(--andes-600), var(--andes-700));
}

.gradient-sage-primary {
  background: linear-gradient(to right, var(--sage-500), var(--sage-600));
}

.gradient-sage-secondary {
  background: linear-gradient(to right, var(--sage-600), var(--sage-700));
}

.gradient-hero {
  background: linear-gradient(to bottom right, var(--vicuna-100), var(--andes-50), var(--sage-100));
}

.gradient-hero-light {
  background: linear-gradient(to bottom right, rgba(250, 248, 245, 0.3), white, rgba(240, 249, 255, 0.3));
}

/* Text Gradients */
.text-gradient-vicuna {
  background: linear-gradient(to right, var(--vicuna-600), var(--vicuna-700));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-gradient-andes {
  background: linear-gradient(to right, var(--andes-500), var(--andes-600));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-gradient-sage {
  background: linear-gradient(to right, var(--sage-500), var(--sage-600));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-gradient-vicuna-andes {
  background: linear-gradient(to right, var(--vicuna-600), var(--andes-600));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
  
/* Animation System */
/* Respect user's motion preferences for all animations */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-in-up,
  .animate-slide-up,
  .animate-bounce-gentle,
  .animate-scale-in,
  .animate-pulse-glow {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Animation Keyframes */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce-gentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(184, 144, 107, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(184, 144, 107, 0.6);
  }
}

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

.animate-slide-up {
  animation: slide-up 0.6s ease-out forwards;
}

.animate-bounce-gentle {
  animation: bounce-gentle 2s ease-in-out infinite;
}

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

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Animation Delays for Staggered Effects */
.animate-delay-100 { animation-delay: 100ms; }
.animate-delay-200 { animation-delay: 200ms; }
.animate-delay-300 { animation-delay: 300ms; }
.animate-delay-400 { animation-delay: 400ms; }
.animate-delay-500 { animation-delay: 500ms; }