/* =========================
   OUR SERVICES SECTION
========================= */

.featured-services {
  padding: 100px 0;
  background: var(--pure-white);
  text-align: center;
}

/* Section Title */
.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-title span:first-child {
  color: var(--electric-teal);
}

.section-title span:last-child {
  color: var(--deep-slate-blue);
}

.section-subtitle {
  color: var(--secondary-text);
  font-size: 1rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Filter Buttons */
.services-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-line);
  padding-bottom: 1.5rem;
}

.filter-pill {
  border: none;
  background: transparent;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--secondary-text);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.filter-pill:hover {
  background-color: var(--ice-white);
  color: var(--deep-slate-blue);
}

.filter-pill.active {
  background-color: var(--electric-teal);
  color: var(--pure-white);
}

/* =========================
   SERVICES GRID
   Fixed 4 columns. Cards never stretch when fewer are shown.
========================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;   /* rows don't stretch to match tallest card */
}

/* =========================
   SERVICE CARD
========================= */
.service-card {
  position: relative;
  background: var(--ice-white);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem 1.25rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--electric-teal);
}

/* Badge — top right */
.service-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--electric-teal);
  background: var(--teal-highlight, #CCFBF1);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

/* Icon circle — small and contained */
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pure-white);
  border: 1.5px solid var(--electric-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
  color: var(--electric-teal);
}

.service-icon svg {
  width: 20px;
  height: 20px;
}

.service-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-slate-blue);
  margin: 0 0 0.5rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--secondary-text);
  line-height: 1.55;
  margin: 0 0 1rem;
  flex-grow: 1;
}

.service-price {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--deep-slate-blue);
  margin-bottom: 0.875rem;
}

/* CTA */
.service-cta {
  display: block;
  text-align: center;
  border: 1.5px solid var(--electric-teal);
  color: var(--electric-teal);
  background: transparent;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.service-cta:hover {
  background: var(--electric-teal);
  color: var(--pure-white);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .section-subtitle {
    white-space: normal;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   HOMEPAGE FEATURED SERVICES — MOBILE POLISH
   Keep desktop/tablet layout unchanged. On phones the cards
   become compact, readable and touch-friendly.
========================================================= */
@media (max-width: 600px) {
  .featured-services {
    padding: 48px 0;
  }

  .featured-services .section-title {
    font-size: clamp(1.75rem, 8vw, 2.15rem);
    line-height: 1.08;
    margin-bottom: 0.75rem;
  }

  .featured-services .section-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.75rem;
    padding: 0 0.25rem;
  }

  .featured-services .services-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    max-width: 390px;
    margin-left: auto;
    margin-right: auto;
  }

  .featured-services .service-card {
    min-width: 0;
    width: 100%;
    padding: 1rem 1rem 0.95rem;
    border-radius: 14px;
    text-align: center;
    align-items: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  }

  /* The homepage mobile card intentionally hides the marketing description. */
  .featured-services .service-card > p {
    display: none;
  }

  .featured-services .service-badge {
    top: 0.7rem;
    right: 0.7rem;
    font-size: 0.58rem;
    padding: 0.22rem 0.48rem;
  }

  .featured-services .service-icon {
    width: 38px;
    height: 38px;
    margin: 0 auto 0.65rem;
  }

  .featured-services .service-icon svg {
    width: 17px;
    height: 17px;
  }

  .featured-services .service-card h4 {
    width: 100%;
    font-size: 1rem;
    line-height: 1.3;
    margin: 0 0 0.45rem;
  }

  .featured-services .service-price {
    font-size: 0.82rem;
    margin-bottom: 0.65rem;
  }

  .featured-services .service-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: auto;
    min-height: 40px;
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
    line-height: 1;
    border-radius: 9px;
    white-space: nowrap;
  }

  .featured-services > .container > div[style*="text-align:center"] {
    padding-top: 1.1rem !important;
    padding-bottom: 1.25rem !important;
  }
}

@media (max-width: 380px) {
  .featured-services .services-grid {
    max-width: 100%;
  }

  .featured-services .service-card {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}
