/* =====================================================================
   WAVES LAUNDRY - SERVICES PAGE STYLES
   ===================================================================== */

/* 1. HERO BANNER OVERRIDES */
.service-hero {
  display: flex;
  align-items: center;
  height: 45vh;
  min-height: 320px;
  background:
    linear-gradient(
      to right,
      rgba(15, 23, 42, 0.9) 0%,
      rgba(15, 23, 42, 0.65) 50%,
      rgba(15, 23, 42, 0.3) 100%
    ),
    url("../images/contact/contact_hero_bg.png") no-repeat center center / cover;
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding-top: 140px;
  box-sizing: border-box;
}

.service-hero-content {
  position: relative;
  z-index: 5;
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.services-intro-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  min-height: 55vh;
  padding: 60px 0;
  background-color: var(--bg-light);
}

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.breadcrumb-item {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.breadcrumb-item:hover {
  color: var(--white);
}

.breadcrumb-item.active {
  color: var(--white);
  pointer-events: none;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
}

/* 2. SERVICES INTRO SECTION */
.intro-header {
  margin-bottom: 50px;
}

.services-intro-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--slate-body);
  max-width: 750px;
  margin: 0 auto;
}

.intro-features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.intro-feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-2xl);
  box-shadow:
    0 10px 30px -15px rgba(0, 0, 0, 0.05),
    0 1px 3px 0 rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  border: 1px solid var(--slate-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.intro-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.intro-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -20px rgba(2, 132, 199, 0.15);
  border-color: rgba(2, 132, 199, 0.1);
}

.intro-feature-card:hover::before {
  opacity: 1;
}

.intro-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 24px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.intro-feature-card:hover .intro-card-icon {
  background-color: var(--primary);
  color: var(--white);
  transform: rotate(360deg);
}

.intro-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-dark);
  margin-bottom: 12px;
}

.intro-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate-body);
}

@media (max-width: 991px) {
  .intro-features-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .intro-features-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* 3. SERVICES GRID SECTION (IMAGE BACKGROUND CARDS) */
.services-grid-section {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.services-grid-section .section-title {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    #239adf 10%,
    var(--secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services-grid-section .section-subtitle {
  color: var(--yellow-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 50px;
  position: relative;
  z-index: 10;
}

/* Service Card Styles */
.service-item-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s ease;
  border: 1px solid var(--slate-border);
}

.service-item-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

/* Card Image Wrapper */
.service-card-img-wrapper {
  height: 220px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-item-card:hover .service-card-img {
  transform: scale(1.06);
}

/* Card Content Details */
.service-card-info {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
}

/* Icon Styles */
.service-icon-wrapper {
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.service-icon-wrapper svg {
  width: 56px;
  height: 56px;
  stroke-width: 1.75;
}

.service-item-card:hover .service-icon-wrapper {
  transform: scale(1.08);
}

/* Title & Description */
.service-item-title {
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-item-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--slate-body);
  max-width: 100%;
}

/* 4. INTERACTIVE PRICING SECTION */
.pricing-section {
  background-color: var(--background);
}

/* Tab Filter Navigation */
.pricing-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 30px auto 40px;
  max-width: 800px;
}

.pricing-tab-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  background-color: var(--white);
  color: var(--slate-body);
  border: 1px solid var(--slate-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pricing-tab-btn:hover {
  background-color: var(--slate-border);
  color: var(--slate-dark);
}

.pricing-tab-btn.active {
  background-color: var(--yellow);
  color: var(--white);
  border-color: var(--yellow);
  box-shadow: var(--shadow-primary);
}

/* Pricing Grid & Item Cards */
.pricing-grid-container {
  min-height: 350px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.price-service-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.price-service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(4, 107, 210, 0.1);
}

/* Item Image wrapper */
.price-image-wrapper {
  width: 90px;
  height: 90px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.price-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.price-service-card:hover .price-image-wrapper {
  transform: scale(1.08);
}

/* Price Item Details */
.price-item-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-dark);
  margin-bottom: 20px;
  text-align: center;
}

.price-details-box {
  width: 100%;
  border-top: 1px solid var(--slate-border);
  padding-top: 16px;
  margin-top: auto;
}

.price-rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.price-rate-row:last-child {
  margin-bottom: 0;
}

.price-rate-label {
  color: var(--slate-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-rate-label i {
  font-size: 0.8rem;
  color: var(--primary);
}

.price-rate-value {
  font-weight: 700;
  color: var(--primary);
}

.price-rate-value.not-available {
  color: var(--slate-light);
  font-weight: 400;
  font-style: italic;
}

/* 5. CTA SECTION */
.services-cta-section {
  position: relative;
  background-color: var(--white);
  text-align: center;
  overflow: hidden;
}

.services-cta-box {
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.services-cta-box .section-title {
  margin-bottom: 20px;
}

.services-cta-box .section-desc {
  font-size: 1.05rem;
  margin-bottom: 30px;
  max-width: 600px;
}

/* 6. MEDIA QUERIES FOR LAYOUT RESPONSIVENESS */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Make the 10th item (Sofa Cleaning) span 3 columns and have a horizontal layout */
  .services-grid > .service-item-card:nth-child(10) {
    grid-column: 1 / span 3;
    flex-direction: row-reverse;
    height: 280px;
    align-items: stretch;
  }

  .services-grid > .service-item-card:nth-child(10) .service-card-img-wrapper {
    width: 65%;
    height: 100%;
  }

  .services-grid > .service-item-card:nth-child(10) .service-card-info {
    width: 35%;
    padding: 40px;
    align-items: flex-start;
    text-align: left;
    justify-content: center;
  }

  .services-grid > .service-item-card:nth-child(10) .service-icon-wrapper {
    align-self: flex-start;
  }
}

@media (max-width: 576px) {
  .service-hero-title {
    font-size: 2.5rem;
  }

  .services-grid {
    gap: 40px 20px;
  }

  .pricing-tab-btn {
    padding: 8px 18px;
    font-size: 0.8rem;
  }
}

/* Fallback icon styling when image is missing */
.price-image-fallback {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 2.2rem;
  transition: all 0.4s ease;
}

.price-service-card:hover .price-image-fallback {
  background-color: var(--primary);
  color: var(--white);
}
