/* ============================================================
   Wuthqa — Investment Hub page styles
   Builds on tokens + chrome (home.css) + shared inner styles (inner.css).
   ============================================================ */

/* ---- Snapshot stats grid ---------------------------------------- */
.wq-snap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.wq-snap-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg);
  padding: 24px 22px; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.wq-snap-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.wq-snap-v { font-family: var(--font-en); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); color: var(--gold);
  letter-spacing: -.02em; line-height: 1; }
.wq-snap-l { color: var(--teal); font-size: 13.5px; font-weight: 600; line-height: 1.4; margin-top: 12px; }
.wq-snap-d { color: var(--fg-3); font-size: 12.5px; margin-top: 6px; }

/* ---- Saudi map + "Did You Know" bubbles (blended into the section) -- */
.wq-snap2 { position: relative; min-height: 600px; }
.wq-saudi { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.wq-saudi svg { width: min(42%, 460px); height: 88%; max-height: 480px; overflow: visible; }
.wq-saudi-fill { fill: rgba(200, 168, 75, .05); stroke: rgba(200, 168, 75, .32); stroke-width: 1.6; }
.wq-saudi-links line { stroke: rgba(200, 168, 75, .3); stroke-width: 2.4; stroke-dasharray: 8 9; }
.wq-saudi-dot { fill: var(--gold); }
.wq-saudi-city.is-big .wq-saudi-dot { fill: #fff; stroke: var(--gold); stroke-width: 2; }

.wq-snap2-bubbles { position: absolute; inset: 0; }
/* glowing translucent orbs — number centred, varied sizes, both sides, gently floating */
.wq-snap2-bubble { position: absolute; border-radius: 50%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 7%;
  border: 1px solid rgba(200, 168, 75, .32);
  background: radial-gradient(circle at 50% 66%, rgba(214, 180, 90, .26) 0%, rgba(60, 54, 32, .42) 40%,
    rgba(20, 18, 12, .22) 72%, rgba(20, 18, 12, 0) 100%);
  box-shadow: inset 0 -14px 46px rgba(200, 168, 75, .14), 0 22px 60px -22px rgba(0, 0, 0, .65);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation-name: wqBubbleFloat; animation-timing-function: ease-in-out; animation-iteration-count: infinite;
  animation-duration: 6s; will-change: transform; }
@keyframes wqBubbleFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }
@media (prefers-reduced-motion: reduce) { .wq-snap2-bubble { animation: none; } }
.wq-snap2-v { color: #fff; font-family: var(--font-en); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.wq-snap2-l { color: rgba(255, 255, 255, .62); font-size: 10px; line-height: 1.4; margin-top: 8px; }

@media (max-width: 980px) {
  .wq-snap2 { min-height: 0; }
  .wq-saudi { position: relative; inset: auto; height: auto; }
  .wq-saudi svg { width: 86%; max-height: 320px; }
  .wq-snap2-bubbles { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 22px; }
  .wq-snap2-bubble { position: static !important; width: 134px !important; height: 134px !important;
    top: auto !important; left: auto !important; right: auto !important; }
  .wq-snap2-bubble .wq-snap2-v { font-size: 26px !important; }
  .wq-snap2-bubble .wq-snap2-l { display: none; }
}

/* ---- Sectors + Reforms — two equal-height columns + gold divider - */
.wq-inv-two { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: stretch; }
.wq-inv-two::before { content: ''; position: absolute; top: 6px; bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 1px; background: linear-gradient(180deg, transparent, rgba(200, 168, 75, .55) 14%, rgba(200, 168, 75, .55) 86%, transparent); }
.wq-inv-col { display: flex; flex-direction: column; }
.wq-inv-sub { text-align: start; font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; color: var(--teal);
  font-size: clamp(20px, 2.2vw, 26px); margin: 0 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }

/* ---- High-growth sectors (2×2 grid, cards fill the column) ------- */
.wq-sectors-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr 1fr; gap: 16px; flex: 1; }
.wq-sector-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px 20px;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.wq-sector-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.wq-sector-ic { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: var(--r-full); background: var(--gold-tint); color: var(--gold); margin-bottom: 14px; }
.wq-sector-name { font-weight: 700; font-size: 16px; color: var(--teal); }
.wq-sector-fig { color: var(--gold-600); font-family: var(--font-en); font-weight: 600; font-size: 13px; margin-top: 6px; }

/* ---- 2026 reforms (3 rows, stretched to fill the column) -------- */
.wq-reforms { display: grid; grid-template-rows: repeat(3, 1fr); gap: 16px; flex: 1; }
.wq-reform-card { display: flex; gap: 15px; align-items: center; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px 22px;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.wq-reform-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.wq-reform-ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--gold-tint);
  color: var(--gold); display: inline-flex; align-items: center; justify-content: center; }
.wq-reform-ttl { font-weight: 600; font-size: 15px; color: var(--teal); line-height: 1.4; }
.wq-reform-d { color: var(--fg-2); font-size: 13px; line-height: 1.55; margin-top: 6px; }

/* One column rendered as a dark panel to break the two-column symmetry */
.wq-inv-two.has-dark::before { display: none; }
.wq-inv-col.is-dark { background: linear-gradient(160deg, #14130f 0%, #0b0b08 100%); border-radius: var(--r-xl);
  padding: clamp(22px, 2.6vw, 34px); box-shadow: 0 26px 60px -34px rgba(0, 0, 0, .6); }
.wq-inv-col.is-dark .wq-inv-sub { color: #fff; border-bottom-color: rgba(255, 255, 255, .14); }
.wq-inv-col.is-dark .wq-reform-card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.wq-inv-col.is-dark .wq-reform-card:hover { border-color: var(--gold); background: rgba(255, 255, 255, .07); box-shadow: none; }
.wq-inv-col.is-dark .wq-reform-ic { background: rgba(200, 168, 75, .16); }
.wq-inv-col.is-dark .wq-reform-ttl { color: #fff; }
.wq-inv-col.is-dark .wq-reform-d { color: rgba(255, 255, 255, .62); }

/* Connector lines from the floating snapshot bubbles to the map cities */
.wq-snap2-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wq-snap2-lines line { stroke: rgba(200, 168, 75, .22); stroke-width: 1.3; stroke-dasharray: 3 6; }

/* ---- Opportunity / Private-deal cards --------------------------- */
.wq-opp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.wq-opp-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.wq-opp-card:hover { transform: translateY(-5px); border-color: var(--teal); box-shadow: var(--shadow-lg); }
.wq-opp-img { position: relative; height: 168px; background-size: cover; background-position: center; background-color: var(--surface); }
.wq-opp-ind { position: absolute; left: 14px; bottom: 14px; font-family: var(--font-en); font-size: 11px; font-weight: 600;
  color: var(--teal-900); background: var(--gold); border-radius: var(--r-full); padding: 5px 12px; }
.wq-opp-excl { position: absolute; right: 14px; top: 14px; font-family: var(--font-en); font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(13,13,13,.7);
  border: 1px solid var(--gold); border-radius: var(--r-full); padding: 4px 11px; }
.wq-opp-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.wq-opp-title { font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; font-size: 18px; color: var(--teal); margin: 0 0 8px; }
.wq-opp-desc { color: var(--fg-2); font-size: 13.5px; line-height: 1.6; margin: 0 0 16px; flex: 1; }
.wq-opp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 0; margin-bottom: 16px;
  border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.wq-opp-stats .k { display: block; font-size: 11.5px; color: var(--fg-3); }
.wq-opp-stats .v { display: block; font-family: var(--font-en); font-weight: 600; font-size: 14.5px; color: var(--teal); margin-top: 3px; }
.wq-opp-note { text-align: center; margin-top: 26px; font-size: 12.5px; color: var(--fg-3); font-style: italic; }

/* ---- Private Deals — dark, premium glass variant ---------------- */
.wq-opp-sec-excl { position: relative; }
.wq-opp-sec-excl::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% -6%, rgba(200, 168, 75, .12), transparent 70%); }
.wq-opp-grid.is-excl .wq-opp-card { background: rgba(255, 255, 255, .04); border: 1px solid rgba(200, 168, 75, .26);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wq-opp-grid.is-excl .wq-opp-card:hover { transform: translateY(-5px); border-color: var(--gold);
  box-shadow: 0 34px 70px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(200, 168, 75, .45); }
.wq-opp-grid.is-excl .wq-opp-img { background-color: #15140f; }
.wq-opp-grid.is-excl .wq-opp-img::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 13, .15) 0%, rgba(13, 13, 13, .72) 100%); }
.wq-opp-grid.is-excl .wq-opp-ind, .wq-opp-grid.is-excl .wq-opp-excl { z-index: 2; }
.wq-opp-grid.is-excl .wq-opp-excl { background: var(--gold); color: var(--teal-900); border-color: var(--gold);
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .5); }
.wq-opp-grid.is-excl .wq-opp-title { color: #fff; }
.wq-opp-grid.is-excl .wq-opp-desc { color: rgba(255, 255, 255, .6); }
.wq-opp-grid.is-excl .wq-opp-stats { border-top-color: rgba(255, 255, 255, .12); border-bottom-color: rgba(255, 255, 255, .12); }
.wq-opp-grid.is-excl .wq-opp-stats .k { color: rgba(255, 255, 255, .5); }
.wq-opp-grid.is-excl .wq-opp-stats .v { color: var(--gold); }
.wq-opp-sec-excl .wq-opp-note { color: rgba(255, 255, 255, .42); }

/* ---- Responsive ------------------------------------------------- */
@media (max-width: 920px) {
  .wq-inv-two { grid-template-columns: 1fr; gap: 40px; align-items: stretch; }
  .wq-inv-two::before { display: none; }
  .wq-sectors-grid, .wq-reforms { flex: 0 0 auto; }
  .wq-sectors-grid { grid-template-rows: auto; }
  .wq-reforms { grid-template-rows: auto; }
}
@media (max-width: 980px) {
  .wq-opp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .wq-snap-grid { grid-template-columns: 1fr 1fr; }
  .wq-sectors-grid { grid-template-columns: 1fr 1fr; }
  .wq-opp-grid { grid-template-columns: 1fr; }
}

/* ---- Red CTA banner (below the map) ----------------------------- */
.wq-inv-banner { position: relative; overflow: hidden; color: #fff; background-color: #6d130d;
  background-image:
    radial-gradient(120% 140% at 85% -20%, rgba(216, 56, 46, .42), transparent 58%),
    linear-gradient(115deg, rgba(143, 25, 18, .9) 0%, rgba(109, 19, 13, .91) 55%, rgba(76, 12, 12, .94) 100%),
    url('/assets/heroes/banner-riyadh.jpg');
  background-size: cover, cover, cover; background-position: center, center, center; background-repeat: no-repeat; }
.wq-inv-banner::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url('/assets/brand/mark-spiral.png') no-repeat right -70px center / 360px; opacity: .07; }
.wq-inv-banner-inner { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto;
  padding: clamp(56px, 8vw, 90px) 32px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.wq-inv-banner-title { font-family: 'Source Serif 4', Georgia, serif; font-weight: 600;
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.18; letter-spacing: -.01em; margin: 0; max-width: 22ch; color: #fff; }
.wq-inv-banner-text { font-size: 16.5px; line-height: 1.75; color: rgba(255, 255, 255, .85); margin: 18px 0 0; max-width: 62ch; }
.wq-inv-banner-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }

/* ---- Invest Saudi (MISA) live-feed cards ------------------------- */
.wq-opp-src { position: absolute; right: 14px; top: 14px; font-family: var(--font-en); font-size: 10.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: #fff; background: rgba(13, 13, 13, .62);
  border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--r-full); padding: 5px 11px;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.wq-opp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.wq-opp-actions .wq-btn { margin: 0; }

/* ---- Public opportunities: full-height, 4-up scroll-snap gallery ---- */
.wq-opp-sec-fill { min-height: 100vh; display: grid; align-content: center; box-sizing: border-box; }
/* Side padding makes room for the paging arrows so they never sit on the cards. */
.wq-opp-crsl { position: relative; padding-inline: 58px; }
.wq-opp-grid.is-carousel { grid-template-columns: none; grid-auto-flow: column; gap: 18px;
  grid-auto-columns: calc((100% - 54px) / 4); overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 6px;
  scrollbar-width: none; -ms-overflow-style: none; }
.wq-opp-grid.is-carousel::-webkit-scrollbar { display: none; }
.wq-opp-grid.is-carousel .wq-opp-card { scroll-snap-align: start; }
/* Compact cards for the 4-up public gallery (private deals keep the larger card). */
.wq-opp-grid.is-carousel .wq-opp-img { height: 128px; }
.wq-opp-grid.is-carousel .wq-opp-body { padding: 16px 16px 15px; }
.wq-opp-grid.is-carousel .wq-opp-title { font-size: 15px; line-height: 1.3; margin: 0 0 6px; }
.wq-opp-grid.is-carousel .wq-opp-desc { font-size: 12.5px; line-height: 1.55; margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wq-opp-grid.is-carousel .wq-opp-stats { padding: 10px 0; margin-bottom: 12px; gap: 8px; }
.wq-opp-grid.is-carousel .wq-opp-stats .v { font-size: 13px; }
.wq-opp-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: var(--r-full); border: 1px solid var(--border);
  background: #fff; color: var(--teal); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .4);
  transition: border-color .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease); }
.wq-opp-nav.prev { inset-inline-start: 6px; }
.wq-opp-nav.next { inset-inline-end: 6px; }
.wq-opp-nav:hover { border-color: var(--gold); color: var(--gold); }
.wq-opp-nav:disabled { opacity: .3; cursor: default; }
.wq-opp-nav:disabled:hover { border-color: var(--border); color: var(--teal); }
@media (max-width: 1100px) { .wq-opp-grid.is-carousel { grid-auto-columns: calc((100% - 36px) / 3); } }
@media (max-width: 860px) {
  .wq-opp-sec-fill { min-height: 0; display: block; }
  .wq-opp-crsl { padding-inline: 46px; }
  .wq-opp-grid.is-carousel { grid-auto-columns: calc((100% - 18px) / 2); }
}
@media (max-width: 560px) {
  .wq-opp-crsl { padding-inline: 0; }
  .wq-opp-nav { display: none; }
  .wq-opp-grid.is-carousel { grid-auto-columns: 86%; }
}
