/* V5.9.30: image-led cards applied to the current V5.9.29 services section. */

.service-collection .service-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.service-collection .service-image-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--brand-gold-line);
  border-radius: 14px;
  background: var(--brand-dark);
  isolation: isolate;
  transition: border-color .22s ease, box-shadow .22s ease;
}
.service-image-card > a {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 440px;
  padding: 26px;
  text-decoration: none;
  color: var(--brand-cream);
}
.service-image-card .service-card-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.72);
  opacity: .8;
  transition: transform .45s ease, filter .3s ease;
}
.service-image-card > a::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #071c22f0 0%, #071c2270 21%, #071c220c 40%, #071c22bd 63%, #071c22fa 83%);
}
.service-card-heading { display: flex; align-items: flex-start; gap: 14px; }
.service-card-number { color: var(--brand-gold); font-size: 11px; letter-spacing: .1em; padding-top: 8px; }
.service-card-heading h2 {
  color: var(--brand-cream);
  font: 400 clamp(28px, 2.7vw, 38px)/1.12 var(--serif);
  letter-spacing: -.025em;
  margin: 0;
}
.service-card-heading > .service-card-arrow { margin-left: auto; color: var(--brand-gold); width: 22px; height: 22px; flex-shrink: 0; }
.service-card-content { margin-top: auto; padding-top: 150px; max-width: 44ch; }
.service-card-content h3 { color: var(--brand-gold); font: 400 24px/1.18 var(--serif); margin: 0 0 10px; }
.service-card-content p { color: var(--brand-cream); font-size: 13px; line-height: 1.65; margin: 0 0 18px; }
.service-card-cta { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; color: var(--brand-seafoam); }
.service-collection .services-tail { margin-top: 22px; }
.service-image-card:focus-within { border-color: var(--brand-gold); box-shadow: 0 0 22px #d3b88b2e; }
.service-image-card > a:focus-visible { outline: 2px solid var(--brand-gold); outline-offset: -6px; border-radius: 13px; }
.service-image-card > a:active { background: #9ccbc314; }
@media (hover: hover) and (pointer: fine) {
  .service-image-card:hover { border-color: var(--brand-gold); box-shadow: 0 0 24px #d3b88b25; }
  .service-image-card:hover .service-card-image { transform: scale(1.025); filter: saturate(.9); }
}
@media (max-width: 730px) {

  .service-collection .service-collection-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .service-image-card > a { min-height: 360px; padding: 21px; }
  .service-card-heading h2 { font-size: clamp(27px, 7.2vw, 34px); }
  .service-card-content { padding-top: 120px; }
  .service-card-content h3 { font-size: 23px; }
  .service-card-content p { font-size: 13px; margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .service-image-card, .service-image-card .service-card-image { transition: none; }
  .service-image-card:hover .service-card-image { transform: none; }
}
html[data-motion="off"] .service-image-card,
html[data-motion="off"] .service-image-card .service-card-image { transition: none; }
html[data-motion="off"] .service-image-card:hover .service-card-image { transform: none; }

/* Preserve the complete laptop/phone composition in narrow cards. */
@media (max-width: 730px) {
 .service-image-card .service-card-image { top: 62px; bottom: auto; height: auto; aspect-ratio: 3 / 2; object-fit: contain; opacity: .9; }
 .service-image-card > a::before { background: linear-gradient(180deg,#071c2290 0%,#071c2200 28%,#071c2266 51%,#071c22f5 74%); }
}

/* V5.9.33 — carry the mobile title bar onto desktop service cards. */
@media (min-width: 731px) {
 .service-image-card .service-card-heading {
  position: relative;
  z-index: 1;
  align-items: center;
  min-height: 78px;
  margin: -26px -26px 0;
  padding: 16px 26px;
  background: #071c22;
 }
 .service-image-card .service-card-image {
  top: 78px;
  height: calc(100% - 78px);
 }
 .service-image-card > a::before {
  top: 78px;
  background: linear-gradient(180deg,#071c2208 0%,#071c2214 24%,#071c2299 52%,#071c22f5 80%);
 }
}
