:root {
  --blue: #0752aa;
  --green: #278d0d;
  --purple: #4d2092;
  --orange: #eb4c00;
}

.service-section {
  width: 100%;
  padding: 6px 25px 17px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1em;
}

.service-card {
  --theme: var(--blue);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 2px solid var(--theme);
  border-radius: 10px;
  background: #fff;
}

.service-card--green { --theme: var(--green); }
.service-card--purple { --theme: var(--purple); }
.service-card--orange { --theme: var(--orange); }

.card-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 13px 10px;
}

.service-card--blue .card-copy { padding-left: 12px; padding-right: 12px; }
.service-card--green .card-copy { padding-left: 15px; padding-right: 15px; }
.service-card--purple .card-copy { padding-left: 14px; padding-right: 14px; }

.card-heading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
/*
.service-card--green .card-heading {
  grid-template-columns: 70px 170px minmax(0, 1fr);
  gap: 6px;
}

.service-card--purple .card-heading {
  grid-template-columns: 74px 182px minmax(0, 1fr);
  gap: 6px;
}
*/
.service-icon {
  width: 46px;
  height: 46px;
  color: var(--theme);
}

.service-grid h3 {
  margin: 0;
  color: var(--theme);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.25;
  letter-spacing: .01em;
  font-weight: 700;
}

.heading-note {
  margin: 0;
  font-size: clamp(12px, 1.2vw, 14px);
  line-height: 1.45;
  font-weight: 700;
  white-space: nowrap;
}

.description {
  margin: 10px 0 0;
  font-size: clamp(10px, 1.25vw, 12px);
  line-height: 1.7;
  font-weight: 500;
  letter-spacing: -0.08em;
}

.description span { color: #ec1616; font-weight: 800; }

.service-photo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    margin-top: auto;
}

.card-action { padding: 18px 20px 20px; }

.card-action a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 7px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--theme) 84%, #000), var(--theme));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12);
  color: #fff;
  text-decoration: none;
  font-size: clamp(14px, 1.7vw, 16px);
  letter-spacing: .07em;
  font-weight: 700;
  transition: filter .2s, transform .2s;
}

.card-action a:hover { filter: brightness(1.12); }
.card-action a:active { transform: translateY(1px); }
.card-action a:focus-visible { outline: 4px solid color-mix(in srgb, var(--theme), white 45%); outline-offset: 3px; }

.card-action b {
  margin-left: 10px;
  font-family: Arial, sans-serif;
  font-size: 36px;
  font-weight: 300;
}

@media (max-width: 768px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .service-section { padding: 14px 12px 24px; }
  .service-grid { grid-template-columns: 1fr;}
  .card-copy, .service-card--green .card-copy, .service-card--purple .card-copy, .service-card--orange .card-copy { min-height: 0; padding: 22px 18px 18px; }
  .card-heading, .service-card--green .card-heading, .service-card--purple .card-heading, .service-card--orange .card-heading {
    grid-template-columns: 66px 1fr;
    gap: 8px 12px;
  }
  .card-heading h3 { font-size: 22px; }
  .service-icon, .gear-icon { width: 64px; height: 68px; grid-row: 1 / span 2; }
  .heading-note { grid-column: 2; font-size: 16px; white-space: normal; }
  .description { margin-top: 18px; font-size: 16px; line-height: 1.7; }
  .service-card--orange .description { font-size: 16px; }
  .desktop-only { display: none; }
  .card-action { padding: 14px; }
  .card-action a { min-height: 54px; font-size: 21px; }
}
