/* =============================================================
   HZL Microsite — Our Group Structure
   Interactive ownership + subsidiaries hub (Reventador-style)
   ============================================================= */

/* Scoped font tokens so var(--display)/var(--body) resolve here */
.gs{
  --display: 'proxima-nova-condensed', 'proxima-nova', 'Arial Narrow', sans-serif;
  --body:    'proxima-nova', system-ui, sans-serif;
}

/* ── Section ─────────────────────────────────────────────────── */
.gs{
  position:relative;width:100%;padding:56px 0 64px;overflow:hidden;color:#111;margin-top:-100px;
  background: linear-gradient(to bottom, #ffffff 0%, #9ad4f1 100%);
}
/* White-to-transparent blend at top edge (KPI → Group Structure transition) */
.gs::before{
  content:'';
  position:absolute;
  top:0;left:0;right:0;
  height:140px;
  background:linear-gradient(to bottom,#ffffff 0%,rgba(255,255,255,0) 100%);
  z-index:1;
  pointer-events:none;
}
.gs__stars{display:none}

/* ── Layout: headline LEFT · diagram RIGHT ───────────────────── */
.gs__layout{
  position:relative;z-index:2;
  max-width:1340px;margin:0 auto;
  padding:0 clamp(20px,4vw,56px);
  display:flex;align-items:center;gap:24px;
}
.gs__left{
  position:relative;flex:0 0 380px;max-width:380px;
  min-height:560px;display:flex;flex-direction:column;justify-content:center;
}
.gs__right{flex:1 1 auto;position:relative;display:flex;justify-content:center}

/* ── Header (left-aligned, single line) ──────────────────────── */
.gs__head{position:relative;z-index:3;text-align:left;transform:translateY(-80px)}
.gs__title{font-family:var(--display);font-size:34px;font-weight:800;text-transform:uppercase;letter-spacing:0.02em;color:#0060a3;line-height:1.05;white-space:nowrap}
.gs__subtitle{margin-top:18px;font-size:15px;line-height:1.65;letter-spacing:0.01em;color:rgba(10,22,40,0.6);max-width:340px}

/* ── Viewport (holds cluster + card) ─────────────────────────── */
.gs__viewport{position:relative;z-index:2;width:100%;height:790px;overflow:hidden}

/* ── Cluster (center + ring) ─────────────────────────────────── */
.gs__cluster{
  position:absolute;left:50%;top:50%;
  width:700px;height:700px;
  transform:translate(-50%,-50%);
  transition:transform .65s cubic-bezier(.16,1,.3,1);
  perspective:1200px;            /* 3D depth for the cursor-wander tilt */
}

/* Inner unit that tilts toward the cursor (cursor-wander effect) */
.gs__tilt{
  position:absolute;inset:0;
  transform-style:preserve-3d;
  transition:transform .25s ease-out;
  will-change:transform;
}

.gs__glare{display:none}

/* ── Center circle + ripple rings ────────────────────────────── */
.gs__center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4;width:300px;height:300px;display:flex;align-items:center;justify-content:center;cursor:pointer}
.gs__ripple{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%;pointer-events:none}
.gs__ripple--1{width:540px;height:540px;background:radial-gradient(circle,rgba(20,85,255,0.15) 0%,rgba(20,85,255,0.04) 52%,rgba(20,85,255,0) 80%)}
.gs__ripple--2{width:412px;height:412px;background:radial-gradient(circle,rgba(20,85,255,0.22) 0%,rgba(20,85,255,0.10) 50%,rgba(20,85,255,0) 76%)}
.gs__ripple--pulse{width:376px;height:376px;border:1.5px solid rgba(120,170,255,0.32)}
.gs__circle{
  position:relative;width:300px;height:300px;border-radius:50%;
  display:flex;flex-direction:column;align-items:center;justify-content:space-between;
  text-align:center;padding:40px 0;
  background:url('../assets/images/OUR%20GROUP%20STRUCTURE%20centre%20round.png') center/cover;
  box-shadow:0 0 60px rgba(20,85,255,0.6),0 0 110px rgba(8,42,140,0.55);
  transition:transform .4s cubic-bezier(.2,1,.3,1),box-shadow .4s;
}
.gs__center:hover .gs__circle{transform:scale(1.05);box-shadow:0 0 80px rgba(20,85,255,0.85),0 0 130px rgba(31,194,176,0.4)}
.gs__c-top{font-family:var(--display);font-weight:800;font-size:13px;letter-spacing:0.22em;text-transform:uppercase;color:#fff;text-shadow:0 1px 6px rgba(0,0,0,0.55)}
.gs__c-name{font-family:var(--display);font-weight:800;font-size:25px;letter-spacing:0.02em;text-transform:uppercase;color:#fff;line-height:1.12;text-shadow:0 2px 12px rgba(0,0,0,0.65)}
.gs__c-bot{font-family:var(--display);font-weight:800;font-size:13px;letter-spacing:0.22em;text-transform:uppercase;color:#fff;text-shadow:0 1px 6px rgba(0,0,0,0.55)}

/* ── Ring node tiles ─────────────────────────────────────────── */
.gs__node{
  position:absolute;width:96px;height:96px;border-radius:22px;z-index:5;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;padding:14px;
  background:rgba(20,30,66,0.55);
  border:1px solid rgba(120,170,255,0.16);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  box-shadow:0 14px 36px rgba(0,0,0,0.4);
  transition:box-shadow .35s,border-color .35s,background .35s;
}
.gs__node--sub{background:#fff;box-shadow:0 0 18px rgba(0,96,163,0.25),0 0 40px rgba(0,96,163,0.12),0 8px 24px rgba(0,96,163,0.15);border:1px solid rgba(0,96,163,0.18)}
.gs__node--sub:hover{box-shadow:0 18px 48px rgba(20,85,255,0.45),0 0 34px rgba(79,224,207,0.35);cursor:pointer}
.gs__node--share:hover{border-color:rgba(79,224,207,0.45);box-shadow:0 18px 48px rgba(20,85,255,0.30)}
.gs__node--sub.is-active{box-shadow:0 0 0 2px #1455FF,0 18px 48px rgba(20,85,255,0.5)}
.gs__node img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.gs__node-pct{font-family:var(--display);font-weight:800;font-size:22px;color:#fff;line-height:1}
.gs__node-label{ display:block; }
.gs__node--share .gs__node-label{ display:block;font-size:14px;color:#fff;text-align:center;line-height:16px; }

/* ── Info card (opens below the headline) ────────────────────── */
.gs__card{
  position:absolute;left:0;top:calc(100% + 20px);
  transform:translate(-30px,0);
  width:100%;max-width:380px;
  padding:30px 28px 28px;border-radius:24px;z-index:20;overflow:hidden;
  background:rgba(18,26,62,0.96);
  backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  border:1px solid rgba(120,170,255,0.26);
  box-shadow:0 40px 110px rgba(0,0,0,0.6);
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .5s ease,transform .5s cubic-bezier(.16,1,.3,1),visibility .5s;
}
.gs.is-open .gs__card{opacity:1;visibility:visible;pointer-events:auto;transform:translate(0,0)}

/* shine sweep across the card */
.gs__card-shine{
  position:absolute;top:-60%;left:-75%;width:55%;height:220%;z-index:9;
  pointer-events:none;transform:rotate(18deg);mix-blend-mode:soft-light;opacity:0;
  background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,0.06) 38%,rgba(255,255,255,0.32) 50%,rgba(255,255,255,0.06) 62%,transparent 100%);
}
.gs.is-open .gs__card-shine{animation:gsCardShine 4.4s cubic-bezier(.5,0,.5,1) .5s infinite}
@keyframes gsCardShine{
  0%{left:-75%;opacity:0}8%{opacity:1}26%{left:135%;opacity:1}30%{opacity:0}100%{left:135%;opacity:0}
}
.gs__card-logo{width:120px;height:56px;border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:center;padding:9px;margin-bottom:20px}
.gs__card-logo img{max-width:100%;max-height:100%;object-fit:contain}
.gs__card-code{font-family:var(--display);font-size:12px;font-weight:700;letter-spacing:0.2em;color:#4fe0cf;text-transform:uppercase;margin-bottom:8px}
.gs__card-title{font-family:var(--display);font-size:24px;font-weight:700;line-height:1.2;color:#fff;margin-bottom:16px}
.gs__card-desc{font-size:14.5px;line-height:1.7;color:rgba(220,230,255,0.78);margin-bottom:26px}
.gs__card-close{position:absolute;top:16px;right:16px;width:36px;height:36px;border-radius:11px;border:1px solid rgba(255,255,255,0.16);background:rgba(255,255,255,0.06);color:rgba(255,255,255,0.7);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s,color .2s}
.gs__card-close:hover{background:rgba(20,85,255,0.25);color:#fff}
.gs__card-close svg{width:16px;height:16px}

/* ── Desktop: close button not needed (card closes on mouseleave) */
@media (min-width: 921px) {
  .gs__card-close { display: none; }
  /* Subsidiary tiles are logo-only on desktop — drop the in-flow caption span
     (white-on-white, invisible) that left empty space below each logo. */
  .gs__node--sub .gs__node-label { display: none; }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width:920px){
  .gs__layout{flex-direction:column;align-items:center;gap:26px}
  .gs__left{flex:none;max-width:560px;min-height:0;text-align:center;align-items:center}
  .gs__head{text-align:center;transform:none}
  .gs__title{white-space:normal}
  .gs__subtitle{margin-left:auto;margin-right:auto}
  .gs__viewport{height:auto;overflow:visible;display:flex;flex-direction:column;align-items:center;gap:30px}
  .gs__cluster{position:relative;left:auto;top:auto;width:auto;height:auto;transform:none!important;display:flex;flex-direction:column;align-items:center;gap:26px;perspective:none}
  .gs__tilt{position:static!important;inset:auto;transform:none!important;display:contents}
  .gs__center{position:relative;left:auto;top:auto;transform:none;order:1;margin:6px 0}
  .gs__ring{order:2;display:flex;flex-wrap:wrap;justify-content:center;gap:38px 18px;position:static!important}.gs__ring--share{order:0;display:flex;flex-wrap:wrap;justify-content:center;gap:18px 14px;position:static!important}
  .gs__node{position:static!important;transform:none!important}
  .gs__card{position:fixed;left:50%;top:auto;bottom:0;transform:translate(-50%,100%);width:96vw;max-width:none;border-radius:24px 24px 0 0}
  .gs.is-open .gs__card{transform:translate(-50%,0)}
  /* card is moved to body on mobile — target it directly */
  .gs__card.is-open{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0)}
}
