/* Will County IT — design system
   Light by default (business buyers trust it), full dark mode.
   No framework, no webfonts, no external requests. */

:root {
  --ink:        #0B1220;
  --ink-2:      #1B2637;
  --body:       #46536A;
  --muted:      #6B7A93;
  --line:       #DDE4ED;
  --line-soft:  #EBF0F6;
  --paper:      #FFFFFF;
  --surface:    #F5F8FC;
  --surface-2:  #EAF0F8;

  --signal:     #0B8F6E;
  --signal-dk:  #076C53;
  --signal-tint:#E4F5F0;
  --on-signal:  #FFFFFF;

  --alert:      #B4531B;
  --alert-tint: #FCEFE6;

  --shadow-sm: 0 1px 2px rgba(11,18,32,.06), 0 1px 3px rgba(11,18,32,.05);
  --shadow-md: 0 4px 12px rgba(11,18,32,.07), 0 2px 4px rgba(11,18,32,.04);
  --shadow-lg: 0 18px 44px rgba(11,18,32,.12);

  --radius: 10px;
  --radius-sm: 6px;
  --wrap: 1140px;
  --wrap-narrow: 780px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:       #F2F6FB;
    --ink-2:     #D7E0EC;
    --body:      #A7B4C8;
    --muted:     #7E8CA3;
    --line:      #253143;
    --line-soft: #1B2534;
    --paper:     #0C121C;
    --surface:   #111926;
    --surface-2: #17202F;
    --signal:      #2FBF98;
    --signal-dk:   #57D5B2;
    --signal-tint: #10241F;
    --on-signal:   #05130F;
    --alert:      #E08A55;
    --alert-tint: #241813;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
    --shadow-md: 0 4px 14px rgba(0,0,0,.45);
    --shadow-lg: 0 18px 44px rgba(0,0,0,.55);
  }
}
:root[data-theme="dark"] {
  --ink:       #F2F6FB;
  --ink-2:     #D7E0EC;
  --body:      #A7B4C8;
  --muted:     #7E8CA3;
  --line:      #253143;
  --line-soft: #1B2534;
  --paper:     #0C121C;
  --surface:   #111926;
  --surface-2: #17202F;
  --signal:      #2FBF98;
  --signal-dk:   #57D5B2;
  --signal-tint: #10241F;
  --on-signal:   #05130F;
  --alert:      #E08A55;
  --alert-tint: #241813;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow-md: 0 4px 14px rgba(0,0,0,.45);
  --shadow-lg: 0 18px 44px rgba(0,0,0,.55);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

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

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -.021em; margin: 0 0 .5em; line-height: 1.15; }
h1 { font-size: clamp(2.15rem, 5.2vw, 3.5rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.026em; }
h3 { font-size: 1.16rem; letter-spacing: -.014em; }
p  { margin: 0 0 1.1em; }
a  { color: var(--signal-dk); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--signal); }
strong { color: var(--ink); font-weight: 650; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
img, svg { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-tint { background: var(--surface); border-block: 1px solid var(--line-soft); }
.center { text-align: center; }
.lede { font-size: 1.16rem; line-height: 1.6; color: var(--body); }
.eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--signal-dk); margin: 0 0 .7em;
}
.section-head { max-width: 660px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 650; font-size: .97rem;
  padding: 13px 22px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--signal); color: var(--on-signal); border-color: var(--signal); }
.btn-primary:hover { background: var(--signal-dk); border-color: var(--signal-dk); color: var(--on-signal); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.btn-lg { padding: 16px 30px; font-size: 1.03rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

/* ---------- header ---------- */
.utility {
  background: var(--ink); color: rgba(255,255,255,.82);
  font-size: .8rem; letter-spacing: .01em;
}
:root[data-theme="dark"] .utility, :root:not([data-theme="light"]) .utility { background: var(--surface-2); color: var(--body); }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 8px; }
.utility a { color: inherit; text-decoration: none; font-weight: 600; }
.utility a:hover { color: #fff; }
:root[data-theme="dark"] .utility a:hover { color: var(--ink); }
.utility-promise { display: inline-flex; align-items: center; gap: 7px; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(15,164,127,.25); flex: none; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; padding-block: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-weight: 800; font-size: .78rem; letter-spacing: .02em;
}
:root[data-theme="dark"] .logo-mark, :root:not([data-theme="light"]) .logo-mark { background: var(--signal); color: var(--on-signal); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { color: var(--ink); font-weight: 750; font-size: 1.02rem; letter-spacing: -.02em; }
.logo-sub { color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 550;
  padding: 8px 12px; border-radius: var(--radius-sm);
}
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--signal-dk); background: var(--signal-tint); }
.header-cta { margin-left: 8px; }
.nav-toggle, .theme-toggle {
  display: none; background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm);
  width: 40px; height: 40px; cursor: pointer; color: var(--ink); align-items: center; justify-content: center;
}
.theme-toggle { display: inline-flex; flex: none; }
.theme-toggle:hover { background: var(--surface); }

/* dropdown for services */
.has-menu { position: relative; }
.has-menu > button {
  font: inherit; font-size: .93rem; font-weight: 550; color: var(--ink-2);
  background: transparent; border: 0; cursor: pointer; padding: 8px 12px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; gap: 5px;
}
.has-menu > button:hover { background: var(--surface); color: var(--ink); }
.menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 288px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; display: none; flex-direction: column;
}
.menu.open { display: flex; }
.menu a { padding: 9px 12px; border-radius: var(--radius-sm); font-size: .92rem; }
.menu a span { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; margin-top: 1px; }

@media (max-width: 900px) {
  .nav {
    display: none; position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw);
    background: var(--paper); border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 84px 18px 28px; overflow-y: auto; box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .nav a, .has-menu > button { padding: 12px 14px; font-size: 1rem; width: 100%; text-align: left; }
  .has-menu { position: static; }
  .menu { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 6px 14px; padding: 0 0 0 6px; }
  .header-cta { margin: 14px 0 0; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(11,18,32,.45); z-index: 55; }
  .utility .wrap { font-size: .74rem; }
  .utility-promise { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 76px 0 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto -20%; height: 620px; z-index: -1;
  background:
    radial-gradient(58% 60% at 22% 40%, color-mix(in srgb, var(--signal) 16%, transparent), transparent 70%),
    radial-gradient(50% 55% at 82% 20%, color-mix(in srgb, var(--signal) 9%, transparent), transparent 72%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--signal-dk); }
.hero-sub { font-size: 1.18rem; line-height: 1.6; max-width: 40ch; margin-bottom: 1.6em; }
.hero-note { font-size: .87rem; color: var(--muted); margin: 1.2em 0 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding: 48px 0 40px; } }

.hero-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 26px;
}
.hero-card h2 { font-size: 1.15rem; margin-bottom: .3em; }
.hero-card .muted { font-size: .89rem; color: var(--muted); margin-bottom: 1.2em; }

/* ---------- trust strip ---------- */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.trust div { background: var(--paper); padding: 20px 18px; }
.trust dt { color: var(--ink); font-weight: 700; font-size: 1.32rem; letter-spacing: -.02em; display: block; }
.trust dd { margin: 3px 0 0; font-size: .85rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 760px) { .trust { grid-template-columns: repeat(2, 1fr); } }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: box-shadow .16s, border-color .16s, transform .16s;
}
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--signal) 45%, var(--line)); transform: translateY(-2px); }
.card h3 { margin-bottom: .35em; }
.card p { font-size: .95rem; margin-bottom: 0; color: var(--body); }
.card-icon {
  width: 40px; height: 40px; border-radius: 9px; background: var(--signal-tint); color: var(--signal-dk);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card-icon svg { width: 21px; height: 21px; }
.card-link { display: inline-block; margin-top: 14px; font-weight: 650; font-size: .9rem; color: var(--signal-dk); }

/* two doors */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } }
.door {
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 30px;
  background: var(--paper); display: flex; flex-direction: column;
}
.door.is-primary { border-color: var(--signal); background: linear-gradient(180deg, var(--signal-tint), var(--paper) 55%); }
.door .tag {
  display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 100px; margin-bottom: 14px;
  background: var(--ink); color: var(--paper);
}
.door.is-primary .tag { background: var(--signal); color: var(--on-signal); }
.door ul { list-style: none; padding: 0; margin: 4px 0 22px; }
.door li { display: flex; gap: 10px; font-size: .95rem; align-items: flex-start; }
.door li::before {
  content: ""; flex: none; width: 17px; height: 17px; margin-top: 4px; border-radius: 50%;
  background: var(--signal-tint) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B8F6E' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/11px no-repeat;
}
.door .btn { margin-top: auto; align-self: flex-start; }
.door .price-note { font-size: .87rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- price table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; background: var(--paper); }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th { background: var(--surface); color: var(--ink); font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
td.price { color: var(--ink); font-weight: 700; white-space: nowrap; }
td small { display: block; color: var(--muted); font-size: .84rem; font-weight: 400; margin-top: 2px; }
.tick  { color: var(--signal-dk); font-weight: 700; }
.cross { color: var(--muted); }

/* ---------- steps ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 52px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 700; font-size: .98rem;
}
:root[data-theme="dark"] .step::before, :root:not([data-theme="light"]) .step::before { background: var(--signal); color: var(--on-signal); }
.step h3 { margin-bottom: .3em; }
.step p { font-size: .95rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  color: var(--ink); font-weight: 650; font-size: 1.03rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .18s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details > div { padding: 0 0 22px; font-size: .97rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- coverage ---------- */
.towns { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.towns li {
  margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 100px;
  padding: 7px 15px; font-size: .89rem; color: var(--ink-2); font-weight: 550;
}

/* ---------- callout ---------- */
.callout {
  background: var(--signal-tint); border: 1px solid color-mix(in srgb, var(--signal) 30%, transparent);
  border-radius: var(--radius); padding: 26px 28px;
}
.callout.warn { background: var(--alert-tint); border-color: color-mix(in srgb, var(--alert) 30%, transparent); }
.callout :last-child { margin-bottom: 0; }
.callout h3 { margin-bottom: .35em; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: rgba(255,255,255,.78); padding: 62px 0; text-align: center; }
:root[data-theme="dark"] .cta-band, :root:not([data-theme="light"]) .cta-band { background: var(--surface-2); color: var(--body); border-block: 1px solid var(--line); }
.cta-band h2 { color: #fff; }
:root[data-theme="dark"] .cta-band h2, :root:not([data-theme="light"]) .cta-band h2 { color: var(--ink); }
.cta-band p { max-width: 55ch; margin: 0 auto 26px; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
:root[data-theme="dark"] .cta-band .btn-ghost, :root:not([data-theme="light"]) .cta-band .btn-ghost { color: var(--ink); border-color: var(--line); }

/* ---------- form ---------- */
.form-grid { display: grid; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: .84rem; font-weight: 650; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--signal) 55%, transparent); outline-offset: 1px; border-color: var(--signal);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--muted); margin: 4px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .92rem; padding: 12px 14px; border-radius: var(--radius-sm); display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--signal-tint); color: var(--signal-dk); }
.form-status.err { background: var(--alert-tint); color: var(--alert); }

/* ---------- article ---------- */
.article h2 { margin-top: 2.2em; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin-top: 1.7em; }
.article ul li::marker { color: var(--signal); }

.breadcrumb { font-size: .84rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--signal-dk); text-decoration: underline; }

.contact-pill {
  display: inline-flex; align-items: center; gap: 9px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 18px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.contact-pill:hover { border-color: var(--signal); color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 30px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: .76rem; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); margin-bottom: 1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5em; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--signal-dk); text-decoration: underline; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .84rem; color: var(--muted);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 18px; z-index: 100; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 3px; }
