/* ============================================================
   Be Strategic Solutions — shared stylesheet
   Design tokens, layout, navigation, footer, chat widget, modal.
   Every page links this file.
   ============================================================ */

:root {
  /* Brand palette */
  --navy:        #042C53;
  --navy-2:      #0C447C;
  --blue:        #185FA5;
  --blue-light:  #85B7EB;
  --blue-bg:     #18253A;

  /* Neutrals (dark theme) */
  --bg:          #15171A;
  --surface:     #1E2126;
  --text:        #F2F3F5;
  --text-muted:  #B7BCC4;
  --text-faint:  #8F96A1;
  --border:      rgba(255,255,255,0.12);
  --border-2:    rgba(255,255,255,0.22);

  /* Type */
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --radius:     6px;
  --radius-lg:  12px;
  --maxw:       1100px;
  --footer-h:   64px;
  --nav-h:      64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--blue-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Top navigation ---------- */
.nav {
  background: var(--navy);
  color: #fff;
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.nav__left { display: flex; align-items: center; gap: 16px; }
.nav__menu-btn {
  background: none; border: none; color: #fff; cursor: pointer;
  font-size: 20px; line-height: 0; padding: 4px; display: none;
}

/* Accent-rule wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand__bar {
  width: 5px;
  height: 42px;
  background: #378ADD;          /* light accent blue, brighter than the nav */
  border-radius: 3px;
  flex-shrink: 0;
}
.brand__name {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 21px;              /* slightly larger so it pops */
  line-height: 1.05;
  letter-spacing: -0.2px;
}
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a {
  color: #fff; font-size: 14px; padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover { text-decoration: none; border-bottom-color: rgba(255,255,255,0.4); }
.nav__links a.is-active { border-bottom-color: #378ADD; }
.nav__search { background: none; border: none; color: #fff; cursor: pointer; font-size: 18px; line-height: 0; }

/* ---------- Page shell ---------- */
.page { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 40px 0; }

/* ---------- Hero ---------- */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.hero--fill {
  min-height: calc(100vh - var(--nav-h) - var(--footer-h));
  display: flex;
  align-items: center;
}
.hero__inner { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 64px; }
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
  max-width: 620px;
}
.hero p {
  font-size: 16px; color: var(--text-muted);
  max-width: 560px; margin: 0 0 26px; line-height: 1.65;
}
.eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--text-faint); margin: 0 0 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff;
  padding: 12px 22px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; border: none; cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: #14528f; text-decoration: none; }
.btn--ghost { background: none; color: var(--blue-light); padding: 12px 6px; font-weight: 500; }
.btn--ghost:hover { background: none; text-decoration: underline; }
.link-inline { color: var(--blue-light); font-size: 14px; margin-left: 10px; }

/* ---------- Generic cards / grids ---------- */
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: 1fr 1fr; }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--surface);
}

/* ---------- Service rows ---------- */
.service { display: flex; gap: 16px; }
.service__icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: var(--blue-bg); color: var(--blue-light);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.service h3 { font-size: 16px; font-weight: 600; margin: 0 0 5px; }
.service p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* ---------- Founder rows ---------- */
.founder { display: flex; gap: 16px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue-bg); color: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 17px; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.founder h3 { font-size: 16px; font-weight: 600; margin: 0; }
.founder .role { font-size: 13px; color: var(--blue-light); margin: 2px 0 8px; }
.founder p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ---------- Mission band ---------- */
.mission {
  background: var(--navy); color: #fff;
  border-radius: var(--radius-lg); padding: 30px;
}
.mission .eyebrow { color: var(--blue-light); }
.mission p { font-size: clamp(22px, 3vw, 30px); font-weight: 500; line-height: 1.4; margin: 0; max-width: none; }

/* ---------- Process steps ---------- */
.step { background: var(--surface); border-radius: var(--radius); padding: 18px; }
.step .num { color: var(--blue-light); font-weight: 600; font-size: 13px; }
.step h4 { margin: 6px 0 4px; font-size: 14px; }
.step p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy); color: #fff; border-radius: var(--radius-lg);
  padding: 30px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px;
}
.cta-band h3 { margin: 0 0 4px; font-size: 18px; color: #fff; }
.cta-band p { margin: 0; font-size: 14px; color: var(--blue-light); }

/* ---------- Empty state (careers) ---------- */
.empty {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 48px 28px; text-align: center;
}
.empty__icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--blue-bg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 26px; color: var(--blue-light);
}
.empty h2 { font-size: 18px; margin: 0 0 8px; }
.empty p { font-size: 14px; color: var(--text-muted); max-width: 440px; margin: 0 auto 20px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 5px; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 14px;
  padding: 9px 11px; border: 1px solid var(--border-2);
  border-radius: var(--radius); background: var(--bg); color: var(--text);
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }

/* ---------- Footer ---------- */
.footer {
  background: var(--surface); border-top: 1px solid var(--border);
  margin-top: auto;
}
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 22px 24px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 12px;
}
.footer__copy { font-size: 12px; color: var(--text-faint); }
.footer__links { grid-column: 2; display: flex; gap: 16px; justify-content: center; }
.footer__links a { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   Persistent chat widget — fixed bottom-right, follows scroll.
   ============================================================ */
.chat-bubble {
  position: fixed; right: 22px; bottom: 8px; z-index: 60;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--navy); color: #fff; cursor: pointer;
  padding: 13px 19px; border: 1px solid rgba(255,255,255,0.15); border-radius: 30px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.chat-bubble i { font-size: 18px; }

.chat-panel {
  position: fixed; right: 22px; bottom: 72px; z-index: 61;
  width: 320px; max-width: calc(100vw - 44px);
  background: var(--bg); border: 1px solid var(--border-2);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.22);
  display: none; flex-direction: column;
}
.chat-panel.is-open { display: flex; }

.chat-panel__head {
  background: var(--navy); padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.chat-panel__head .who { display: flex; align-items: center; gap: 9px; }
.chat-panel__head .dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: var(--blue-light);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.chat-panel__head .title { color: #fff; font-size: 13px; font-weight: 600; margin: 0; }
.chat-panel__head .sub { color: var(--blue-light); font-size: 11px; margin: 0; }
.chat-panel__head .min { background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer; font-size: 18px; }

.chat-panel__body { background: var(--surface); padding: 16px; max-height: 320px; overflow-y: auto; }
.chat-day { text-align: center; font-size: 11px; color: var(--text-faint); margin: 0 0 12px; }
.chat-msg { display: flex; gap: 8px; margin-bottom: 12px; }
.chat-msg .ava {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue-bg); color: var(--blue-light);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.chat-msg .bubble {
  background: var(--bg); border: 1px solid var(--border);
  font-size: 12.5px; padding: 9px 12px; border-radius: 4px 12px 12px 12px; line-height: 1.45;
}
.chat-msg--user { justify-content: flex-end; }
.chat-msg--user .bubble { background: var(--blue); color: #fff; border: none; border-radius: 12px 12px 2px 12px; }

/* Links the bot includes in its replies (rendered from safe [[token]] markers) */
.chat-msg .bubble .chat-link { color: var(--blue-light); text-decoration: underline; font-weight: 600; }
.chat-msg--user .bubble .chat-link { color: #fff; }
.chat-chips { display: flex; flex-direction: column; gap: 7px; }
.chat-chip {
  background: var(--bg); border: 1px solid var(--border-2); cursor: pointer;
  font-family: inherit; font-size: 12px; padding: 8px 12px; border-radius: 18px;
  color: var(--blue-light); text-align: left;
}
.chat-chip:hover { background: var(--blue-bg); }

.chat-panel__foot {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: var(--bg); border-top: 1px solid var(--border);
}
.chat-panel__foot input {
  flex: 1; border: none; font-family: inherit; font-size: 12.5px; background: none; color: var(--text);
}
.chat-panel__foot input:focus { outline: none; }
.chat-send {
  width: 30px; height: 30px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--blue); color: #fff; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   Booking modal — two-step (form -> calendar)
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,0.65);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.is-open { display: flex; }
.modal {
  width: 360px; max-width: 100%;
  background: var(--bg); border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.modal__head {
  background: var(--navy); padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.modal__head .title { color: #fff; font-size: 15px; font-weight: 600; margin: 0; display:flex; align-items:center; gap:8px; }
.modal__head .sub { color: var(--blue-light); font-size: 11.5px; margin: 2px 0 0; }
.modal__head .x, .modal__head .back { background: none; border: none; color: rgba(255,255,255,0.75); cursor: pointer; font-size: 18px; }
.modal__body { padding: 18px; }
.progress { display: flex; gap: 5px; margin-bottom: 16px; }
.progress span { height: 3px; flex: 1; background: var(--border); border-radius: 2px; }
.progress span.on { background: var(--blue); }
.modal-step { display: none; }
.modal-step.is-active { display: block; }

/* ---------- Legal / long-form prose pages ---------- */
.legal { max-width: 760px; }
.legal__meta { font-size: 13px; color: var(--text-faint); margin: 0 0 28px; }
.legal h2 {
  font-family: var(--font-serif); font-weight: 400; font-size: 22px;
  margin: 32px 0 10px; letter-spacing: -0.3px;
}
.legal p { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin: 0 0 14px; max-width: none; }
.legal ul { margin: 0 0 16px; padding-left: 20px; }
.legal li { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 8px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--blue-light); text-decoration: underline; }
.legal__disclaimer {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-faint); font-style: italic;
}

/* ---------- Site search (dropdown panel under nav) ---------- */
.search-panel {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 70;
  background: var(--surface); border-bottom: 1px solid var(--border-2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  display: none;
}
.search-panel.is-open { display: block; }
.search-panel__inner { max-width: var(--maxw); margin: 0 auto; padding: 16px 24px 20px; }
.search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--border-2);
  border-radius: var(--radius); padding: 10px 12px;
}
.search-box i { color: var(--text-faint); font-size: 18px; }
.search-box input {
  flex: 1; border: none; background: none; color: var(--text);
  font-family: inherit; font-size: 15px;
}
.search-box input:focus { outline: none; }
.search-close { background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: 18px; line-height: 0; }
.search-close:hover { color: var(--text); }
.search-results { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.search-hint { font-size: 13px; color: var(--text-faint); margin: 4px 2px; }
.search-hint a { color: var(--blue-light); text-decoration: underline; }
.search-result {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 12px; border-radius: var(--radius);
  color: var(--text); text-decoration: none; border: 1px solid transparent;
}
.search-result:hover { background: var(--bg); border-color: var(--border); text-decoration: none; }
.search-result__title { font-size: 14px; font-weight: 600; }
.search-result i { color: var(--blue-light); font-size: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: inline-flex; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr !important; }
}