/* Critical styles for above-the-fold content */
html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
  color: #1f2937;
}

/* Navigation critical styles */
nav {
  background: #ffffff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

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

/* Hero critical styles */
.hero-image {
  width: 100%;
  height: 384px;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .hero-image {
    height: 500px;
  }
}

.hero-gradient {
  background: linear-gradient(135deg, #1e40af 0%, #374151 100%);
  color: white;
  padding: 4rem 0;
}

/* Button critical styles */
button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

button:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.btn-primary {
  background-color: #ea580c;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #dc2626;
}

/* Typography critical styles */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

h1 {
  font-size: 2.25rem;
  color: #1e40af;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3.75rem;
  }
}

/* Layout critical styles */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

/* Brand colors */
.text-brand-blue {
  color: #1e40af;
}

.text-brand-orange {
  color: #ea580c;
}

.bg-brand-orange {
  background-color: #ea580c;
}

.bg-brand-light {
  background-color: #f8fafc;
}

/* High contrast fixes */
.text-gray-700 {
  color: #374151;
}

.text-gray-600 {
  color: #4b5563;
}

.hover\:text-brand-orange:hover {
  color: #ea580c;
}

/* Prevent layout shift */
img {
  max-width: 100%;
  height: auto;
}

/* Loading state */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-size: 1.125rem;
}

/* Mobile responsive */
@media (max-width: 767px) {
  .nav-container {
    padding: 0 0.5rem;
  }
  
  h1 {
    font-size: 1.875rem;
  }
  
  .hero-gradient {
    padding: 2rem 0;
  }
}