/* ===== ABOUT PAGE — Services Two-Card Section ===== */

/* Last section on the page — gets a matching bottom so the gap to the footer follows the same cadence. */
/* Shorter top than bottom on mobile: this section follows The Point S Promise,
   whose bottom padding is trimmed to match in pages/aboutUs/headerArticle/index.css,
   so the gap between the two closes from both sides. The 768px block below
   replaces this outright, so it is mobile only. */
.about-services {
  padding: 28px 20px 40px;
}

.about-services__inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Left-aligned kicker + heading, matching every other section header on the site
   (Most Popular Services, Trusted Brands, The Point S Promise, Member Owned
   Cooperative). This one was the odd centered header out. */
.about-services__header {
  text-align: left;
  margin-bottom: 40px;
}

/* Kicker and h2 typography both come from main.css now (.section-kicker and
   .section-title). This section's own copy of the kicker rule was left behind
   unreferenced when the markup switched over. */

/* Cards grid */
.about-services__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.about-services__card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}

.about-services__card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.about-services__card-img {
  overflow: hidden;
}

.about-services__card-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.about-services__card:hover .about-services__card-img img {
  transform: scale(1.03);
}

.about-services__card-body {
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.about-services__card-body h3 {
  font-family: Inter, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin: 0 0 12px;
  line-height: 1.3;
}

.about-services__card-body p {
  font-family: Inter, sans-serif;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #555;
  margin: 0 0 20px;
  flex: 1;
}

/* Link styling */
.about-services__card-body .link-article {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: Inter, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1d4288;
  text-decoration: none;
  border: none;
  border-bottom: none;
  float: none;
  padding: 0;
  transition: gap 200ms ease, color 200ms ease;
}

.about-services__card-body .link-article:hover {
  gap: 10px;
  color: #3eb049;
}

.about-services__card-body .link-article img {
  width: 14px;
  height: 14px;
  transition: transform 200ms ease;
}

.about-services__card-body .link-article:hover img {
  transform: translateX(2px);
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 768px) {
  .about-services__cards {
    grid-template-columns: 1fr 1fr;
  }

  .about-services__card-img img {
    height: 260px;
  }

  .about-services {
    padding: 56px 40px 56px;
  }
}
