/*
 * Services Page Styles - Micron Wind Solutions
 * Following Cursor Rules: Mobile-first, relative units, semantic structure
 * Based on Figma design with exact colors and spacing
 */

/* Services Hero Section */
.services-hero {
  position: relative;
  min-height: 56.25rem; /* 900px at base font-size */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.services-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.services-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(32, 76, 114, 0.17);
  z-index: 2;
}

.services-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding-top: 8.125rem; /* 130px */
  padding-bottom: 2rem;
}

.services-hero-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 3.5rem; /* 56px mobile */
  line-height: 1.1;
  color: var(--color-primary);
  letter-spacing: -0.28125rem; /* -4.5px */
  margin: 0;
}

/* Services Vertical Slider */
.services-vertical-slider {
  background-color: var(--white);
  padding: 6.25rem 0; /* 100px */
  overflow: hidden;
}

.services-slider-container {
  position: relative;
  max-width: 90rem; /* 1440px */
  margin: 0 auto;
  padding: 0 6.25rem; /* 100px horizontal padding */
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: 
    "progress slider navigation";
  gap: 2.8125rem; /* 45px */
  align-items: flex-start;
  min-height: 39.875rem; /* 637px */
}

/* Progress Bar */
.services-progress-container {
  grid-area: progress;
  position: relative;
  width: 0.625rem; /* 10px */
  min-height: 39.875rem; /* 637px */
}

.services-progress-bar {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: rgba(36, 81, 109, 0.2);
  border-radius: 0.3125rem;
}

.progress-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25%; /* 1/4 for 4 services */
  background-color: var(--color-primary);
  border-radius: 0.3125rem;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: top;
}

/* Services Slider Wrapper */
.services-slider-wrapper {
  grid-area: slider;
  position: relative;
  overflow: hidden;
  min-height: 39.875rem; /* 637px */
}

.services-slides-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Individual Service Slides */
.service-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(2rem);
}

.service-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.service-slide-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: 
    "header content image";
  gap: 2.8125rem; /* 45px */
  align-items: flex-start;
  min-height: 39.875rem; /* 637px */
}

.service-slide-header {
  grid-area: header;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.875rem; /* 30px */
  min-width: 17.1875rem; /* 275px */
}

.service-detail-icon {
  width: 2.67rem; /* 42.75px */
  height: 2.67rem;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.service-slide.active .service-detail-icon {
  opacity: 1;
}

.service-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-detail-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.5625rem; /* 25px */
  line-height: 1.15;
  color: var(--color-primary);
  letter-spacing: -0.042rem; /* -0.675px */
  margin: 0;
  white-space: nowrap;
}

.service-slide-content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  gap: 1.875rem; /* 30px */
  max-width: 26.25rem; /* 420px */
}

.service-subsection {
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-slide.active .service-subsection {
  opacity: 1;
  transform: translateY(0);
}

.service-slide.active .service-subsection:nth-child(1) {
  transition-delay: 0.1s;
}

.service-slide.active .service-subsection:nth-child(2) {
  transition-delay: 0.2s;
}

.service-slide.active .service-subsection:nth-child(3) {
  transition-delay: 0.3s;
}

.service-slide.active .service-subsection:nth-child(4) {
  transition-delay: 0.4s;
}

.service-subsection-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem; /* 14px */
  line-height: 1.45;
  color: var(--color-primary);
  letter-spacing: -0.00875rem; /* -0.14px */
  margin: 0 0 0.5rem 0;
}

.service-subsection-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875rem; /* 14px */
  line-height: 1.45;
  color: var(--color-primary);
  letter-spacing: -0.00875rem; /* -0.14px */
  margin: 0;
}

.service-slide-image {
  grid-area: image;
  width: 27.5625rem; /* 441px */
  height: 55.875rem; /* 894px */
  position: relative;
  overflow: hidden;
  opacity: 0.8;
  transition: opacity 0.8s ease;
}

.service-slide.active .service-slide-image {
  opacity: 1;
}

.turbine-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s ease;
}

.service-slide.active .turbine-image {
  transform: scale(1.02);
}

/* Navigation Dots */
.services-navigation {
  grid-area: navigation;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 39.875rem; /* 637px */
}

.nav-dots-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.nav-dot {
  width: 0.75rem; /* 12px */
  height: 0.75rem;
  border-radius: 50%;
  border: none;
  background-color: rgba(36, 81, 109, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.nav-dot:hover {
  background-color: rgba(36, 81, 109, 0.6);
  transform: scale(1.2);
}

.nav-dot.active {
  background-color: var(--color-primary);
  transform: scale(1.3);
}

.nav-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.nav-dot.active::after {
  border-color: rgba(36, 81, 109, 0.2);
}

/* Team Section */
.services-team-section {
  position: relative;
  min-height: 25rem; /* 400px */
  overflow: hidden;
}

.services-team-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.services-team-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.services-team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(36, 81, 109, 0.3);
  z-index: 2;
}

/* Call to Action Section */
.services-cta-section {
  position: relative;
  min-height: 56.25rem; /* 900px */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.services-cta-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.services-cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.services-cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  z-index: 2;
}

.services-cta-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 56.25rem;
  padding: 2rem;
  text-align: center;
  max-width: 50.8125rem; /* 813px */
  margin: 0 auto;
}

.services-cta-text {
  margin-bottom: 3.125rem; /* 50px */
}

.services-cta-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 3.9375rem; /* 63px */
  line-height: 1.07;
  color: var(--color-tertiary);
  letter-spacing: -0.196875rem; /* -3.15px */
  margin: 0;
}

.services-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: #74ECFF;
  transition: all 0.3s ease;
}

.cta-link:hover {
  transform: translateX(0.25rem);
}

.cta-link-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.875rem; /* 30px */
  line-height: 0.89;
  letter-spacing: -0.034375rem; /* -0.55px */
  white-space: nowrap;
}

.cta-link-arrow {
  width: 1.625rem; /* 26px */
  height: 1.625rem;
  background-color: #74ECFF;
  border-radius: 1.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-arrow-icon {
  width: 0.90625rem; /* 14.5px */
  height: 0.623125rem; /* 9.97px */
  object-fit: contain;
}

/* Responsive Design - Mobile First */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 36rem) {
  .services-hero-title {
    font-size: 4rem; /* 64px */
  }
  
  .services-cta-title {
    font-size: 4.5rem; /* 72px */
  }
  
  .service-detail-grid {
    gap: 3.75rem; /* 60px */
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 48rem) {
  .services-hero-title {
    font-size: 5rem; /* 80px */
  }
  
  .services-cta-title {
    font-size: 5.25rem; /* 84px */
  }
  
  .services-main-content {
    padding: 8rem 0; /* 128px */
  }
  
  .service-detail-header {
    padding-right: 3rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 62rem) {
  .services-hero-title {
    font-size: 6.125rem; /* 98px */
    letter-spacing: -0.28125rem; /* Keep original spacing */
  }
  
  .services-cta-title {
    font-size: 3.9375rem; /* Back to 63px as per Figma */
  }
  
  .services-main-content {
    padding: 6.25rem 0; /* 100px as in Figma */
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 75rem) {
  .container {
     /* 70px */
  }
  
  .service-detail-grid {
    gap: 2.8125rem; /* 45px as per Figma */
  }
  
  .service-detail-header {
    padding-right: 2rem; /* Reset to original */
  }
}

/* Services Slider Responsive Design */
@media (max-width: 62rem) {
  .services-slider-container {
    padding: 0 2rem;
    grid-template-columns: auto 1fr;
    grid-template-areas: 
      "progress slider"
      "navigation navigation";
    gap: 2rem 2.5rem;
  }
  
  .services-progress-container {
    min-height: 30rem; /* Reduce height on smaller screens */
  }
  
  .services-slider-wrapper {
    min-height: 30rem;
  }
  
  .service-slide-grid {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "header"
      "content"
      "image";
    gap: 2rem;
  }
  
  .service-slide-header {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    min-width: auto;
  }
  
  .service-detail-title {
    white-space: normal;
    font-size: 1.25rem; /* 20px */
  }
  
  .service-slide-content {
    max-width: 100%;
  }
  
  .service-slide-image {
    width: 100%;
    height: 25rem; /* 400px */
    justify-self: center;
  }
  
  .services-navigation {
    min-height: auto;
    padding: 1rem 0;
  }
  
  .nav-dots-container {
    flex-direction: row;
    gap: 1.5rem;
  }
}

/* Mobile-specific adjustments */
@media (max-width: 47.9375rem) {
  .services-hero {
    min-height: 50vh;
    text-align: center;
  }
  
  .services-hero-content {
    padding-top: 5rem;
  }
  
  .services-hero-title {
    font-size: 2.5rem; /* 40px */
    line-height: 1.2;
    letter-spacing: -0.125rem;
  }
  
  .services-vertical-slider {
    padding: 3rem 0;
  }
  
  .services-slider-container {
    padding: 0 1rem;
    grid-template-columns: 1fr;
    grid-template-areas: 
      "slider"
      "navigation";
    gap: 1.5rem;
  }
  
  .services-progress-container {
    display: none; /* Hide progress bar on mobile */
  }
  
  .services-slider-wrapper {
    min-height: auto;
  }
  
  .service-slide-grid {
    gap: 1.5rem;
    min-height: auto;
  }
  
  .service-slide-header {
    gap: 0.75rem;
  }
  
  .service-detail-icon {
    width: 2rem;
    height: 2rem;
  }
  
  .service-detail-title {
    font-size: 1rem; /* 16px */
    white-space: normal;
  }
  
  .service-slide-content {
    gap: 1rem;
  }
  
  .service-subsection {
    margin-bottom: 1rem;
  }
  
  .service-slide-image {
    height: 20rem; /* 320px */
  }
  
  .services-navigation {
    padding: 0.5rem 0;
  }
  
  .nav-dot {
    width: 0.625rem; /* 10px */
    height: 0.625rem;
  }
  
  .services-team-section {
    min-height: 20rem;
  }
  
  .services-cta-section {
    min-height: 40rem;
  }
  
  .services-cta-title {
    font-size: 2rem; /* 32px */
    line-height: 1.25;
    letter-spacing: -0.08rem;
  }
  
  .cta-link-text {
    font-size: 1.25rem; /* 20px */
  }
  
  .cta-link-arrow {
    width: 1.25rem; /* 20px */
    height: 1.25rem;
  }
}

/* Auto-play indicator animation */
@keyframes progressFill {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
