/* Scoped Editorial Hero + Layout 25A (3D Perspective Wings) for Our Services ONLY.
   Centers the upgraded hero statement & CTAs between two symmetrical 3D curved
   Pinecrest blue wings angled gently toward the viewer, with inward-mirrored
   icons framing the headline. Everything below .pc-hero remains untouched. */

body[data-page="/our-services/"] .pc-hero {
  min-height: min(720px, calc(100svh - var(--header) - 48px));
  padding: clamp(46px, 5.8vh, 76px) 0 clamp(50px, 6.4vh, 82px);
  background:
    linear-gradient(var(--pc-night), transparent 120px),
    radial-gradient(46% 58% at 50% 46%, rgba(0, 191, 237, 0.16), transparent 72%),
    radial-gradient(96% 78% at 50% 26%, var(--pc-night-mid) 0%, var(--pc-night) 86%);
}

body[data-page="/our-services/"] .pc-hero .pc-wrap {
  width: min(1320px, 100% - 2 * clamp(28px, 4vw, 60px));
}

body[data-page="/our-services/"] .pc-hero-grid {
  display: grid;
  grid-template-columns: minmax(276px, 298px) minmax(0, 1fr) minmax(276px, 298px);
  align-items: center;
  gap: clamp(24px, 2.8vw, 44px);
  perspective: 1120px;
}

/* ====== CENTER COLUMN: BOLD CENTERED EDITORIAL HERO STATEMENT ====== */
body[data-page="/our-services/"] .pc-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 650px;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

body[data-page="/our-services/"] .pc-hero-copy .pc-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7ee3fd;
  margin: 0 0 22px;
}

body[data-page="/our-services/"] .pc-hero-copy .pc-kicker::before,
body[data-page="/our-services/"] .pc-hero-copy .pc-kicker::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #00bfed, #8ae6ff);
}

body[data-page="/our-services/"] .pc-hero-copy .pc-kicker::after {
  background: linear-gradient(90deg, #8ae6ff, #00bfed);
}

body[data-page="/our-services/"] .pc-hero-copy h1 {
  font-size: clamp(36px, 3.62vw, 54px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.048em;
  color: #ffffff;
  text-wrap: balance;
}

body[data-page="/our-services/"] .pc-hero-copy h1 .accent {
  display: block;
  margin-top: 10px;
  color: #7ee3fd;
  background: linear-gradient(94deg, #4dd8ff 0%, #9ceeff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body[data-page="/our-services/"] .pc-hero-copy > p {
  position: relative;
  font-size: clamp(16.5px, 1.16vw, 18.5px);
  font-weight: 450;
  line-height: 1.58;
  letter-spacing: -0.012em;
  max-width: 46ch;
  margin: 24px 0 0;
  padding-top: 22px;
  color: #e4eefc;
  text-wrap: pretty;
}

body[data-page="/our-services/"] .pc-hero-copy > p::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(138, 223, 243, 0.55), transparent);
}

body[data-page="/our-services/"] .pc-hero-copy .pc-actions {
  justify-content: center;
  margin-top: 28px;
}

/* ====== LEFT & RIGHT 3D PERSPECTIVE WINGS (LAYOUT 25A) ====== */
body[data-page="/our-services/"] .services-flank {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  transform-style: preserve-3d;
}

/* Curved amphitheater wings angled gently toward the viewer */
body[data-page="/our-services/"] .services-flank--left {
  transform: rotateY(18deg);
  transform-origin: center center;
}

body[data-page="/our-services/"] .services-flank--right {
  transform: rotateY(-18deg);
  transform-origin: center center;
}

body[data-page="/our-services/"] .service-blue-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  text-decoration: none;
  color: #ffffff;
  border: 1px solid rgba(94, 216, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(182, 242, 255, 0.28),
    0 18px 38px rgba(3, 9, 32, 0.44);
  transition:
    transform 0.32s var(--pc-ease),
    background 0.26s ease,
    border-color 0.26s ease,
    box-shadow 0.32s var(--pc-ease);
  will-change: transform;
}

/* Mirrored directional lighting catching the outer wing edge cleanly */
body[data-page="/our-services/"] .services-flank--left .service-blue-tile {
  flex-direction: row-reverse;
  text-align: right;
  background: linear-gradient(112deg, #2152cc 0%, #143287 100%);
  border-right-color: rgba(126, 227, 253, 0.48);
}

body[data-page="/our-services/"] .services-flank--right .service-blue-tile {
  flex-direction: row;
  text-align: left;
  background: linear-gradient(248deg, #2152cc 0%, #143287 100%);
  border-left-color: rgba(126, 227, 253, 0.48);
}

/* Smooth 3D forward glide & gentle un-tilt toward the user on hover */
body[data-page="/our-services/"] .services-flank--left .service-blue-tile:hover,
body[data-page="/our-services/"] .services-flank--left .service-blue-tile:focus-visible {
  transform: translate3d(8px, -2px, 28px) rotateY(-9deg);
  background: linear-gradient(112deg, #2762eb 0%, #1840ad 100%);
  z-index: 5;
}

body[data-page="/our-services/"] .services-flank--right .service-blue-tile:hover,
body[data-page="/our-services/"] .services-flank--right .service-blue-tile:focus-visible {
  transform: translate3d(-8px, -2px, 28px) rotateY(9deg);
  background: linear-gradient(248deg, #2762eb 0%, #1840ad 100%);
  z-index: 5;
}

body[data-page="/our-services/"] .service-blue-tile:hover,
body[data-page="/our-services/"] .service-blue-tile:focus-visible {
  border-color: rgba(88, 222, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(210, 248, 255, 0.42),
    0 24px 48px rgba(3, 9, 32, 0.58),
    0 0 0 1px rgba(77, 216, 255, 0.42);
  outline: none;
}

/* Inward-facing two-tone cyan+white icon medallions framing the center headline */
body[data-page="/our-services/"] .service-blue-tile-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 191, 237, 0.3) 0%, rgba(0, 191, 237, 0.13) 100%);
  border: 1px solid rgba(126, 227, 253, 0.4);
  transition: background 0.24s ease, border-color 0.24s ease;
}

body[data-page="/our-services/"] .service-blue-tile-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #ffffff;
  --icon-accent: #6ce3ff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page="/our-services/"] .service-blue-tile:hover .service-blue-tile-icon,
body[data-page="/our-services/"] .service-blue-tile:focus-visible .service-blue-tile-icon {
  background: linear-gradient(135deg, #00bfed 0%, #2ad6ff 100%);
  border-color: #8cecff;
}

body[data-page="/our-services/"] .service-blue-tile:hover .service-blue-tile-icon svg,
body[data-page="/our-services/"] .service-blue-tile:focus-visible .service-blue-tile-icon svg {
  stroke: #07133e;
  --icon-accent: #07133e;
}

body[data-page="/our-services/"] .service-blue-tile-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}

body[data-page="/our-services/"] .service-blue-tile-title {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: #ffffff;
}

body[data-page="/our-services/"] .service-blue-tile-desc {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.005em;
  color: #c2e2ff;
  transition: color 0.22s ease;
}

body[data-page="/our-services/"] .service-blue-tile:hover .service-blue-tile-desc,
body[data-page="/our-services/"] .service-blue-tile:focus-visible .service-blue-tile-desc {
  color: #ecf8ff;
}

/* ====== STICKY SUBNAV BAR: CENTER THE 5 SERVICE LINKS ====== */
body[data-page="/our-services/"] .services-subnav {
  justify-content: center;
}

@media (max-width: 920px) {
  body[data-page="/our-services/"] .services-subnav {
    justify-content: flex-start;
  }
}

/* ====== RESPONSIVE & REDUCED MOTION ====== */
@media (max-width: 1180px) {
  body[data-page="/our-services/"] .pc-hero {
    min-height: auto;
    padding: 46px 0 60px;
  }
  body[data-page="/our-services/"] .pc-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
    perspective: none;
  }
  body[data-page="/our-services/"] .pc-hero-copy {
    grid-column: 1 / -1;
    order: -1;
    max-width: 680px;
    margin-bottom: 10px;
  }
  body[data-page="/our-services/"] .services-flank,
  body[data-page="/our-services/"] .services-flank--left,
  body[data-page="/our-services/"] .services-flank--right {
    gap: 12px;
    transform: none;
    transform-style: flat;
  }
  body[data-page="/our-services/"] .services-flank--left .service-blue-tile {
    flex-direction: row;
    text-align: left;
    background: linear-gradient(135deg, #1f4ec4 0%, #143287 100%);
  }
  body[data-page="/our-services/"] .services-flank--left .service-blue-tile:hover,
  body[data-page="/our-services/"] .services-flank--left .service-blue-tile:focus-visible,
  body[data-page="/our-services/"] .services-flank--right .service-blue-tile:hover,
  body[data-page="/our-services/"] .services-flank--right .service-blue-tile:focus-visible {
    transform: translateY(-2px);
  }
}

@media (max-width: 760px) {
  body[data-page="/our-services/"] .pc-hero {
    padding: 36px 0 46px;
  }
  body[data-page="/our-services/"] .pc-hero .pc-wrap {
    width: min(100% - 32px, 540px);
  }
  body[data-page="/our-services/"] .pc-hero-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  body[data-page="/our-services/"] .pc-hero-copy {
    margin-bottom: 18px;
  }
  body[data-page="/our-services/"] .pc-hero-copy h1 {
    font-size: clamp(32px, 8.2vw, 46px);
  }
  body[data-page="/our-services/"] .services-flank,
  body[data-page="/our-services/"] .services-flank--left,
  body[data-page="/our-services/"] .services-flank--right {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 318px;
    margin-inline: auto;
    transform: none;
    transform-style: flat;
  }
  body[data-page="/our-services/"] .service-blue-tile,
  body[data-page="/our-services/"] .services-flank--left .service-blue-tile,
  body[data-page="/our-services/"] .services-flank--right .service-blue-tile {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 7px;
    padding: clamp(8px, 2.2vw, 10px) 6px;
    border-radius: 14px;
    background: linear-gradient(155deg, #2152cc 0%, #143287 100%);
    border: 1px solid rgba(94, 216, 255, 0.34);
    box-shadow:
      inset 0 1px 0 rgba(182, 242, 255, 0.28),
      0 12px 26px rgba(3, 9, 32, 0.38);
  }
  body[data-page="/our-services/"] .services-flank--left .service-blue-tile:hover,
  body[data-page="/our-services/"] .services-flank--left .service-blue-tile:focus-visible,
  body[data-page="/our-services/"] .services-flank--right .service-blue-tile:hover,
  body[data-page="/our-services/"] .services-flank--right .service-blue-tile:focus-visible {
    transform: translateY(-2px);
    background: linear-gradient(155deg, #2762eb 0%, #1840ad 100%);
  }
  body[data-page="/our-services/"] .service-blue-tile-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  body[data-page="/our-services/"] .service-blue-tile-icon svg {
    width: 19px;
    height: 19px;
  }
  body[data-page="/our-services/"] .service-blue-tile-body {
    flex: 0 0 auto;
    align-items: center;
    gap: 0;
  }
  body[data-page="/our-services/"] .service-blue-tile-title {
    font-size: clamp(10.5px, 2.95vw, 11.5px);
    font-weight: 650;
    line-height: 1.16;
    letter-spacing: -0.015em;
    text-wrap: balance;
  }
  body[data-page="/our-services/"] .service-blue-tile-desc {
    display: none;
  }

  /* Hide the sticky horizontal services jump bar on mobile while keeping #services anchor intact */
  body[data-page="/our-services/"] .services-subnav-wrap {
    position: static;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    pointer-events: none;
    scroll-margin-top: var(--header);
  }
  body[data-page="/our-services/"] .services-subnav-wrap > * {
    display: none;
  }
  body[data-page="/our-services/"] .service-spread {
    scroll-margin-top: calc(var(--header) + 12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="/our-services/"] .service-blue-tile,
  body[data-page="/our-services/"] .service-blue-tile-icon {
    transition: none;
  }
  body[data-page="/our-services/"] .services-flank--left .service-blue-tile:hover,
  body[data-page="/our-services/"] .services-flank--right .service-blue-tile:hover {
    transform: none;
  }
}
