/* RTL Consulting — redesign preview
   AI Services up front, government consulting behind.
   Design system adapted from the staged homepage concept. */

:root {
  color-scheme: light dark;
  --paper: #f6f4ef;
  --surface: #ffffff;
  --ink: #151d24;
  --muted: #51606b;
  --line: #ced4d7;
  --navy: #102938;
  --navy-2: #173b4d;
  --accent: #e9512b;
  --accent-dark: #bc3519;
  --gold: #f2bd55;
  --mint: #b8e3d3;
  --success: #17734a;
  --shadow: 0 22px 60px rgba(16, 41, 56, .13);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1519;
    --surface: #151f25;
    --ink: #edf2f2;
    --muted: #b0bec5;
    --line: #34444d;
    --navy: #071a24;
    --navy-2: #102f3f;
    --accent: #ff7654;
    --accent-dark: #ff9a80;
    --gold: #f4c86e;
    --mint: #70bda3;
    --success: #7ed6a9;
    --shadow: 0 22px 60px rgba(0, 0, 0, .34);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { max-width: 100%; display: block; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }
.nav-links a.active { color: var(--accent-dark); }
.brand-mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--navy-2); text-decoration: none;
}
.brand-mark::before {
  content: ""; width: 24px; height: 24px; background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 32%, 46% 32%, 46% 100%, 0 100%);
}
@media (prefers-color-scheme: dark) { .brand-mark { color: var(--mint); } }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-size: 20px; padding: 6px 10px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 700; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-secondary:hover { background: var(--surface); }
.btn-small { min-height: 40px; padding-inline: 16px; font-size: 14px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  color: var(--accent-dark); font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 36px; height: 3px; background: var(--accent); }
h1, h2, h3 { margin-top: 0; }
.serif { font-family: "Newsreader", Georgia, serif; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; padding: 88px 0 96px;
  background: linear-gradient(110deg, color-mix(in srgb, var(--paper) 92%, var(--gold)) 0%, var(--paper) 60%);
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; width: 290px; height: 290px; right: -110px; bottom: -130px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 50%;
  box-shadow: 0 0 0 44px color-mix(in srgb, var(--accent) 5%, transparent), 0 0 0 88px color-mix(in srgb, var(--accent) 3%, transparent);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: clamp(44px, 7vw, 92px); align-items: center; }
h1.hero-title {
  max-width: 780px; margin-bottom: 24px;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(48px, 7vw, 82px); line-height: .98; letter-spacing: -.035em; font-weight: 650;
}
.hero-copy > p:not(.eyebrow) { max-width: 650px; margin: 0 0 30px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.5; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.proof-row { display: flex; gap: 12px 24px; flex-wrap: wrap; padding-top: 32px; color: var(--muted); font-size: 14px; font-weight: 600; }
.proof-row span { display: inline-flex; align-items: center; gap: 8px; }
.proof-row span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

/* ---------- Demo card ---------- */
.demo-card { background: var(--navy); color: #f4f8f9; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.15); }
.demo-label { font-size: 13px; color: #b7cbd4; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; color: #c7f1e1; font-size: 13px; font-weight: 600; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #42c98f; box-shadow: 0 0 0 5px rgba(66,201,143,.13); }
.call-meta { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0 16px; }
.caller strong { display: block; font-size: 18px; }
.caller span, .timer { color: #b7cbd4; font-size: 13px; }
.transcript { min-height: 228px; display: grid; align-content: start; gap: 12px; }
.bubble { max-width: 88%; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: #1c4051; color: #dbe9ee; font-size: 14px; line-height: 1.45; opacity: 0; transform: translateY(8px); }
.bubble.ai { margin-left: auto; border-radius: 16px 16px 4px 16px; background: #f2eee5; color: #172a34; }
.bubble.show { animation: bubble-in .38s ease forwards; }
@keyframes bubble-in { to { opacity: 1; transform: translateY(0); } }
.demo-result { display: none; margin-top: 16px; padding: 14px; border: 1px solid rgba(184,227,211,.35); background: rgba(184,227,211,.09); border-radius: 12px; color: #dcf8ee; font-size: 14px; }
.demo-result strong { display: block; color: #fff; margin-bottom: 2px; }
.demo-card .btn { width: 100%; margin-top: 18px; background: var(--gold); color: #2b2417; }
.demo-card .btn:hover { background: #ffd47d; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head { display: grid; grid-template-columns: .78fr 1.22fr; gap: 60px; align-items: end; margin-bottom: 56px; }
.section-head h2, .government h2, .closing h2, .page-title {
  margin-bottom: 0; font-family: "Newsreader", Georgia, serif;
  font-size: clamp(38px, 5vw, 58px); line-height: 1.02; letter-spacing: -.025em; font-weight: 650;
}
.section-head p { margin: 0; color: var(--muted); font-size: 19px; max-width: 620px; }
.section-head.center { grid-template-columns: 1fr; text-align: center; gap: 20px; justify-items: center; }

.service-list { border-top: 1px solid var(--line); }
.service-item { display: grid; grid-template-columns: 64px .75fr 1.25fr; gap: 26px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.service-num { color: var(--accent-dark); font-weight: 700; font-variant-numeric: tabular-nums; }
.service-item h3 { margin-bottom: 4px; font-size: 20px; }
.service-item p { margin: 0; color: var(--muted); }

/* ---------- Workflow ---------- */
.workflow { background: var(--navy); color: #f1f6f7; padding: 96px 0; }
.workflow .eyebrow { color: var(--gold); }
.workflow-head { max-width: 760px; margin-bottom: 54px; }
.workflow h2 { font-family: "Newsreader", Georgia, serif; font-size: clamp(38px, 5vw, 58px); line-height: 1.02; margin-bottom: 18px; }
.workflow-head > p:last-child { color: #bcd0d9; max-width: 650px; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.16); }
.step { background: var(--navy); padding: 34px 30px; }
.step-index { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .09em; }
.step h3 { margin: 18px 0 10px; font-size: 23px; }
.step p { margin: 0; color: #bcd0d9; }

/* ---------- Offer / pricing ---------- */
.offer-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.offer-copy h2 { font-family: "Newsreader", Georgia, serif; font-size: clamp(38px, 5vw, 58px); line-height: 1.02; margin-bottom: 20px; }
.offer-copy > p { color: var(--muted); margin-bottom: 28px; font-size: 19px; }
.price-card { background: var(--surface); padding: clamp(28px, 5vw, 48px); border-top: 5px solid var(--accent); box-shadow: var(--shadow); border-radius: 0 0 var(--radius-md) var(--radius-md); }
.price-card h3 { margin-bottom: 6px; font-size: 26px; }
.price { font-family: "Newsreader", Georgia, serif; font-size: clamp(35px, 5vw, 52px); line-height: 1; margin: 24px 0 8px; }
.price small { font-family: "IBM Plex Sans", sans-serif; font-size: 14px; color: var(--muted); font-weight: 500; }
.monthly { color: var(--muted); margin-bottom: 28px; }
.check-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; }
.check-list li::before { content: "✓"; color: var(--success); font-weight: 700; }

/* ---------- ROI band ---------- */
.roi-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 72px 0; }
.roi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.roi-stat { border-left: 3px solid var(--accent); padding-left: 20px; }
.roi-stat .num { font-family: "Newsreader", Georgia, serif; font-size: 44px; line-height: 1; margin-bottom: 8px; }
.roi-stat p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Government section ---------- */
.government { background: color-mix(in srgb, var(--navy) 94%, black); color: #f3f7f8; padding: 96px 0; }
.gov-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(44px, 8vw, 100px); }
.government .eyebrow { color: var(--gold); }
.government h2 { margin-bottom: 24px; }
.government p { color: #bfd0d8; }
.credential-stack { display: grid; gap: 14px; align-content: start; }
.credential { display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.credential:first-child { border-top: 1px solid rgba(255,255,255,.16); }
.credential-badge { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(242,189,85,.6); color: var(--gold); font-weight: 700; font-size: 12px; }
.credential strong { display: block; color: #fff; }
.credential span { color: #aebfc7; font-size: 14px; }
.gov-capabilities { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.gov-capabilities span { border: 1px solid rgba(255,255,255,.2); padding: 7px 11px; font-size: 13px; color: #d6e2e7; }

/* ---------- Closing CTA ---------- */
.closing { text-align: center; padding: 104px 0 110px; }
.closing h2 { max-width: 760px; margin: 0 auto 20px; }
.closing p { max-width: 640px; margin: 0 auto 32px; color: var(--muted); font-size: 19px; }
.closing-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Interior page header ---------- */
.page-header { padding: 72px 0 64px; border-bottom: 1px solid var(--line); background: linear-gradient(110deg, color-mix(in srgb, var(--paper) 90%, var(--gold)) 0%, var(--paper) 65%); }
.page-header .breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.page-header .breadcrumb a { color: var(--accent-dark); text-decoration: none; }
.page-title { margin-bottom: 16px; }
.page-header .lede { color: var(--muted); font-size: 19px; max-width: 680px; margin: 0; }

/* ---------- Service detail cards ---------- */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 44px; }
.detail-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 0 0 var(--radius-md) var(--radius-md); padding: 32px 30px; box-shadow: var(--shadow); }
.detail-card h3 { font-size: 23px; margin-bottom: 10px; }
.detail-card p { color: var(--muted); margin: 0 0 14px; }
.detail-card ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.detail-card li { margin-bottom: 6px; }
.detail-card .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 10px; }

/* ---------- Gov services list (interior) ---------- */
.gov-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.gov-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px 24px; }
.gov-card h3 { font-size: 18px; margin-bottom: 8px; }
.gov-card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.gov-card .kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 10px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; margin-top: 56px; }
.about-grid h2 { font-family: "Newsreader", Georgia, serif; font-size: clamp(30px, 4vw, 44px); margin: 40px 0 16px; }
.about-grid h2:first-child { margin-top: 0; }
.about-grid h3 { font-size: 21px; margin: 28px 0 12px; }
.about-grid p, .about-grid li { color: var(--muted); }
.about-grid ul { padding-left: 20px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.stat-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px 16px; text-align: center; }
.stat-box .num { font-family: "Newsreader", Georgia, serif; font-size: 30px; color: var(--accent-dark); font-weight: 650; }
.stat-box .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }
.cred-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.cred-row img { width: 120px; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.cert-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.cert-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.cert-list li::before { content: "✓"; color: var(--success); font-weight: 700; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; margin-top: 56px; align-items: start; }
.contact-info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 32px 28px; box-shadow: var(--shadow); }
.contact-info-card h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-dark); margin: 0 0 6px; }
.contact-info-card p { margin: 0 0 24px; color: var(--muted); }
.contact-info-card p:last-child { margin-bottom: 0; }
.contact-info-card a { color: var(--ink); font-weight: 600; }
form.contact-form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
form.contact-form input, form.contact-form textarea, form.contact-form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; margin-bottom: 18px; font-family: inherit; background: var(--surface); color: var(--ink);
}
form.contact-form textarea { resize: vertical; min-height: 120px; }
.audit-callout { margin-top: 28px; background: var(--navy); color: #f1f6f7; border-radius: var(--radius-md); padding: 32px 28px; }
.audit-callout h3 { color: #fff; margin-bottom: 10px; }
.audit-callout p { color: #bcd0d9; margin: 0 0 20px; }
.sent-notice { display: none; background: color-mix(in srgb, var(--success) 12%, var(--surface)); border: 1px solid var(--success); border-radius: var(--radius-sm); padding: 14px 18px; margin-top: 18px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 44px 0 36px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 30px; }
.footer-grid h4 { color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--accent-dark); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; }
.footer-creds { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Friday chat widget ---------- */
#friday-toggle {
  position: fixed; bottom: 26px; right: 26px; width: 62px; height: 62px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25); cursor: pointer;
  font-size: 14px; font-weight: 700; z-index: 999; transition: transform .15s;
  line-height: 1.15;
}
#friday-toggle:hover { transform: scale(1.06); }
#friday-panel {
  position: fixed; bottom: 100px; right: 26px; width: 370px; max-width: calc(100vw - 40px);
  height: 500px; max-height: calc(100vh - 140px);
  background: var(--surface); border-radius: var(--radius-md);
  box-shadow: var(--shadow); display: none; flex-direction: column; overflow: hidden;
  z-index: 999; border: 1px solid var(--line);
}
#friday-panel.open { display: flex; }
.friday-header { background: var(--navy); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 10px; }
.friday-header .dot { width: 9px; height: 9px; border-radius: 50%; background: #42c98f; }
.friday-header .name { font-weight: 600; font-size: 15px; }
.friday-header .sub { font-size: 11.5px; color: #b7cbd4; }
.friday-close { margin-left: auto; background: none; border: none; color: #cfd8e6; font-size: 18px; cursor: pointer; }
.friday-messages { flex: 1; overflow-y: auto; padding: 16px; background: var(--paper); display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 10px; font-size: 13.8px; line-height: 1.45; }
.msg.bot { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; color: var(--ink); }
.msg.user { background: var(--navy); color: #fff; align-self: flex-end; }
.friday-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; background: var(--paper); }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 12px; cursor: pointer; color: var(--muted); }
.chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.friday-input-row { display: flex; border-top: 1px solid var(--line); padding: 10px; gap: 8px; background: var(--surface); }
.friday-input-row input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font-size: 13.5px; background: var(--paper); color: var(--ink); }
.friday-input-row button { background: var(--accent); color: #fff; border: none; border-radius: 999px; padding: 0 18px; font-size: 13px; cursor: pointer; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open-mobile { display: flex; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 4px; }
  .nav-links.open-mobile a:not(.btn) { display: block; padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .hero { padding-top: 58px; }
  .hero-grid, .section-head, .offer-wrap, .gov-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .demo-card { max-width: 560px; transform: none; }
  .section-head { gap: 20px; }
  .steps { grid-template-columns: 1fr; }
  .service-item { grid-template-columns: 44px 1fr; }
  .service-item p { grid-column: 2; }
  .detail-grid, .gov-services, .roi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 28px, 1180px); }
  .nav-inner { min-height: 62px; }
  .hero { padding: 46px 0 70px; }
  h1.hero-title { font-size: clamp(43px, 14vw, 64px); }
  .hero-actions .btn { width: 100%; }
  .demo-card { padding: 18px; border-radius: 20px; }
  .transcript { min-height: 250px; }
  .section, .workflow, .government { padding: 72px 0; }
  .closing { padding: 78px 0 82px; }
  .closing-actions .btn { width: 100%; }
  #friday-panel { right: 12px; left: 12px; width: auto; }
  #friday-toggle { right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
