/* At Your Service — Public Sector Consulting
   Shared stylesheet. Colors and type are set once here as tokens. */

:root {
  --navy: #1b3556;        /* brand navy, carried over from the original site */
  --navy-deep: #12263f;
  --ink: #17212c;
  --slate: #4c5b6b;
  --paper: #fbfcfd;
  --wash: #e8eef4;        /* cool survey-sheet tint */
  --line: #c9d4df;
  --centerline: #e0a526;  /* road-centerline gold, used sparingly */

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 66ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 72rem;
}

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

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

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

img, svg { max-width: 100%; display: block; }

a { color: var(--navy); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; color: var(--navy); margin: 0; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.4rem; line-height: 1.25; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

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

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

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

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.1rem; flex-wrap: wrap; }

.wordmark { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.wordmark-name { font-family: var(--sans); font-weight: 700; font-size: 1.45rem; letter-spacing: 0.01em; color: var(--navy); }
.wordmark-sub { font-size: 0.82rem; color: var(--slate); letter-spacing: 0.04em; margin-top: 0.2rem; }

.site-nav ul { list-style: none; display: flex; gap: clamp(1rem, 3vw, 2.2rem); margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 0.98rem; color: var(--ink); padding-block: 0.35rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--centerline); color: var(--navy); }

/* Services dropdown in the main menu */
.site-nav .has-menu { position: relative; }
.site-nav .has-menu > a::after { content: ""; display: inline-block; margin-left: 0.4rem; border: 4px solid transparent; border-top-color: currentColor; border-bottom-width: 0; vertical-align: middle; }
.site-nav .submenu { display: none; position: absolute; top: 100%; right: 0; z-index: 20; min-width: 22rem; margin: 0; padding: 0.5rem 0; background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--centerline); box-shadow: 0 10px 24px rgba(18, 38, 63, 0.14); }
.site-nav .has-menu:hover > .submenu, .site-nav .has-menu:focus-within > .submenu { display: block; }
.site-nav .submenu a { display: block; padding: 0.5rem 1.1rem; border-bottom: 0; font-weight: 400; }
.site-nav .submenu a:hover, .site-nav .submenu a:focus-visible { background: var(--wash); border-bottom: 0; }
@media (max-width: 760px) {
  .site-nav .has-menu:hover > .submenu, .site-nav .has-menu:focus-within > .submenu { display: none; }
  .site-nav .has-menu > a::after { display: none; }
}

/* ---------- Buttons ---------- */

.button { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1rem; text-decoration: none; padding: 0.85rem 1.5rem; border-radius: 2px; border: 2px solid var(--navy); background: var(--navy); color: #fff; cursor: pointer; }
.button:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.button-quiet { background: transparent; color: var(--navy); }
.button-quiet:hover { background: var(--wash); border-color: var(--navy); }
.on-navy .button { background: var(--centerline); border-color: var(--centerline); color: var(--navy-deep); }
.on-navy .button:hover { background: #efb944; border-color: #efb944; }

.actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2rem; }

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

.hero { background: var(--wash); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 2rem; align-items: center; padding-block: clamp(3rem, 8vw, 6.5rem); }
.hero-lede { font-size: 1.25rem; line-height: 1.5; color: var(--ink); margin-top: 1.6rem; max-width: 34ch; }
.hero-since { color: var(--slate); font-size: 1rem; margin-top: 0.9rem; }
.hero-map { width: 100%; height: auto; }
.hero-map .contour { fill: none; stroke: var(--navy); stroke-width: 1.2; opacity: 0.55; vector-effect: non-scaling-stroke; }
.hero-map .plat { fill: none; stroke: var(--navy); stroke-width: 0.8; opacity: 0.18; vector-effect: non-scaling-stroke; }
.hero-map .road { fill: none; stroke: var(--navy); stroke-width: 9; stroke-linecap: round; }
.hero-map .center { fill: none; stroke: var(--centerline); stroke-width: 1.6; stroke-dasharray: 9 8; stroke-linecap: butt; }
.hero-map .town { fill: var(--navy); }

@media (prefers-reduced-motion: no-preference) {
  .hero-map .center { stroke-dashoffset: 340; animation: drive 2.4s ease-out 0.3s forwards; }
  @keyframes drive { to { stroke-dashoffset: 0; } }
}

/* ---------- Page title band (inner pages) ---------- */

.page-title { background: var(--wash); border-bottom: 1px solid var(--line); }
.page-title .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-title h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 18ch; }
.page-title p { font-size: 1.2rem; margin-top: 1.2rem; max-width: 52ch; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 2rem; }
.section-head p { margin-top: 0.9rem; color: var(--slate); }

.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }

.record { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.35; color: var(--navy); max-width: 30ch; }
.record strong { font-weight: 600; background: linear-gradient(transparent 68%, rgba(224, 165, 38, 0.45) 68%); }

/* Agenda-style list of services */
.agenda { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.agenda li { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(0.5rem, 5vw, 4.5rem); padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.agenda h3 a { text-decoration: none; }
.agenda h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--centerline); }
.agenda p { color: var(--ink); }

/* Navy band */
.on-navy { background: var(--navy); color: #e9eff6; }
.on-navy h2, .on-navy h3 { color: #fff; }
.on-navy a { color: #fff; }
.pull { font-family: var(--serif); font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.2; color: #fff; max-width: 22ch; margin: 0; }
.on-navy p { color: #dbe4ee; }

/* Services page */
.practice { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1rem, 5vw, 4.5rem); padding-block: clamp(2.2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); scroll-margin-top: 1.5rem; }
.practice:first-of-type { padding-top: 0; }
.practice .short { font-size: 1.1rem; color: var(--slate); margin-top: 0.8rem; max-width: 30ch; }
.practice ul { margin: 1.2rem 0 0; padding-left: 1.1rem; max-width: var(--measure); }
.practice li { margin-bottom: 0.35rem; }

.jump { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; margin: 1.6rem 0 0; padding: 0; }
.jump a { font-weight: 500; }

/* Pricing tiers (open records requests) */
.tiers { width: 100%; max-width: var(--measure); border-collapse: collapse; margin-top: 1.6rem; border-top: 2px solid var(--navy); font-size: 1rem; }
.tiers caption { text-align: left; font-weight: 600; color: var(--navy); padding-bottom: 0.6rem; }
.tiers th, .tiers td { text-align: left; vertical-align: top; padding: 0.85rem 1rem 0.85rem 0; border-bottom: 1px solid var(--line); }
.tiers thead th { font-size: 0.9rem; color: var(--slate); font-weight: 600; }
.tiers tbody th { font-weight: 600; color: var(--navy); width: 30%; }
.tiers td:last-child { width: 28%; padding-right: 0; font-weight: 500; }
@media (max-width: 760px) {
  .tiers thead { position: absolute; left: -999px; }
  .tiers tr { display: block; padding-block: 0.8rem; border-bottom: 1px solid var(--line); }
  .tiers tbody th, .tiers td, .tiers td:last-child { display: block; width: auto; border: 0; padding: 0.15rem 0; }
}

/* About page */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.timeline li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.5rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.timeline .when { color: var(--slate); font-variant-numeric: tabular-nums; }
.timeline .role { font-weight: 600; color: var(--navy); }
.timeline p { margin: 0.25rem 0 0; }

.plain-list { margin: 0; padding-left: 1.1rem; max-width: var(--measure); }
.plain-list li { margin-bottom: 0.5rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 4.5rem); }
.email-big { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.8rem); overflow-wrap: anywhere; }
form { display: grid; gap: 1.1rem; max-width: 36rem; }
label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
.optional { font-weight: 400; color: var(--slate); }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #8fa0b2; border-radius: 2px; padding: 0.7rem 0.8rem; }
textarea { min-height: 9rem; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.button:disabled { opacity: 0.6; cursor: default; }
.form-status { min-height: 1.5em; color: var(--navy); font-weight: 500; }

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

.site-footer { background: var(--navy-deep); color: #c8d4e1; font-size: 0.95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; padding-block: 2.2rem; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 0.3rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  .hero .wrap, .split, .agenda li, .practice, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-map { max-width: 26rem; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .agenda li { gap: 0.4rem; }
}
