/* =========================================================
   InformatiQx — styles.css (Single Source of Truth)
   Drop this in /styles.css

   Fixes:
   - Dark navy background site-wide
   - Prevents "double Get Data Clarity" on desktop
   - Keeps mobile nav/CTA behavior working
========================================================= */

/* ------------------------------
   1) Variables + Global Base
------------------------------ */
:root{
  --bg:#0B1020;
  --bg-2:#0D152B;
  --accent:#00e5ff;

  --text:rgba(255,255,255,0.88);
  --muted:rgba(255,255,255,0.72);

  --border:rgba(255,255,255,0.10);
  --border-soft:rgba(255,255,255,0.06);
  --panel:rgba(255,255,255,0.03);

  --radius:16px;
  --radius-sm:12px;

  --shadow: 0 18px 55px rgba(0,0,0,0.45);
}

*{ box-sizing:border-box; }
html,body{ height:100%; background:var(--bg); }
body{
  margin:0;
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

.page-wrap{
  background:var(--bg);
  min-height:100vh;
}

img{ max-width:100%; height:auto; }
a{ color:inherit; }
main,section{ background:transparent; }

.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 1.5rem;
}

/* ------------------------------
   2) Type + common blocks
------------------------------ */
h1,h2,h3,h4{ margin:0; color:#fff; }
p{ margin:0.75rem 0; color:var(--text); }

.section{ padding:3rem 0; }
.section-alt{
  background:rgba(255,255,255,0.02);
  border-top:1px solid var(--border-soft);
  border-bottom:1px solid var(--border-soft);
}

.section-header{
  max-width:900px;
  margin:0 0 1.25rem;
}
.section-kicker{
  color:var(--accent);
  font-weight:900;
  letter-spacing:0.10em;
  text-transform:uppercase;
  font-size:0.82rem;
  margin-bottom:0.35rem;
}
.section-title{
  font-size:1.75rem;
  font-weight:900;
  line-height:1.18;
}
.section-subtitle{
  margin-top:0.6rem;
  color:rgba(255,255,255,0.78);
  line-height:1.6;
  max-width:860px;
}

.muted-small{
  color:var(--muted);
  font-size:0.92rem;
  line-height:1.5;
}

/* ------------------------------
   3) Buttons + chips
------------------------------ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0.5rem;
  padding:0.75rem 1.15rem;
  border-radius:12px;
  font-weight:900;
  text-decoration:none;
  cursor:pointer;
  border:1.5px solid transparent;
  line-height:1;
  white-space:nowrap;
}
.btn-primary{
  background:rgba(0,229,255,0.18);
  border-color:rgba(0,229,255,0.78);
  color:var(--accent);
}
.btn-primary:hover{
  background:rgba(0,229,255,0.28);
  border-color:rgba(0,229,255,1);
}
.btn-outline{
  background:rgba(255,255,255,0.02);
  border-color:rgba(255,255,255,0.16);
  color:rgba(255,255,255,0.90);
}
.btn-outline:hover{
  border-color:rgba(255,255,255,0.28);
  color:#fff;
}

.chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:0.5rem;
  margin-top:0.65rem;
}
.chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0.35rem 0.65rem;
  border-radius:9999px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.10);
  color:rgba(255,255,255,0.82);
  font-weight:800;
  font-size:0.85rem;
  white-space:nowrap;
}

/* ------------------------------
   4) Header + Nav (single source of truth)
------------------------------ */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(11,16,32,0.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border-soft);
}

/* NO CLIP */
.site-header,
.site-header .container,
.site-header .navbar{
  overflow:visible;
  height:auto;
  min-height:0;
}

.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:0.95rem 0;
}

/* allow flex children to shrink */
.navbar > *{ min-width:0; }
.brand, .nav-links, .nav-cta{ min-width:0; }

.brand{
  display:flex;
  flex-direction:column;
  gap:0.25rem;
  min-width:max-content;
  text-decoration:none;
}
.brand-logo{ width:230px; height:auto; display:block; }
.brand-tagline{
  color:var(--accent);
  font-weight:700;
  font-size:0.92rem;
  line-height:1.2;
  letter-spacing:0.2px;
}
.brand-tagline-secondary{
  margin-top:.2rem;
  font-size:.82rem;
  line-height:1.2;
  color:rgba(255,255,255,.78);
  font-weight:600;
}
.brand-tagline-secondary::before{
  content:"—";
  margin-right:.35rem;
  color: rgba(255,255,255,0.35);
}

@media (max-width:768px){
  .brand-logo{ width:190px; }
  .brand-tagline{ font-size:0.88rem; }
}

.nav-toggle{
  display:none;
  appearance:none;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.02);
  color:#fff;
  border-radius:12px;
  padding:0.55rem 0.75rem;
  font-size:1.05rem;
  font-weight:900;
  line-height:1;
}

.nav-links{
  display:flex;
  gap:1.1rem;
  align-items:center;
}
.nav-links a{
  color:rgba(255,255,255,0.82);
  text-decoration:none;
  font-weight:800;
  font-size:0.95rem;
  line-height:1;
  padding:0.35rem 0.2rem;
  border-radius:10px;
}
.nav-links a:hover{ color:#fff; }
.nav-links a.active{ color:#fff; }

/* Optional pill link (if you ever place it inside nav-links) */
.nav-links a.nav-clarity{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0.5rem 1.35rem !important;
  border-radius:9999px !important;
  background:rgba(0,229,255,0.18) !important;
  border:1.5px solid rgba(0,229,255,0.78) !important;
  color:var(--accent) !important;
  font-weight:900 !important;
  line-height:1 !important;
  white-space:nowrap !important;
}
.nav-links a.nav-clarity:hover{
  background:rgba(0,229,255,0.28) !important;
  border-color:rgba(0,229,255,1) !important;
}

/* ✅ Prevent "double CTA" on desktop (your CTA button lives in .nav-cta stack) */
@media (min-width: 901px){
  .nav-links a.nav-clarity{ display:none !important; }
}

/* CTA stack (AI phone + button) */
.nav-cta.nav-cta-stack{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:0.35rem;
}
.header-phone{
  display:inline-flex;
  align-items:center;
  gap:0.45rem;
  font-weight:900;
  text-decoration:none;
  color:rgba(255,255,255,0.84);
  white-space:nowrap;
  line-height:1;
  font-size:0.92rem;
}
.header-phone span{ color:var(--accent); font-weight:900; }
.header-phone:hover{ color:#fff; }

.header-phone:focus-visible,
.nav-links a:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible{
  outline:2px solid rgba(0,229,255,0.9);
  outline-offset:3px;
  border-radius:10px;
}

/* Dropdown */
.nav-item.has-dropdown{ position:relative; }
.nav-link.dropdown-toggle{
  background:transparent;
  border:0;
  padding:0;
  color:inherit;
  font:inherit;
  cursor:pointer;
}

/* Menu */
.dropdown-menu{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  min-width:190px;
  margin-top:.65rem;
  padding:.6rem;
  border-radius:12px;
  background:rgba(13,15,18,.98);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 14px 40px rgba(0,0,0,.45);
  z-index:9999;
}
.dropdown-menu a{
  display:block;
  padding:.55rem .65rem;
  border-radius:10px;
  text-decoration:none;
}
.dropdown-menu a:hover{ background:rgba(0,229,255,.10); }

/* Desktop hover + hover-bridge (no hover cliff) */
@media (min-width: 769px){
  .nav-item.has-dropdown:hover .dropdown-menu{ display:block; }
  .dropdown-menu::before{
    content:"";
    position:absolute;
    left:0;
    right:0;
    top:-12px;
    height:12px;
  }
}

/* JS open state */
.nav-item.has-dropdown.open .dropdown-menu{ display:block; }

/* ------------------------------
   Mobile nav dropdown
------------------------------ */
@media (max-width: 900px){
  .nav-toggle{ display:inline-flex; }
  .navbar{ flex-wrap:wrap; }

  /* Hide inline links until toggled */
  .nav-links{
    display:none;
    width:100%;
    flex-direction:column;
    align-items:flex-start;
    gap:0.5rem;
    padding:0.85rem;
    margin-top:0.6rem;
    border:1px solid rgba(255,255,255,0.10);
    background:rgba(255,255,255,0.02);
    border-radius:16px;
  }

  /* Support BOTH class names (some pages toggle .open, some toggle .is-open) */
  .nav-links.open,
  .nav-links.is-open{
    display:flex;
  }

  .nav-links a{
    width:100%;
    padding:0.75rem 0.75rem;
    border-radius:12px;
  }

  /* ✅ Remove "Get Data Clarity" link from mobile menu list if present */
  .nav-links a.nav-clarity{
    display:none !important;
  }

  /* CTA: force to its own row and NEVER clip */
  .nav-cta.nav-cta-stack{
    width:100%;
    margin-left:0;
    margin-top:10px;
    align-items:stretch;
  }
  .nav-cta.nav-cta-stack .header-phone{
    width:100%;
    justify-content:center;
    text-align:center;
    white-space:normal;
  }
  .nav-cta.nav-cta-stack .btn{
    width:100%;
    box-sizing:border-box;
    white-space:normal;
    overflow:visible;
    text-overflow:unset;
    line-height:1.15;
    padding-left:14px;
    padding-right:14px;
  }

  /* Mobile dropdown becomes inline section */
  .nav-item.has-dropdown{ width:100%; }
  .dropdown-menu{
    position:static;
    margin-top:0.35rem;
    width:100%;
    min-width:0;
    box-shadow:none;
    background:rgba(255,255,255,0.03);
    border:1px solid rgba(255,255,255,0.10);
    border-radius:12px;
  }
  .dropdown-menu a{ padding:0.55rem 0.6rem; }
}

/* ------------------------------
   5) Hero (shared)
------------------------------ */
.hero{ padding:3.25rem 0; }
.hero--subpage{ padding:3.25rem 0; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap:1.6rem;
  align-items:start;
}
@media (max-width: 960px){
  .hero-grid{ grid-template-columns:1fr; }
}

.hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:0.6rem;
  color:rgba(255,255,255,0.82);
  font-weight:900;
  letter-spacing:0.02em;
  margin-bottom:0.6rem;
}
.hero-kicker-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--accent);
  box-shadow: 0 0 0 4px rgba(0,229,255,0.12);
}
.hero-title{
  font-size:2.25rem;
  font-weight:950;
  line-height:1.08;
}
@media (max-width: 560px){
  .hero-title{ font-size:2.0rem; }
}
.hero-subtitle{
  margin-top:0.9rem;
  color:rgba(255,255,255,0.82);
  line-height:1.65;
  max-width:860px;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:0.75rem;
  margin-top:1.05rem;
}
.hero-meta{
  margin-top:0.85rem;
  color:rgba(255,255,255,0.75);
  line-height:1.55;
}
.hero-panel{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.10);
  border-radius:16px;
  padding:1.35rem;
  box-shadow: var(--shadow);
}
.hero-panel-title{
  color:var(--accent);
  font-weight:900;
  letter-spacing:0.08em;
  text-transform:uppercase;
  font-size:0.78rem;
  margin-bottom:0.45rem;
}
.hero-panel-highlight{
  font-weight:950;
  font-size:1.15rem;
  line-height:1.35;
  color:#fff;
}
.hero-panel-highlight span{
  display:block;
  margin-top:0.35rem;
  color:rgba(255,255,255,0.80);
  font-weight:800;
}
.hero-panel-note{
  margin-top:0.85rem;
  color:rgba(255,255,255,0.78);
  line-height:1.55;
}

/* ------------------------------
   6) Shared layout helpers
------------------------------ */
.split{
  display:grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap:1.4rem;
  align-items:start;
}
@media (max-width: 960px){
  .split{ grid-template-columns:1fr; }
}
.split-box{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.10);
  border-radius:16px;
  padding:1.25rem;
}
.bullet-list{
  margin:0;
  padding-left:1.15rem;
  color:rgba(255,255,255,0.84);
  line-height:1.65;
}
.bullet-list li{ margin:0.45rem 0; }
.card-body{
  color:rgba(255,255,255,0.84);
  line-height:1.6;
}

/* ------------------------------
   7) Footer (shared)
------------------------------ */
.site-footer{
  background:var(--bg);
  padding:1.4rem 0;
  border-top:1px solid rgba(255,255,255,0.06);
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:0.75rem;
}
.footer-inner > div{
  color:rgba(255,255,255,0.75);
  font-size:0.92rem;
}
.footer-links{
  display:flex;
  gap:0.85rem;
  flex-wrap:wrap;
}
.footer-links a{
  color:rgba(255,255,255,0.75);
  text-decoration:none;
}
.footer-links a:hover{ color:#fff; }

/* ------------------------------
   8) Small utilities
------------------------------ */
.inline-link{
  color:var(--accent);
  font-weight:900;
  text-decoration:none;
}
.inline-link:hover{ text-decoration:underline; }

/* ------------------------------
   9) Optional helper classes used on home/services
------------------------------ */
.hero-posture{
  margin-top:1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 1.05rem 1.1rem;
  color: rgba(255,255,255,0.86);
  line-height: 1.6;
}
.hero-posture strong{ color:#fff; }

.verdict-row{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
  margin-top:1rem;
  align-items:center;
}
.verdict-chip{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.45rem .75rem;
  border-radius:9999px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.28);
  color:#bdf7ff;
  font-weight:800;
  font-size:.92rem;
  white-space:nowrap;
}
.verdict-dot{ width:7px; height:7px; border-radius:50%; background:var(--accent); }

.value-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:1.25rem;
  margin-top:1.25rem;
}
.value-card{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 1.2rem;
}
.value-kicker{
  color:var(--accent);
  font-weight:900;
  letter-spacing:.08em;
  font-size:.8rem;
  text-transform:uppercase;
  margin-bottom:.35rem;
  display:flex;
  align-items:center;
  gap:.45rem;
}
.value-dot{ width:6px; height:6px; border-radius:50%; background:var(--accent); }
.value-card h3{ margin:.1rem 0 .5rem; font-weight:900; font-size:1.2rem; }
.value-card p{ margin:.25rem 0 0; color:rgba(255,255,255,0.82); line-height:1.6; }

.path-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap:1.25rem;
  margin-top:1.15rem;
}
.path-card{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 1.25rem;
}
.path-card h3{ margin:0 0 .4rem; font-weight:900; }
.path-card p{ margin:.35rem 0 0; color:rgba(255,255,255,0.82); line-height:1.6; }
.path-meta{ margin-top:.8rem; color:rgba(255,255,255,0.72); font-size:.95rem; line-height:1.5; }
.path-actions{ display:flex; flex-wrap:wrap; gap:.7rem; margin-top:1rem; }

.escalate{
  margin-top:1rem;
  background: rgba(0,229,255,0.05);
  border: 1px solid rgba(0,229,255,0.22);
  border-radius: 14px;
  padding: 0.95rem 1rem;
}
.escalate strong{ color:#ffffff; }
.escalate ul{ margin:0.65rem 0 0; padding-left:1.15rem; color:rgba(255,255,255,0.82); }
.escalate li{ margin:.3rem 0; }

.cta-band{
  margin-top:1.4rem;
  background: rgba(0,229,255,0.07);
  border: 1px solid rgba(0,229,255,0.25);
  border-left: 4px solid rgba(0,229,255,0.85);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
}
.cta-band h3{ margin:0 0 .35rem; font-weight:900; }
.cta-band p{ margin:.35rem 0 0; color:rgba(255,255,255,0.86); line-height:1.55; }

.fineprint{ color:rgba(255,255,255,0.70); font-size:.92rem; line-height:1.55; margin-top:.75rem; }

.contact-strip{
  margin-top: 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  display:flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.contact-strip h3{
  margin:0;
  font-weight:900;
  font-size:1.1rem;
  letter-spacing:.2px;
}
.contact-strip p{
  margin:0.35rem 0 0;
  color: rgba(255,255,255,0.80);
  line-height:1.5;
  max-width: 740px;
}
.contact-actions{
  display:flex;
  gap:.65rem;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}
.contact-link{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:0.7rem 0.95rem;
  border-radius:12px;
  text-decoration:none;
  font-weight:900;
  border:1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.02);
  white-space:nowrap;
}
.contact-link:hover{
  border-color: rgba(255,255,255,0.28);
  color:#ffffff;
}
.contact-link strong{ color:var(--accent); }
.contact-note{
  margin-top:0.6rem;
  color: rgba(255,255,255,0.70);
  font-size:0.92rem;
  line-height:1.5;
}

/* =========================================================
   MOBILE NAV CLEANUP — FINAL OVERRIDES
   (Must be LAST in styles.css)
========================================================= */
@media (max-width: 900px){

  /* Make mobile nav structural, not a floating card */
  .nav-links{
    background: var(--bg);
    border: 0;
    border-radius: 0;
    padding: 0.75rem 0.75rem 0.5rem;
    margin-top: 0.5rem;
  }

  /* Calm the link rhythm */
  .nav-links a{
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.6rem 0.4rem;
    border-radius: 8px;
  }

  .nav-links a + a{
    margin-top: 0.15rem;
  }

  /* Visually separate navigation from CTA */
  .nav-cta.nav-cta-stack{
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    align-items: stretch;
  }

  .nav-cta.nav-cta-stack .btn{
    margin-top: 0.35rem;
  }
}