/* -------------------------------------
   SERVICES PAGE SPECIFIC STYLES
   (Inherits variables from main style.css and subpage structure)
-------------------------------------- */

/* Structural Layout Matches Other Subpages */
body.subpage {
  background-color: var(--darker);
  background-image: radial-gradient(circle at top right, rgba(255, 0, 51, 0.05) 0%, transparent 40%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.01) 0%, transparent 40%);
}

.page-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 30%;
  /* Shifted slightly to see the truck better */
  z-index: -2;
  filter: grayscale(40%) brightness(0.6);
}

.page-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 0, 2, 0.5) 0%, rgba(10, 0, 2, 0.95) 100%);
  z-index: -1;
}

.services-content {
  padding: 80px 0 100px 0;
  position: relative;
  z-index: 10;
}

/* -------------------------------------
   SERVICE BLOCKS (Alternating design)
-------------------------------------- */
.service-block {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
  padding: 0;
  /* Remove padding to let image bleed to edge */
  overflow: hidden;
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-block.reverse {
  flex-direction: row-reverse;
}

.glass-card {
  background: rgba(15, 0, 3, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 0, 51, 0.15);
  border-radius: 24px;
  box-shadow: inset 0 0 30px rgba(255, 0, 51, 0.05), 0 15px 40px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(255, 0, 51, 0.4);
  box-shadow: inset 0 0 40px rgba(255, 0, 51, 0.1), 0 20px 50px rgba(255, 0, 51, 0.15);
  transform: translateY(-5px);
}

/* Image Container */
.service-image-container {
  flex: 1;
  position: relative;
  min-height: 400px;
  height: 100%;
  overflow: hidden;
}

.service-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.6s ease;
  filter: grayscale(20%) contrast(1.1);
}

.service-block:hover .service-image-container img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(10, 0, 2, 0.8) 0%, transparent 100%);
  z-index: 1;
}

.service-block.reverse .image-overlay {
  background: linear-gradient(to left, rgba(10, 0, 2, 0.8) 0%, transparent 100%);
}

.block-icon {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 2;
  width: 80px;
  height: 80px;
  background: rgba(255, 0, 51, 0.9);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  box-shadow: 0 10px 30px rgba(255, 0, 51, 0.4);
  backdrop-filter: blur(10px);
}

.service-block.reverse .block-icon {
  left: auto;
  right: 30px;
}

/* Text Container */
.service-text-container {
  flex: 1.2;
  padding: 60px 50px;
}

.service-text-container .section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
}


/* Margin utilities */
.mt-5 {
  margin-top: 3rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}


/* Responsive Overrides */
@media (max-width: 992px) {

  .service-block,
  .service-block.reverse {
    flex-direction: column;
    gap: 0;
  }

  .service-image-container {
    width: 100%;
    min-height: 300px;
  }

  .image-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 0, 2, 0.9) 100%) !important;
  }

  .block-icon {
    bottom: -40px;
    left: 40px !important;
    right: auto !important;
  }

  .service-text-container {
    padding: 60px 40px 40px 40px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .service-text-container {
    padding: 60px 25px 30px 25px;
  }

  .block-icon {
    left: 20px !important;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    bottom: -30px;
  }
}