/* ============================================
   BITS — Business Intelligence Technology Solutions
   Global stylesheet
   ============================================ */

:root {
  --navy-900: #071b3f;
  --navy-800: #0b2c6b;
  --navy-700: #10339e;
  --blue-600: #1656c9;
  --blue-500: #2a72e8;
  --blue-100: #e8f0fe;
  --orange-600: #e36b0a;
  --orange-500: #f5821f;
  --orange-100: #fff1e2;
  --ink: #111827;
  --ink-soft: #4b5566;
  --ink-faint: #7b8698;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-navy-soft: #0e2a63;
  --border: #e3e8f0;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 25, 60, 0.06), 0 1px 1px rgba(11, 25, 60, 0.04);
  --shadow-md: 0 10px 30px rgba(11, 25, 60, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 25, 60, 0.14);
  --container: 1180px;
  --gradient-brand: linear-gradient(135deg, var(--navy-800) 0%, var(--blue-600) 55%, var(--orange-500) 130%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-600);
  background: var(--orange-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy {
  background: radial-gradient(120% 140% at 10% 0%, #0e2f75 0%, var(--navy-900) 60%);
  color: #eaf0ff;
}
.section-navy p { color: #b9c6ea; }
.section-navy h2, .section-navy h3 { color: #ffffff; }

.section-head { max-width: 720px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange-500);
  color: #fff;
  box-shadow: 0 10px 24px rgba(245, 130, 31, 0.32);
}
.btn-primary:hover { background: var(--orange-600); transform: translateY(-2px); }
.btn-secondary {
  background: #fff;
  color: var(--navy-800);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--blue-500); color: var(--blue-600); transform: translateY(-2px); }
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 78px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.nav-links a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--blue-100); color: var(--blue-600); }
.nav-links a.active { color: var(--blue-600); }
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
}
.dropdown a:hover { background: var(--bg-soft); }
.dropdown a strong { font-size: 0.92rem; color: var(--ink); }
.dropdown a span { font-size: 0.8rem; color: var(--ink-faint); font-weight: 400; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--navy-800); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 100px;
  background: var(--gradient-brand);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 85% 10%, rgba(245,130,31,0.35) 0%, rgba(245,130,31,0) 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffe3c2;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero-lead { font-size: 1.15rem; color: #dbe4ff; max-width: 560px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 1.6rem; color: #fff; }
.hero-stats div span { font-size: 0.85rem; color: #b9c6ea; }

.hero-panel {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero-panel-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.hero-panel-row:last-child { border-bottom: none; }
.hero-panel-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(245,130,31,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.hero-panel-row strong { display: block; color: #fff; font-size: 0.98rem; margin-bottom: 2px; }
.hero-panel-row span { font-size: 0.86rem; color: #c4cfef; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d3ddf0; }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  background: var(--blue-100);
}
.card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 12px;
}
.service-card p { flex-grow: 1; }
.service-card .card-link {
  margin-top: 16px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card .card-link:hover { color: var(--orange-600); }

/* ---------- Storyline ---------- */
.story-list { display: grid; gap: 22px; }
.story-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
.story-number {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}
.story-item h3 { margin-bottom: 6px; }
.story-item p { margin: 0; }

/* ---------- Capability list ---------- */
.cap-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.cap-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.cap-list li .check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange-100);
  color: var(--orange-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.cap-list strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 1rem; }
.cap-list span { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Service hero (sub pages) ---------- */
.service-hero {
  background: var(--bg-navy-soft);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 64px 0 72px;
}
.service-hero .eyebrow { background: rgba(255,255,255,0.14); color: #ffe3c2; }
.service-hero h1 { color: #fff; margin-bottom: 16px; }
.service-hero p { color: #c4cfef; font-size: 1.08rem; max-width: 680px; margin-bottom: 0; }
.breadcrumb { font-size: 0.85rem; color: #9fb1e6; margin-bottom: 18px; }
.breadcrumb a { color: #cfe0ff; font-weight: 600; }
.breadcrumb a:hover { color: #fff; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #dbe4ff; margin-bottom: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.stats-strip div { text-align: center; }
.stats-strip strong { display: block; font-size: 2rem; color: var(--navy-800); }
.stats-strip span { font-size: 0.88rem; color: var(--ink-faint); }

/* ---------- Table ---------- */
.compare-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-table th, .compare-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 0.94rem; }
.compare-table th { background: var(--bg-soft); color: var(--navy-800); font-weight: 700; }
.compare-table tr:last-child td { border-bottom: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c6ea; padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo-chip {
  display: inline-flex;
  background: #fff;
  padding: 16px 22px;
  border-radius: 12px;
  margin-bottom: 18px;
}
.footer-brand img { height: 64px; display: block; }
.footer-brand p { color: #93a3d1; font-size: 0.92rem; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 0.92rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: #b9c6ea; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: #7a8ac0;
}
.footer-bottom a { color: #7a8ac0; }
.footer-bottom a:hover { color: #fff; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.social-row a:hover { background: rgba(255,255,255,0.18); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 18px;
  display: flex;
  gap: 16px;
}
.contact-info-card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--orange-100); color: var(--orange-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.2rem;
}
.contact-info-card strong { display: block; margin-bottom: 4px; }
.contact-info-card span, .contact-info-card a { font-size: 0.92rem; color: var(--ink-soft); }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg-soft);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--ink-faint); margin-top: 14px; }
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--orange-100);
  color: var(--orange-600);
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 18px;
}
.form-success.visible { display: flex; }

/* ---------- Security page icons ---------- */
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--gradient-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.badge-row { display: flex; gap: 12px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border);
  font-size: 0.85rem; font-weight: 600; color: var(--navy-800);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .brand img { height: 58px; }
  .nav-links, .nav-cta .btn-secondary { display: none; }
  .menu-toggle { display: flex; }
  .site-header.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    gap: 4px;
  }
  .site-header.open .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 12px;
    display: none;
  }
  .site-header.open .has-dropdown.expanded .dropdown { display: flex; flex-direction: column; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .story-item { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
}
