:root {
  --ink: #182230;
  --ink-strong: #0c1522;
  --muted: #556170;
  --paper: #ffffff;
  --soft: #f5f7f9;
  --soft-alt: #edf3f2;
  --line: #d9e1e8;
  --blue: #1f5b89;
  --blue-dark: #164766;
  --teal: #1d7c74;
  --gold: #b77a2f;
  --green: #657a45;
  --shadow: 0 18px 45px rgba(12, 21, 34, 0.08);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(31, 91, 137, 0.35);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue);
}

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

h1,
h2,
h3 {
  color: var(--ink-strong);
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  font-size: clamp(2.35rem, 5vw, 4.45rem);
  margin-bottom: 1.1rem;
}

h2 {
  max-width: 780px;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.18rem;
  margin-bottom: 0.6rem;
}

p {
  margin-bottom: 1rem;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.45rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 50;
  padding: 0.65rem 0.9rem;
  background: var(--ink-strong);
  color: var(--paper);
  border-radius: var(--radius);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  width: min(var(--max), calc(100% - 2rem));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand__logo {
  width: min(210px, 52vw);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav__links li {
  margin: 0;
}

.site-nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] {
  color: var(--blue-dark);
  background: var(--soft-alt);
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button {
  background: var(--blue);
  color: var(--paper);
}

.button:hover {
  background: var(--blue-dark);
  color: var(--paper);
  transform: translateY(-1px);
}

.button-secondary {
  background: var(--paper);
  color: var(--ink-strong);
  border-color: var(--line);
}

.button-secondary:hover {
  color: var(--blue-dark);
  border-color: var(--blue);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.menu-toggle__bar,
.menu-toggle__bar::before,
.menu-toggle__bar::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}

.menu-toggle__bar {
  position: relative;
}

.menu-toggle__bar::before,
.menu-toggle__bar::after {
  position: absolute;
  left: 0;
}

.menu-toggle__bar::before {
  top: -6px;
}

.menu-toggle__bar::after {
  top: 6px;
}

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

.hero {
  background: #f9fbfc;
}

.hero__inner {
  width: min(var(--max), calc(100% - 2rem));
  min-height: min(720px, calc(88vh - 76px));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__copy,
.page-hero__copy,
.section-lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero__actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1.7rem;
}

.decision-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 1.7rem);
}

.decision-panel__title {
  color: var(--ink-strong);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.decision-list {
  display: grid;
  gap: 0.75rem;
}

.decision-list__item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.decision-list__item::before {
  width: 12px;
  height: 12px;
  margin-top: 0.4rem;
  border-radius: 99px;
  background: var(--teal);
  content: "";
}

.decision-list__item:nth-child(2)::before {
  background: var(--gold);
}

.decision-list__item:nth-child(3)::before {
  background: var(--green);
}

.decision-list__item strong {
  display: block;
  color: var(--ink-strong);
}

.decision-list__item span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.section,
.page-hero {
  padding: clamp(3.5rem, 8vw, 6.2rem) 0;
}

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

.section--tight {
  padding-top: clamp(2.5rem, 6vw, 4rem);
}

.section-shell,
.page-hero__inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.page-hero {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.15rem, 4vw, 3.65rem);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: start;
}

.card-grid,
.service-preview-grid,
.service-detail-grid {
  display: grid;
  gap: 1rem;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.service-preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.card,
.service-card,
.detail-card,
.callout,
.form-panel,
.sidebar-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.card,
.service-card,
.detail-card,
.sidebar-card {
  padding: 1.25rem;
}

.card {
  min-height: 218px;
}

.card p,
.service-card p,
.detail-card p,
.sidebar-card p {
  color: var(--muted);
}

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 1rem;
  border-radius: 99px;
  background: var(--soft-alt);
  color: var(--teal);
  font-weight: 800;
}

.check-list {
  display: grid;
  gap: 0.65rem;
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  margin: 0;
  padding-left: 1.6rem;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 99px;
  background: var(--teal);
  content: "";
}

.callout {
  padding: clamp(1.6rem, 4vw, 2.4rem);
  background: #fbfcfd;
}

.callout--accent {
  border-left: 5px solid var(--gold);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.service-card .button-secondary,
.service-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.service-card p {
  margin-bottom: 1.3rem;
}

.service-card h2,
.detail-card h2,
.sidebar-card h2 {
  font-size: 1.18rem;
}

.detail-card {
  display: grid;
  gap: 1rem;
}

.detail-card__meta {
  display: grid;
  gap: 0.85rem;
}

.detail-card__label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink-strong);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-card ul {
  columns: 2;
  column-gap: 1.7rem;
}

.quiet-band {
  background: var(--ink-strong);
  color: var(--paper);
}

.quiet-band h2,
.quiet-band h3 {
  color: var(--paper);
}

.quiet-band p {
  color: #d4dde6;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 2rem;
  align-items: start;
}

.sidebar-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-panel {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field-group {
  display: grid;
  gap: 0.4rem;
}

label {
  color: var(--ink-strong);
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #bdc8d3;
  border-radius: var(--radius);
  padding: 0.72rem 0.8rem;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(31, 91, 137, 0.28);
  outline-offset: 3px;
}

.form-note,
.required-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.form-note--privacy {
  margin-top: 1rem;
}

.form-status {
  margin-bottom: 1rem;
  padding: 0.85rem;
  border: 1px solid #d79866;
  border-radius: var(--radius);
  background: #fff7ef;
  color: #6d3e10;
}

.success-panel {
  margin-top: 1.2rem;
  padding: 1.25rem;
  border: 1px solid #9dbca7;
  border-radius: var(--radius);
  background: #f0f7f2;
}

.form-slot {
  min-height: 620px;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.form-embed {
  margin: 0;
  overflow: visible;
  border: none;
  border-radius: 0;
  background: transparent;
}

.form-slot iframe,
.form-embed iframe {
  display: block;
  width: 100%;
  min-height: 760px;
  border: 0;
}

.form-slot__placeholder {
  min-height: 620px;
  display: grid;
  place-items: center;
  padding: 2rem;
  color: var(--muted);
  text-align: center;
  background: var(--soft);
}

.content-page {
  max-width: 850px;
}

.content-page h2 {
  margin-top: 2rem;
  font-size: 1.45rem;
}

.site-footer {
  background: #111b27;
  color: var(--paper);
}

.site-footer__inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.4rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: start;
}

.site-footer p {
  color: #d5dde4;
}

.site-footer__title {
  font-size: 1.05rem;
  font-weight: 800;
}

.site-footer__tagline {
  margin: 0.35rem 0;
  font-weight: 650;
}

.site-footer__small {
  max-width: 690px;
  margin-bottom: 0;
  font-size: 0.94rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem 1rem;
}

.site-footer__links a {
  color: var(--paper);
  font-weight: 650;
  text-decoration-color: rgba(255, 255, 255, 0.25);
}

.site-footer__meta {
  grid-column: 1 / -1;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #c8d2dc;
  font-size: 0.92rem;
}

@media (max-width: 920px) {
  .site-header__inner {
    min-height: 68px;
  }

  .site-nav {
    gap: 0.55rem;
  }

  .menu-toggle {
    display: inline-flex;
    order: 2;
  }

  .site-nav > .button {
    order: 1;
    min-height: 42px;
    padding: 0.65rem 0.8rem;
    font-size: 0.92rem;
  }

  .site-nav__links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.4rem);
    display: none;
    padding: 0.55rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  body[data-menu-open="true"] .site-nav__links {
    display: grid;
  }

  .site-nav__links a {
    width: 100%;
  }

  .hero__inner,
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    min-height: auto;
  }

  .card-grid,
  .service-preview-grid,
  .service-preview-grid--two,
  .service-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header__inner,
  .section-shell,
  .page-hero__inner,
  .hero__inner,
  .site-footer__inner {
    width: min(100% - 1.25rem, var(--max));
  }

  .brand__logo {
    width: min(172px, 48vw);
  }

  .site-nav > .button {
    display: none;
  }

  .hero__actions,
  .cta-row {
    align-items: stretch;
  }

  .button,
  .button-secondary {
    width: 100%;
  }

  .card-grid,
  .service-preview-grid,
  .service-preview-grid--two,
  .service-detail-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .service-card {
    min-height: auto;
  }

  .detail-card ul {
    columns: 1;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__links {
    justify-content: flex-start;
  }
}
