/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body & Font */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-image: url('img/background.jpg');
  background-size: cover;
  color: white;
}

/* Header */
header {
  background-color: #0b2b7b;
  font-size: larger;
  color: white;
  padding: 0.2em;
  position: relative;
  border: 2px solid black;
}

header .container {
  width: 95%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.about-image {
  max-width: 200px;
  height: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

nav ul li {
  margin-right: 25px;
}

nav ul li a {
  background-color: #040716;
  color: white;
  text-decoration: none;
  font-weight: bolder;
  border: 3px solid white;
  border-radius: 25%;
  padding: 0.3em;
  transition: transform 0.3s ease;
  display: block;
}

nav ul li a:hover {
  color: #849cbb;
  transform: scale(1.33);
  border: 3px solid rgb(0, 3, 21);
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

h1 {
  font-size: 3rem;
  margin-bottom: 0.6rem;
  text-align: center;
}

/* Hero Section */
.hero {
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero1 {
  color: white;
  padding: 4em 0;
  text-align: center;
  width: 100%;
  margin: 0 auto;
}

.cta-button,
.tally-submit-button button {
  background-color: #040716;
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  border-style: solid;
  border: 3px solid white;
}

.cta-button:hover,
.tally-submit-button button:hover {
  background-color: #849cbb;
}

/* ---- Hide the "Powered by Tally" badge ---- */
.tally-powered,
.tally-powered * {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* contact */
.lists-wrapper {
  display: flex;
  gap: 3rem; /* space between the two lists */
  flex-wrap: wrap; /* stacks on small screens */
}

.list-block {
  flex: 1; /* take equal space */
  min-width: 250px; /* prevents shrinking too small */
}

.list-block h2 {
  margin-bottom: 1rem;
  color: #fff; /* match your theme */
}

.list-block ul {
  list-style: none; /* removes bullets */
  padding-left: 0; /* remove default left padding */
}

.list-block ul li {
  margin-bottom: 0.5rem;
}

#truck-easter-egg {
  position: fixed;
  bottom: 20px;
  left: -100px; /* start off-screen */
  width: 150px;
  transition: transform 5s linear;
  z-index: 9999;
  display: none; /* hidden by default */
}

/* Carousel Container */
.carousel-container,
.review-carousel {
  position: relative;
  max-width: 1000px;
  margin: 2rem auto;
  height: 600px;
  overflow: hidden; /* keep arrows and captions inside */
  border-radius: 10px;
  text-align: center;
  background: #000;
  color: white;
}

/* Slides */
.carousel-slide,
.review-slide {
  position: absolute; /* absolute so captions overlay correctly */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center; /* vertically center images */
}

.carousel-slide.active,
.review-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Slide Images */
.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* keeps entire image visible */
  display: block;
}

/* Caption/message overlay */
.carousel-slide .message {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.3rem;
  font-style: italic;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 12px;
  border-radius: 5px;
  color: #fff;
  white-space: nowrap;
  z-index: 10;
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #000;
  padding: 10px;
  cursor: pointer;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transition: 0.3s;
}

.carousel-arrow.left {
  left: 10px;
}

.carousel-arrow.right {
  right: 10px;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Dots */
.carousel-dots {
  text-align: center;
  margin-top: 10px;
  position: relative;
  z-index: 10;
}

.carousel-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-dot.active {
  background-color: #717171;
}

/* Footer */
footer {
  color: white;
  padding: 1rem 0;
  text-align: center;
}

/* ===== Responsive Breakpoints ===== */

/* Tablets */
@media (max-width: 900px) {
  .hero h2 {
    font-size: 1.7rem;
  }
  .hero h3 {
    font-size: 1.3rem;
  }
  .carousel-container,
  .review-carousel {
    height: 250px;
  }
  .carousel-slide img {
    max-height: 150px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  nav ul {
    flex-direction: column;
    width: 100%;
  }
  nav ul li {
    margin: 5px 0;
  }
  .hero h2 {
    font-size: 1.5rem;
  }
  .hero h3 {
    font-size: 1.1rem;
  }
  .carousel-container,
  .review-carousel {
    height: 200px;
  }
  .carousel-slide img {
    max-height: 120px;
  }
}
