/* Home Services Section - Variant 1 */

.home-services.services-1 {
  padding: 0 40px 80px;
  background: #fff;
}

/* Container */
.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Section Header */
.services-header {
  text-align: center;
  margin-bottom: 60px;
}

/* Eyebrow */
.services-eyebrow {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.eyebrow-accent {
  color: var(--color-accent);
  font-weight: bold;
}

.eyebrow-text {
  color: var(--color-primary);
  font-weight: bold;
}

/* Heading */
.services-heading {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-dark, #2d2e32);
  margin: 0 0 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Description */
.services-description {
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dark, #2d2e32);
}

.services-description p {
  margin: 0 0 16px;
}

.services-description p:last-child {
  margin-bottom: 0;
}

/* Services Grid - Outer Container Box */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 60px;
  position: relative;
  border: 1px solid var(--color-border-light, #e0e0e0);
  border-radius: 50px 50px 0 0; /* More rounded top-left and top-right only */
  overflow: hidden;
  background: #fff;
}

/* Service Card */
.service-card {
  padding: 50px 40px;
  text-align: center;
  position: relative;
  background: #fff;
  transition: all 0.3s ease;
}

/* Vertical partition borders between cards */
.service-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: var(--color-border-light, #e0e0e0);
}

/* Hidden cards (for View More functionality) */
.service-card.hidden {
  display: none;
}

/* Icon */
.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--color-primary);
}

/* Title */
.service-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 20px;
}

/* Description */
.service-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-dark, #2d2e32);
  margin-bottom: 30px;
}

.service-description p {
  margin: 0 0 16px;
}

.service-description p:last-child {
  margin-bottom: 0;
}

/* Link */
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: opacity 0.3s ease;
}

.link-text {
  color: var(--color-primary);
}

.link-arrow {
  color: var(--color-accent);
}

.service-link:hover {
  opacity: 0.7;
}

/* View More Button */
.services-view-more {
  text-align: center;
  margin-top: 60px;
}

.view-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.view-more-icon {
  font-size: 20px;
  font-weight: 700;
}

.view-more-btn:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.view-more-btn:active {
  transform: translateY(0);
}

/* Responsive Styles */

/* Tablet (1024px - 1199px) */
@media (max-width: 1199px) {
  .home-services.services-1 {
    padding: 0 30px 60px;
  }

  .services-header {
    margin-bottom: 50px;
  }

  .services-heading {
    font-size: 36px;
  }

  .services-grid {
    margin-top: 50px;
  }

  .service-card {
    padding: 40px 30px;
  }

  .service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
  }

  .service-title {
    font-size: 22px;
  }

  .services-view-more {
    margin-top: 50px;
  }
}

/* Medium Tablet (768px - 1023px) - 2 Columns */
@media (max-width: 1023px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-radius: 40px 40px 0 0; /* More rounded corners */
  }

  /* Remove right border from every 2nd card */
  .service-card:nth-child(2n)::after {
    display: none;
  }

  /* Add horizontal border after first row */
  .service-card:nth-child(-n+2)::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--color-border-light, #e0e0e0);
  }
}

/* Mobile (below 768px) - 1 Column */
@media (max-width: 767px) {
  .home-services.services-1 {
    padding: 0 20px 50px;
  }

  .services-header {
    margin-bottom: 40px;
  }

  .services-eyebrow {
    font-size: 12px;
  }

  .services-heading {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .services-description {
    font-size: 15px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
    border-radius: 35px 35px 0 0; /* More rounded corners on mobile */
  }

  .service-card {
    padding: 40px 20px;
  }

  /* Remove all vertical borders */
  .service-card::after {
    display: none;
  }

  /* Add horizontal partition borders between cards */
  .service-card:not(:last-child)::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--color-border-light, #e0e0e0);
  }

  .service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }

  .service-title {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .service-description {
    font-size: 14px;
    margin-bottom: 25px;
  }

  .service-link {
    font-size: 14px;
  }

  .services-view-more {
    margin-top: 40px;
  }

  .view-more-btn {
    padding: 14px 28px;
    font-size: 15px;
  }
}

/* Small Mobile (below 480px) */
@media (max-width: 479px) {
  .services-heading {
    font-size: 24px;
  }

  .service-card {
    padding: 35px 15px;
  }

  .service-icon {
    width: 50px;
    height: 50px;
  }

  .service-title {
    font-size: 19px;
  }
}
