/* ctrl+gov — Style 5: CONSENSUS
   Assembled from round-one feedback rather than designed from scratch:
   Warm's header and team and contact, Editorial's hero headline, Insight's
   forecast chart, Civic's stat band and checklist, and services tiles that
   split the difference between Civic and Warm. */

:root{
  --indigo:#2B245D; --indigo-2:#3A3178; --coral:#EB5F5D; --blue:#5F8CC8; --plum:#6A466E;
  --ink:#2B245D; --body:#4E4B60; --muted:#7C7890;
  --line:#E6E3EE; --hair:#EFEDF3; --tint:#F5F4F9; --blush:#FDF4F3; --paper:#fff;
  --card:#fff; --header:rgba(255,255,255,.92); --shadow:rgba(43,36,93,.09);
  /* The two chart lines drawn in the dark brand colors; dark mode lifts them. */
  --chart-estimate:#2B245D; --chart-expense:#6A466E;
  --serif:"Source Serif 4",Georgia,"Times New Roman",serif;
  --sans:"Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  --wrap:1140px;
  color-scheme:light;
}
/* Dark mode. theme.js sets data-theme from the toggle (or the system setting
   when the toggle is on auto). The indigo contact card and the footer stay
   as they are; everything around them steps down to a deep indigo-black. */
:root[data-theme="dark"]{
  --plum:#C9A2CE; --blue:#7FA6DC;
  --ink:#EEECF6; --body:#C6C2D6; --muted:#9A96B0;
  --line:#322C55; --hair:#28234A; --tint:#1B1834; --blush:#221A35; --paper:#14112A;
  --card:#1F1B3C; --header:rgba(20,17,42,.9); --shadow:rgba(0,0,0,.35);
  --chart-estimate:#B9B1EE; --chart-expense:#C9A2CE;
  color-scheme:dark;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--body);font-family:var(--sans);
  font-size:18px;line-height:1.7;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}

/* Serif for the big display type (Editorial), sans for card headings so the
   services and team blocks keep the crispness of Civic and Warm. */
h1,h2{font-family:var(--serif);color:var(--ink);font-weight:600;line-height:1.15;margin:0 0 .5em}
h1{font-size:clamp(2.3rem,5.4vw,3.6rem);letter-spacing:-.025em}
h2{font-size:clamp(1.75rem,3.8vw,2.5rem);letter-spacing:-.02em}
h3{font-family:var(--sans);color:var(--ink);font-weight:700;font-size:1.14rem;
  letter-spacing:-.02em;line-height:1.3;margin:0 0 .5em}
p{margin:0 0 1.1em}
a{color:var(--plum);text-underline-offset:3px}
a:hover{color:var(--coral)}

.wrap{max-width:var(--wrap);margin:0 auto;padding:0 26px}
.section{padding:clamp(60px,8.5vw,108px) 0}
.section--tint{background:var(--tint)}
.section--blush{background:var(--blush)}
.center{text-align:center}
.center .lede{margin-left:auto;margin-right:auto}
.lede{font-size:clamp(1.08rem,1.9vw,1.22rem);color:var(--muted);max-width:60ch}

.pill{display:inline-block;font-size:.76rem;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:var(--coral);background:rgba(235,95,93,.11);
  padding:7px 15px;border-radius:999px;margin:0 0 1.3em}

/* header — Warm's, the one both of them picked. Sticky, mostly white, and the
   Contact pill is the only filled thing up there so the nav reads as the nav. */
.site-header{background:var(--header);backdrop-filter:saturate(160%) blur(12px);
  border-bottom:1px solid var(--hair);position:sticky;top:0;z-index:20}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;
  gap:14px 26px;flex-wrap:wrap;padding-top:20px;padding-bottom:20px}
.wordmark{text-decoration:none;line-height:1;display:inline-block}
.wordmark img{height:40px;width:auto}
@media(max-width:520px){.wordmark img{height:31px}}
.nav{display:flex;align-items:center;gap:clamp(14px,2.6vw,28px);flex-wrap:wrap}
.nav a{font-size:.94rem;font-weight:600;color:var(--ink);text-decoration:none}
.nav a:hover{color:var(--coral)}
.nav .btn-sm{background:var(--coral);color:#fff;padding:10px 20px;border-radius:999px}
.nav .btn-sm:hover{background:#D94F4D;color:#fff}
/* dark logo swap: the dark copy has white CTRL and a light tagline */
.wordmark .logo-dark{display:none}
[data-theme="dark"] .wordmark .logo-light{display:none}
[data-theme="dark"] .wordmark .logo-dark{display:block}

/* theme toggle — three small icon buttons in one quiet pill, top right.
   Hidden until theme.js runs, since without it the buttons do nothing. */
.theme-toggle{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--line);
  border-radius:999px}
:root:not([data-theme]) .theme-toggle{display:none}
.theme-toggle button{width:28px;height:28px;display:grid;place-items:center;padding:0;
  border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}
.theme-toggle button:hover{color:var(--ink)}
.theme-toggle button[aria-pressed="true"]{background:var(--tint);color:var(--ink)}
.theme-toggle svg{width:15px;height:15px}
/* The toggle beside the Contact pill wrapped the phone header onto a second
   line. Tighten the gaps and the pill so all three fit on one line down to 360px. */
@media(max-width:600px){
  .site-header .wrap{column-gap:10px}
  .nav{gap:8px}
  .nav .btn-sm{padding:8px 15px;font-size:.88rem}
  .theme-toggle{padding:2px}
  .theme-toggle button{width:25px;height:25px}
  .theme-toggle svg{width:14px;height:14px}
}
/* On a phone the three text links wrapped the sticky header onto three lines
   and it covered a third of the screen. Keep the logo and the Contact pill. */
@media(max-width:600px){.nav a:not(.btn-sm){display:none}}

/* hero — Editorial's headline treatment on the left, Insight's chart on the right */
.hero{padding:clamp(60px,9vw,110px) 0 clamp(52px,7vw,88px)}
.hero-grid{display:grid;gap:clamp(40px,5vw,64px);align-items:center}
@media(min-width:920px){.hero-grid{grid-template-columns:1.05fr .95fr}}
.hero-rule{width:64px;height:3px;background:var(--coral);margin:0 0 2.1em}
.hero h1{max-width:15ch;margin-bottom:.35em}
.hero h1 em{font-style:italic;color:var(--plum)}
.hero .lede{font-size:clamp(1.1rem,2vw,1.32rem);color:var(--body);max-width:52ch;margin-bottom:2em}
.actions{display:flex;gap:14px;flex-wrap:wrap}
.btn{display:inline-block;font-family:var(--sans);font-weight:700;font-size:1rem;
  padding:14px 30px;border-radius:999px;text-decoration:none;border:2px solid transparent;
  background:var(--coral);color:#fff}
.btn:hover{background:#D94F4D;color:#fff}
.btn--line{background:var(--card);color:var(--ink);border-color:var(--line)}
.btn--line:hover{background:var(--card);color:var(--ink);border-color:var(--ink)}

/* forecast chart — lifted from Insight */
.panel{border:1px solid var(--line);border-radius:16px;background:var(--card);overflow:hidden;
  box-shadow:0 16px 44px var(--shadow)}
.panel-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:13px 18px;border-bottom:1px solid var(--hair);background:var(--tint);
  font-size:.7rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.panel-bar .dot{width:8px;height:8px;border-radius:50%;background:var(--coral);
  display:inline-block;margin-right:7px}
.panel-body{padding:22px 20px 18px}
.panel-figure{display:flex;align-items:baseline;gap:10px;margin-bottom:4px}
.panel-figure b{font-size:2rem;font-weight:800;color:var(--ink);letter-spacing:-.04em;line-height:1}
.panel-figure em{font-style:normal;font-size:.82rem;font-weight:600;color:var(--blue)}
.panel-cap{font-size:.72rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  color:var(--muted);margin:0 0 18px}
.panel-sub{font-size:.8rem;font-weight:700;color:var(--ink);margin:14px 0 4px}
.panel-cap + .panel-sub{margin-top:0}
.panel-legend{display:flex;gap:18px;flex-wrap:wrap;padding-top:14px;margin-top:14px;
  border-top:1px solid var(--hair);font-size:.74rem;font-weight:600;color:var(--muted)}
.panel-legend i{width:18px;height:2px;display:inline-block;vertical-align:middle;margin-right:7px}
/* chart colors live here, not in the SVG attributes, so dark mode can lift
   the two lines drawn in the dark brand colors */
.chart .grid-lines{stroke:var(--hair)}
.chart .estimate{stroke:var(--chart-estimate)}
.chart .budget{stroke:var(--blue)}
.chart .obligations{stroke:var(--coral)}
.chart .expenses{stroke:var(--chart-expense)}
.chart .marker{fill:var(--card);stroke:var(--coral)}
.chart .label-over{fill:var(--coral)}
.chart .label-final{fill:var(--chart-estimate)}

/* stat band — Civic's */
.stats{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--card)}
.stats .wrap{display:grid;gap:0;padding-top:0;padding-bottom:0}
@media(min-width:720px){.stats .wrap{grid-template-columns:repeat(3,1fr)}}
.stat{padding:32px 0;text-align:center;border-bottom:1px solid var(--line)}
@media(min-width:720px){
  .stat{border-bottom:0;border-left:1px solid var(--line);padding:38px 24px}
  .stat:first-child{border-left:0}
}
.stat:last-child{border-bottom:0}
.stat b{display:block;font-family:var(--serif);font-weight:600;
  font-size:clamp(2rem,4vw,2.6rem);color:var(--ink);line-height:1;letter-spacing:-.03em}
.stat span{display:block;font-size:.9rem;color:var(--muted);margin-top:.6em}

/* services tiles — Civic's discipline, Warm's numbered chip and soft edges */
.grid{display:grid;gap:22px}
@media(min-width:660px){.grid--3{grid-template-columns:repeat(2,1fr)}}
@media(min-width:980px){.grid--3{grid-template-columns:repeat(3,1fr)}}
@media(min-width:760px){.grid--2{grid-template-columns:repeat(2,1fr)}}
.card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:30px 28px;
  transition:box-shadow .18s ease,transform .18s ease}
.card:hover{transform:translateY(-3px);box-shadow:0 14px 34px var(--shadow)}
.card .ico{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;
  margin-bottom:20px;font-weight:800;font-size:.88rem;color:#fff;background:var(--blue);
  letter-spacing:-.02em}
.card:nth-child(3n+2) .ico{background:var(--coral)}
.card:nth-child(3n+3) .ico{background:var(--plum)}
.card p{font-size:1rem;color:var(--muted);margin:0}

/* about — Civic's checklist */
.split{display:grid;gap:clamp(34px,5vw,68px);align-items:center}
@media(min-width:880px){.split{grid-template-columns:1fr 1fr}}
.checklist{list-style:none;margin:0;padding:0}
.checklist li{position:relative;padding:0 0 20px 34px;font-size:1.02rem}
.checklist li::before{content:"";position:absolute;left:0;top:.55em;width:14px;height:14px;
  border-radius:3px;background:var(--coral)}
.checklist strong{color:var(--ink);font-weight:700}

/* team — Warm's round portraits */
.grid--people{grid-template-columns:1fr}
@media(min-width:900px){.grid--people{grid-template-columns:repeat(3,1fr)}}
.person{text-align:center}
.person img,.person .shot{width:170px;height:170px;object-fit:cover;border-radius:50%;
  margin:0 auto 22px;box-shadow:0 10px 30px var(--shadow)}
.person .shot{background:var(--card);border:2px dashed var(--line);display:grid;place-items:center;
  color:var(--muted);font-size:.76rem;letter-spacing:.1em;text-transform:uppercase;box-shadow:none}
.person h3{margin-bottom:.15em}
.person .role{font-size:.78rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--coral);margin:0 auto 1em}
.person p{font-size:1rem;color:var(--muted);max-width:34ch;margin:0 auto}

/* quotes — nobody had a preference, so: the plainest of the four */
.quote{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:32px 30px;
  border-left:4px solid var(--coral)}
.quote blockquote{margin:0 0 1em;font-family:var(--serif);font-size:1.2rem;line-height:1.5;
  color:var(--ink)}
.quote cite{font-style:normal;font-size:.9rem;font-weight:600;color:var(--muted)}
.quote--solo{max-width:720px;margin:0 auto}

/* contact — Warm's indigo card */
.contact-card{background:var(--indigo);border-radius:28px;padding:clamp(36px,6vw,64px);
  color:#D6D2E6}
.contact-card h2{color:#fff}
.contact-grid{display:grid;gap:clamp(34px,5vw,56px)}
@media(min-width:880px){.contact-grid{grid-template-columns:1fr 1fr}}
/* Grid items default to min-width:auto, so one wide child (the Turnstile
   iframe did this) widens its column past the card. Let columns shrink. */
.contact-grid > *{min-width:0}
.contact-card .pill{background:rgba(235,95,93,.2)}
.form{display:grid;gap:16px}
.form label{display:block;font-size:.85rem;font-weight:700;color:#fff;margin-bottom:7px}
.form input,.form textarea{width:100%;padding:13px 16px;font:inherit;font-size:1rem;
  color:var(--body);background:#fff;border:2px solid transparent;border-radius:12px}
.form textarea{min-height:130px;resize:vertical}
.form input:focus,.form textarea:focus{outline:0;border-color:var(--coral)}
.form .btn{justify-self:start;margin-top:4px}
.reach{margin:0}
.reach dt{font-size:.76rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase;
  color:var(--coral);margin-top:1.7em}
.reach dt:first-child{margin-top:0}
.reach dd{margin:.35em 0 0;font-size:1.05rem}
.reach a{color:#A9C4E8}.reach a:hover{color:#fff}
/* In dark mode the page is darker than the card, so give the card an edge. */
[data-theme="dark"] .contact-card{box-shadow:inset 0 0 0 1px #3D3570}

/* footer — Civic's, so the reversed logo gets a dark ground to sit on */
.site-footer{padding:36px 0;background:#211C48;border-top:1px solid var(--hair);color:#8F89AD;font-size:.92rem}
.site-footer .wrap{display:flex;justify-content:space-between;align-items:flex-end;
  gap:14px;flex-wrap:wrap}
.site-footer .footer-mark{height:34px;width:auto;display:block;margin-bottom:14px}
.site-footer a{color:#A9C4E8}
.site-footer .hosted{display:block;margin-top:8px;font-size:.78rem;opacity:.75}
.site-footer .hosted a{color:inherit}
