/* ==========================================================================
   VisionQuantech — Glass System (2026-11-28)
   Professional · minimal · glassmorphism. Brand: Vision Blue #2B5CE6,
   Signal Blue #1A73E8, Ink #0A1428, Deep Navy #0D1B3E, Paper #F5F7FA,
   Slate #42597A. Ratio: ~60% Paper, ~25% Deep Navy, ~12% Vision Blue.
   Loads AFTER styles.css (light GLOBAL THEME) and wins ties.
   ========================================================================== */

/* --- Page ground: Paper with a faint blue glow at the top --- */
body.glass{
  background:
    radial-gradient(1100px 480px at 50% -10%, rgba(43,92,230,.09), rgba(43,92,230,0) 65%),
    #F5F7FA !important;
  color:#0A1428 !important;
}
/* Kill the film-grain overlay on glass pages — grain fights the glass. */
body.glass::after{display:none !important;}

/* --- Glass nav: frosted Deep Navy, sticky --- */
.g-nav{
  position:sticky; top:0; z-index:100;
  background:rgba(13,27,62,.78);
  -webkit-backdrop-filter:blur(18px) saturate(1.4);
  backdrop-filter:blur(18px) saturate(1.4);
  border-bottom:1px solid rgba(255,255,255,.09);
}
.g-nav-inner{
  max-width:1200px; margin:0 auto; padding:0 28px;
  min-height:64px; display:flex; align-items:center; gap:32px;
}
.g-brand{
  display:flex; align-items:center; gap:10px;
  font-family:"Space Grotesk","Inter",sans-serif; font-weight:700; font-size:1.08rem;
  color:#f0f4f8 !important; text-decoration:none; letter-spacing:-.01em; white-space:nowrap;
}
.g-brand img{height:34px; width:auto; display:block;}
.g-links{display:flex; align-items:center; gap:4px; margin-left:auto;}
.g-links > a{
  color:rgba(240,244,248,.82) !important; text-decoration:none;
  font-size:.95rem; font-weight:500; padding:9px 13px; border-radius:8px;
  transition:background .18s, color .18s; white-space:nowrap;
}
.g-links > a:hover{color:#fff !important; background:rgba(255,255,255,.08);}
.g-links > a.g-cta{
  background:#2B5CE6 !important; color:#fff !important; font-weight:600;
  padding:10px 18px; border-radius:10px; margin-left:10px;
  box-shadow:0 6px 18px rgba(43,92,230,.35);
}
.g-links > a.g-cta:hover{background:#1E4FD6 !important;}
.g-burger{
  display:none; background:none; border:0; color:#f0f4f8;
  font-size:1.4rem; cursor:pointer; min-width:44px; min-height:44px; margin-left:auto;
}

/* --- Glass cards: navy frosted panels on Paper --- */
.g-card,
.svc-card, .cat-card, .agent, .pg-card, .arm, .feat, .blog-card,
.bk-card, .login-box, .platform, .showcase, .ent-col, .testi{
  background:linear-gradient(160deg, rgba(26,58,125,.96), rgba(13,27,62,.97)) !important;
  border:1px solid rgba(255,255,255,.16) !important;
  box-shadow:0 18px 44px rgba(10,20,40,.16), inset 0 1px 0 rgba(255,255,255,.14) !important;
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  border-radius:18px !important;
}
a.svc-card:hover, a.cat-card:hover, a.arm:hover, a.pg-card:hover, a.blog-card:hover{
  transform:translateY(-4px);
  border-color:rgba(110,168,254,.5) !important;
  box-shadow:0 26px 56px rgba(10,20,40,.22), inset 0 1px 0 rgba(255,255,255,.16) !important;
}

/* --- Page heroes on hub pages: room to breathe --- */
.pg-hero{padding:84px 28px 40px !important;}
.pg-eyebrow, .svc-eyebrow{
  font-family:"IBM Plex Mono",ui-monospace,monospace;
  font-size:11px; letter-spacing:.12em; color:#1559C0; font-weight:500;
}
.pg-h1{letter-spacing:-.03em !important;}

/* --- Buttons: one primary, Vision Blue --- */
.btn-primary, .g-btn{
  background:#2B5CE6 !important; color:#fff !important;
  box-shadow:0 8px 22px rgba(43,92,230,.32);
}
.btn-primary:hover, .g-btn:hover{background:#1E4FD6 !important;}

/* --- Footer: hairline above, quiet links --- */
footer{border-top:1px solid rgba(10,20,40,.1) !important;}
/* Footer sits on Paper, not navy — its wordmark must be dark ink
   (styles.css forces .brand light for the dark nav; that made the footer
   wordmark #F0F4F8 on #F5F7FA = 1.03:1, invisible). */
footer .brand{color:#0A1428 !important;}
footer .brand img{filter:none;}

/* --- Logo: bright-blue mark glows on the dark frosted nav --- */
.g-brand img, .brand img{
  filter:drop-shadow(0 0 7px rgba(110,168,254,.55));
}

/* --- CONTRAST FIX 2026-11-28: light text inside navy glass cards ---
   glass.css forces these cards navy, but the hub pages' own styles still
   set dark ink inside them (#0A1428 headings = 1.09:1, #5a6b85 body =
   3.12:1, #1a73e8 eyebrows = 3.75:1 on navy). Everything inside a navy
   card is light text now. Inputs/buttons keep their own colours. */
body.glass :is(.g-card,.svc-card,.cat-card,.pg-card,.arm,.feat,.blog-card,.bk-card,.login-box,.platform,.showcase,.ent-col,.testi) :is(h1,h2,h3,h4){
  color:#fff !important;
}
body.glass :is(.g-card,.svc-card,.cat-card,.pg-card,.arm,.feat,.blog-card,.bk-card,.login-box,.platform,.showcase,.ent-col,.testi) :is(p,li,span){
  color:#c3d2e8 !important;
}
body.glass :is(.g-card,.svc-card,.cat-card,.pg-card,.arm,.feat,.blog-card,.bk-card,.login-box,.platform,.showcase,.ent-col,.testi) a{
  color:#fff !important;
}
body.glass :is(.g-card,.svc-card,.cat-card,.pg-card,.arm,.feat,.blog-card,.bk-card,.login-box,.platform,.showcase,.ent-col,.testi) :is(.pr,.svc-eyebrow,.pg-eyebrow,.tag,.n,.go){
  color:#82B4FE !important;
}
body.glass :is(.g-card,.svc-card,.cat-card,.pg-card,.arm,.feat,.blog-card,.bk-card,.login-box,.platform,.showcase,.ent-col,.testi) :is(.rmeta,.meta,small){
  color:#A3BADB !important;
}
body.glass :is(.g-card,.svc-card,.cat-card,.pg-card,.arm,.feat,.blog-card,.bk-card,.login-box,.platform,.showcase,.ent-col,.testi) label{
  color:#c3d2e8 !important;
}

/* --- CONTRAST FIX 2026-11-28 (round 2): luxury layer + stats ---
   luxury.css sets navy panels but leaves blue/dark text inside them:
   .lux-tier-band #2B5CE6 on navy = 1.94:1; .lux-invite h3 #fff loses to
   styles.css `h3{color:#0a1428!important}`; .lux-cta pairs near-black
   text (#141007, meant for a gold button) with a blue #2B5CE6 button.
   .stat span #647D9F on paper = 3.89:1. */
.lux-tier .lux-tier-band{color:#93BEFE !important;}
.lux-invite .lux-eyebrow{color:#82B4FE !important;}
.lux-invite .lux-eyebrow::before{background:#82B4FE !important;}
.lux-invite h3{color:#fff !important;}
.lux-invite a.lux-cta{color:#fff !important;}
.stat span, .kv .stat span{color:#42597A !important;}

/* --- Floating buttons: white text must clear 4.5:1 ---
   WhatsApp green #25D366 gave 1.98:1. #0E6B3A gives 6.60:1. */
.wa-float{background:#0E6B3A !important; box-shadow:0 8px 28px rgba(14,107,58,.4) !important;}
.wa-float:hover{box-shadow:0 12px 34px rgba(14,107,58,.55) !important;}
/* styles.css:531 forces EVERY span dark ink — that beats inheritance, so
   the label spans inside white-text floats (WhatsApp, Email, San) rendered
   dark-on-dark. Force them white. */
.wa-float span, .mail-float span, #san-bot-fab span{color:#fff !important;}

/* --- No horizontal scroll anywhere (kills mobile sideways drift) --- */
html, body{overflow-x:clip;}
@supports not (overflow-x:clip){ html, body{overflow-x:hidden;} }

/* --- Accessibility + motion --- */
a:focus-visible, button:focus-visible{
  outline:2px solid #2B5CE6; outline-offset:3px; border-radius:6px;
}
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{transition:none !important; animation:none !important;}
}

/* --- Mobile: burger dropdown glass panel --- */
@media (max-width:860px){
  .g-nav-inner{gap:12px; padding:0 18px;}
  .g-brand{font-size:1rem;}
  .g-brand img{height:30px;}
  .g-burger{display:block;}
  .g-links{
    display:none; position:absolute; top:64px; left:12px; right:12px;
    flex-direction:column; align-items:stretch; gap:2px;
    background:rgba(13,27,62,.96);
    -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px);
    border:1px solid rgba(255,255,255,.12); border-radius:16px;
    padding:12px; box-shadow:0 24px 60px rgba(10,20,40,.4);
  }
  .g-links.open{display:flex;}
  .g-links > a{padding:12px 14px;}
  .g-links > a.g-cta{margin:6px 0 0; text-align:center;}
  .pg-hero{padding:56px 20px 32px !important;}
}
@media (max-width:520px){
  .wrap{padding:0 20px;}
  .vq-hero h1{font-size:2rem !important;}
  .g-brand{font-size:.95rem;}
}
/* --- Mobile floats: 4 fixed buttons covered body text on 390px screens.
   Mail is reachable from the footer/contact — hide it on phones and keep
   a single WhatsApp button; shrink the San widget to icon-only circles. --- */
@media (max-width:600px){
  .mail-float{display:none !important;}
  .wa-float{bottom:22px !important; right:16px !important;}
  #san-bot-root{left:12px; bottom:12px;}
  #san-bot-fab-label{display:none;}
  #san-bot-fab{width:48px; height:48px; padding:0; border-radius:50%; justify-content:center;}
  #san-call-btn{width:44px; height:44px;}
}
