/* ==========================================================================
   Civis AI Services
   Styled to match civisanalytics.com, not invented. Every value below was read
   off the live site with getComputedStyle or sampled from a screenshot:

     body text     #4D768D      headings      #215470 (navy)
     tagline       #2E7CAD  16px/700 uppercase, normal letter-spacing
     h1            64px/700  line-height 1.1  letter-spacing -.02em  centered
     h2            48px/700  line-height 1.2  left
     buttons       pill (999px), #F1A137 bg with #0A2138 text, 12px 24px, 16px/700
     bordered box  #fff, radius 16px, 1px solid #E6E6E6, padding 24px
     dark card     #215470, white text, card title 24px/700
     alt band      #F3F4F6      footer  #0A2138

   Headings are weight 700, not 900. The live site never uses 900.
   ========================================================================== */

:root {
  --navy:    #215470;
  --night:   #0A2138;
  --body:    #4D768D;
  --tagline: #2E7CAD;
  --amber:   #F1A137;
  --line:    #E6E6E6;
  --alt:     #F3F4F6;
  --radius:  16px;
  --maxw:    1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: #fff;
  color: var(--body);
  font-family: 'Lato', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--tagline); outline-offset: 3px; }

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

h1, h2, h3, h4 { color: var(--navy); font-weight: 700; margin: 0; }
h1 { font-size: 64px; line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: 48px; line-height: 1.2; }
h3 { font-size: 24px; line-height: 1.3; }

section { padding: 96px 0; }
section.compact { padding: 0 0 96px; }
section.alt { background: var(--alt); }

.tagline {
  color: var(--tagline);
  font-size: 16px; font-weight: 700; text-transform: uppercase;
  margin-bottom: 12px;
}

.sec-head { max-width: 820px; margin-bottom: 56px; }
.sec-head h2 { margin-bottom: 20px; }
.sec-head p { margin: 0; font-size: 20px; line-height: 1.55; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; border: 0;
  font-family: inherit; font-size: 16px; font-weight: 700;
  padding: 12px 24px; border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.btn-amber { background: var(--amber); color: var(--night); }
.btn-amber:hover { background: #e79429; }
.btn-blue { background: var(--tagline); color: #fff; }
.btn-blue:hover { background: #256a95; }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- Nav ---------- */
.topnav { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 50; }
.nav-inner { display: flex; align-items: center; height: 72px; gap: 32px; }
.nav-left, .nav-right { display: flex; align-items: center; gap: 28px; flex: 1; }
.nav-right { justify-content: flex-end; }
.nav-right a.plain { font-size: 16px; color: var(--navy); }
.nav-right a.plain:hover { color: var(--tagline); }

/* Mega dropdowns. Structure and every link mirrors civisanalytics.com. */
.navitem { position: static; }
.navtop {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  font: 400 16px 'Lato', Arial, sans-serif; color: var(--navy); padding: 24px 0;
}
.navtop svg { width: 15px; height: 15px; transition: transform .15s ease; }
.navitem:hover .navtop, .navitem.open .navtop { color: var(--tagline); }
.navitem:hover .navtop svg, .navitem.open .navtop svg { transform: rotate(180deg); }
.mm {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(10,33,56,.10);
  padding: 36px 40px 40px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
  max-width: var(--maxw); margin: 0 auto;
}
.mm-wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.navitem:hover .mm, .navitem.open .mm { display: grid; }
.mm-col h6 {
  margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--tagline);
}
.mm-col a { display: block; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; }
.mm-col a:hover { background: var(--alt); }
.mm-col a b { display: block; font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.mm-col a span { display: block; font-size: 13.5px; line-height: 1.45; margin-top: 3px; }
.nav-logo img { height: 34px; }
.nav-hamburger { display: none; background: none; border: 0; cursor: pointer; color: var(--navy); padding: 8px; }
.nav-hamburger svg { width: 24px; height: 24px; }
.nav-drawer { display: none; }
.nav-drawer.open {
  display: flex; flex-direction: column;
  position: fixed; top: 72px; left: 0; right: 0; z-index: 60;
  background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
}
.nav-drawer a { padding: 14px 0; font-size: 17px; color: var(--navy); border-bottom: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { padding: 104px 0 88px; text-align: center; }
.hero h1 { max-width: 22ch; margin: 0 auto 24px; text-wrap: balance; }
.hero p.lead { max-width: 620px; margin: 0 auto 40px; font-size: 20px; line-height: 1.55; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Expertise cards ----------
   Reproduces .professional-services_expertise-item from the live site exactly:
   a grey outer frame (16px border, 24px radius) wrapping an inset white card
   (16px radius, 1px #E6E6E6) with the label centred inside it. */
.exp-head { font-size: 24px; font-weight: 700; color: var(--tagline); margin-bottom: 20px; }
.boxes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.box {
  background: var(--alt);
  border: 16px solid var(--alt);
  border-radius: 24px;
}
.box-inner {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; min-height: 134px;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.box-inner h3 { font-size: 20px; font-weight: 700; color: var(--navy); line-height: 1.3; }

/* ---------- Navy engagement cards (the original page's module) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.card h3 { color: #fff; margin-bottom: 20px; }
.card .dur { font-size: 16px; font-weight: 700; color: var(--amber); margin-bottom: 20px; }
.card > p { margin: 0 0 20px; font-size: 16px; line-height: 1.55; color: #cfdde6; }
.card ul { margin: 0; padding-left: 22px; }
.card li { font-size: 16px; line-height: 1.5; margin-bottom: 10px; color: #e4edf1; }
.card li a { text-decoration: underline; text-underline-offset: 2px; }
.card li a:hover { color: var(--amber); }
.card .card-foot { margin-top: auto; padding-top: 22px; }
.cardlink { font-size: 15px; font-weight: 700; color: var(--amber); }
.cardlink:hover { text-decoration: underline; }

/* ---------- AI band ---------- */
.aiband .sec-head { margin-bottom: 44px; }
/* Plain white cards on the grey band. Same card vocabulary as the rest of the
   site: 16px radius, 1px #E6E6E6, no accent stripes, no shadows. */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.tier {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column;
}
.tier .dur {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  color: var(--tagline); margin-bottom: 10px;
}
.tier h3 { font-size: 22px; margin-bottom: 12px; }
.tier > p { margin: 0 0 18px; font-size: 16px; line-height: 1.55; }
.tier ul { margin: 0; padding-left: 20px; }
.tier li { font-size: 15.5px; line-height: 1.5; margin-bottom: 9px; }

/* sub-headings inside the AI band */
.track-head { margin: 72px 0 28px; max-width: 760px; }
.track-head h3 { font-size: 30px; margin-bottom: 10px; }
.track-head p { margin: 0; font-size: 17px; line-height: 1.55; }

/* ---------- Eight-week track ---------- */
.track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
/* Same label idiom as the tier cards and the site's tagline: blue uppercase
   text, not a filled chip. */
.step .wk {
  display: block; font-size: 14px; font-weight: 700; text-transform: uppercase;
  color: var(--tagline); margin-bottom: 10px;
}
.step h3 { font-size: 24px; margin-bottom: 10px; }
.step p { margin: 0 0 20px; font-size: 16px; line-height: 1.55; }
.step .got {
  padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 15px; font-weight: 700; color: var(--navy);
}
.step .got::before {
  content: 'You get'; display: block; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--tagline);
  margin-bottom: 4px;
}

/* ---------- Use case tiles ---------- */
.ucs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.uc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color .15s ease, transform .15s ease;
}
.uc:hover { border-color: var(--amber); transform: translateY(-2px); }
.uc svg { width: 30px; height: 30px; color: var(--amber); }
.uc span { font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.35; }

/* ---------- Showcase (Audience Builder) ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.showcase h2 { margin-bottom: 18px; }
.showcase p { margin: 0 0 28px; font-size: 18px; line-height: 1.6; }
.shot-frame { border-radius: 12px; overflow: hidden; box-shadow: 0 18px 44px rgba(10,33,56,.16); }
.shot-frame img { width: 100%; }

/* ---------- Industry circles ---------- */
.circles { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.circle {
  width: 190px; height: 190px; border-radius: 50%;
  border: 14px solid var(--alt); background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 20px; text-align: center;
  cursor: pointer; font-family: inherit;
  color: var(--amber);
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.circle svg { width: 30px; height: 30px; }
.circle span { font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.25; transition: color .18s ease; }
/* Fills with Civis amber on hover, same behaviour as the live site. */
.circle:hover, .circle:focus-visible {
  background: var(--amber); border-color: var(--amber); color: var(--night);
}
.circle:hover span, .circle:focus-visible span { color: var(--night); }

/* ---------- Quote ---------- */
.quote-wrap { background: var(--alt); border-radius: 20px; padding: 12px; }
.quote { background: #fff; border-radius: var(--radius); padding: 48px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.quote .q { font-size: 22px; line-height: 1.5; color: var(--navy); margin: 0 0 24px; }
.quote .who { font-size: 17px; font-weight: 700; color: var(--navy); }
.quote .logo img { max-height: 88px; margin-left: auto; }

/* ---------- Case study ---------- */
.cs-wrap { background: var(--alt); border-radius: 20px; padding: 12px; }
.cs { background: #fff; border-radius: var(--radius); padding: 40px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.cs .q { font-size: 20px; line-height: 1.5; color: var(--navy); margin: 0 0 28px; }
.cs .stat { border-top: 1px solid var(--line); padding: 18px 0; display: flex; align-items: baseline; gap: 12px; }
.cs .stat .n { font-size: 40px; font-weight: 700; color: var(--navy); line-height: 1; }
.cs .stat .l { font-size: 18px; }
.cs .more { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--navy); margin-top: 8px; }
.cs .more .arr {
  width: 24px; height: 24px; border-radius: 50%; background: var(--tagline); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.cs .shot { position: relative; border-radius: 12px; overflow: hidden; align-self: stretch; min-height: 300px; }
.cs .shot img { width: 100%; height: 100%; object-fit: cover; }
.cs .shot .all { position: absolute; right: 16px; bottom: 16px; }

/* Logo bar doubles as the story switcher, same as the live site. */
.logobar {
  background: #fff; border-radius: var(--radius); margin-top: 12px;
  padding: 18px 30px; display: flex; align-items: center; justify-content: space-around;
  gap: 24px; flex-wrap: wrap;
}
.lb {
  background: none; border: 0; cursor: pointer; padding: 14px 22px;
  border-radius: 10px; border-bottom: 3px solid transparent;
  opacity: .5; filter: grayscale(1);
  transition: opacity .18s ease, filter .18s ease, border-color .18s ease, background .18s ease;
}
.lb img { max-height: 46px; width: auto; }
.lb:hover { opacity: .85; filter: grayscale(.3); background: var(--alt); }
.lb.on { opacity: 1; filter: none; border-bottom-color: var(--amber); }

/* ---------- Platform help band (rounded navy block, as on the original) ---------- */
.platband {
  background: var(--navy); color: #fff; border-radius: 20px;
  padding: 72px 56px; text-align: center;
}
.platband h2 { color: #fff; max-width: 16ch; margin: 0 auto 18px; text-wrap: balance; }
.platband p { max-width: 640px; margin: 0 auto 30px; font-size: 18px; line-height: 1.6; color: #d7e3ea; }

/* ---------- Navy CTA band ---------- */
.cta { background: var(--navy); color: #fff; text-align: center; padding: 96px 0; }
.cta h2 { color: #fff; max-width: 18ch; margin: 0 auto 20px; text-wrap: balance; }
.cta p { font-size: 20px; margin: 0 auto 36px; max-width: 620px; color: #d7e3ea; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer { background: var(--night); color: #c7d5de; padding: 56px 0 32px; }
.foot-top { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-bottom: 48px; }
.foot-top img.mark { width: 82px; height: auto; }
.foot-top .t b { display: block; color: #fff; font-size: 18px; font-weight: 700; }
.foot-top .t span { font-size: 22px; color: #e4edf1; }
.foot-top .btn { margin-left: auto; }
.foot-sec { padding-top: 48px; }
.foot-sec h4 {
  color: var(--amber); font-size: 26px; font-weight: 700;
  padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.18); margin-bottom: 28px;
}
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.foot-col h5 { margin: 0 0 14px; font-size: 16px; font-weight: 700; color: #fff; }
.foot-col a, .foot-col .item { display: block; font-size: 16px; color: #9db1bd; margin-bottom: 12px; }
.foot-col a:hover { color: #fff; }
.partners { display: flex; gap: 14px; }
.partners img { height: 74px; width: auto; background: #fff; border-radius: 6px; padding: 6px; }
.foot-base {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 15px; color: #8ca0ad;
}
.foot-base a { text-decoration: underline; }
.foot-base a:hover { color: #fff; }
.foot-base .social { margin-left: auto; display: flex; gap: 16px; }
.foot-base .social svg { width: 20px; height: 20px; fill: #c7d5de; }

/* ---------- Modal ---------- */
.scrim { position: fixed; inset: 0; background: rgba(10,33,56,.6); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.scrim.open { display: flex; }
.modal { background: #fff; border-radius: var(--radius); width: 100%; max-width: 520px; padding: 40px; max-height: 90vh; overflow-y: auto; }
.modal h3 { font-size: 28px; margin-bottom: 8px; }
.modal p.sub { margin: 0 0 24px; font-size: 16px; }
.modal .fields { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.modal label { display: block; font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.modal input, .modal textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font: 400 16px 'Lato', Arial, sans-serif; color: var(--night);
}
.modal textarea { resize: vertical; min-height: 90px; }
.modal input:focus, .modal textarea:focus { outline: none; border-color: var(--tagline); }
.modal .row { display: flex; justify-content: flex-end; gap: 10px; }
.modal .ok { text-align: center; font-size: 17px; color: var(--navy); padding: 16px 0 24px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  h1 { font-size: 48px; }
  h2 { font-size: 38px; }
  .boxes, .boxes.four { grid-template-columns: repeat(2, 1fr); }
  .ucs { grid-template-columns: repeat(2, 1fr); }
  .cards, .cards.four, .track, .tiers { grid-template-columns: 1fr; }
  .track-head h3 { font-size: 26px; }
  .showcase { grid-template-columns: 1fr; gap: 32px; }
  .quote, .cs { grid-template-columns: 1fr; gap: 32px; }
  .quote .logo img { margin: 0; }
  .nav-left { display: none; }
  .nav-hamburger { display: block; }
  .nav-right { flex: none; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  section { padding: 64px 0; }
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  .hero { padding: 64px 0 56px; }
  .hero p.lead, .sec-head p { font-size: 18px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; text-align: center; }
  .boxes, .boxes.four, .ucs { grid-template-columns: 1fr; }
  .lb { padding: 10px 14px; }
  .lb img { max-height: 36px; }
  .quote, .cs { padding: 28px; }
  .cs .stat .n { font-size: 32px; }
  .logobar { padding: 24px; gap: 24px; }
  .circle { width: 150px; height: 150px; border-width: 10px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-top .btn { margin-left: 0; }
  .foot-base .social { margin-left: 0; }
  .modal { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
