/* Service, review and gallery cards. Loaded after the shared theme styles. */

.service-grid {
  align-items: stretch;
  gap: 24px;
}

.service-grid .service {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white, #fff);
  box-shadow: 0 2px 8px rgb(32 39 36 / 3%);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.service-grid .service .service-image {
  display: block;
  margin: 0;
  overflow: hidden;
  border-radius: 11px 11px 0 0;
}

.service-grid .service .service-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform .3s ease;
}

.service-grid .service .service-image:focus-visible {
  outline-offset: -5px;
}

.service-grid .service .service-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 24px 0;
}

.service-grid .service .service-icon {
  width: 28px;
  height: 28px;
  margin-top: 1px;
  flex: 0 0 28px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-grid .service h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.service-grid .service > h3 {
  padding: 24px 24px 0;
}

.service-grid .service .service-heading h3 {
  flex: 1;
  min-width: 0;
}

.service-grid .service h3 a {
  gap: 12px;
  align-items: flex-start;
}

.service-grid .service h3 a > span {
  line-height: 1.15;
}

.service-grid .service > p {
  margin: 14px 24px 20px;
  max-width: none;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.service-grid .service > .text-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  min-height: 44px;
  margin: auto 24px 24px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.service-grid .service:focus-within {
  border-color: var(--yellow);
  box-shadow: 0 4px 16px rgb(32 39 36 / 7%);
}

.reviews-grid {
  align-items: stretch;
  gap: 24px;
}

.customer-reviews .customer-review {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white, #fff);
  box-shadow: 0 3px 12px rgb(32 39 36 / 4%);
}

.customer-reviews .customer-review .review-rating {
  flex-wrap: wrap;
  gap: 8px 10px;
  font-size: 12px;
  line-height: 1.5;
}

.customer-reviews .customer-review blockquote,
.page-content .customer-reviews .customer-review blockquote {
  flex: 1;
  min-height: 0;
  margin: 18px 0 22px;
  padding: 0;
  border: 0;
  background: none;
}

.customer-reviews .customer-review blockquote > p,
.page-content .customer-reviews .customer-review blockquote > p {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.customer-reviews .customer-review .review-author {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.customer-reviews .customer-review .review-author > strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.customer-reviews .customer-review .review-author > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.customer-reviews .customer-review .review-author > a:hover {
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

.project-gallery .project-gallery-item {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white, #fff);
  box-shadow: 0 2px 8px rgb(32 39 36 / 3%);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.project-gallery .project-gallery-item .gallery-trigger {
  overflow: hidden;
  border-radius: 7px;
}

.project-gallery .project-gallery-item .gallery-trigger > img {
  border-radius: 7px;
}

.project-gallery .project-gallery-item .gallery-trigger:focus-visible {
  outline-offset: -5px;
}

.project-gallery .project-gallery-item figcaption,
.page-content .project-gallery .project-gallery-item figcaption {
  margin: 0;
  padding: 16px 10px 12px;
  color: var(--ink);
  line-height: 1.5;
}

.project-gallery .project-gallery-item figcaption > strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.project-gallery .project-gallery-item figcaption > span,
.work-section .project-gallery .project-gallery-item figcaption > span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (hover: hover) and (pointer: fine) {
  .service-grid .service:hover {
    border-color: var(--yellow);
    box-shadow: 0 12px 24px rgb(32 39 36 / 9%);
    transform: translateY(-3px);
  }

  .service-grid .service:hover .service-image img {
    transform: scale(1.025);
  }

  .project-gallery .project-gallery-item:hover {
    border-color: var(--yellow);
    box-shadow: 0 5px 16px rgb(32 39 36 / 6%);
  }
}

@media (max-width: 980px) {
  .service-grid,
  .reviews-grid {
    gap: 20px;
  }

  .service-grid .service .service-heading,
  .service-grid .service > h3 {
    padding: 20px 20px 0;
  }

  .service-grid .service h3 {
    font-size: 20px;
  }

  .service-grid .service > p {
    margin: 14px 20px 18px;
    font-size: 15px;
  }

  .service-grid .service > .text-link {
    margin: auto 20px 20px;
  }

  .customer-reviews .customer-review {
    padding: 20px;
  }
}

@media (max-width: 690px) {
  .service-grid,
  .reviews-grid {
    gap: 24px;
  }

  .service-grid .service .service-image img {
    height: 220px;
  }

  .service-grid .service h3 {
    font-size: 22px;
  }

  .service-grid .service > p {
    font-size: 16px;
  }

  .customer-reviews .customer-review blockquote,
  .page-content .customer-reviews .customer-review blockquote {
    margin: 16px 0 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-grid .service,
  .service-grid .service .service-image img,
  .project-gallery .project-gallery-item,
  .project-gallery .project-gallery-item .gallery-trigger > img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .service-grid .service .text-link > span,
  .customer-reviews .customer-review .review-author > a > span {
    transition: none !important;
    transform: none !important;
  }
}

