/* ==========================================================================
   Basha Global Technologies - corporate stylesheet
   Institutional palette: deep navy, warm cream, restrained brass.
   No build step. No dependencies beyond one Google Fonts link.
   ========================================================================== */

:root {
  --navy:        #0B1F3A;
  --navy-deep:   #071628;
  --navy-soft:   #14304f;
  --cream:       #FAF7F2;
  --paper:       #FFFFFF;
  --brass:       #B08D4F;
  --brass-light: #C9A961;
  --ink:         #16202E;
  --muted:       #5A6675;
  --rule:        #DFD9CF;
  --rule-dark:   #1E3A5C;
  --success:     #1F6F4A;

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --measure: 1180px;
  --measure-narrow: 760px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.1em; }
a { color: var(--navy); text-decoration-color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--brass); }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: var(--measure-narrow); }

/* ---------- Eyebrow label ---------- */
.eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 .9em;
  display: block;
}
.eyebrow.on-dark { color: var(--brass-light); }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  border-bottom: 1px solid var(--rule-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { color: inherit; }
.brand-mark { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: .01em;
}
.brand-sub {
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-light);
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  color: #C7D3E2;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--cream);
  border-bottom-color: var(--brass);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule-dark);
  border-radius: 4px;
  color: var(--cream);
  padding: 8px 12px;
  font-size: .9rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 3px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  cursor: pointer;
}
.btn-primary { background: var(--brass); color: var(--navy-deep); border-color: var(--brass); }
.btn-primary:hover { background: var(--brass-light); color: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(201,169,97,.55); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-light); }
.btn-dark { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.btn-dark:hover { background: var(--navy-soft); color: var(--cream); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brass) 0%, rgba(176,141,79,0) 65%);
}
.hero h1 { color: var(--cream); max-width: 17ch; }
.hero .lede {
  font-size: 1.16rem;
  color: #C2CFDE;
  max-width: 62ch;
  margin-bottom: 0;
}

.hero-sub {
  background: var(--navy-deep);
  color: #A9BACD;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule-dark);
  font-size: .84rem;
}
.hero-sub .wrap { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.hero-sub span { display: flex; align-items: center; gap: 9px; }
.hero-sub .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brass); flex: none; }

/* ---------- Page header (interior pages) ---------- */
.page-head {
  background: var(--navy);
  color: var(--cream);
  padding: 70px 0 60px;
  border-bottom: 3px solid var(--brass);
}
.page-head h1 { color: var(--cream); margin-bottom: .35em; }
.page-head p { color: #C2CFDE; max-width: 64ch; margin: 0; font-size: 1.05rem; }

/* ---------- Sections ---------- */
section { padding: 78px 0; }
section.tight { padding: 54px 0; }
section.alt { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
section.dark { background: var(--navy); color: #C2CFDE; }
section.dark h2, section.dark h3 { color: var(--cream); }

.section-intro { max-width: 68ch; margin-bottom: 46px; }
.section-intro p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }
section.dark .section-intro p { color: #A9BACD; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 30px;
}
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card .muted { color: var(--muted); font-size: .95rem; }

.card-top-rule { border-top: 3px solid var(--brass); }

/* Venture card */
.venture {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.venture-head {
  padding: 28px 30px 24px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, #fff 0%, #FCFAF6 100%);
}
.venture-head h3 { margin-bottom: .3em; font-size: 1.35rem; }
.venture-domain { font-size: .82rem; color: var(--muted); letter-spacing: .02em; }
.venture-body { padding: 26px 30px 30px; flex: 1; display: flex; flex-direction: column; }
.venture-body p { color: var(--muted); font-size: .97rem; }
.venture-body ul { margin: 0 0 22px; padding-left: 20px; color: var(--muted); font-size: .94rem; }
.venture-body ul li { margin-bottom: 7px; }
.venture-foot { margin-top: auto; }

/* ---------- Vendor / platform cards ---------- */
.vendor {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--brass);
  border-radius: 4px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
}
.vendor-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
  margin: 0 0 14px;
}
.vendor .pill { align-self: flex-start; margin-bottom: 16px; }
.vendor p { color: var(--muted); font-size: .94rem; margin: 0; }
.pill-partner { background: #F5ECDC; color: #7A5C1E; border: 1px solid #E0CDA6; }
.pill-certified { background: #E8EDF4; color: #24456E; border: 1px solid #C8D5E5; }

/* ---------- Status pill ---------- */
.pill {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  vertical-align: middle;
}
.pill-live { background: #E4F1EA; color: var(--success); border: 1px solid #BEDDCC; }
.pill-build { background: #FDF3E0; color: #8A6415; border: 1px solid #EBD9B4; }
.pill-hold { background: #EEF1F5; color: var(--muted); border: 1px solid #DCE2EA; }

/* ---------- Figure blocks ---------- */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule-dark); border: 1px solid var(--rule-dark); }
.figure { background: var(--navy); padding: 30px 26px; }
.figure .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--brass-light);
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}
.figure .lbl { font-size: .8rem; color: #A9BACD; line-height: 1.45; }

/* ---------- Definition rows ---------- */
.rows { border-top: 1px solid var(--rule); margin: 0; }
.row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.row dt, .row .k {
  font-weight: 600;
  color: var(--navy);
  font-size: .93rem;
  margin: 0;
}
.row dd, .row .v { margin: 0; color: var(--muted); font-size: .96rem; }
.row .v p:last-child { margin-bottom: 0; }

/* ---------- Checklist ---------- */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: .97rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .5em;
  width: 9px;
  height: 9px;
  border: 2px solid var(--brass);
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg);
}
section.dark .checks li { color: #A9BACD; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 30px 26px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--brass);
}
.timeline h4 { margin-bottom: .3em; }
.timeline p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }

/* ---------- Callout ---------- */
.callout {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brass);
  padding: 24px 28px;
  border-radius: 0 4px 4px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout .muted { color: var(--muted); font-size: .95rem; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.2em; font-size: 1.45rem; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { color: var(--muted); padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose .updated { color: var(--muted); font-size: .9rem; font-style: italic; }

/* ---------- Table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 520px; }
table.data th, table.data td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
table.data th { background: var(--navy); color: var(--cream); font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
table.data td { color: var(--muted); }
table.data tr:last-child td { border-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 64px 0;
  border-top: 3px solid var(--brass);
}
.cta-band h2 { color: var(--cream); }
.cta-band p { color: #A9BACD; max-width: 58ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #8FA3B8;
  padding: 62px 0 30px;
  font-size: .9rem;
  border-top: 1px solid var(--rule-dark);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-footer h4 {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.2em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { color: #8FA3B8; text-decoration: none; }
.site-footer a:hover { color: var(--brass-light); }
.site-footer .about-blurb { max-width: 38ch; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid var(--rule-dark);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: .82rem;
  color: #6E8299;
}

/* ---------- Visually hidden ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass);
  color: var(--navy-deep);
  padding: 12px 20px;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .hero { padding: 66px 0 60px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 28px 20px;
    border-bottom: 3px solid var(--brass);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--rule-dark); }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--rule-dark); }
}

@media print {
  .site-header, .nav, .cta-band, .btn-row { display: none; }
  body { background: #fff; font-size: 11pt; }
  section { padding: 18px 0; }
}
