/* Services + Service Details page styles. */

/* "Our Services" cards reuse .product-showcase-card from shared-sections.css
   (same look as Home's Featured Products / the Products listing). Service
   photos are full-bleed shots rather than product-on-plain-background
   photography, so they look better cropped to fill the frame than
   letterboxed — override the shared class's default here. */
.product-showcase-card-image {
  object-fit: cover;
}

/* ---------- Featured Services (top-of-page cards) ----------
   Each card is a white leaf-shaped tile that turns into a brand-gradient
   card on hover. */
.featured-services {
  position: relative;
  padding-top: 70px;
}

.spot-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.spot-service {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 30px;
  overflow: hidden;
  border-radius: 48px 14px 48px 14px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: 0 24px 50px color-mix(in srgb, var(--heading-color), transparent 88%);
  color: var(--default-color);
  transition: transform 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

/* Brand gradient that fills the card on hover. */
.spot-service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(150deg, var(--heading-color), color-mix(in srgb, var(--heading-color), var(--accent-color) 45%));
  opacity: 0;
  transition: opacity 0.45s ease;
}

.spot-service:hover {
  color: rgb(255 255 255 / 0.85);
  transform: translateY(-10px);
  box-shadow: 0 34px 64px color-mix(in srgb, var(--accent-color), transparent 72%);
}

.spot-service:hover::before {
  opacity: 1;
}

/* Soft light sweep across the card on hover. */
.spot-service-shine {
  position: absolute;
  top: 0;
  left: -80%;
  z-index: -1;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.12), transparent);
  transform: skewX(-18deg);
  transition: left 0.8s ease;
}

.spot-service:hover .spot-service-shine {
  left: 130%;
}

.spot-service-number {
  position: absolute;
  top: 18px;
  right: 26px;
  font-family: var(--heading-font);
  font-size: calc(4rem * var(--type-display-scale, 1));
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent-color), transparent 65%);
  transition: -webkit-text-stroke-color 0.4s ease, transform 0.4s ease;
}

.spot-service:hover .spot-service-number {
  -webkit-text-stroke-color: rgb(255 255 255 / 0.35);
  transform: scale(1.08);
}

.spot-service-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin-bottom: 26px;
  border-radius: 22px 8px 22px 8px;
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), var(--heading-color) 40%));
  color: #fff;
  font-size: 26px;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--accent-color), transparent 65%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s ease;
}

.spot-service:hover .spot-service-icon {
  background: #fff;
  color: var(--accent-color);
  transform: rotate(-8deg) scale(1.08);
}

.spot-service-title {
  margin-bottom: 12px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  transition: color 0.4s ease;
}

.spot-service:hover .spot-service-title {
  color: #fff;
}

.spot-service-text {
  margin-bottom: 26px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: inherit;
  opacity: 0.85;
}

.spot-service-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  color: var(--heading-color);
  font-weight: 800;
  font-size: 0.92rem;
  transition: color 0.4s ease, border-color 0.4s ease;
}

.spot-service:hover .spot-service-cta {
  color: #fff;
  border-color: rgb(255 255 255 / 0.2);
}

.spot-service-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--accent-color);
  transition: transform 0.4s ease, background-color 0.4s ease, color 0.4s ease;
}

.spot-service:hover .spot-service-cta-icon {
  background: #fff;
  color: var(--heading-color);
  transform: rotate(45deg);
}

@media (max-width: 575px) {
  .featured-services {
    padding-top: 44px;
  }

  .spot-service {
    padding: 28px 22px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spot-service,
  .spot-service-icon,
  .spot-service-shine {
    transition: none;
  }

  .spot-service:hover,
  .spot-service:hover .spot-service-icon {
    transform: none;
  }
}

/* ---------- Service Details page ---------- */
.service-sidebar-card {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 24px;
}

.service-sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 14px;
}

.service-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.service-sidebar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--accent-color);
  font-size: 15px;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.service-sidebar-arrow {
  margin-left: auto;
  font-size: 13px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.service-sidebar-link:hover,
.service-sidebar-link.is-active {
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  color: var(--heading-color);
}

.service-sidebar-link:hover .service-sidebar-arrow,
.service-sidebar-link.is-active .service-sidebar-arrow {
  opacity: 1;
  transform: translateX(0);
}

.service-sidebar-link.is-active .service-sidebar-icon,
.service-sidebar-link:hover .service-sidebar-icon {
  background: var(--accent-color);
  color: #fff;
}

.service-sidebar-cta {
  position: relative;
  background: linear-gradient(160deg, var(--heading-color) 0%, color-mix(in srgb, var(--heading-color), #000 25%) 100%);
  border-radius: 16px;
  padding: 30px 26px;
  color: #fff;
  overflow: hidden;
}

.service-sidebar-cta::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 55%);
  filter: blur(20px);
}

.service-sidebar-cta-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
  color: color-mix(in srgb, var(--accent-color), #fff 30%);
  font-size: 20px;
  margin-bottom: 16px;
}

.service-sidebar-cta h2 {
  position: relative;
  z-index: 1;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.service-sidebar-cta p {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.75);
  margin-bottom: 20px;
}

.service-sidebar-cta .btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
}

.service-detail-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 20px 45px color-mix(in srgb, var(--heading-color), transparent 88%);
}

.service-detail-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.service-detail-icon-badge {
  position: absolute;
  left: 24px;
  bottom: -24px;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--accent-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent-color), transparent 55%);
  border: 4px solid var(--surface-color);
}

.service-detail-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-color);
}

.service-detail-eyebrow .eyebrow-underline {
  width: 20px;
  height: 2px;
  background-color: var(--accent-color);
}

.service-detail-title {
  margin: 12px 0 20px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  color: var(--heading-color);
}

.service-detail-paragraph {
  font-size: 0.98rem;
  line-height: 1.8;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
  margin-bottom: 16px;
}

.service-detail-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.service-detail-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading-color);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.service-detail-highlight-item:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 65%);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--default-color), transparent 92%);
}

.service-detail-highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
  color: var(--accent-color);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

@media (max-width: 575px) {
  .service-detail-image {
    height: 240px;
  }

  .service-detail-icon-badge {
    width: 52px;
    height: 52px;
    font-size: 20px;
    left: 16px;
    bottom: -18px;
  }

  .service-detail-eyebrow {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-sidebar-link,
  .service-sidebar-arrow,
  .service-detail-highlight-item {
    transition: none;
    transform: none;
  }
}

/* ---------- Why Work With Us ----------
   Split layout: intro, image and CTA on the left; numbered feature cards
   (Admin > Service Features) on the right. Same cut-corner shape as the
   home hero cards and certification tiles. */
.why-us {
  position: relative;
  overflow: clip;
}

.why-us-glow {
  position: absolute;
  z-index: 0;
  top: 10%;
  right: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
  filter: blur(100px);
  pointer-events: none;
  animation: why-us-glow-drift 16s ease-in-out infinite alternate;
}

.why-us .container {
  position: relative;
  z-index: 1;
}

@keyframes why-us-glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-80px, 60px) scale(1.15); }
}

/* Mirrors ".section-title .section-badge" from the shared layout, which
   only applies inside .section-title. */
.why-us .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 6px;
  border: 1px dashed color-mix(in srgb, var(--accent-color), transparent 45%);
  border-radius: 30px;
  color: var(--heading-color);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.why-us .section-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--heading-color);
  color: #fff;
  font-size: 13px;
}

.why-us-title {
  font-size: calc(2.4rem * var(--type-display-scale, 1));
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.why-us-text {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ---------- Visual ---------- */
.why-us-visual {
  position: relative;
  margin-bottom: 30px;
}

.why-us-visual-ring {
  position: absolute;
  z-index: -1;
  top: -22px;
  left: -22px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--accent-color), transparent 40%);
  animation: why-us-ring-spin 24s linear infinite;
}

@keyframes why-us-ring-spin {
  to { transform: rotate(360deg); }
}

.why-us-visual-frame {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 55px 13px 55px 13px;
  box-shadow: 0 24px 50px color-mix(in srgb, var(--heading-color), transparent 85%);
}

.why-us-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: why-us-image-zoom 18s ease-in-out infinite alternate;
}

@keyframes why-us-image-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.why-us-visual-chip {
  position: absolute;
  right: -14px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 16px;
  background: var(--surface-color);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--heading-color), transparent 82%);
  animation: why-us-chip-float 4.5s ease-in-out infinite;
}

.why-us-visual-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-color);
  color: #fff;
  font-size: 20px;
}

.why-us-visual-chip strong {
  display: block;
  color: var(--heading-color);
  font-size: 0.95rem;
  line-height: 1.2;
}

.why-us-visual-chip small {
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  font-size: 0.78rem;
}

@keyframes why-us-chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Actions ---------- */
.why-us-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.why-us-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
}

.why-us-actions .btn-primary i {
  transition: transform 0.3s ease;
}

.why-us-actions .btn-primary:hover i {
  transform: translateX(4px);
}

.why-us-link {
  position: relative;
  color: var(--heading-color);
  font-weight: 700;
}

.why-us-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.why-us-link:hover {
  color: var(--accent-color);
}

.why-us-link:hover::after {
  transform: scaleX(1);
}

/* ---------- Feature cards ---------- */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

/* Offset the second column so the grid reads as a staggered mosaic
   rather than a plain table of boxes. Uses "top" (not transform) because
   AOS owns the transform on these animated wrappers. */
@media (min-width: 992px) {
  .why-us-grid {
    padding-bottom: 36px;
  }

  .why-us-grid > :nth-child(even) {
    position: relative;
    top: 36px;
  }
}

.why-us-grid > div {
  display: flex;
}

.why-us-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 30px 26px 28px;
  border-radius: 20px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 91%);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--heading-color), transparent 94%);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.why-us-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent-color), transparent 92%), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.why-us-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 60%);
  box-shadow: 0 22px 44px color-mix(in srgb, var(--accent-color), transparent 82%);
}

.why-us-card:hover::before {
  opacity: 1;
}

.why-us-card-number {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: calc(3.4rem * var(--type-display-scale, 1));
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent-color), transparent 70%);
  transition: -webkit-text-stroke-color 0.35s ease, transform 0.35s ease;
}

.why-us-card:hover .why-us-card-number {
  -webkit-text-stroke-color: var(--accent-color);
  transform: scale(1.08);
}

.why-us-card-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), var(--heading-color) 35%));
  color: #fff;
  font-size: 24px;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--accent-color), transparent 70%);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.why-us-card:hover .why-us-card-icon {
  transform: rotate(-8deg) scale(1.08);
}

.why-us-card h3 {
  position: relative;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 10px;
  padding-right: 40px;
}

.why-us-card p {
  position: relative;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--default-color), transparent 28%);
}

.why-us-card-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #fff 45%));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}

.why-us-card:hover .why-us-card-bar {
  transform: scaleX(1);
}

@media (max-width: 991px) {
  .why-us-title {
    font-size: 2rem;
  }

  .why-us-visual-chip {
    right: 14px;
  }
}

@media (max-width: 767px) {
  .why-us-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .why-us-title {
    font-size: 1.7rem;
  }

  .why-us-visual-ring {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-us-glow,
  .why-us-visual-ring,
  .why-us-visual-frame img,
  .why-us-visual-chip {
    animation: none;
  }

  .why-us-card,
  .why-us-card:hover,
  .why-us-card-icon,
  .why-us-card:hover .why-us-card-icon {
    transform: none;
  }
}

/* ---------- Our Services (image tiles) ----------
   Full-photo tiles with a dark shade; the short description and CTA lift
   in on hover (always shown on touch screens, which have no hover). Same
   cut-corner shape used across the site. Photos come from Admin > Services,
   with a rotating set of fallbacks in the Blade view. */
.services-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 440px;
  padding: 26px;
  overflow: hidden;
  border-radius: 55px 13px 55px 13px;
  color: #fff;
  isolation: isolate;
}

.service-tile:hover,
.service-tile:focus-visible {
  color: #fff;
}

.service-tile-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}

.service-tile:hover .service-tile-image,
.service-tile:focus-visible .service-tile-image {
  transform: scale(1.1);
  filter: saturate(1.15);
}

.service-tile-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--heading-color), transparent 70%) 0%, transparent 30%),
    linear-gradient(0deg, color-mix(in srgb, var(--heading-color), transparent 8%) 0%, color-mix(in srgb, var(--heading-color), transparent 45%) 45%, transparent 75%);
  transition: opacity 0.5s ease;
}

/* Accent wash that rises from the bottom on hover. */
.service-tile-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, color-mix(in srgb, var(--accent-color), transparent 25%) 0%, transparent 70%);
  opacity: 0;
  transform: translateY(30%);
  transition: opacity 0.5s ease, transform 0.6s ease;
}

.service-tile:hover .service-tile-shade::after,
.service-tile:focus-visible .service-tile-shade::after {
  opacity: 1;
  transform: none;
}

/* ---------- Top row ---------- */
.service-tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-left: 18px;
}

.service-tile-number {
  font-size: calc(2.6rem * var(--type-display-scale, 1));
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(255 255 255 / 0.75);
}

.service-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.16);
  border: 1px solid rgb(255 255 255 / 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 22px;
  transition: background-color 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-tile:hover .service-tile-icon,
.service-tile:focus-visible .service-tile-icon {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: rotate(-10deg) scale(1.08);
}

/* ---------- Body ---------- */
.service-tile-body {
  display: flex;
  flex-direction: column;
  padding-right: 18px;
}

.service-tile-title {
  font-family: var(--heading-font);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.25;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-tile-text {
  display: block;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.88);
  transition: max-height 0.6s ease, opacity 0.4s ease, margin-top 0.5s ease;
}

.service-tile:hover .service-tile-text,
.service-tile:focus-visible .service-tile-text {
  max-height: 120px;
  margin-top: 10px;
  opacity: 1;
}

.service-tile-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 0.22);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.service-tile-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border-radius: 50%;
  background: #fff;
  color: var(--heading-color);
  font-size: 15px;
  transition: transform 0.4s ease, background-color 0.4s ease, color 0.4s ease;
}

.service-tile:hover .service-tile-cta-arrow,
.service-tile:focus-visible .service-tile-cta-arrow {
  transform: rotate(45deg);
  background: var(--heading-color);
  color: #fff;
}

/* Touch screens (and small screens generally) have no reliable hover —
   keep the description visible there. */
@media (hover: none), (max-width: 767px) {
  .service-tile-text {
    max-height: none;
    margin-top: 10px;
    opacity: 1;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .services-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-tile {
    height: 400px;
  }
}

@media (max-width: 575px) {
  .services-showcase-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-tile {
    height: 360px;
    padding: 22px;
  }

  .service-tile-title {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-tile-image,
  .service-tile-icon,
  .service-tile-cta-arrow,
  .service-tile-shade::after {
    transition: none;
  }

  .service-tile:hover .service-tile-image,
  .service-tile:hover .service-tile-icon {
    transform: none;
  }
}
