/* Premium services home. Scoped so the existing feedback/rating screens keep their behavior. */

.services-home {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: clamp(22px, 3vw, 34px) 0 clamp(24px, 3vw, 42px);
  overflow: hidden;
  background: #1F3730;
}

.services-home::before {
  content: none;
  position: absolute;
  left: 50%;
  bottom: 4vh;
  z-index: -1;
  width: min(520px, 42vw);
  height: min(520px, 54vh);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,253,248,0.16), rgba(255,253,248,0.04) 42%, transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

.services-home::after {
  content: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(6,19,16,0.22) 100%);
  pointer-events: none;
}

.services-home-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.services-home-bg::before,
.services-home-bg::after {
  content: "";
  position: absolute;
  display: block;
  width: clamp(180px, 16vw, 300px);
  height: clamp(180px, 16vw, 300px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,0.3), rgba(185,221,196,0.08) 38%, transparent 72%);
  filter: blur(2px);
  opacity: 0.48;
}

.services-home-bg::before {
  left: clamp(-54px, -3vw, -18px);
}

.services-home-bg::after {
  right: clamp(-54px, -3vw, -18px);
  transform: scaleX(-1);
}

.services-arch {
  position: absolute;
  left: 50%;
  top: clamp(62px, 8vh, 100px);
  z-index: 0;
  display: block;
  width: min(68vw, 1040px);
  height: min(58vh, 560px);
  transform: translateX(-50%);
  border: 1px solid rgba(255, 253, 248, 0.13);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 58% 58% 0 0;
  box-shadow:
    0 0 0 10px rgba(185, 221, 196, 0.025),
    0 0 90px rgba(185, 221, 196, 0.08),
    inset 0 0 70px rgba(255, 253, 248, 0.035);
}

.services-arch::before,
.services-arch::after {
  content: "";
  position: absolute;
  inset: 17px 20px auto;
  height: 100%;
  border: 1px solid rgba(255,250,224,0.2);
  border-bottom: 0;
  border-radius: inherit;
}

.services-arch::after {
  inset: 31px 38px auto;
  opacity: 0.46;
}

.services-podium {
  position: absolute;
  left: 50%;
  bottom: clamp(66px, 10vh, 112px);
  z-index: 1;
  width: min(470px, 34vw);
  height: clamp(54px, 8vh, 82px);
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255,253,248,0.2), rgba(114,133,116,0.12)),
    radial-gradient(ellipse at center, rgba(255,253,248,0.2), rgba(31,55,48,0.04) 68%);
  border-top: 1px solid rgba(255,253,248,0.34);
  box-shadow:
    0 0 44px rgba(255, 232, 177, 0.2),
    0 24px 46px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -18px 28px rgba(0,0,0,0.08);
}

.services-podium::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 12%;
  display: block;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 232, 177, 0.72), rgba(255,255,255,0.68), rgba(255, 232, 177, 0.72), transparent);
  filter: blur(3px);
  opacity: 0.85;
}

.services-orb {
  position: absolute;
  z-index: 0;
  display: block;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,0.84), rgba(255,255,255,0.42) 34%, rgba(185,221,196,0.16) 68%, rgba(31,55,48,0.05));
  box-shadow:
    inset -14px -18px 28px rgba(0,0,0,0.11),
    inset 12px 14px 22px rgba(255,255,255,0.28),
    0 24px 44px rgba(0,0,0,0.18);
  pointer-events: none;
}

.services-orb-one { left: 9vw; top: 14vh; width: 58px; height: 58px; opacity: 0.26; }
.services-orb-two { right: 7vw; top: 13vh; width: 88px; height: 88px; opacity: 0.3; }
.services-orb-three { right: 11vw; bottom: 11vh; width: 46px; height: 46px; opacity: 0.24; }

.services-home-copy {
  position: relative;
  z-index: 6;
  width: min(720px, calc(100% - 40px));
  margin: 0 auto clamp(18px, 2.2vh, 26px);
  text-align: center;
}

.services-kicker {
  display: none;
}

.services-home-copy h1 {
  margin: 0;
  color: #fffdf8;
  font-size: clamp(3rem, 4.6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.services-home-copy h1 span {
  color: #b9ddc4;
}

.services-home-copy h1 {
  text-shadow: 0 16px 34px rgba(60, 48, 28, 0.06);
}

.services-home-copy > p:not(.services-kicker) {
  max-width: 620px;
  margin: 12px auto 0;
  color: rgba(255,253,248,0.72);
  font-size: clamp(0.98rem, 1.2vw, 1.14rem);
  line-height: 1.45;
  font-weight: 600;
}

.services-home-stage {
  position: absolute;
  left: 50%;
  bottom: clamp(70px, 10vh, 118px);
  z-index: 5;
  width: min(36vw, 520px);
  margin: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.services-home-stage::before {
  display: none;
}

.services-home-host {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  filter: drop-shadow(0 30px 46px rgba(70,54,28,0.24));
}

.services-home-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(340px, 38vw) minmax(220px, 260px);
  grid-template-rows: repeat(3, minmax(170px, 190px));
  gap: clamp(18px, 2.4vh, 28px) clamp(22px, 3vw, 44px);
  align-items: center;
  justify-content: center;
  width: min(1190px, calc(100% - 36px));
  min-height: clamp(560px, 70vh, 650px);
  margin: 0 auto;
  padding: 0;
  overflow-x: visible;
  overflow-y: visible;
  perspective: none;
  cursor: default;
}

.services-home-grid::-webkit-scrollbar {
  display: none;
}

.service-card {
  --card-rotate: 0deg;
  --card-scale: 1;
  --card-z: 0px;
  --card-y: 0px;
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 100%;
  height: 100%;
  padding: clamp(18px, 1.65vw, 24px);
  border: 1px solid rgba(255,255,255,0.76);
  border-radius: clamp(34px, 3vw, 42px);
  background:
    linear-gradient(155deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.74) 50%, rgba(236,246,232,0.78) 100%);
  color: #1F3730;
  text-align: center;
  text-decoration: none;
  box-shadow:
    0 34px 78px rgba(0,0,0,0.24),
    0 12px 32px rgba(255,255,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.94),
    inset 0 -26px 46px rgba(31,55,48,0.12);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  transform:
    translate3d(0, var(--card-y), var(--card-z))
    rotateX(0)
    rotateY(0)
    scale(var(--card-scale));
  transform-style: preserve-3d;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease, background 260ms ease, opacity 260ms ease;
}

.service-card::before,
.service-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
}

.service-card::before {
  inset: 1px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.76), transparent 36%),
    radial-gradient(circle at 20% 12%, rgba(255,255,255,0.92), transparent 27%),
    linear-gradient(180deg, rgba(255,255,255,0.32), transparent 18%, rgba(31,55,48,0.08) 100%);
}

.service-card::after {
  left: 10%;
  right: 10%;
  bottom: -20px;
  height: 34px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.26), transparent 70%);
  filter: blur(11px);
  transform: translateZ(-18px);
}

.service-card[data-service-position="0"],
.service-card[data-service-position="1"],
.service-card[data-service-position="2"] {
  grid-column: 1;
  --card-rotate: 0deg;
}

.service-card[data-service-position="3"],
.service-card[data-service-position="4"],
.service-card[data-service-position="5"] {
  grid-column: 3;
  --card-rotate: 0deg;
}

.service-card[data-service-position="0"],
.service-card[data-service-position="3"] {
  grid-row: 1;
  --card-y: 0px;
  --card-z: 0px;
}

.service-card[data-service-position="1"],
.service-card[data-service-position="4"] {
  grid-row: 2;
  --card-y: 0px;
  --card-z: 0px;
}

.service-card[data-service-position="2"],
.service-card[data-service-position="5"] {
  grid-row: 3;
  --card-y: 0px;
  --card-z: 0px;
}

.service-card:hover,
.service-card:focus-visible {
  outline: none;
  --card-scale: 1.035;
  --card-z: 58px;
  border-color: rgba(255,255,255,0.98);
  background:
    linear-gradient(155deg, rgba(255,255,255,0.86) 0%, rgba(255,255,255,0.66) 48%, rgba(238,248,234,0.78) 100%);
  box-shadow:
    0 46px 96px rgba(0,0,0,0.3),
    0 0 34px rgba(255,248,214,0.34),
    inset 0 1px 0 rgba(255,255,255,0.98),
    inset 0 -30px 52px rgba(31,55,48,0.1);
}

.service-card-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(42px, 4vw, 58px);
  height: clamp(42px, 4vw, 58px);
  margin: 0 auto clamp(8px, 1.2vh, 12px);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(242,247,237,0.72));
  color: #1F3730;
  box-shadow:
    0 16px 28px rgba(31,55,48,0.14),
    inset 0 1px 0 rgba(255,255,255,0.96),
    inset 0 -9px 18px rgba(114,133,116,0.12);
  overflow: hidden;
}

.service-card-icon img {
  width: 76%;
  height: 76%;
  object-fit: contain;
}

.service-card[data-service-id="ai-kenguru"] .service-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 42%;
  transform: scale(1.12);
}

.service-card-icon svg {
  width: 23px;
  height: 23px;
  color: #1F3730;
  fill: currentColor;
}

.service-card-content {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
  margin-bottom: 10px;
}

.service-card-content strong {
  display: block;
  margin-bottom: 7px;
  color: #111;
  font-size: clamp(0.84rem, 0.95vw, 1rem);
  line-height: 1.12;
}

.service-card-content span {
  display: block;
  color: rgba(31,55,48,0.64);
  font-size: clamp(0.7rem, 0.75vw, 0.8rem);
  line-height: 1.32;
  font-weight: 600;
}

.service-card-action {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-top: auto;
  border-radius: 999px;
  background: linear-gradient(180deg, #1F6F4A, #1F3730);
  color: #fff;
  box-shadow:
    0 14px 26px rgba(31,55,48,0.24),
    inset 0 1px 0 rgba(255,255,255,0.22);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.service-card:hover .service-card-action,
.service-card:focus-visible .service-card-action {
  transform: translateX(4px);
  filter: brightness(1.08);
  box-shadow:
    0 18px 32px rgba(31,55,48,0.3),
    0 0 22px rgba(31,111,74,0.24),
    inset 0 1px 0 rgba(255,255,255,0.28);
}

.service-card-action svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.service-carousel-controls {
  display: none;
}

.service-carousel-button {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 50%;
  background: rgba(255,255,255,0.13);
  color: #fffdf8;
  cursor: pointer;
  pointer-events: auto;
  box-shadow:
    0 14px 28px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.service-carousel-button:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.22);
  color: #fff;
}

.service-carousel-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.services-anchor {
  display: block;
  position: relative;
  top: -96px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.assistant-panel,
.feedback-intro-assistant-slot,
.ai-chat-floating,
#feedback-form::after {
  display: none !important;
}

body:not(.services-feedback-mode) #feedback-form {
  display: none;
}

.services-feedback-return-btn {
  display: none !important;
}

body.services-feedback-mode .services-home {
  display: none;
}

body.services-feedback-mode #feedback-form {
  min-height: calc(100svh - 104px);
  padding: clamp(24px, 4vw, 48px) 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 44%, rgba(255,253,248,0.08), transparent 30%),
    linear-gradient(180deg, #1F3730 0%, #1b302a 100%);
}

body.services-feedback-mode #feedback-form > .container {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
}

body.services-feedback-mode #feedback-form .feedback-widget {
  width: 100%;
  margin: 0 auto;
}

body.services-feedback-mode #feedback-form .feedback-app[data-step="1"] {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}

body.services-feedback-mode #feedback-form .feedback-app[data-step="1"] .feedback-content {
  justify-content: center;
  align-items: center;
}

body.services-feedback-mode #feedback-form .feedback-screen[data-step="1"] .feedback-intro-layout {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

body.services-feedback-mode #feedback-form .feedback-screen[data-step="1"] .feedback-intro-top,
body.services-feedback-mode #feedback-form .feedback-screen[data-step="1"] .feedback-intro-main {
  width: 100%;
  margin-inline: auto;
}

body.services-feedback-mode #feedback-form .feedback-screen[data-step="1"] .feedback-intro-info,
body.services-feedback-mode #feedback-form .feedback-screen[data-step="1"] .feedback-intro-bottom,
body.services-feedback-mode #feedback-form .feedback-screen[data-step="1"] .feedback-intro-main .feedback-intro-mini-points,
body.services-feedback-mode #feedback-form .feedback-screen[data-step="1"] .feedback-btn-secondary[href*="department-ratings"],
body.services-feedback-mode #feedback-form .feedback-screen[data-step="1"] .feedback-btn-link[href*="department-ratings"] {
  display: none !important;
}

body.services-feedback-mode #feedback-form .feedback-screen[data-step="1"] .feedback-intro-main .feedback-actions {
  justify-content: center;
}

body.services-feedback-mode #feedback-form .feedback-screen[data-step="1"] .services-feedback-return-btn {
  display: inline-flex !important;
}

body.services-feedback-mode #siteScrollTop {
  display: none !important;
}

@media (min-width: 761px) {
  .services-home-grid {
  }
}

@media (max-height: 820px) and (min-width: 761px) {
  .services-home {
    padding-top: 18px;
    padding-bottom: 28px;
  }

  .services-home-copy h1 {
    font-size: clamp(2.6rem, 4vw, 4.4rem);
  }

  .services-home-copy > p:not(.services-kicker) {
    margin-top: 8px;
  }

  .services-home-grid {
    grid-template-columns: minmax(200px, 238px) minmax(320px, 38vw) minmax(200px, 238px);
    grid-template-rows: repeat(3, minmax(146px, 160px));
    min-height: 488px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .service-card {
    width: 100%;
    min-height: 100%;
    height: 100%;
    padding: 16px 14px;
  }

  .service-card-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
  }

  .services-home-host {
    max-height: 68vh;
  }

  .service-card-content strong {
    font-size: 0.82rem;
  }

  .service-card-content span {
    font-size: 0.68rem;
  }
}

@media (max-width: 760px) {
  .services-home {
    min-height: auto;
    padding: 26px 0 38px;
  }

  .services-home-bg::before,
  .services-home-bg::after {
    width: 94px;
    height: 170px;
    opacity: 0.28;
  }

  .services-arch,
  .services-podium,
  .services-orb {
    opacity: 0.38;
  }

  .services-home-copy {
    margin-bottom: 12px;
  }

  .services-home-copy h1 {
    font-size: clamp(2.2rem, 12vw, 3.35rem);
  }

  .services-home-copy > p:not(.services-kicker) {
    font-size: 0.96rem;
  }

  .services-home-stage {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(50vw, 190px);
    margin: -4px auto -4px;
    transform: none;
  }

  .services-home-host {
    max-height: 210px;
  }

  .services-podium {
    display: none;
  }

  .services-home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-height: 0;
    padding: 18px 12px 32px;
    overflow: visible;
    width: min(100%, 430px);
  }

  .service-card {
    position: relative;
    left: auto;
    top: auto;
    grid-column: auto !important;
    grid-row: auto !important;
    width: auto;
    min-height: 138px;
    padding: 14px 10px;
    border-radius: 24px;
    transform: translateY(0);
  }

  .service-card:hover,
  .service-card:focus-visible {
    transform: translateY(-5px);
  }

  .service-card-icon {
    width: 44px;
    height: 44px;
  }

  .service-card-content strong {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  .service-card-content span {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .service-card-action {
    width: 34px;
    height: 34px;
  }

  .service-carousel-controls {
    display: none;
  }
}
