/*=========================================================
  ENGINEERING SERVICES PAGE
=========================================================*/

/* Spacer for absolute header */
.page-spacer {
  display: none;
  height: 120px;
  background: var(--white);
}

.service-details {
  padding: 4vw 0 3vw 0;
  background: var(--white);
}

.service-details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4vw;
  align-items: start;
}

.service-details-grid.swap-layout {
  grid-template-columns: 1fr 2fr;
}
.service-details-grid.swap-layout .service-content-left {
  order: 2;
}
.service-details-grid.swap-layout .service-sidebar-right {
  order: 1;
}

/* Left Content Styles */
.service-hero-image {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.service-hero-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Hero Collage Row Layout */
.service-hero-image.hero-collage-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: transparent;
  margin-bottom: 2.5rem;
  border-radius: 0;
  overflow: visible;
}
.service-hero-image.hero-collage-row img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  /* border-radius: var(--radius-sm); */
  margin-bottom: 0;
}

/* .service-hero-image:hover img {
  transform: scale(1.03);
} */

.service-main-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* .service-main-title .highlight {
  background-color: #ffeb3b;
  padding: 0 8px;
  display: inline-block;
} */

.service-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-family: var(--rs-ff-body);
}

.service-text {
  font-size: 1.05rem;
  color: var(--text-color);
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

/* Expertise Section */
.expertise-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-family: var(--rs-ff-body);
  font-weight: 700;
  color: var(--gray-900);
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

.expertise-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.expertise-list {
  margin-bottom: 2rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 1rem;
  column-gap: 1.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.expertise-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--gray-700);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
}

.expertise-grid li i {
  color: var(--primary);
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Right Sidebar Styles */
.service-sidebar-right {
  position: relative;
  /* top: 120px;  */
}

.sidebar-box {
  background-color: #f7f7f7;
  padding: 2rem 2.5rem 2rem;
  border-radius: var(--radius-md);
}

.sidebar-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-menu li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--white);
  padding: 1.1rem 1.2rem;
  /* border-radius: var(--radius-sm); */
  color: var(--gray-600);
  font-size: 1.05rem;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid transparent;
}

.sidebar-menu li a i {
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: var(--transition);
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
  color: var(--primary);
  border-color: rgba(237, 89, 0, 0.2);
  box-shadow: 0 4px 15px rgba(237, 89, 0, 0.05);
}

/* Sidebar CTA Styles */
.sidebar-cta {
  margin-top: 2rem;
  background-color: #fcf9f6;
  background-image: url("../Images/hero/cta.webp");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;

  overflow: hidden;
  position: relative;
  height: 580px;
  display: flex;
  flex-direction: column;
}

/* Subtle gradient at the top if the image needs it, but the image might just be a drawing */
/* .sidebar-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, rgba(253, 248, 245, 1) 0%, rgba(253, 248, 245, 0) 100%);
  z-index: 1;
} */

.sidebar-cta .cta-content {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem;
}

.sidebar-cta .cta-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 2.5rem;
  position: relative;
  padding-left: 1.2rem;
  z-index: 2;
}

/* Orange vertical line to the left of the title */
.sidebar-cta .cta-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--primary);
}

/* Subtle circle behind the text */
.sidebar-cta .cta-title::after {
  content: "";
  position: absolute;
  left: 2rem;
  top: 0rem;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  z-index: -1;
}

.sidebar-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #222;
  color: #fff;
  padding: 1.1rem 1.8rem;
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition);
  text-decoration: none;
  font-family: var(--rs-ff-body);
}

.sidebar-cta .cta-btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.sidebar-cta .cta-btn:hover {
  background-color: var(--primary);
  color: #fff;
}

.sidebar-cta .cta-btn:hover i {
  transform: translateX(5px);
}

.sidebar-menu li a:hover i,
.sidebar-menu li a.active i {
  color: var(--primary);
}

/* Project Information Sidebar Box */
.project-info-box,
.social-links-box {
  background-color: #f7f7f7;
  padding: 30px;
  border-radius: var(--radius-sm, 8px);
  margin-bottom: 30px;
}

.project-info-box .sidebar-title,
.social-links-box .sidebar-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
  font-family: "Space Grotesk", sans-serif;
}

.sidebar-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 25px;
  line-height: 1.6;
}

.project-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-info-list li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid #eaeaea;
}

.project-info-list li:first-child {
  border-top: 1px solid #eaeaea;
}

.project-info-list .icon-wrap {
  width: 55px;
  height: 55px;
  background-color: #e5e6e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-info-list .icon-wrap i {
  font-size: 1.2rem;
  color: var(--gray-800);
}

.project-info-list .info-content {
  display: flex;
  flex-direction: column;
}

.project-info-list .info-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.project-info-list .info-value {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--gray-900);
  font-family: "Space Grotesk", sans-serif;
}

/* Social Links Box */
.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 45px;
  height: 45px;
  background-color: #e5e6e8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-800);
  font-size: 1.1rem;
  transition: var(--transition, all 0.3s ease);
  border-radius: 4px;
}

.social-icons a:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Solutions Slider Section */
.solutions-slider-section {
  padding: 0vw 0;
  background: var(--white);
  overflow: hidden;
}
.solutions-slider-container {
  display: flex;
  align-items: stretch;
  gap: 0vw;
}
.solutions-slider-left {
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.solutions-slider-left .section-subtitle {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}
.solutions-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.solutions-desc {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.start-project-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-700);
  text-decoration: none;
  border-bottom: 2px solid var(--gray-400);
  padding-bottom: 5px;
  display: inline-block;
  width: max-content;
  margin-bottom: 3rem;
  text-transform: uppercase;
}
.solutions-slider-controls {
  display: flex;
  gap: 15px;
}
.slider-btn {
  width: 50px;
  height: 50px;
  /* border-radius: 50%; */
  border: none;
  background: #f5f5f5;
  color: var(--gray-700);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.slider-btn:hover,
.slider-btn.active {
  background: var(--primary);
  color: var(--white);
}

.solutions-slider-right {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.solutions-track-container {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.solutions-track-container::-webkit-scrollbar {
  display: none;
}
.solutions-track {
  display: flex;
  gap: 30px;
  padding-bottom: 20px;
}
.solution-card {
  flex: 0 0 calc(33.333% - 20px);
  min-width: 280px;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}
.solution-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.solution-content {
  padding: 30px 25px;
  position: relative;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.solution-content-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 15px;
  line-height: 1.3;
}
.solution-content-text {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}
.solution-number {
  font-size: 5rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.04);
  position: absolute;
  bottom: 50px;
  left: 20px;
  line-height: 1;
  z-index: 1;
}
.view-details-link {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-700);
  text-decoration: none;
  border-top: 1px solid #eaeaea;
  padding-top: 20px;
  position: relative;
  z-index: 2;
}
.view-details-link i {
  width: 35px;
  height: 35px;
  background: #eaeaea;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.view-details-link:hover i {
  background: var(--primary);
  color: var(--white);
}

/* Responsive */
@media (max-width: 991px) {
  .service-details-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-details-grid.swap-layout {
    grid-template-columns: 1fr;
  }

  .service-hero-image.hero-collage-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .service-hero-image.hero-collage-row img {
    height: auto;
    aspect-ratio: 16/9;
  }

  .service-hero-image img {
    height: 350px;
  }

  .service-sidebar-right {
    position: static;
  }

  .solutions-slider-container {
    flex-direction: column;
    gap: 30px;
  }
  .solutions-slider-left {
    flex: auto;
  }
}

@media (max-width: 576px) {
  .page-spacer {
    height: 80px;
  }

  .service-details {
    padding-top: 50px;
  }

  .service-hero-image img {
    height: 250px;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .project-info-box,
  .social-links-box,
  .sidebar-box {
    padding: 0;
    background-color: transparent;
  }
}
