/* Homepage services showcase. All card styles are scoped to What We Do. */
#what-we-do {
  padding: 72px 0 80px;
  background: linear-gradient(145deg, #f4f7fb 0%, #edf4fb 100%);
  border-top: 1px solid #e6edf5;
}

#what-we-do .section-header {
  max-width: 760px;
  margin-bottom: 42px;
}

#what-we-do .section-header p {
  max-width: 720px;
}

#what-we-do .service-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#what-we-do .service-proof-links {
  margin-top: 18px;
}

#what-we-do .service-project-link {
  max-width: 100%;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  gap: 16px;
  box-shadow: 0 6px 16px rgba(0, 112, 210, 0.16);
}

#what-we-do .service-project-link > span:last-child {
  flex-shrink: 0;
}

#what-we-do .service-project-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 112, 210, 0.22);
}

#what-we-do .service-project-link:focus-visible {
  outline: 2px solid var(--accent-dji-blue);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  #what-we-do .service-project-link { transition: none; }
  #what-we-do .service-project-link:hover { transform: none; }
}

#what-we-do .service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 32px;
  border: 1px solid #dfe7f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px -14px rgba(15, 40, 70, 0.14),
    0 2px 5px rgba(15, 40, 70, 0.025);
  transition: transform 240ms ease, border-color 240ms ease,
    box-shadow 240ms ease, background-color 240ms ease;
}

#what-we-do .service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

#what-we-do .service-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border: 1px solid #dce9f7;
  border-radius: 50%;
  background: #f3f8fe;
  color: var(--accent-dji-blue);
  transition: background-color 240ms ease, border-color 240ms ease,
    color 240ms ease;
}

#what-we-do .service-card-icon svg {
  display: block;
  width: 28px;
  height: 28px;
}

#what-we-do .service-card-number {
  color: #90a3b9;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

#what-we-do .service-card h3 {
  min-height: 2.5em;
  margin: 0 0 14px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 1.8vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

#what-we-do .service-card-description {
  min-height: 4.8em;
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
}

#what-we-do .service-card-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid #e7edf4;
  list-style: none;
}

#what-we-do .service-card-points li {
  position: relative;
  margin: 0;
  padding-left: 18px;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.65;
}

#what-we-do .service-card-points li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-dji-blue);
}

#what-we-do .service-card h3,
#what-we-do .service-card-description,
#what-we-do .service-card-number,
#what-we-do .service-card-points li {
  transition: color 240ms ease;
}

#what-we-do .service-card-points {
  transition: border-color 240ms ease;
}

#what-we-do .service-card-points li::before {
  transition: background-color 240ms ease;
}

@media (hover: hover) and (pointer: fine) {
  #what-we-do .service-card:hover {
    transform: translateY(-5px);
    background-color: var(--accent-dji-blue);
    border-color: var(--accent-dji-blue);
    box-shadow: 0 18px 36px -16px rgba(15, 60, 105, 0.2),
      0 4px 10px rgba(15, 40, 70, 0.035);
  }

  #what-we-do .service-card:hover .service-card-icon {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.12);
  }

  #what-we-do .service-card:hover h3,
  #what-we-do .service-card:hover .service-card-description,
  #what-we-do .service-card:hover .service-card-number,
  #what-we-do .service-card:hover .service-card-points li {
    color: #fff;
  }

  #what-we-do .service-card:hover .service-card-points {
    border-color: rgba(255, 255, 255, 0.3);
  }

  #what-we-do .service-card:hover .service-card-points li::before {
    background-color: #fff;
  }
}

@media (max-width: 1100px) {
  #what-we-do .service-showcase { gap: 18px; }
  #what-we-do .service-card { padding: 26px; }
}

@media (max-width: 900px) {
  #what-we-do { padding: 56px 0 60px; }
  #what-we-do .service-showcase {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-inline: auto;
    gap: 20px;
    grid-auto-rows: 1fr;
  }
  #what-we-do .service-card { padding: 30px; }
  #what-we-do .service-card-top { margin-bottom: 22px; }
  #what-we-do .service-card h3 { min-height: 0; font-size: 1.5rem; }
  #what-we-do .service-card-description { min-height: 0; margin-bottom: 22px; }
  #what-we-do .service-card-points { padding-top: 22px; }
}

@media (max-width: 600px) {
  #what-we-do { padding: 40px 0 44px; }
  #what-we-do .section-header { margin-bottom: 28px; }
  #what-we-do .section-header p { font-size: 0.95rem; }
  #what-we-do .service-card { padding: 26px 24px; border-radius: 20px; }
  #what-we-do .service-card h3 { font-size: 1.4rem; }
  #what-we-do .service-card-description { font-size: 0.94rem; }
  #what-we-do .service-card-points { gap: 14px; }
  #what-we-do .service-card-points li { font-size: 0.88rem; }
}

/* Keep the heading and all three cards within a typical laptop browser view. */
@media (min-width: 901px) {
  #what-we-do { padding: 44px 0 48px; }
  #what-we-do .section-header { margin-bottom: 26px; }
  #what-we-do .service-card { padding: 24px 28px; }
  #what-we-do .service-card-top { margin-bottom: 14px; }
  #what-we-do .service-card-icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }
  #what-we-do .service-card-icon svg { width: 24px; height: 24px; }
  #what-we-do .service-card h3 { margin-bottom: 10px; }
  #what-we-do .service-card-description { margin-bottom: 16px; }
  #what-we-do .service-card-points { padding-top: 16px; gap: 10px; }
}

@media (min-width: 1200px) {
  #what-we-do .service-card h3 { min-height: 1.25em; }
}

@media (min-width: 901px) and (max-width: 1199px) {
  #what-we-do .service-card-description { min-height: 6.4em; }
}

@media (prefers-reduced-motion: reduce) {
  #what-we-do .service-card,
  #what-we-do .service-card-icon,
  #what-we-do .service-card h3,
  #what-we-do .service-card-description,
  #what-we-do .service-card-number,
  #what-we-do .service-card-points,
  #what-we-do .service-card-points li,
  #what-we-do .service-card-points li::before { transition: none; }
  #what-we-do .service-card:hover { transform: none; }
}

/* Existing projects spacing is retained verbatim from the previous version. */
#homepage-projects {
  padding: 24px 0 70px;
  border-top: 0;
}

@media (max-width: 600px) {
  #homepage-projects { padding-bottom: 48px; }
}
