/* Critical CSS for above-the-fold content */
* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

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

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col,
.col-12,
.col-md-6,
.col-lg-4,
.col-xl-3 {
  padding: 0 15px;
  width: 100%;
}

@media (min-width: 768px) {
  .col-md-6 {
    width: 50%;
  }
}

@media (min-width: 992px) {
  .col-lg-4 {
    width: 33.333333%;
  }
}

@media (min-width: 1200px) {
  .col-xl-3 {
    width: 25%;
  }
}

/* Utility classes */
.d-flex {
  display: flex !important;
}

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

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

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

.text-white {
  color: white !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.ptb--65 {
  padding-top: 65px;
  padding-bottom: 65px;
}

/* Loading spinner */
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #f69322;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Header critical styles */
header {
  position: relative;
  z-index: 1000;
}

/* Basic button styles */
.btn {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

.theme-text {
  color: #f69322;
}

/* Hide elements that will be loaded later */
.animate__animated {
  animation-duration: 0s !important;
}

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

/* Critical link styles */
a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: #0056b3;
}

/* Font loading optimization */
.font-display-swap {
  font-display: swap;
}