/* TRTG rotating category ring — preview branch only */

.trtg-ring-preview-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 14px;
  padding: 7px 11px;
  border: 1px solid rgba(0, 194, 203, 0.35);
  border-radius: 999px;
  background: rgba(0, 194, 203, 0.08);
  color: #303030;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trtg-ring-shell {
  --ring-card-width: 238px;
  --ring-card-height: 308px;
  --ring-radius: 410px;
  position: relative;
  margin: 18px auto 30px;
  padding: 24px 0 18px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 194, 203, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247,244,234,0.76));
  border: 1px solid rgba(0,0,0,0.05);
}

.trtg-ring-heading {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto 10px;
  text-align: center;
}

.trtg-ring-heading h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.12;
  color: #111;
}

.trtg-ring-heading p {
  margin: 9px auto 0;
  max-width: 720px;
  color: #575757;
  font-size: 0.98rem;
  line-height: 1.5;
}

.trtg-ring-stage-wrap {
  position: relative;
  width: 100%;
  min-height: 390px;
  display: grid;
  place-items: center;
}

.trtg-ring-scene {
  width: min(100%, 1120px);
  height: 360px;
  position: relative;
  perspective: 1150px;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  outline: none;
}

.trtg-ring-scene:active { cursor: grabbing; }

.trtg-category-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--ring-card-width);
  height: var(--ring-card-height);
  margin-left: calc(var(--ring-card-width) / -2);
  margin-top: calc(var(--ring-card-height) / -2);
  transform-style: preserve-3d;
  transition: transform 640ms cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.trtg-category-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,0.13);
  color: #fff;
  text-align: left;
  cursor: pointer;
  backface-visibility: hidden;
  transition: opacity 320ms ease, filter 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.trtg-category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02) 26%, rgba(0,0,0,0.83) 100%);
  z-index: 1;
}

.trtg-category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
  z-index: 3;
  pointer-events: none;
}

.trtg-category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.trtg-category-card-copy {
  position: relative;
  z-index: 2;
  padding: 22px 20px 20px;
}

.trtg-category-card-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0,194,203,0.95);
  color: #111;
  font-size: 16px;
}

.trtg-category-card h4 {
  margin: 0;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1.08;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.trtg-category-card p {
  margin: 7px 0 0;
  color: rgba(255,255,255,0.86);
  font-size: 0.88rem;
}

.trtg-category-card.is-active {
  border-color: #00C2CB;
  box-shadow:
    0 0 0 2px rgba(0,194,203,0.45),
    0 18px 55px rgba(0,194,203,0.24),
    0 24px 58px rgba(0,0,0,0.18);
}

.trtg-category-card:not(.is-active) {
  filter: saturate(0.78) brightness(0.8);
  opacity: 0.78;
}

.trtg-ring-control {
  position: absolute;
  z-index: 12;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0,0,0,0.11);
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: #111;
  box-shadow: 0 8px 26px rgba(0,0,0,0.12);
  cursor: pointer;
}

.trtg-ring-control:hover,
.trtg-ring-control:focus-visible {
  border-color: #00C2CB;
  box-shadow: 0 0 0 3px rgba(0,194,203,0.16), 0 8px 26px rgba(0,0,0,0.12);
  outline: none;
}

.trtg-ring-control.prev { left: max(12px, calc(50% - 545px)); }
.trtg-ring-control.next { right: max(12px, calc(50% - 545px)); }

.trtg-ring-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  padding: 0 18px;
}

.trtg-ring-dot {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.trtg-ring-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8b8983;
  transition: width 220ms ease, background 220ms ease;
}

.trtg-ring-dot.is-active::before {
  width: 28px;
  border-radius: 999px;
  background: #08767D;
}

.trtg-ring-instruction {
  margin: 11px auto 0;
  text-align: center;
  color: #6b6b6b;
  font-size: 0.8rem;
}

.trtg-category-results { margin-top: 24px; }

.trtg-category-results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}

.trtg-category-results-head h3 {
  margin: 0;
  color: #111;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.trtg-category-results-head button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-weight: 700;
  cursor: pointer;
}

.trtg-category-results-head button:hover,
.trtg-category-results-head button:focus-visible {
  border-color: #00C2CB;
  outline: 2px solid rgba(0,194,203,0.16);
}

.trtg-ring-empty {
  padding: 18px;
  border: 1px dashed rgba(0,0,0,0.15);
  border-radius: 14px;
  background: rgba(255,255,255,0.62);
  color: #555;
  text-align: center;
}

/* Preview experiment: remove the standalone hero image. */
.hero { display: none !important; }
.hero-copy { margin-top: 0 !important; }

@media (max-width: 820px) {
  .trtg-ring-shell {
    --ring-card-width: 188px;
    --ring-card-height: 252px;
    --ring-radius: 286px;
    margin-inline: -4px;
    border-radius: 18px;
    padding-top: 18px;
  }

  .trtg-ring-stage-wrap { min-height: 322px; }

  .trtg-ring-scene {
    height: 300px;
    perspective: 900px;
  }

  .trtg-category-card-copy { padding: 17px 15px 16px; }
  .trtg-category-card h4 { font-size: 1.08rem; }
  .trtg-category-card p { font-size: 0.76rem; }

  .trtg-category-card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 9px;
    font-size: 14px;
  }

  .trtg-ring-control {
    width: 44px;
    height: 44px;
  }

  .trtg-ring-control.prev { left: 6px; }
  .trtg-ring-control.next { right: 6px; }
}

@media (max-width: 520px) {
  .trtg-ring-shell {
    --ring-card-width: 164px;
    --ring-card-height: 224px;
    --ring-radius: 235px;
  }

  .trtg-ring-stage-wrap { min-height: 286px; }

  .trtg-ring-scene {
    height: 266px;
    perspective: 760px;
  }

  .trtg-ring-control {
    top: 51%;
    width: 44px;
    height: 44px;
  }

  .trtg-ring-nav {
    display: none;
  }

  .trtg-ring-heading { width: calc(100% - 22px); }
  .trtg-ring-heading p { font-size: 0.88rem; }

  .trtg-category-results-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trtg-category-ring,
  .trtg-category-card,
  .trtg-ring-dot {
    transition-duration: 0.01ms !important;
  }
}

/* Full-background preview: one hero image fills the viewport behind the whole page. */
body {
  position: relative;
  isolation: isolate;
  background: #F7F4EA !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(247, 244, 234, 0.56), rgba(247, 244, 234, 0.56)),
    url("/hero.webp") center center / cover no-repeat;
}

main {
  background: transparent !important;
  background-image: none !important;
}

@media (max-width: 820px) {
  body::before {
    background:
      linear-gradient(rgba(247, 244, 234, 0.60), rgba(247, 244, 234, 0.60)),
      url("/hero.webp") center center / cover no-repeat;
  }
}
