/* ============================================================
   My Studio Widgets — GC Pillars Diagram
   Radial animated diagram. Node positions are controlled
   entirely by JS — CSS only handles appearance.
   ============================================================ */

.gc-pillars-diagram {
  --gc-pd-gold:       #b8953a;
  --gc-pd-gold-light: #d4af6a;
  --gc-pd-gold-pale:  rgba(184,149,58,0.10);
  --gc-pd-bg:         #ffffff;
  --gc-pd-text:       #1c1914;
  --gc-pd-mid:        #3a3228;
  --gc-pd-muted:      #7a6e62;
  --gc-pd-border:     rgba(184,149,58,0.28);
}

.gc-pillars-diagram *,
.gc-pillars-diagram *::before,
.gc-pillars-diagram *::after { box-sizing: border-box; margin: 0; padding: 0; }

.gc-pillars-diagram {
  width: 100%;
  background: var(--gc-pd-bg);
  padding: 2rem 1rem 1.5rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--gc-pd-text);
  overflow: hidden;
  border-radius: 20px;
}

/* ── Section header ── */
.gc-pd-header {
  text-align: center;
  margin-bottom: 1.2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.gc-pd-overline {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gc-pd-gold);
  margin-bottom: 0.6rem;
}

.gc-pd-heading {
  font-family: 'Cormorant Garamond', 'trajan-pro', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--gc-pd-text);
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

/* ── Ornamental rule  ◆ ── */
.gc-pd-rule {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 220px;
  margin: 1rem auto;
}
.gc-pd-rule span { flex: 1; height: 1px; background: var(--gc-pd-border); }
.gc-pd-rule i    { font-style: normal; font-size: 0.45rem; color: var(--gc-pd-gold); flex-shrink: 0; }

/* ────────────────────────────────────────────────────────────
   DIAGRAM WRAP — square, centred
   ──────────────────────────────────────────────────────────── */
.gc-pd-diagram-wrap {
  position: relative;
  width: min(780px, 96vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto 1rem;
  cursor: pointer;
}

.gc-pd-bg-img {
  position: absolute;
  inset: -2%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* opacity: 0.2; */
  pointer-events: none;
  z-index: 0;
}

/* SVG overlay */
.gc-pd-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

/* ────────────────────────────────────────────────────────────
   CENTRE CIRCLE
   ──────────────────────────────────────────────────────────── */
.gc-pd-centre {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 166px;
  height: 166px;
  border-radius: 50%;
  border: 1.5px solid var(--gc-pd-gold);
  background: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 5;
  cursor: pointer;
  transition: box-shadow 0.5s ease;
}

/* Idle breathing pulse */
@keyframes gc-pd-centre-breathe {
  0%,100% { box-shadow: 0 0 0 2px rgba(184,149,58,0.2),  0 0 20px rgba(184,149,58,0.06); }
  50%      { box-shadow: 0 0 0 5px rgba(184,149,58,0.45), 0 0 40px rgba(184,149,58,0.18); }
}
.gc-pd-centre { animation: gc-pd-centre-breathe 3.5s ease-in-out infinite; }


.gc-pd-centre-label {
  font-family: 'Cormorant Garamond', 'trajan-pro', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  color: var(--gc-pd-gold);
  text-transform: uppercase;
}

/* ────────────────────────────────────────────────────────────
   OUTER NODE CIRCLES
   top / left / transform are set entirely by JS.
   CSS only handles appearance + transitions.
   ──────────────────────────────────────────────────────────── */
.gc-pd-node {
  position: absolute;
  /* JS sets top, left, transform; CSS provides the visual */
  width: 160px;
  height: 160px;
  z-index: 3;
  cursor: default;
  /* Smooth position interpolation */
  will-change: transform, opacity;
}

.gc-pd-node-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid var(--gc-pd-border);
  background: rgba(255,255,255,0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.55rem 0.4rem;
  gap: 0.08rem;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Idle pulse on border */
@keyframes gc-pd-node-pulse {
  0%,100% { border-color: rgba(184,149,58,0.25); }
  50%      { border-color: rgba(184,149,58,0.6);  }
}
.gc-pd-node-inner { animation: gc-pd-node-pulse 3s ease-in-out infinite; }

/* Active (hovered) — double ring + lift */
.gc-pd-node.is-active .gc-pd-node-inner {
  border-color: var(--gc-pd-gold);
  box-shadow:
    0 0 0 3px var(--gc-pd-gold),
    0 0 0 7px rgba(184,149,58,0.18),
    0 10px 32px rgba(184,149,58,0.38);
  animation-play-state: paused;
  transform: scale(1.12);
  transition:
    transform 0.38s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 0.35s ease,
    border-color 0.25s ease;
}

/* Dimmed */
.gc-pd-node.is-dimmed .gc-pd-node-inner {
  opacity: 0.2;
  animation-play-state: paused;
  transition: opacity 0.4s ease;
}


/* ────────────────────────────────────────────────────────────
   CENTRE — PILLAR INFO PANEL (injected by JS on hover)
   Crossfades with the default "Back to Centre" label.
   ──────────────────────────────────────────────────────────── */
.gc-pd-centre {
  overflow: hidden;
  transition:
    width  0.45s cubic-bezier(0.34,1.2,0.64,1),
    height 0.45s cubic-bezier(0.34,1.2,0.64,1),
    box-shadow 0.4s ease;
}

/* Expanded size while showing pillar info */
.gc-pd-centre.gc-pd-centre--info {
  width:  248px !important;
  height: 248px !important;
  box-shadow:
    0 0 0 3px var(--gc-pd-gold),
    0 0 52px rgba(184,149,58,0.24) !important;
  animation-play-state: paused;
}

/* Default label crossfades out */
.gc-pd-centre-label {
  transition: opacity 0.25s ease, transform 0.3s ease;
}
.gc-pd-centre.gc-pd-centre--info .gc-pd-centre-label {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}

/* Info panel */
.gc-pd-centre-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.5rem;
  gap: 0.18rem;
  opacity: 0;
  transform: scale(0.82) translateY(6px);
  transition:
    opacity   0.35s ease 0.12s,
    transform 0.4s  cubic-bezier(0.34,1.2,0.64,1) 0.08s;
  pointer-events: none;
  text-align: center;
}
.gc-pd-centre.gc-pd-centre--info .gc-pd-centre-info {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ── Info panel content ── */
.gc-pd-ci-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gc-pd-gold);
  opacity: 0.7;
  line-height: 1;
}

.gc-pd-ci-icon {
  font-size: 2rem;
  line-height: 1;
  margin: 0.12rem 0 0.08rem;
}

.gc-pd-ci-name {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gc-pd-text);
  line-height: 1.2;
}

/* Gold rule under name */
.gc-pd-ci-name::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gc-pd-gold);
  margin: 0.3rem auto 0.1rem;
  opacity: 0.5;
}

.gc-pd-ci-desc {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gc-pd-muted);
  line-height: 1.5;
  max-width: 180px;
}

.gc-pd-node-icon { font-size: 2rem; line-height: 1; margin-bottom: 0.3rem; }

.gc-pd-node-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gc-pd-gold);
  line-height: 1;
  margin-bottom: 0.15rem;
}

.gc-pd-node-name {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gc-pd-text);
  line-height: 1.25;
}

/* Description hidden on orbit nodes — shown only in centre info panel on hover */
.gc-pd-node-desc { display: none; }

/* ────────────────────────────────────────────────────────────
   BODY TEXT
   ──────────────────────────────────────────────────────────── */
.gc-pd-body {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem 2rem;
  display: none;
}

.gc-pd-body-text {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gc-pd-mid);
  line-height: 1.85;
  margin-bottom: 0.5rem;
}

.gc-pd-standout {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  color: var(--gc-pd-gold);
  line-height: 1.7;
}

.gc-pd-closing { display: flex; flex-direction: column; gap: 0.15rem; }

.gc-pd-closing-line {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gc-pd-gold);
  line-height: 1.8;
}

/* ────────────────────────────────────────────────────────────
   SCROLL REVEAL
   ──────────────────────────────────────────────────────────── */
.gc-pillars-diagram [data-gc-pd-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.gc-pillars-diagram [data-gc-pd-reveal].gc-pd-visible {
  opacity: 1;
  transform: translateY(0);
}
.elementor-editor-active .gc-pillars-diagram [data-gc-pd-reveal] {
  opacity: 1; transform: none;
}

/* ── Responsive ── */
@media (max-width: 500px) {
  .gc-pd-node         { width: 112px; height: 112px; }
  .gc-pd-centre       { width: 128px; height: 128px; }
  .gc-pd-node-icon    { font-size: 1.4rem; }
  .gc-pd-node-name    { font-size: 0.78rem; }
  .gc-pd-node-num     { font-size: 0.65rem; }
  .gc-pd-centre-label { font-size: 0.9rem; }
}
