html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Karla", sans-serif;
  font-weight: 100;
  color: white;
  overflow-x: hidden;
  background-color: #0e1111;
}


/* Hero Section */
.hero-image {
  --overlay-darkness: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background-image: url('../images/home/expand-hero copy 5-min.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}
.hero-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, var(--overlay-darkness));
  z-index: 1;
  pointer-events: none;
  transition: background-color 0.4s ease;
}
.hero-image::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100vw; 
  background: linear-gradient(to left, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4) 75%, transparent 100%);
  z-index: 0;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;  
  height: 100dvh;
  overflow-y: auto;
  padding: 0rem 2rem 4rem;
  margin-left: auto;
  margin-right: 5rem;
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: center;
  padding-bottom: 100px;
}

@media(max-width: 800px){
  .hero-text {
    padding-bottom: 20px;
  }

  .hero-overlay {
    padding-bottom: 160px; 
    margin-bottom: env(safe-area-inset-bottom, 0); 
  }
}


@media (min-width: 1300px) {
  .hero-overlay {
    width: 68vw;
  }
}

.hero-text {
  font-family: "marvin", sans-serif;
  font-weight: 400;
  font-size: 7.1vw;
  letter-spacing: 0px;
  text-transform: uppercase;
  color: rgb(255, 137, 40);
}

/* Screen Reader Only */
.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;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ffffff;
  font-weight: 100;
  border-radius: 8px;
  text-align: left;
}

/* Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: none;  
  margin: 2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel {
  overflow: hidden;
  width: 100%;
  border-radius: 12px;
}
.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease-in-out;
}
.carousel-track img {
  height: 400px;
  width: auto;
  flex-shrink: 0;
  border-radius: 12px;
  object-fit: cover;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  border: none;
  color: rgb(255, 137, 40);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.3rem 0.7rem;
  border-radius: 50%;
  z-index: 5;
  background: none;
  transition: transform 0.3s ease;
}
.carousel-btn:hover {
  transform: scale(1.2);
}
.carousel-btn.left {
  left: -3rem;
}
.carousel-btn.right {
  right: -3rem;
}
.carousel-caption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: white;
  font-family: "Karla", sans-serif;
  font-weight: 300;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 4px 8px;
  border-radius: 6px;
  max-width: 100%;
  word-break: break-word;
  text-align: left;
}

.desktop-caption { display: block; }
.mobile-caption { display: none; }

@media (max-width: 600px) {
  html, body {
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
  }

  .carousel-container {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    margin-top: 1rem;
  }

  .carousel-track {
    gap: 8px;
    align-items: flex-start;
    transition: transform 0.5s ease-in-out;
  }

  .carousel-item {
    display: inline-block;
    vertical-align: top;
  }

  .carousel-item > a {
    display: block;
  }

  /* Responsive image height */
  .carousel-track img {
    display: block;
    height: 35vh;            /* height scales with viewport */
    width: auto;
    object-fit: cover;
    border-radius: 10px;
  }

  /* Caption follows image width */
  .carousel-caption {
    display: block;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    font-size: clamp(11px, 2.5vw, 13px); /* scales but stays in range */
    line-height: 1.35;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 3px 6px;
    border-radius: 6px;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
  }

  /* Buttons scale slightly for smaller devices */
  .carousel-btn {
    font-size: clamp(1rem, 4vw, 1.4rem);
    width: clamp(30px, 8vw, 40px);
    height: clamp(30px, 8vw, 40px);
    padding: 0;
    color: rgb(255, 137, 40);
    background: none;
    top: calc(50% - 12px);
  }
  .carousel-btn.left  { left: -30px; }
  .carousel-btn.right { right: -30px; }

  .carousel-caption.desktop-caption { display: none !important; }
  .carousel-caption.mobile-caption  { display: block !important; }
}



.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -999;
  background-color: black;
  color: white;
  padding: 8px;
  font-size: 1rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  z-index: 1000;
}
