/* Shipley Consulting Group — site styles
   Soft, cool colors taken from the SCG contract and the original logo. Nothing vibrant. */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }

:root {
  --blue: #3e76ac;        /* the logo's steel blue */
  --blue-deep: #24425f;   /* soft slate navy for headings */
  --sky: #98ccfd;         /* the logo's light blue */
  --bar: #dae3f3;         /* the contract's section bars */
  --wash: #f2f7fd;        /* shaded sections */
  --rule: #c9d6ea;
  --ink: #1f2b38;
  --ink-soft: #44566b;
  --white: #ffffff;        /* text on the blue buttons, both themes */
  --bg: #ffffff;           /* page */
  --surface: #ffffff;      /* panels, cards, boxes */
  --call-bg: #3e76ac;
  --call-hover: #33658f;
  --check: #24425f;        /* the check mark inside a sky box */
  --top-bg: #24425f;       /* fixed contact bar */
  --top-ink: #e6eef8;
  --top-lab: #98ccfd;
  --logo-plate: transparent;
  color-scheme: light;

  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --head: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

  --wrap: 68rem;
  --measure: 40rem;
  --gutter: 1.25rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --blue: #8fbef0;
  --blue-deep: #c4dbf3;
  --sky: #98ccfd;
  --bar: #1c2a3a;
  --wash: #142030;
  --rule: #2d4258;
  --ink: #dde6f0;
  --ink-soft: #a9b9cb;
  --bg: #0f1823;
  --surface: #172433;
  --call-bg: #36699b;
  --call-hover: #4a84bb;
  --check: #0f1823;
  --top-bg: #0a121b;
  --top-ink: #dde6f0;
  --top-lab: #8fbef0;
  --logo-plate: #dae3f3;
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --blue: #8fbef0;
  --blue-deep: #c4dbf3;
  --sky: #98ccfd;
  --bar: #1c2a3a;
  --wash: #142030;
  --rule: #2d4258;
  --ink: #dde6f0;
  --ink-soft: #a9b9cb;
  --bg: #0f1823;
  --surface: #172433;
  --call-bg: #36699b;
  --call-hover: #4a84bb;
  --check: #0f1823;
  --top-bg: #0a121b;
  --top-ink: #dde6f0;
  --top-lab: #8fbef0;
  --logo-plate: #dae3f3;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-deep); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); letter-spacing: -0.005em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--blue-deep); }
h3 { font-size: 1.45rem; line-height: 1.15; color: var(--blue-deep); }

p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -999rem; top: 0;
  background: var(--bar); color: var(--ink); padding: 0.6rem 1rem; font-weight: 600;
}
.skip:focus { left: 0.5rem; top: 0.5rem; z-index: 10; }

/* ---------- Fixed contact bar and header ---------- */

/* The contact bar stays at the top of the screen on every device.
   On wider screens the menu stays put under it too. */
.topbar { position: sticky; top: 0; z-index: 21; background: var(--top-bg); color: var(--top-ink); font-size: 0.8rem; line-height: 1.35; }
.topbar .wrap { display: grid; gap: 0.3rem; padding-block: 0.45rem; }
.topbar .person { display: flex; flex-wrap: wrap; gap: 0 1rem; justify-content: space-between; }
.topbar .how { display: flex; flex-wrap: wrap; gap: 0 0.9rem; }
.topbar .lab {
  color: var(--top-lab); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; font-weight: 600;
  margin-right: 0.3rem;
}
.topbar .who .lab { margin-left: 0.55rem; }
.topbar .name { font-weight: 600; }
.topbar a { color: var(--top-ink); text-decoration: none; }
.topbar a:hover { color: var(--top-ink); text-decoration: underline; }
.topbar a:focus-visible { outline-color: var(--sky); }
@media (max-width: 30rem) {
  .topbar .how .lab { display: none; }
}
@media (min-width: 51.25rem) {
  .topbar { font-size: 0.85rem; height: 3.6rem; display: flex; align-items: center; }
  .topbar .wrap { width: 100%; padding-block: 0; gap: 0.25rem; }
  .topbar .how { display: grid; grid-template-columns: 8.6rem 19.5rem; gap: 0; }
  .site-header { position: sticky; top: 3.6rem; z-index: 20; }
}

.theme {
  font: inherit; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--blue-deep); background: transparent;
  border: 1px solid var(--rule); border-radius: 0.25rem;
  padding: 0.45rem 0.7rem; cursor: pointer; line-height: 1;
}
.theme:hover { border-color: var(--blue); }
.theme .when-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .when-light { display: none; }
  :root:not([data-theme="light"]) .theme .when-dark { display: inline; }
}
:root[data-theme="dark"] .theme .when-light { display: none; }
:root[data-theme="dark"] .theme .when-dark { display: inline; }

/* The logo's lettering is blue on a clear background; in dark it sits on a light plate */
.brand img, .site-footer picture img, picture.mark img { background: var(--logo-plate); border-radius: 0.5rem; }
.brand img { border-radius: 50%; }

/* ---------- Header ---------- */

.site-header { background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--bar); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.75rem 1.5rem; padding-block: 0.85rem;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--blue-deep); text-decoration: none; margin-right: auto;
}
.brand img { width: 3rem; height: 3rem; }
.brand span {
  font-family: var(--head); font-weight: 600; font-size: 1.5rem; line-height: 1;
}
.brand:hover { color: var(--blue-deep); }

.site-nav { order: 3; width: 100%; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem;
}
.site-nav a {
  display: inline-block; padding: 0.35rem 0;
  color: var(--ink); text-decoration: none; font-size: 1.05rem;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--sky); color: var(--ink); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--blue); }

.call {
  display: inline-block;
  background: var(--call-bg); color: var(--white);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  padding: 0.6rem 1.05rem; border-radius: 0.25rem;
}
.call:hover { background: var(--call-hover); color: var(--white); }

@media (min-width: 68rem) {
  .site-nav { order: 0; width: auto; }
  .site-nav ul { gap: 0.25rem 1.25rem; }
}

/* ---------- Hero ---------- */

.hero { background: var(--bar); color: var(--ink); }
.hero h1 { color: var(--blue-deep); }
.hero .wrap { padding-block: 2.5rem 3.25rem; }
.hero h1 { max-width: 17em; }
.hero .licensed {
  margin-top: 1.25rem; max-width: var(--measure);
  color: var(--ink-soft); font-size: 1.15rem;
}
.hero .actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.9rem 1.5rem; align-items: center; }
.hero .actions .call { font-size: 1.2rem; padding: 0.75rem 1.3rem; }
.hero .actions a.plain { color: var(--blue-deep); }
.hero .actions a.plain:hover { color: var(--blue); }

.hero--home .wrap {
  display: grid; gap: 2rem; align-items: center;
  padding-block: 2rem 3.5rem;
}
.hero--home .mark { max-width: 30rem; width: 100%; justify-self: center; }
@media (min-width: 58rem) {
  .hero--home .wrap { grid-template-columns: 1.05fr 1fr; gap: 3rem; }
  .hero--home .mark { justify-self: end; }
}

/* ---------- Bands ---------- */

.band { padding-block: 3.25rem; }
.band.tint { background: var(--wash); }
.band h2 { max-width: 26em; }
.band h2 + * { margin-top: 1.25rem; }

.measure { max-width: var(--measure); }
.measure > * + * { margin-top: 1rem; }
.full > * + * { margin-top: 1rem; }
.band .wrap > * + * { margin-top: 1.5rem; }

.more { font-weight: 600; }

/* ---------- Chooser: the check-box links ---------- */

.chooser { list-style: none; margin: 0; padding: 0; border-top: 4px solid var(--blue-deep); }
.chooser li { border-bottom: 1px solid var(--rule); }
.chooser a {
  display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1.1rem; align-items: start;
  padding: 1.15rem 0.5rem 1.15rem 0.25rem;
  color: var(--ink); text-decoration: none;
}
.chooser .box {
  grid-row: span 2;
  width: 1.9rem; height: 1.9rem; margin-top: 0.15rem;
  border: 2px solid var(--blue-deep); border-radius: 0.2rem; background: var(--surface);
  position: relative;
}
.chooser .box::after {
  content: ""; position: absolute; left: 0.52rem; top: 0.08rem;
  width: 0.6rem; height: 1.15rem;
  border: solid var(--check); border-width: 0 0.26rem 0.26rem 0;
  transform: rotate(45deg) scale(0); transform-origin: 60% 70%;
  transition: transform 0.14s ease-out;
}
.chooser a:hover .box, .chooser a:focus-visible .box { background: var(--sky); }
.chooser a:hover .box::after, .chooser a:focus-visible .box::after { transform: rotate(45deg) scale(1); }
.chooser strong {
  font-family: var(--head); font-weight: 600; font-size: 1.6rem; line-height: 1.15; color: var(--blue-deep);
}
.chooser a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
.chooser span.what { grid-column: 2; }

@media (prefers-reduced-motion: reduce) {
  .chooser .box::after { transition: none; }
}

/* ---------- Lists ---------- */

/* Bare statements, two columns in a bordered panel */
.panel {
  list-style: none; margin: 0; padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--rule); border-top: 4px solid var(--blue-deep);
  display: grid; gap: 0.7rem 2.5rem;
}
@media (min-width: 51.25rem) { .panel { grid-template-columns: 1fr 1fr; } }
.panel li { position: relative; padding-left: 1.9rem; font-weight: 600; }
.panel li::before, .stack > li::before {
  content: ""; position: absolute; left: 0; top: 0.3em;
  width: 1.05rem; height: 1.05rem; border: 2px solid var(--blue-deep); border-radius: 0.15rem;
  background: var(--sky);
}
.panel li::after, .stack > li::after {
  content: ""; position: absolute; left: 0.34rem; top: 0.36em;
  width: 0.34rem; height: 0.62rem;
  border: solid var(--check); border-width: 0 0.16rem 0.16rem 0; transform: rotate(45deg);
}

/* Statements that carry a description stay stacked */
.stack { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.stack > li { position: relative; padding-left: 1.9rem; }
.stack > li + li { margin-top: 0.9rem; }
.stack b { color: var(--blue-deep); }

/* Not included: an empty box, nothing checked */
.stack.open > li::before { background: var(--surface); }
.stack.open > li::after { content: none; }

/* The form's own numbered items */
.form-items { list-style: none; margin: 0; padding: 0; max-width: var(--measure); counter-reset: item; }
.form-items li {
  counter-increment: item; position: relative;
  padding: 0.85rem 0 0.85rem 3.1rem; border-bottom: 1px solid var(--rule);
}
.form-items li:first-child { border-top: 4px solid var(--blue-deep); }
.form-items li::before {
  content: counter(item);
  position: absolute; left: 0; top: 0.7rem;
  width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
  font-family: var(--head); font-weight: 600; font-size: 1.35rem; line-height: 1;
  color: var(--bg); background: var(--blue-deep); border-radius: 0.2rem;
}
.form-items b { color: var(--blue-deep); }

/* Four systems / two people */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 51.25rem) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--blue-deep);
  padding: 1.3rem 1.5rem 1.5rem;
}
.card > * + * { margin-top: 0.6rem; }
.card .license { font-weight: 600; }

/* Cities and towns: short names, read down the columns */
.towns {
  list-style: none; margin: 0; padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--rule); border-top: 4px solid var(--blue-deep);
  columns: 2; column-gap: 1.25rem;
}
.towns li { break-inside: avoid; padding: 0.2rem 0; }
@media (max-width: 39.99rem) { .towns { padding: 1.1rem 1rem; font-size: 1.05rem; } }
@media (min-width: 40rem) { .towns { columns: 3; column-gap: 2rem; } }
@media (min-width: 62rem) { .towns { columns: 4; } }

/* Questions and answers */
.faq { max-width: var(--measure); }
.faq > div + div { margin-top: 1.6rem; }
.faq h3 + p { margin-top: 0.4rem; }

/* ---------- Statement ---------- */

.statement {
  border-left: 6px solid var(--sky); padding: 0.2rem 0 0.2rem 1.25rem;
  max-width: var(--measure);
}
.statement > * + * { margin-top: 0.75rem; }

/* ---------- Closing callout ---------- */

.callout { background: var(--bar); color: var(--ink); padding-block: 3rem; }
.callout h2 { color: var(--blue-deep); }
.callout p { max-width: var(--measure); margin-top: 1rem; color: var(--ink-soft); }
.callout .actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.9rem 1.5rem; align-items: center; }
.callout .call { font-size: 1.2rem; padding: 0.75rem 1.3rem; }
.callout a.plain { color: var(--blue-deep); }

/* ---------- Contact details ---------- */

.details { margin: 0; display: grid; gap: 0.9rem; max-width: var(--measure); }
.details div { display: grid; gap: 0.1rem; }
.details dt { font-weight: 600; color: var(--blue-deep); }
.details dd { margin: 0; }
.details dd a { font-weight: 600; }
@media (min-width: 40rem) {
  .details div { grid-template-columns: 9rem 1fr; gap: 1rem; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--bg); color: var(--ink-soft); border-top: 1px solid var(--bar); padding-block: 2.5rem 2rem; font-size: 1rem; }
.site-footer .wrap { display: grid; gap: 2rem; }
.site-footer img { width: 15rem; }
picture.mark img { width: 100%; height: auto; }
.site-footer a { color: var(--blue-deep); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 0.3rem; }
.site-footer h2 { font-size: 1.3rem; color: var(--blue-deep); margin-bottom: 0.6rem; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--bar); padding-top: 1.1rem; color: var(--ink-soft); }
@media (min-width: 51.25rem) {
  .site-footer .wrap { grid-template-columns: 17rem 1fr 1fr 1fr; }
}

/* Phones: the name and the light/dark button share one line */
@media (max-width: 30rem) {
  .brand img { width: 2.5rem; height: 2.5rem; }
  .brand span { font-size: 1.22rem; }
  .site-header .wrap { gap: 0.6rem 0.75rem; }
}

/* Opening line under each page heading */
.hero .lead { margin-top: 1.25rem; max-width: 36rem; font-size: 1.3rem; line-height: 1.5; color: var(--ink); }
.hero--home .lead { max-width: 32rem; }

/* Closing box on About and Contact: one column each for Brian and Brenden */
.callout .reach { margin-top: 1.75rem; display: grid; gap: 1.75rem; }
.callout .reach > div { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.callout .reach h3 { width: 100%; }
@media (min-width: 51.25rem) { .callout .reach { grid-template-columns: 1fr 1fr; } }
