/* =============================================================================
   6-services.css — Services section (#services): intro, cards, client app link
   Grid and columns are in layout.css; client app pill size is .button--section in 3-button.css.
   ============================================================================= */

/* ---------- Default — section shell ---------- */

/* Dark green band behind the curved panel */
.services {
  background-color: var(--color-primary-dark);
}

/* Curved green panel that holds the content */
.services__bg {
  background-color: var(--color-primary);
}

/* ---------- Default — intro column ---------- */

/* Intro text and each card — centred white copy */
.services__data,
.services__card {
  text-align: center;
  color: var(--color-white);
}

/* h2 “Services” on the green panel */
.services__data .section__title {
  color: var(--color-white);
}

/* Paragraph under the section title */
.services__description {
  margin: 0 0 1.5rem;
  color: hsla(0, 0%, 100%, 0.9);
}

/* “Client app” link — dark green pill (colours only; size in 3-button.css) */
.services__scroll {
  border-radius: 4rem;
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  text-decoration: none;
  box-shadow: 0 6px 20px hsla(120, 18%, 8%, 0.3);
  transition: box-shadow 0.3s, transform 0.3s;
}

.services__scroll i {
  transition: transform 0.3s;
}

/* ---------- Default — service cards ---------- */

/* Gap between intro block and the card grid (columns in layout.css) */
.services__content {
  gap: 2.5rem 2rem;
}

.services__card {
  border: none;
  padding: 0;
}

/* Remix icon above each service name */
.services__icon {
  font-size: 2.25rem;
  color: var(--color-accent-warm);
  margin-bottom: 0.75rem;
}

/* Card title — Lawn & Garden Care, Landscaping, Once-Off Tidy */
.services__name {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: var(--weight-regular);
  line-height: 1.2;
}

/* One-line blurb under the service name */
.services__text {
  margin: 0;
  font-size: var(--text-small);
  color: hsla(0, 0%, 100%, 0.85);
}

/* ---------- Default — footnote ---------- */

/* Small print below the card grid */
.services__note {
  margin: 0;
  text-align: center;
  font-size: var(--text-small);
  color: hsla(0, 0%, 100%, 0.85);
}

.services__note a {
  color: var(--color-accent-warm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

/* ---------- States — hover ---------- */

.services__scroll:hover {
  box-shadow: 0 8px 32px hsla(120, 18%, 8%, 0.45);
  transform: translateY(0.35rem);
}

.services__note a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* ---------- Responsive — max-width 1023px (phone / tablet stack) ---------- */

@media (max-width: 1023px) {
  .services__bg.section {
    padding-block: 3rem 2.75rem;
  }

  .services__container {
    row-gap: 1.75rem;
  }

  .services .section__title {
    margin-bottom: 1rem;
  }

  .services__description {
    margin-bottom: 1rem;
  }

  .services__content {
    gap: 1.25rem;
  }

  .services__icon {
    font-size: 1.85rem;
    margin-bottom: 0.5rem;
  }

  .services__name {
    margin-bottom: 0.25rem;
    font-size: var(--text-h3);
  }
}

/* ---------- Responsive — 400px–1023px (two cards per row) ---------- */

@media (min-width: 400px) and (max-width: 1023px) {
  .services__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.75rem;
  }

  /* Once-Off Tidy — centred on row two */
  .services__card:last-child {
    grid-column: 1 / -1;
    max-width: 16rem;
    margin-inline: auto;
  }
}

/* ---------- Responsive — 768px up ---------- */

@media (min-width: 768px) {
  .services__scroll {
    box-shadow: 0 8px 24px hsla(120, 18%, 8%, 0.35);
  }
}

/* ---------- Responsive — 1024px up ---------- */

@media (min-width: 1024px) {
  .services__content {
    gap: 2rem 1.5rem;
  }
}

