:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --surface-soft: #eef3f1;
  --ink: #182226;
  --muted: #5d6b6f;
  --line: #d8e0dd;
  --brand: #006eb6;
  --brand-strong: #004f86;
  --brand-soft: #e5f6ff;
  --accent: #00beff;
  --accent-dark: #0076a8;
  --footer: #071625;
  --shadow: 0 18px 55px rgba(15, 35, 39, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid rgba(0, 118, 168, 0.8);
  outline-offset: 3px;
  border-radius: 6px;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(247, 248, 246, 0.92);
  border-bottom: 1px solid rgba(216, 224, 221, 0.85);
  backdrop-filter: blur(16px);
}

.site-header.scrolled {
  box-shadow: 0 10px 40px rgba(15, 35, 39, 0.08);
}

.nav-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--ink);
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  color: var(--brand);
}

.brand-mark img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.14rem;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #314145;
  font-size: 0.94rem;
  font-weight: 650;
}

.primary-menu a:not(.nav-cta):hover {
  color: var(--brand);
}

.nav-cta {
  padding: 11px 16px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(7, 81, 81, 0.18);
}

.nav-cta:hover {
  background: var(--brand-strong);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.hero-section {
  width: min(1180px, calc(100% - 40px));
  min-height: auto;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(440px, 1.18fr);
  align-items: center;
  gap: 44px;
  padding: 48px 0 28px;
}

.hero-copy h1 {
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 4.1vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: #172125;
}

.hero-lede {
  max-width: 640px;
  margin-bottom: 24px;
  color: #344448;
  font-size: clamp(1.08rem, 1.4vw, 1.28rem);
  line-height: 1.65;
}

.hero-location {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 540px;
  margin-bottom: 30px;
  color: var(--muted);
  font-weight: 620;
}

.hero-location svg,
.contact-strip svg,
.trust-band svg {
  width: 22px;
  min-width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.button,
.form-button,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 760;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.button:hover,
.form-button:hover,
.cta-button:hover {
  transform: translateY(-1px);
}

.button-primary,
.form-button,
.cta-button {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
}

.button-primary:hover,
.form-button:hover,
.cta-button:hover {
  background: var(--brand-strong);
}

.button-secondary {
  background: transparent;
  border-color: #9aa9a7;
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.button-accent {
  background: var(--accent);
  color: #1d1608;
}

.button-accent:hover {
  background: #00a8e8;
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border-radius: 8px;
  background: #172125;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 248, 246, 0.76), rgba(247, 248, 246, 0.18) 34%, transparent 62%);
  pointer-events: none;
}

.hero-status-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(330px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(16, 25, 29, 0.86);
  color: #fff;
  backdrop-filter: blur(12px);
}

.hero-status-card span {
  display: block;
  margin-bottom: 4px;
  color: #a9c7c2;
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-status-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.24rem;
  line-height: 1.25;
}

.contact-strip {
  border-block: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.contact-strip a,
.contact-strip div {
  min-height: 96px;
  padding: 20px clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--ink);
}

.contact-strip a + a,
.contact-strip a + div {
  border-left: 1px solid var(--line);
}

.contact-strip strong,
.contact-strip small {
  display: block;
}

.contact-strip strong {
  font-size: 1.02rem;
}

.contact-strip small {
  margin-top: 2px;
  color: var(--muted);
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 104px) 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2,
.local-grid h2,
.cta-section h2 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.2vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.section-heading p,
.local-grid p,
.cta-section p {
  color: var(--muted);
  font-size: 1.05rem;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.audience-card,
.service-card,
.resource-grid a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.audience-card:hover,
.service-card:hover,
.resource-grid a:hover {
  transform: translateY(-3px);
  border-color: rgba(7, 81, 81, 0.36);
  box-shadow: 0 16px 42px rgba(15, 35, 39, 0.1);
}

.audience-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 24px;
}

.audience-card h3,
.service-card h3,
.use-case-grid h3,
.resource-grid h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.audience-card p {
  grid-column: 2;
}

.audience-card p,
.service-card p,
.use-case-grid p,
.resource-grid p,
.trust-band p,
.process-steps p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.icon-box {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
}

.icon-box svg,
.service-card svg,
.use-case-grid svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.trust-band > div {
  min-height: 190px;
  padding: clamp(24px, 4vw, 42px);
  background: linear-gradient(135deg, #0077c8, #003d73);
}

.trust-band h3 {
  margin: 14px 0 8px;
  font-size: 1.04rem;
}

.trust-band p {
  color: rgba(255, 255, 255, 0.78);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 320px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.service-card .icon-box {
  margin-bottom: 20px;
}

.service-card a,
.resource-grid a span {
  margin-top: auto;
  color: var(--brand);
  font-weight: 780;
}

.service-card a::after {
  content: " ->";
  color: var(--accent-dark);
}

.process-section {
  background: var(--surface-soft);
  border-block: 1px solid var(--line);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.process-steps article {
  position: relative;
}

.process-steps article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 23px;
  right: -18px;
  width: 24px;
  height: 1px;
  background: #94a4a1;
}

.process-steps span {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.process-steps h3 {
  margin-bottom: 6px;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.use-case-grid article {
  padding: 24px;
  background: var(--surface);
}

.use-case-grid .icon-box {
  margin-bottom: 18px;
}

.local-section {
  background: #ecf1ef;
  border-block: 1px solid var(--line);
}

.local-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  align-items: center;
  gap: 44px;
}

.local-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.local-links a {
  min-height: 74px;
  padding: 18px;
  display: flex;
  align-items: center;
  border: 1px solid #c9d4d1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--brand);
  font-weight: 760;
}

.local-links a:hover {
  border-color: var(--brand);
  background: #fff;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.resource-grid a {
  min-height: 210px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.resource-grid span {
  width: max-content;
  margin-bottom: 18px;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--brand-soft);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.resource-grid h3 {
  color: var(--ink);
}

.resource-grid p {
  margin-bottom: 18px;
}

.cta-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 48px;
  padding: clamp(28px, 5vw, 44px);
  border-radius: 8px;
  background: linear-gradient(135deg, #0077c8, #003d73);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 26px;
}

.cta-section h2 {
  margin-bottom: 8px;
  color: #fff;
}

.cta-section p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.phone-link {
  color: #fff;
  font-weight: 760;
}

.page-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.68fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
}

.page-hero h1 {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
}

.page-kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.page-hero-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-hero-panel img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.page-hero-panel-body {
  padding: 22px;
}

.page-hero-panel-body strong {
  display: block;
  margin-bottom: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1.2;
}

.page-hero-panel-body p {
  margin: 0;
  font-size: 0.96rem;
}

.page-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 92px) 0;
}

.page-section + .page-section {
  border-top: 1px solid var(--line);
}

.page-section.compact {
  padding-top: 26px;
}

.page-section h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.page-section > p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.page-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.page-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.content-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
}

.content-card h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.3;
}

.content-card p,
.content-card li {
  color: var(--muted);
}

.content-card p:last-child,
.content-card ul:last-child,
.content-card ol:last-child {
  margin-bottom: 0;
}

.content-card a {
  color: var(--brand);
  font-weight: 760;
}

.content-list {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.content-list li {
  position: relative;
  padding-left: 28px;
}

.content-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 14px;
  height: 2px;
  background: var(--accent);
}

/* --- Shared components for converted service/landing pages --- */
.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.content-card .price {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.content-card.feature {
  border-color: var(--brand);
  background: linear-gradient(160deg, var(--brand-soft), var(--surface));
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.chips span,
.chips a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.chips a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 760;
  color: var(--ink);
}

.faq details[open] summary {
  margin-bottom: 8px;
}

.faq details p {
  margin: 0;
  color: var(--muted);
}

.fine-print {
  max-width: 760px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 36px;
  align-items: start;
}

.note-band {
  border-block: 1px solid var(--line);
  background: linear-gradient(135deg, #e8f7ff, #f7fbff);
}

.note-band .page-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 16px 42px rgba(15, 35, 39, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  color: #2d3b40;
  font-weight: 720;
}

.form-field input,
.form-field select,
.form-field textarea,
.search-input {
  width: 100%;
  border: 1px solid #c9d4d1;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.search-input:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(0, 190, 255, 0.18);
}

.form-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.legal-copy {
  max-width: 900px;
  color: #2d3b40;
}

.legal-copy h2 {
  margin-top: 36px;
}

.legal-copy p,
.legal-copy li {
  color: var(--muted);
}

.search-results {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.search-result {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.search-result:hover {
  border-color: var(--brand);
}

.search-result strong {
  display: block;
  margin-bottom: 4px;
}

.search-result span {
  color: var(--muted);
}

.site-footer {
  background: var(--footer);
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 42px;
}

.footer-brand {
  margin-bottom: 16px;
  color: #fff;
}

.footer-brand small {
  color: rgba(255, 255, 255, 0.62);
}

.footer-grid h3 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 0.92rem;
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid a:hover {
  color: #fff;
}

.footer-grid p {
  max-width: 320px;
  margin-bottom: 0;
}

.footer-bottom {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom nav {
  display: flex;
  gap: 18px;
}

/* Compatibility for existing static pages that still use these shared hooks. */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  min-width: 220px;
  z-index: 50;
  border: 1px solid rgba(216, 224, 221, 0.25);
  border-radius: 8px;
  background: rgba(16, 25, 29, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 0.75rem 1.1rem;
}

#mobile-menu {
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateX(100%);
}

#mobile-menu:not(.hidden) {
  transform: translateX(0);
}

.section-card,
.article-card {
  border-radius: 8px;
}

.bg-grid,
main.bg-grid {
  background-color: #0a0f12;
}

@media (max-width: 1100px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    min-height: 420px;
  }

  .hero-media img {
    min-height: 420px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card:last-child {
    grid-column: span 2;
  }

  .trust-band,
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .use-case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .use-case-grid article:last-child {
    grid-column: span 2;
  }
}

/* Collapse the primary nav to a hamburger early enough that the full link
   row never overflows on small laptops/tablets (8 items need ~1008px). */
@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
  }

  .primary-menu {
    position: fixed;
    inset: 78px 0 auto 0;
    display: none;
    padding: 18px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(247, 248, 246, 0.98);
    box-shadow: 0 18px 40px rgba(15, 35, 39, 0.12);
  }

  .primary-menu.is-open {
    display: grid;
    gap: 6px;
  }

  .primary-menu a {
    padding: 12px 4px;
  }

  .primary-menu .nav-cta {
    margin-top: 8px;
    padding: 13px 16px;
    text-align: center;
  }
}

@media (max-width: 860px) {
  .nav-shell {
    width: min(100% - 28px, 1180px);
  }

  .hero-section,
  .section-shell,
  .cta-section,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 28px, 1180px);
  }

  .hero-section {
    padding-top: 42px;
    gap: 32px;
  }

  .hero-copy h1 {
    font-size: clamp(2.25rem, 10vw, 3.1rem);
    line-height: 1.05;
  }

  .hero-section,
  .contact-strip,
  .audience-grid,
  .local-grid,
  .cta-section,
  .footer-grid,
  .page-hero,
  .split-section,
  .note-band .page-section {
    grid-template-columns: 1fr;
  }

  .contact-strip a,
  .contact-strip div {
    justify-content: flex-start;
    min-height: 82px;
  }

  .contact-strip a + a,
  .contact-strip a + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-steps article:not(:last-child)::after {
    display: none;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-grid,
  .page-grid.two,
  .page-grid.four {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-mark img {
    width: 44px;
    height: 44px;
  }

  .hero-media,
  .hero-media img {
    min-height: 310px;
  }

  .hero-media::before {
    background: linear-gradient(180deg, rgba(247, 248, 246, 0.52), transparent 52%);
  }

  .hero-status-card {
    position: static;
    width: 100%;
    border-radius: 0;
  }

  .hero-actions,
  .cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .form-button,
  .cta-button {
    width: 100%;
  }

  .audience-card,
  .service-card,
  .resource-grid a {
    padding: 20px;
  }

  .service-grid,
  .trust-band,
  .resource-grid,
  .local-links,
  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .service-card:last-child,
  .use-case-grid article:last-child {
    grid-column: auto;
  }

  .trust-band > div {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ===================================================================
   Modern design enhancements (2026-06)
   Typography polish, view transitions, scroll-reveal, dark mode.
   All motion is gated behind prefers-reduced-motion: no-preference.
   =================================================================== */

html {
  scrollbar-gutter: stable;
}

:root {
  accent-color: var(--brand);
}

::selection {
  background: rgba(0, 190, 255, 0.24);
  color: inherit;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

/* Anchor targets land below the sticky header. */
[id] {
  scroll-margin-top: 96px;
}

/* Ambient brand glow behind the hero copy. */
.hero-section,
.page-hero {
  background: radial-gradient(640px 340px at 8% -10%, rgba(0, 190, 255, 0.07), transparent 70%);
}

/* Inline links in body copy get a real underline affordance. */
.content-card a:hover,
.service-card a:hover,
.legal-copy a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Button press feedback. */
.button:active,
.form-button:active,
.cta-button:active,
.nav-cta:active {
  transform: translateY(0) scale(0.985);
}

.button-primary:hover,
.form-button:hover,
.cta-button:hover {
  box-shadow: 0 12px 30px rgba(0, 110, 182, 0.28);
}

/* Smooth FAQ open/close where supported (progressive enhancement). */
.faq details::details-content {
  opacity: 0;
  block-size: 0;
  overflow-y: clip;
  transition: content-visibility 0.3s allow-discrete, opacity 0.3s ease, block-size 0.3s ease;
}

.faq details[open]::details-content {
  opacity: 1;
  block-size: auto;
}

@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Subtle fade-up as cards scroll into view (CSS-only, no JS). */
  @supports (animation-timeline: view()) {
    .audience-card,
    .service-card,
    .content-card,
    .resource-grid a,
    .use-case-grid article,
    .process-steps article,
    .trust-band > div,
    .local-links a {
      animation: reveal-up 0.6s ease;
      animation-timeline: view();
      animation-range: entry 0% entry 38%;
    }
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------------------------------------------------------
   Dark mode — follows the visitor's system preference.
   Brand blues stay; surfaces shift to deep slate teal.
   ------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1418;
    --surface: #131e23;
    --surface-soft: #0f191e;
    --ink: #e7eef0;
    --muted: #9db0b6;
    --line: #24343b;
    --brand: #4db9ff;
    --brand-strong: #1e90d8;
    --brand-soft: #0e2a3a;
    --accent: #00beff;
    --accent-dark: #58cdff;
    --footer: #060e16;
    --shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }

  .site-header {
    background: rgba(12, 20, 24, 0.88);
    border-bottom-color: rgba(36, 52, 59, 0.9);
  }

  .site-header.scrolled {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  }

  /* Light backing disc keeps the dark owl mark visible. */
  .brand-mark {
    border-radius: 10px;
    background: #e9eef0;
  }

  .brand-mark img {
    width: 40px;
    height: 40px;
  }

  .primary-menu {
    color: #c2ced2;
  }

  .nav-cta {
    color: #06141c;
  }

  .hero-copy h1,
  .page-hero h1 {
    color: var(--ink);
  }

  .hero-lede {
    color: #b9c6ca;
  }

  .hero-media::before {
    background: linear-gradient(90deg, rgba(12, 20, 24, 0.6), rgba(12, 20, 24, 0.14) 34%, transparent 62%);
  }

  .button-primary,
  .form-button,
  .cta-button {
    color: #06141c;
    background: linear-gradient(135deg, #58cdff, #1e90d8);
  }

  .button-primary:hover,
  .form-button:hover,
  .cta-button:hover {
    background: #58cdff;
    box-shadow: 0 12px 30px rgba(0, 144, 216, 0.35);
  }

  .button-secondary {
    border-color: #45575e;
  }

  .button-accent {
    color: #06141c;
  }

  .local-section {
    background: var(--surface-soft);
  }

  .local-links a {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.04);
  }

  .local-links a:hover {
    border-color: var(--brand);
    background: rgba(255, 255, 255, 0.08);
  }

  .note-band {
    background: linear-gradient(135deg, #0e2230, #0d1b24);
  }

  .form-field label {
    color: #c3ced2;
  }

  .form-field input,
  .form-field select,
  .form-field textarea,
  .search-input {
    border-color: var(--line);
    background: #0e171c;
  }

  .legal-copy {
    color: #c3ced2;
  }

  .menu-toggle {
    color: var(--ink);
  }

  @media (max-width: 1024px) {
    .primary-menu {
      background: rgba(12, 20, 24, 0.98);
      border-bottom-color: var(--line);
    }
  }

  @media (max-width: 640px) {
    .hero-media::before {
      background: linear-gradient(180deg, rgba(12, 20, 24, 0.5), transparent 52%);
    }
  }
}

/* ===================================================================
   Scroll-feel refinements (2026-06)
   Staggered reveals, hero parallax fade, compact header on scroll,
   graceful hero-video ending, softer card geometry.
   =================================================================== */

/* Softer corners across cards and panels. */
.audience-card,
.service-card,
.resource-grid a,
.content-card,
.form-panel,
.faq details,
.page-hero-panel,
.use-case-grid,
.local-links a,
.search-result {
  border-radius: 12px;
}

.hero-media,
.cta-section {
  border-radius: 16px;
}

/* Hero video ends by fading back to the poster instead of freezing. */
.hero-media {
  background: #172125 center / cover no-repeat url("/assets/sot-hero-poster.jpg");
}

.hero-video {
  transition: opacity 1.6s ease;
}

.hero-video.is-ended {
  opacity: 0;
}

/* Header compacts slightly once you scroll. */
.nav-shell {
  transition: min-height 0.25s ease;
}

.site-header.scrolled .nav-shell {
  min-height: 64px;
}

.site-header.scrolled {
  backdrop-filter: blur(18px) saturate(1.5);
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* Section headings drift up as they enter. */
    .section-heading,
    .page-section > h2,
    .split-section > div > h2,
    .faq details {
      animation: reveal-up 0.6s ease;
      animation-timeline: view();
      animation-range: entry 0% entry 42%;
    }

    /* Stagger grid items left-to-right for a cascading feel. */
    :is(.audience-grid, .service-grid, .resource-grid, .page-grid, .use-case-grid, .trust-band, .local-links) > :nth-child(2) {
      animation-range: entry 6% entry 46%;
    }

    :is(.audience-grid, .service-grid, .resource-grid, .page-grid, .use-case-grid, .trust-band, .local-links) > :nth-child(3) {
      animation-range: entry 12% entry 54%;
    }

    :is(.audience-grid, .service-grid, .resource-grid, .page-grid, .use-case-grid, .trust-band, .local-links) > :nth-child(4) {
      animation-range: entry 18% entry 62%;
    }

    :is(.audience-grid, .service-grid, .resource-grid, .page-grid, .use-case-grid, .trust-band, .local-links) > :nth-child(5) {
      animation-range: entry 24% entry 70%;
    }

    /* Hero gently recedes as you scroll past it. */
    .hero-copy {
      animation: hero-recede linear;
      animation-timeline: view();
      animation-range: exit 0% exit 90%;
    }

    .hero-media {
      animation: hero-drift linear;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
  }
}

@keyframes hero-recede {
  to {
    opacity: 0.3;
    transform: translateY(-22px);
  }
}

@keyframes hero-drift {
  to {
    transform: translateY(14px) scale(0.99);
  }
}
