/* ============================================================
   OuterWorks Consulting — consult.css (Enterprise-ready)
   - Dark fixed background w/ overlay
   - Light “card” surfaces for readability
   - Section heading bands on dark sections
   - Non-wrapping nav
   - Clean key/value layout (kv)
   ============================================================ */

:root{
  --container: 1180px;

  --accent: #1d6fd1;
  --accent2:#18a999;

  --text: rgba(11,18,32,.92);
  --muted: rgba(11,18,32,.68);

  --line: rgba(11,18,32,.10);
  --shadow: 0 12px 28px rgba(11,18,32,.08);

  --r-lg: 22px;
  --r-md: 16px;

  /* Background */
  --bgOverlay: rgba(7,20,34,.84);

  /* Surfaces */
  --panel: rgba(255,255,255,.96);
  --panel-strong: rgba(255,255,255,.98);

  /* Readability band for headings on dark sections */
  --band: rgba(18,32,48,.72);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height: 1.6;
  color: var(--text);

  /* Fixed background image (name: background.jpg) */
  background-image:
    linear-gradient(var(--bgOverlay), var(--bgOverlay)),
    url("./assets/background.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
button, input, textarea{ font: inherit; }
::selection{ background: rgba(29,111,209,.18); }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}
.muted{ color: var(--muted); }
.fine{ font-size: 12px; }
.sep{ opacity:.5; padding: 0 6px; }

/* ============================================================
   Pills / dots
   ============================================================ */

.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .2px;
  white-space: nowrap;
}

.pill--onDark{
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
}

.pill--onLight{
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.92);
  color: rgba(11,18,32,.86);
}

/* Back-compat aliases if your HTML uses these */
.pill--dark{ /* use on LIGHT surfaces in cards */
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(29,111,209,.06);
  color: rgba(11,18,32,.86);
}
.pill--soft{ /* use on LIGHT surfaces */
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.92);
  color: rgba(11,18,32,.86);
}

.topbar .pill,
.header .pill{ /* topbar/header are light */
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.92);
  color: rgba(11,18,32,.86);
}

.dot{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 4px rgba(255,255,255,.12);
}

/* ============================================================
   Topbar
   ============================================================ */

.topbar{
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 0;
  gap: 14px;
}
.badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  font-weight: 1000;
  font-size: 12px;
}
.toplink{
  font-weight: 1000;
  color: rgba(11,18,32,.86);
}
.toplink:hover{ color: var(--accent); }

/* ============================================================
   Header / Nav
   ============================================================ */

.header{
  position: sticky;
  top: 44px;
  z-index: 25;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}
.brand__mark{
  width: 38px; height: 38px;
  object-fit: contain;
}
.brand__name{
  font-weight: 1000;
  letter-spacing: -0.3px;
  font-size: 18px;
  line-height: 1.1;
}
.brand__tag{
  font-weight: 850;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.nav{
  display:flex;
  align-items:center;
  gap: 18px;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.nav a{
  font-weight: 950;
  font-size: 13px;
  color: rgba(11,18,32,.78);
  white-space: nowrap;
}
.nav a:hover{ color: var(--accent); }

.header__cta{
  display:flex;
  align-items:center;
  gap: 10px;
}
.mobileNav{
  display:none;
  padding: 8px 0 14px;
  border-top: 1px solid var(--line);
}
.mobileNav a{
  display:block;
  padding: 10px 0;
  font-weight: 950;
  color: rgba(11,18,32,.86);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 950;
  font-size: 13px;
  cursor: pointer;
  user-select:none;
}
.btn--primary{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: 0;
  box-shadow: 0 12px 22px rgba(29,111,209,.18);
}
.btn--primary:hover{ filter: brightness(1.02); transform: translateY(-1px); }
.btn--ghost{
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  color: rgba(11,18,32,.86);
}
.btn--ghost:hover{ border-color: rgba(29,111,209,.28); color: var(--accent); }
.btn--icon{
  width: 44px; height: 44px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
}

/* ============================================================
   Hero
   ============================================================ */

.hero{
  position: relative;
  min-height: 72vh;
  display:grid;
  align-items:center;
  padding: 110px 0 78px;
  overflow:hidden;
  color: #fff;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(7,20,34,.35);
  z-index: 0;
}
.hero .container{ position: relative; z-index: 2; }

.hero__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: start;
}

.hero__kickers{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}
.kicker{
  display:inline-flex;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.95);
  font-weight: 850;
  font-size: 12px;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

h1{
  margin: 14px 0 10px;
  font-size: clamp(38px, 5.0vw, 70px);
  line-height: 1.06;
  letter-spacing: -0.6px;
  color: #fff;
  text-shadow: 0 14px 34px rgba(0,0,0,.35);
}
.h1__accent{
  display:inline-block;
  background: linear-gradient(135deg, #ffffff, rgba(255,255,255,.70));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h1__subline{
  display:block;
  margin-top: 0.45em; /* ~half line of breathing room */
}

.lead{
  margin: 0 0 22px;
  max-width: 78ch;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,.88);
}

.hero__actions{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
  margin-top: 8px;
}

/* Trust row */
.trustRow{
  margin-top: 26px;
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
}
.trustItem{
  display:flex;
  gap: 12px;
  align-items:center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.trustIcon{
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  font-size: 20px;
  background: rgba(29,111,209,.14);
  color: #1d6fd1;
}
.trustItem b{ color: rgba(11,18,32,.95); }
.trustItem .muted{ color: rgba(11,18,32,.72); }

/* Hero side card */
.heroCard{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.96);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 70px rgba(0,0,0,.30);
  padding: 18px;
  color: rgba(11,18,32,.92);
}

/* ============================================================
   Sections
   ============================================================ */

.section{ padding: 70px 0; }

/* Darker alternate sections (still enterprise) */
.section--alt{
  background: rgba(12,22,34,.62);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}

.sectionHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 18px;
  margin-bottom: 22px;
}

/* Default headings on light surfaces */
.sectionHead h2{
  margin:0;
  font-size: 40px;
  letter-spacing: -0.4px;
  line-height: 1.1;
  color: rgba(11,18,32,.92);
}
.sectionHead p{
  margin:0;
  max-width: 72ch;
  color: rgba(11,18,32,.68);
}

/* When the section is dark (section--alt), make heading readable */
.section--alt .sectionHead h2{ color: rgba(255,255,255,.96); }
.section--alt .sectionHead p{ color: rgba(255,255,255,.82); }

h2,h3{ margin: 0 0 10px; letter-spacing: -0.3px; }
h3{ font-size: 18px; }
p{ margin: 0 0 12px; }

/* ============================================================
   Cards / Panels / Grids
   ============================================================ */

.cards3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.grid3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.featureGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

.card,
.panel,
.contactCard,
.ctaStrip,
.ctaRow{
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 18px;
  color: rgba(11,18,32,.92);
  backdrop-filter: blur(6px);
}

.list{
  margin: 10px 0 0;
  padding-left: 18px;
}
.list li{ margin: 6px 0; }

.feature{
  display:flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.feature__icon{
  width: 40px; height: 40px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(29,111,209,.10);
}

.panel__kicker{
  font-size: 12px;
  font-weight: 950;
  color: rgba(11,18,32,.66);
  text-transform: uppercase;
  letter-spacing: .10em;
  margin-bottom: 6px;
}

.noteBar{
  margin-top: 18px;
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.noteDot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  margin-top: 6px;
}

.meta{
  margin: 14px 0 0;
  display:grid;
  gap: 8px;
}
.metaRow{
  display:flex;
  gap: 10px;
  align-items: baseline;
}
.metaRow span{
  width: 78px;
  color: var(--muted);
  font-weight: 900;
}

/* CTA strip/row */
.ctaStrip{
  margin-top: 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}
.ctaStrip__copy{ font-weight: 900; color: rgba(11,18,32,.86); }

.ctaRow{
  margin-top: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}

/* Steps */
.steps{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
.step{
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 16px;
  display:flex;
  gap: 12px;
  align-items:flex-start;
}
.step__n{
  width: 34px; height: 34px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  font-weight: 1000;
  background: rgba(29,111,209,.10);
}

/* ============================================================
   Heading bands for specific sections that sit on dark bg
   ============================================================ */

#federal .sectionHead,
#engagement .sectionHead,
#solutions .sectionHead,
#proof .sectionHead,
#engage .sectionHead{
  padding: 18px 18px 14px;
  border-radius: 18px;
  background: var(--band);
  border: 1px solid rgba(255,255,255,0.12);
}

#federal .sectionHead h2,
#engagement .sectionHead h2,
#solutions .sectionHead h2,
#proof .sectionHead h2,
#engage .sectionHead h2{
  color:#fff;
  text-shadow: 0 6px 18px rgba(0,0,0,.55);
}

#federal .sectionHead p,
#engagement .sectionHead p,
#solutions .sectionHead p,
#proof .sectionHead p,
#engage .sectionHead p{
  color: rgba(255,255,255,.85);
}

/* ============================================================
   KV (enterprise spec layout)
   ============================================================ */

.kv{
  margin-top: 14px;
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(11,18,32,.10);
}
.kv__row{
  display:grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: baseline;
}
.kv__k{
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(11,18,32,.55);
}
.kv__v{
  font-weight: 900;
  color: rgba(11,18,32,.90);
  line-height: 1.35;
}
@media (max-width: 520px){
  .kv__row{ grid-template-columns: 1fr; }
  .kv__k{ margin-bottom: -2px; }
}

/* ============================================================
   Contact
   ============================================================ */

.contactCard{
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
}
.callout{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(29,111,209,.06);
  margin-top: 14px;
}
.callout__dot{
  width:10px;height:10px;border-radius:999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  margin-top: 6px;
}

.form label{
  display:block;
  font-weight: 950;
  font-size: 12px;
  margin: 0 0 6px;
  color: rgba(11,18,32,.80);
}
.form input, .form textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  padding: 11px 12px;
  outline: none;
}
.form input:focus, .form textarea:focus{
  border-color: rgba(29,111,209,.35);
  box-shadow: 0 0 0 4px rgba(29,111,209,.10);
}
.form textarea{
  min-height: 120px;
  resize: vertical;
}
.row2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

/* ============================================================
   Footer / ToTop
   ============================================================ */

.footer{
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(7,20,34,.70);
  color: rgba(255,255,255,.90);
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.footer .muted{ color: rgba(255,255,255,.78); }

.toTop{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 1000;
  box-shadow: 0 16px 26px rgba(11,18,32,.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.toTop.show{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Reveal */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 380ms ease, transform 380ms ease;
}
.reveal.is-in{
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Modal
   ============================================================ */

.overlay{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}
.overlay[aria-hidden="false"]{ display:block; }

.modal{
  width: min(1100px, calc(100vw - 28px));
  margin: 14px auto;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(11,18,32,.14);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(0,0,0,.35);
  overflow: hidden;
  position: relative;
}
.modal__close{
  position:absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(11,18,32,.12);
  background: white;
  border-radius: 12px;
  padding: 8px 10px;
  cursor:pointer;
  font-weight: 1000;
}
.modal__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.modal__left{
  padding: 18px;
  border-right: 1px solid rgba(11,18,32,.10);
}
.modal__right{
  padding: 18px;
}
.miniContact{
  display:flex;
  gap: 10px;
  align-items:center;
  margin-top: 14px;
}
.avatar{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(29,111,209,.06);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.avatar img{ width: 28px; height: 28px; object-fit: contain; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 980px){
  .nav{ display:none; }
  .mobileNav{ display:none; }

  .hero__grid{ grid-template-columns: 1fr; }
  .cards3{ grid-template-columns: 1fr; }
  .featureGrid{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
  .grid3{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }

  .contactCard{ grid-template-columns: 1fr; }
  .row2{ grid-template-columns: 1fr; }

  .modal__grid{ grid-template-columns: 1fr; }
  .modal__left{ border-right: 0; border-bottom: 1px solid rgba(11,18,32,.10); }
}

.capGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 980px){
  .capGrid{ grid-template-columns: 1fr; }
}

.capBlock{
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 18px;
  color: rgba(11,18,32,.92);
  backdrop-filter: blur(6px);
}

/* Make the header + list read “enterprise clean” */
.capBlock h3{
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.3px;
}

/* Bullet list: more readable spacing + contrast */
.capBlock ul{
  margin: 0;
  padding-left: 18px;
}

.capBlock li{
  margin: 8px 0;
  color: rgba(11,18,32,.74);
  line-height: 1.45;
}

/* If this section sits on a dark alt background, keep cards light */
.section--alt .capBlock{
  background: var(--panel);
  border-color: rgba(255,255,255,.18);
}

/* ---------- Engagement (Time-boxed / Fixed-scope / Prime) ---------- */
.engGrid{ display:grid; grid-template-columns: 1fr; gap:16px; }

}

@media (max-width: 980px){
  .engGrid{ grid-template-columns: 1fr; }
}

.engCard{
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 18px;
  color: rgba(11,18,32,.92);
}
.engCard .muted{ color: rgba(11,18,32,.70); margin:0; }


/* If engagement sits on a dark section, keep cards light */
.section--alt .engCard{
  background: var(--panel);
  border-color: rgba(255,255,255,.18);
}


/* ---------- Hero “tiles” row: force 3 across on desktop ---------- */
/* Your hero uses .trustRow + .trustItem */
.trustRow{
  display:grid; /* override flex */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.trustItem{
  min-width: 0; /* allow shrinking so it doesn't wrap */
}

/* Let it wrap naturally on smaller screens */
@media (max-width: 980px){
  .trustRow{ grid-template-columns: 1fr; }
}

/* ============================================================
   HERO TILES — stacked (better), fix weird wrapping
   Paste at END of consult.css
   ============================================================ */

/* Stack the tiles (your earlier look) */
.trustRow{
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  max-width: 820px;   /* keeps it from getting too wide */
}

/* Card + layout inside each tile */
.trustItem{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;       /* important for text wrapping correctly */
}

/* Keep the title/description together and prevent awkward breaks */
.trustItem b{
  display: block;
  line-height: 1.2;
}

.trustItem .muted{
  display: block;
  margin-top: 2px;
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: anywhere; /* prevents single long words from blowing layout */
}

/* Optional: if you want them to stack but become 2-up on very wide screens */
@media (min-width: 1100px){
  .trustRow{
    max-width: 900px;
  }
}
