/* CAI Solutions LLC — site styles */

:root {
  --navy: #0b2545;
  --navy-soft: #13315c;
  --blue: #1d63ed;
  --blue-dark: #1449b8;
  --blue-tint: #eef4ff;
  --ink: #16202e;
  --body: #4a5a6e;
  --muted: #7b8a9c;
  --line: #e2e8f0;
  --line-soft: #eef2f7;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 32, 56, .04), 0 8px 28px rgba(16, 32, 56, .06);
  --maxw: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 650; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1.1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: .5em; }
strong { color: var(--ink); font-weight: 620; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
code { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: .88em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 680; color: var(--ink); font-size: 1.05rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; color: var(--ink); }
.mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--blue) 0%, #0b2545 100%);
  color: #fff; display: grid; place-items: center;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
}
.brand span.sub { color: var(--muted); font-weight: 450; font-size: .95rem; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--body); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; cursor: pointer; color: var(--ink); font-size: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 9px;
  font-weight: 570; font-size: .96rem; border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- hero ---------- */
.hero { padding: 96px 0 84px; background: linear-gradient(180deg, var(--blue-tint) 0%, #ffffff 100%); border-bottom: 1px solid var(--line-soft); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 620; letter-spacing: .09em;
  text-transform: uppercase; color: var(--blue); background: #fff;
  border: 1px solid #d4e2ff; border-radius: 100px; padding: 6px 14px; margin-bottom: 22px;
}
.hero p.lead { font-size: 1.18rem; max-width: 620px; color: var(--body); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }

/* hero artwork: parent company + portfolio nodes */
.hero-art { display: grid; place-items: center; }
.orbit { position: relative; width: 330px; height: 330px; }
.orbit::before, .orbit::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px dashed #c6d8f5;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.orbit::before { width: 200px; height: 200px; }
.orbit::after { width: 310px; height: 310px; border-style: solid; border-color: #dbe7fa; }
.orbit-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 22px;
  background: linear-gradient(135deg, var(--blue) 0%, #0b2545 100%);
  color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 1.05rem; letter-spacing: .04em;
  box-shadow: 0 12px 30px rgba(29, 99, 237, .28);
}
.node {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 14px; font-size: .84rem; font-weight: 570;
  color: var(--ink); white-space: nowrap; box-shadow: var(--shadow);
}
.node.ghost { color: var(--muted); border-style: dashed; font-weight: 500; background: #fbfcfe; }
.node.n1 { top: 6px; left: 50%; transform: translateX(-50%); }
.node.n2 { top: 50%; right: -18px; transform: translateY(-50%); }
.node.n3 { bottom: 6px; left: 50%; transform: translateX(-50%); }
.node.n4 { top: 50%; left: -6px; transform: translateY(-50%); }

/* ---------- page header (interior) ---------- */
.page-head { padding: 60px 0 40px; border-bottom: 1px solid var(--line-soft); background: var(--bg-alt); }
.page-head h1 { margin-bottom: .3em; }
.page-head .meta { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- sections ---------- */
section.band { padding: 80px 0; }
section.band.alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head p { color: var(--body); margin: 0; }

/* ---------- grid / cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: #c7d7f2; transform: translateY(-2px); }
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; font-size: .96rem; }
.card .tag { display: inline-block; font-size: .72rem; font-weight: 640; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); background: var(--blue-tint); border-radius: 5px; padding: 3px 9px; margin-bottom: 14px; }
.card .tag.soon { color: #8a6d1f; background: #fdf5e0; }
.card a.card-link { display: inline-block; margin-top: 16px; font-weight: 560; font-size: .93rem; }

/* ---------- legal / prose ---------- */
.prose { padding: 56px 0 88px; }
.prose h2 { margin-top: 2.4em; font-size: 1.42rem; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; font-size: 1.08rem; }
.prose ul li::marker { color: var(--muted); }
.toc {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 44px;
}
.toc h4 { margin: 0 0 12px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 640; }
.toc ol { margin: 0; padding-left: 1.2em; column-count: 2; column-gap: 32px; }
.toc li { margin-bottom: .35em; font-size: .93rem; }

.callout {
  border-left: 3px solid var(--blue); background: var(--blue-tint);
  border-radius: 0 8px 8px 0; padding: 18px 22px; margin: 1.6em 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-left-color: #d99a12; background: #fdf7e8; }

/* placeholder chips the owner must fill in before publishing */
.fill {
  background: #fff3cd; border-bottom: 2px solid #e0a800; border-radius: 3px;
  padding: 0 4px; font-weight: 600; color: #6b5200; white-space: nowrap;
}

table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .94rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); font-weight: 620; background: var(--bg-alt); font-size: .88rem; }

/* ---------- contact rows ---------- */
.contact-block { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin: 1.8em 0; }
.contact-block p { margin: 0 0 .4em; }
.contact-block p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #a8bcd6; padding: 64px 0 32px; font-size: .93rem; }
.site-footer a { color: #cfdcee; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-grid h5 { color: #fff; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; margin: 0 0 16px; font-weight: 620; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-brand .mark { margin-bottom: 14px; }
.footer-brand p { color: #8fa5c2; font-size: .9rem; max-width: 300px; margin: 0; }
.footer-bottom { border-top: 1px solid #1c3a63; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #7f96b5; font-size: .88rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .nav-links {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  section.band { padding: 56px 0; }
  .toc ol { column-count: 1; }
  .footer-grid { grid-template-columns: 1fr; }
}
