/* ==========================================================================
   VisionQuantech — Flat System (2026-11-30 REDESIGN, replaces Glass)
   Professional · restrained · human-made. Brand palette UNCHANGED:
   Vision Blue #2B5CE6, Signal Blue #1A73E8, Ink #0A1428,
   Deep Navy #0D1B3E, Paper #F5F7FA, Slate #42597A.
   Ratio: mostly Paper/white, Deep Navy only where dark is needed,
   Vision Blue as a sparing accent. No gradient washes, no glow,
   no frosted blur. Loads AFTER styles.css (light GLOBAL THEME) and wins ties.
   Logo file untouched; white chip on the dark nav stays (contrast).
   ========================================================================== */

/* --- Page ground: flat Paper, no blue glow --- */
body.glass{
  background:#F5F7FA !important;
  color:#0A1428 !important;
}
/* Kill the film-grain overlay on glass pages — grain fights the flat look. */
body.glass::after{display:none !important;}

/* --- Nav: solid Deep Navy, sticky, no frost --- */
.g-nav{
  position:sticky; top:0; z-index:100;
  background:#0D1B3E;
  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:38px; 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;
}
.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;
}

/* --- Cards: WHITE on Paper, hairline border, flat shadow --- */
.g-card,
.svc-card, .cat-card, .agent, .pg-card, .arm, .feat, .blog-card,
.bk-card, .login-box, .platform, .showcase, .ent-col, .testi{
  background:#fff !important;
  border:1px solid rgba(10,20,40,.10) !important;
  box-shadow:0 1px 3px rgba(10,20,40,.08) !important;
  border-radius:12px !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:#2B5CE6 !important;
  box-shadow:0 4px 16px rgba(10,20,40,.10) !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, flat --- */
.btn-primary, .g-btn{
  background:#2B5CE6 !important; color:#fff !important;
}
.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;}
/* Footer logo mark is the blue eye on a white chip now (same as nav),
   so it stays white — the old navy chip was for the pale mark. */
footer .brand img, footer .g-brand img{background:#fff !important;}

/* --- Logo: the eye art is bright blue and reads directly on the dark nav —
   no white chip any more (the chip clashed with the transparent logo). --- */
.g-brand img, .brand img{
  filter:none;
  background:transparent; padding:0; border-radius:0;
}

/* --- TEXT INSIDE WHITE CARDS: dark ink (was light-on-navy) ---
   The old glass rules forced white text inside navy cards; cards are
   white now, so everything inside them is dark. 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:#0A1428 !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:#42597A !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:#1A73E8 !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:#1559C0 !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:#647D9F !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:#42597A !important;
}

/* --- CONTRAST FIX 2026-11-28 (round 2): luxury layer + stats ---
   luxury.css panels stay FLAT solid navy (see luxury.css), so their
   light text rules below are still correct. .stat span #647D9F on paper
   = 3.89:1, lifted to Slate. */
.lux-tier .lux-tier-band{color:#fff !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. Flat shadow. */
.wa-float{background:#25D366 !important; box-shadow:0 2px 8px rgba(0,0,0,.18) !important;}
.wa-float:hover{box-shadow:0 2px 8px rgba(0,0,0,.18) !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;}
}

/* --- Tablet: 8 nav links + CTA need ~1130px; below ~1180px they clip
   (overflow-x is clipped), so tighten spacing first, then burger. --- */
@media (max-width:1180px){
  .g-nav-inner{gap:16px; padding:0 20px;}
  .g-links > a{padding:9px 10px; font-size:.92rem;}
  .g-links > a.g-cta{padding:10px 14px;}
}

/* --- Mobile: burger dropdown, solid navy panel --- */
@media (max-width:1080px){
  .g-nav-inner{gap:12px; padding:0 18px;}
  .g-brand{font-size:1rem;}
  .g-brand img{height:34px;}
  .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:#0D1B3E;
    border:1px solid rgba(255,255,255,.12); border-radius:12px;
    padding:12px; box-shadow:0 8px 24px rgba(10,20,40,.25);
  }
  .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;}
}
/* --- Hub grids: .pg-grid (3 cols) never collapsed on phones — squished
   cards on software/blog/products/research/contact. 1 column <=860px. --- */
@media (max-width:860px){
  body.glass .pg-grid{grid-template-columns:1fr;}
}
@media (max-width:520px){
  .wrap{padding:0 20px;}
  .vq-hero h1{font-size:2rem !important;}
  .g-brand{font-size:.95rem;}
}
/* --- Mobile floats: the San widget sat bottom-LEFT and covered the hero
   info card. All floats now dock bottom-RIGHT in one column (WhatsApp at
   the bottom, San stacked above it), clear of left-aligned hero text.
   Mail is reachable from the footer/contact — hidden on phones. --- */
@media (max-width:600px){
  .mail-float{display:none !important;}
  .wa-float{bottom:22px !important; right:16px !important;}
  #san-bot-root{left:auto !important; right:16px !important; bottom:88px !important; align-items:flex-end !important;}
  #san-bot-panel{left:auto !important; right:0 !important;}
  #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;}
}
