/* Shared menu and product carousel refinements */

.nav {
  background: linear-gradient(
    to bottom,
    rgba(1, 5, 12, .98),
    rgba(2, 6, 13, .9)
  ) !important;
  border-bottom: 1px solid rgba(0, 0, 0, .95);
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, .045),
    0 18px 42px rgba(0, 0, 0, .28);
}

.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(0, 0, 0, .92);
  pointer-events: none;
}

.menu a.is-active,
.menu a[aria-current="page"] {
  color: #4b8dff !important;
}

.menu a.is-active svg,
.menu a[aria-current="page"] svg {
  opacity: 1 !important;
}

@media (max-width: 1100px) {
  .nav {
    background: rgba(1, 5, 12, .96) !important;
  }

  .menu-toggle {
    align-items: stretch !important;
  }

  .menu-toggle span {
    display: block !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 22px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: #fff !important;
    opacity: 1 !important;
  }

  .nav-backdrop {
    background:
      linear-gradient(to bottom, rgba(1, 5, 12, .52), rgba(1, 5, 12, .86)),
      rgba(0, 2, 8, .72) !important;
    backdrop-filter: blur(7px) saturate(1.12) !important;
  }

  .nav-panel {
    inset: auto 16px max(14px, env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-height: calc(100dvh - 106px);
    overflow-y: auto;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 26px clamp(22px, 5vw, 34px) 30px !important;
    border: 1px solid rgba(75, 141, 255, .18);
    border-radius: 30px !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(75, 141, 255, .10), transparent 38%),
      linear-gradient(180deg, rgba(5, 12, 27, .98), rgba(1, 5, 12, .99)) !important;
    box-shadow:
      0 30px 90px rgba(0, 0, 0, .48),
      inset 0 1px 0 rgba(255, 255, 255, .04);
  }

  .mobile-panel-head {
    display: flex !important;
    justify-content: center !important;
    padding-bottom: 24px !important;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(75, 141, 255, .10);
  }

  .mobile-panel-title {
    display: none !important;
  }

  .mobile-talk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: min(230px, 78vw);
    padding: 13px 22px;
    border: 1px solid rgba(75, 141, 255, .42);
    border-radius: 999px;
    background:
      linear-gradient(135deg, rgba(47, 128, 255, .22), rgba(12, 24, 50, .82));
    color: #fff !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 600;
    box-shadow:
      0 16px 34px rgba(31, 94, 219, .18),
      inset 0 1px 0 rgba(255, 255, 255, .08);
  }

  .mobile-talk span {
    color: #8dbdff;
  }

  .menu a {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
    color: rgba(255, 255, 255, .92) !important;
    transition: transform .22s ease, color .22s ease;
  }

  .menu a:hover,
  .menu a:focus-visible {
    color: #fff !important;
    transform: translateX(4px);
  }

  .menu a:last-child {
    border-bottom: 0;
  }

  .menu a svg {
    color: #4b8dff;
    opacity: .72 !important;
  }
}

.wa-widget {
  position: fixed;
  right: clamp(16px, 2.2vw, 30px);
  bottom: clamp(16px, 2.2vw, 28px);
  z-index: 999;
  font-family: inherit;
}

.wa-float {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 244px;
  height: 68px;
  padding: 8px 13px 8px 9px;
  border: 1px solid rgba(75, 141, 255, .42);
  border-radius: 999px;
  cursor: pointer;
  color: white;
  font: inherit;
  text-align: left;
  background: linear-gradient(120deg, rgba(8, 19, 42, .95), rgba(3, 9, 21, .96));
  box-shadow:
    0 18px 50px rgba(0, 0, 0, .42),
    0 0 32px rgba(47, 128, 255, .13),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.wa-float:hover,
.wa-float:focus-visible,
.wa-float[aria-expanded="true"] {
  border-color: rgba(75, 141, 255, .78);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, .48),
    0 0 40px rgba(47, 128, 255, .27),
    inset 0 1px 0 rgba(255, 255, 255, .11);
}

.wa-float:hover {
  transform: translateY(-3px);
}

.wa-float:focus-visible {
  outline: 2px solid rgba(111, 166, 255, .74);
  outline-offset: 4px;
}

.wa-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: none;
  border: 1px solid rgba(93, 154, 255, .42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 23%, rgba(174, 210, 255, .26), transparent 30%),
    linear-gradient(145deg, rgba(33, 92, 202, .64), rgba(8, 27, 63, .8));
  color: #e8f1ff;
  box-shadow: 0 0 22px rgba(47, 128, 255, .25);
}

.wa-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wa-label {
  display: grid;
  gap: 2px;
  flex: 1;
}

.wa-label small {
  color: #4b8dff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.wa-label strong {
  color: rgba(255, 255, 255, .94);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.wa-status {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #4b8dff;
  box-shadow: 0 0 12px rgba(75, 141, 255, .94);
}

.wa-chat {
  position: absolute;
  right: 0;
  bottom: 82px;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 116px);
  max-height: calc(100dvh - 116px);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(75, 141, 255, .22);
  border-radius: 24px;
  background: rgba(3, 8, 18, .95);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, .58),
    0 0 52px rgba(47, 128, 255, .1);
  opacity: 0;
  transform: translateY(18px) scale(.96);
  pointer-events: none;
  transform-origin: right bottom;
  transition: opacity .25s ease, transform .32s cubic-bezier(.22, 1, .36, 1);
}

.wa-chat.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.wa-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px;
  border-bottom: 1px solid rgba(75, 141, 255, .14);
  background:
    radial-gradient(circle at 10% 15%, rgba(47, 128, 255, .18), transparent 36%),
    rgba(5, 12, 27, .94);
}

.wa-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(75, 141, 255, .34);
  border-radius: 13px;
  color: #76adff;
  background: rgba(35, 90, 190, .12);
}

.wa-avatar svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wa-head-copy {
  flex: 1;
}

.wa-head strong {
  display: block;
  color: rgba(255, 255, 255, .96);
  font-size: 15px;
  font-weight: 500;
}

.wa-head-copy > span {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
}

.wa-head-copy i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4b8dff;
  box-shadow: 0 0 9px #4b8dff;
}

.wa-head button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 50%;
  cursor: pointer;
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .035);
  transition: border-color .2s ease, color .2s ease;
}

.wa-head button:hover {
  border-color: rgba(75, 141, 255, .48);
  color: white;
}

.wa-head button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.wa-body {
  padding: 22px 18px 24px;
  min-height: 146px;
  background:
    radial-gradient(circle at top right, rgba(47, 128, 255, .16), transparent 42%),
    linear-gradient(145deg, #050c19, #030812);
}

.wa-kicker {
  display: block;
  margin-bottom: 14px;
  color: #4b8dff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
}

.wa-message {
  width: fit-content;
  max-width: 92%;
  padding: 14px 16px;
  border: 1px solid rgba(75, 141, 255, .12);
  border-radius: 4px 17px 17px;
  background: rgba(23, 46, 86, .34);
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  line-height: 1.65;
}

.wa-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  padding: 14px 15px 15px;
  border-top: 1px solid rgba(75, 141, 255, .12);
  background: #030812;
}

.wa-message-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
}

.wa-form input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 17px;
  border: 1px solid rgba(75, 141, 255, .16);
  border-radius: 999px;
  outline: none;
  font: inherit;
  font-size: 13px;
  color: white;
  background: rgba(255, 255, 255, .035);
}

.wa-form input::placeholder {
  color: rgba(255, 255, 255, .39);
}

.wa-form input:focus {
  border-color: rgba(75, 141, 255, .62);
  box-shadow: 0 0 0 3px rgba(75, 141, 255, .12);
}

.wa-form button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(75, 141, 255, .5);
  border-radius: 50%;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, #2f80ff, #1e5bd4);
  box-shadow: 0 10px 25px rgba(31, 94, 219, .28);
}

.wa-form button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

body.menu-open .wa-widget {
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
}

@media (max-width: 540px) {
  .wa-widget {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .wa-chat {
    bottom: 76px;
    width: calc(100vw - 32px);
    max-height: calc(100vh - 102px);
    max-height: calc(100dvh - 102px);
  }

  .wa-body {
    min-height: auto;
    padding: 18px 16px 20px;
  }

  .wa-message {
    max-width: 100%;
  }

  .wa-float {
    width: 62px;
    height: 62px;
    padding: 6px;
    justify-content: center;
  }

  .wa-icon {
    width: 48px;
    height: 48px;
  }

  .wa-label,
  .wa-status {
    display: none;
  }
}

.bar-products {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 96px;
  padding: 30px 0 120px;
  background: linear-gradient(to bottom, #02060d 0%, #040a18 100%);
}

.bar-products-head {
  max-width: 980px;
  margin: 0 auto 44px;
  padding: 0 24px;
  text-align: center;
}

.bar-products-kicker {
  display: inline-block;
  margin-bottom: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #4b8dff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .22em;
}

.bar-products-kicker::before {
  display: none;
  content: none;
}

.bar-products h2 {
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1;
  letter-spacing: -.07em;
  font-weight: 500;
}

.bar-products h2 em {
  display: block;
  color: #4b8dff;
  font-style: italic;
  font-weight: 400;
}

.bar-products-description {
  max-width: 680px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, .68);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.65;
}

.equipment-products .bar-products-head {
  max-width: min(1160px, calc(100vw - 48px));
  margin-bottom: 38px;
}

.equipment-products h2 {
  max-width: 1100px;
  margin: 0 auto;
  font-size: clamp(38px, 4.25vw, 64px);
  line-height: 1.06;
  letter-spacing: -.052em;
}

.equipment-products h2 em {
  display: inline;
}

.equipment-products .bar-products-description {
  max-width: 820px;
  margin-top: 18px;
}

.product-marquee {
  --product-gap: 18px;
  --product-card-width: clamp(235px, 22vw, 310px);
  position: relative;
  overflow: hidden;
  min-height: 390px;
  padding: 10px 0 14px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.product-track {
  align-items: stretch;
  display: flex;
  width: max-content;
  gap: var(--product-gap);
  animation: productMarquee 46s linear infinite;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.product-marquee:hover .product-track {
  animation-play-state: paused;
}

.product-card {
  display: grid;
  flex: 0 0 var(--product-card-width);
  grid-template-rows: 258px minmax(138px, auto);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(75, 141, 255, .16);
  border-radius: 24px;
  background: rgba(5, 12, 27, .92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
}

.product-card::before {
  content: "";
  grid-area: 1 / 1 / 2 / 2;
  background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(226, 235, 250, .92));
}

.product-card img {
  display: block;
  grid-area: 1 / 1 / 2 / 2;
  place-self: center;
  width: auto;
  height: auto;
  max-width: calc(100% - 54px);
  max-height: calc(100% - 54px);
  object-fit: contain;
  object-position: center;
  z-index: 1;
}

.product-card div {
  display: grid;
  grid-area: 2 / 1 / 3 / 2;
  align-content: start;
  gap: 14px;
  justify-items: center;
  min-height: 138px;
  padding: 18px 20px 22px;
  border-top: 1px solid rgba(75, 141, 255, .12);
  background:
    linear-gradient(180deg, rgba(5, 12, 27, .98), rgba(2, 6, 13, .98));
  z-index: 1;
}

.product-card span {
  display: none;
}

.product-card h3 {
  display: block;
  min-height: 44px;
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 500;
}

.product-card a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f80ff, #1f5edb);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(31, 94, 219, .26);
  transition: transform .24s ease, box-shadow .24s ease;
}

.product-card a:hover,
.product-card a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(31, 94, 219, .38);
}

.equipment-products .product-marquee {
  min-height: 472px;
}

.equipment-products .product-card {
  grid-template-rows: 246px minmax(196px, auto);
}

.equipment-products .product-card div {
  align-content: start;
  gap: 10px;
  min-height: 196px;
}

.equipment-products .product-card span {
  display: block;
  color: #9ec6ff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.equipment-products .product-card h3 {
  min-height: 0;
}

.equipment-products .product-card p {
  min-height: 58px;
  margin: 0;
  color: rgba(255, 255, 255, .64);
  text-align: center;
  font-size: 13px;
  line-height: 1.48;
}

@keyframes productMarquee {
  to {
    transform: translate3d(calc(-50% - 9px), 0, 0);
  }
}

@media (max-width: 640px) {
  .bar-products {
    padding: 56px 0 88px;
  }

  .bar-products-head {
    margin-bottom: 36px;
  }

  .bar-products h2 {
    font-size: 40px;
    letter-spacing: -.055em;
  }

  .bar-products-description {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.55;
  }

  .equipment-products .bar-products-head {
    max-width: calc(100vw - 32px);
    margin-bottom: 30px;
  }

  .equipment-products h2 {
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -.04em;
  }

  .equipment-products .bar-products-description {
    max-width: 92%;
    margin-top: 14px;
  }

  .product-marquee {
    --product-card-width: min(252px, calc(100vw - 48px));
    overflow-x: auto;
    overflow-y: hidden;
    min-height: 426px;
    padding: 10px 18px 18px;
    scroll-padding-inline: 18px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: none;
  }

  .product-marquee::-webkit-scrollbar {
    display: none;
  }

  .product-track {
    width: max-content;
    min-width: 100%;
    padding-right: 18px;
    animation: none;
    transform: none;
    will-change: auto;
  }

  .product-card {
    grid-template-rows: 260px minmax(146px, auto);
    scroll-snap-align: center;
  }

  .product-card img {
    max-width: calc(100% - 44px);
    max-height: calc(100% - 52px);
  }

  .product-card div {
    min-height: 146px;
    padding: 18px 18px 22px;
  }

  .equipment-products .product-marquee {
    min-height: 494px;
  }

  .equipment-products .product-card {
    grid-template-rows: 228px minmax(222px, auto);
  }

  .equipment-products .product-card div {
    min-height: 222px;
    padding: 18px 16px 20px;
  }

  .equipment-products .product-card p {
    min-height: 72px;
  }

  .product-card[aria-hidden="true"] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-track {
    animation: none;
  }
}

.question-card.is-required {
  border-color: rgba(255, 90, 90, .66) !important;
  box-shadow:
    0 0 0 1px rgba(255, 90, 90, .28),
    0 22px 58px rgba(255, 50, 50, .12) !important;
}

.diagnosis-required-notice {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 13px;
  width: min(640px, 100%);
  max-height: 0;
  margin: -4px auto 0;
  padding: 0 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 112, 112, .32);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 126, 126, .18), transparent 36%),
    linear-gradient(135deg, rgba(35, 12, 18, .9), rgba(7, 13, 27, .94));
  color: rgba(255, 255, 255, .92);
  opacity: 0;
  transform: translateY(-8px);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  transition:
    max-height .28s ease,
    margin .28s ease,
    padding .28s ease,
    opacity .24s ease,
    transform .24s ease;
}

.diagnosis-required-notice.is-visible {
  max-height: 120px;
  margin: 16px auto 6px;
  padding: 14px 18px;
  opacity: 1;
  transform: translateY(0);
}

.diagnosis-required-notice > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 126, 126, .42);
  border-radius: 50%;
  background: rgba(255, 92, 92, .14);
  color: #ffb9b9;
  font-size: 18px;
  font-weight: 700;
}

.diagnosis-required-notice p {
  margin: 0;
  line-height: 1.3;
}

.diagnosis-required-notice strong,
.diagnosis-required-notice small {
  display: block;
}

.diagnosis-required-notice strong {
  font-size: 14px;
  font-weight: 600;
}

.diagnosis-required-notice small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
}

@media (max-width: 540px) {
  .diagnosis-required-notice {
    grid-template-columns: 34px 1fr;
    gap: 11px;
    border-radius: 16px;
  }

  .diagnosis-required-notice.is-visible {
    padding: 13px 14px;
  }

  .diagnosis-required-notice > span {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 768px) {
  .hero-video,
  .promise-video,
  .bar-hero-video,
  .worship-video,
  .club-video,
  .theater-video,
  .campus-video {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover !important;
    object-position: center center !important;
    opacity: .72 !important;
    filter: brightness(.76) contrast(1.08) saturate(1.04) !important;
    transform: none !important;
    background: #02060d;
  }

  .hero-video {
    opacity: .66 !important;
  }

  .promise-video {
    opacity: .5 !important;
  }
}
