/* Critical CSS for Connor Sports - Performance Optimized */

/* Font loading optimization with fallback fonts */
html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  font-display: swap;
  line-height: 1.5;
}
body {
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-family: inherit;
  background-color: #141212;
  min-height: 100vh;
}

/* Font loading optimization - keep visibility for LCP */
.fonts-loaded body { font-family: 'Open Sans', sans-serif; }

/* Preload font fallback with stable metrics */
@font-face {
  font-family: 'Open Sans';
  font-display: swap;
  src: local('Open Sans');
}

/* Base element stabilization */
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
p { margin: 15px 0; line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { margin: 15px 0; line-height: 1.2; font-weight: 600; }

/* Header critical styles */
.site-header {
  background: #000;
  position: relative;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
}
.site-header__logo {
  display: block;
  width: 280px;
  height: 75px;
}
.site-header__navigation {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Critical carousel styles */
.carousel {
  position: relative;
  width: 100%;
}
.carousel__image {
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

/* Container critical styles */
.container {
  max-width: 1450px;
  padding: 0 30px;
  box-sizing: border-box;
  margin: 0 auto;
}

/* Critical button styles */
.button {
  background: #008e74;
  color: #fff;
  padding: 14px 40px;
  text-decoration: none;
  border-radius: 25px;
  display: inline-flex;
  align-items: center;
  font-size: 1.6rem;
  line-height: 1.15;
  border: none;
  cursor: pointer;
}

/* Hero section critical styles */
.hero {
  position: relative;
  width: 100%;
  min-height: 75vh;
  background-color: #141212;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.carousel__image {
  position: relative;
  width: 100%;
  /* height: 100vh; */
  overflow: hidden;
}
.carousel__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
.carousel__info {
  position: relative;
  z-index: 2;
  align-items: center;
  justify-content: center;
  padding: 100px 0;
}
.hero__title {
  font-size: 3rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  font-weight: 400;
  line-height: 1.2;
  margin: 15px 0;
}
.hero__description {
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 15px 0;
}
.hero__cta {
  background: #008e74;
  color: #fff;
  padding: 14px 40px;
  text-decoration: none;
  border-radius: 25px;
  display: inline-flex;
  align-items: center;
  font-size: 1.6rem;
  line-height: 1.15;
}

/* Critical responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  .site-header {
    height: 60px;
  }
  .hero {
    min-height: 80vh;
  }
  .hero__title {
    font-size: 2rem;
  }
}
