/* Critical CSS for above-the-fold content */

/* Reset and base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Critical layout styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Critical typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 16px 0;
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin: 0 0 16px 0;
}

/* Critical button styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #1976d2;
  color: white;
}

.btn-outlined {
  background-color: transparent;
  color: #1976d2;
  border: 2px solid #1976d2;
}

/* Critical image styles */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Critical skeleton loading styles */
.skeleton {
  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; }
}

/* Critical header styles */
.header {
  background-color: #6FC3C1;
  padding: 16px 0;
  text-align: center;
}

.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.header-text {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-link {
  font-weight: 600;
  color: #1976d2;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Critical banner styles */
.banner {
  position: relative;
  min-height: 400px;
  background-color: #f5f5f5;
  overflow: hidden;
}

.banner-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}

.banner-media {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-media img,
.banner-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Critical grid styles */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Critical responsive styles */
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .banner {
    min-height: 300px;
  }
  
  .banner-content {
    padding: 60px 0;
  }
}

/* Critical utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

/* Critical loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.fade-in {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fade-in.loaded {
  opacity: 1;
}

/* Critical performance optimizations */
.optimize-rendering {
  will-change: transform;
  transform: translateZ(0);
}

/* Critical accessibility */
.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;
}

/* Critical focus styles */
.btn:focus,
.header-link:focus {
  outline: 2px solid #1976d2;
  outline-offset: 2px;
}

/* Critical print styles */
@media print {
  .header,
  .banner {
    display: none;
  }
} 