:root {
  --ink: #07111f;
  --navy: #102b46;
  --blue: #173d63;
  --slate: #2f3d4c;
  --muted: #5c6875;
  --warm: #f7f4ed;
  --paper: #fffdf8;
  --white: #ffffff;
  --line: #ded6c8;
  --orange: #c7661e;
  --orange-dark: #a24f16;
  --shadow: 0 18px 44px rgba(7, 17, 31, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.62;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

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

p {
  color: var(--muted);
}

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

h1 {
  max-width: 13ch;
  margin-bottom: 1.1rem;
  font-size: clamp(2.55rem, 5.4vw, 4.7rem);
}

.hero h1 {
  text-wrap: balance;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}

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

h4 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.narrow {
  max-width: 840px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 20;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(222, 214, 200, 0.9);
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(10px);
}

.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}

.brand {
  position: relative;
}

.brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--orange);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition:
    opacity 180ms ease,
    transform 240ms ease;
}

.brand img {
  display: block;
  width: clamp(150px, 17vw, 202px);
  height: auto;
  transition:
    filter 180ms ease,
    opacity 180ms ease;
}

.brand:hover img,
.brand:focus-visible img {
  filter: brightness(1.04) saturate(1.05);
  opacity: 0.94;
}

.brand:hover::after,
.brand:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.site-footer a:hover {
  color: var(--blue);
}

.nav-cta {
  border: 1px solid var(--orange);
  border-radius: 6px;
  background: var(--orange);
  color: var(--white);
  padding: 0.72rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(199, 102, 30, 0.18);
}

.section {
  padding: 78px 0;
}

.section-tight {
  padding: 72px 0 80px;
}

.warm {
  background: var(--warm);
}

.dark {
  background: var(--ink);
  color: var(--white);
}

.dark h2,
.dark h3,
.dark .eyebrow {
  color: var(--white);
}

.dark p,
.dark li {
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  background: linear-gradient(110deg, var(--paper) 0%, var(--paper) 62%, #eef1f3 62%, #eef1f3 100%);
}

.hero-grid,
.split,
.proof-grid,
.cta-grid,
.contact-grid,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(34px, 7vw, 84px);
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  font-size: 1.15rem;
}

.supporting-line {
  max-width: 720px;
  margin: 1.3rem 0 0;
  color: var(--slate);
  font-size: 0.96rem;
  font-weight: 800;
}

.hero-panel,
.card,
.quote-panel,
.contact-aside,
.contact-form,
.inline-panel,
.step,
.service-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
}

.hero-panel img {
  display: block;
  width: min(260px, 80%);
  height: auto;
  margin: 0 auto 22px;
}

.metric-list,
.check-list,
.proof-list,
.plain-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.metric-list li,
.check-list li {
  border-left: 3px solid var(--orange);
  padding: 0.35rem 0 0.35rem 0.85rem;
  color: var(--slate);
}

.dark .check-list li {
  color: #e8eef6;
}

.dark .check-list strong {
  color: var(--white);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.78rem 1.05rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button.primary {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(199, 102, 30, 0.2);
}

.button.primary:hover {
  background: var(--orange-dark);
}

.button.secondary {
  border-color: #9aa3ad;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(199, 102, 30, 0.35);
  outline-offset: 3px;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 34px;
}

.section-heading p,
.page-hero p {
  font-size: 1.06rem;
}

.cards,
.service-grid,
.step-grid {
  display: grid;
  gap: 20px;
}

.step-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.cards.three,
.step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card,
.service-card,
.step {
  padding: 26px;
}

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

.card p:last-child,
.service-card p:last-child,
.step p:last-child {
  margin-bottom: 0;
}

.card-section {
  margin-top: 1.15rem;
}

.card ul,
.service-card ul {
  margin-bottom: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.card li + li,
.service-card li + li {
  margin-top: 0.35rem;
}

.service-card .button {
  margin-top: 1.25rem;
}

.inline-panel {
  margin: 1.65rem 0;
  padding: 24px;
}

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

.proof-list {
  gap: 0.85rem;
}

.proof-list li {
  border: 1px solid rgba(7, 17, 31, 0.09);
  border-radius: 8px;
  background: var(--white);
  padding: 1rem;
  color: var(--slate);
}

.dark .proof-list li {
  border-color: rgba(255, 255, 255, 0.14);
  background: #172331;
}

.company-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.company-list li {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 0.55rem 0.75rem;
  color: var(--ink);
  font-weight: 800;
}

.step span {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--orange-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.cta-band {
  background: var(--blue);
  color: var(--white);
  padding: 58px 0;
}

.cta-band h2 {
  max-width: 760px;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.cta-band p,
.cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

.cta-band .primary {
  justify-self: end;
  align-self: center;
  border-color: var(--white);
  background: var(--white);
  color: var(--blue);
  box-shadow: none;
}

.page-hero {
  border-bottom: 1px solid var(--line);
  background: var(--warm);
  padding: 76px 0 58px;
}

.page-hero h1 {
  max-width: 16ch;
}

.contact-grid {
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 30px;
}

.contact-form label {
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--slate);
  padding: 0.85rem 0.9rem;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.hidden-field {
  display: none;
}

.contact-aside {
  position: sticky;
  top: 96px;
  padding: 28px;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin: 1.35rem 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--warm);
}

.contact-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.small-note {
  margin: 0;
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 30px 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand img {
  display: block;
  width: clamp(142px, 15vw, 184px);
  height: auto;
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.94rem;
}

@media (max-width: 1020px) {
  .nav {
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 12px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-cta {
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  .hero {
    background: var(--paper);
  }

  .hero-grid,
  .split,
  .proof-grid,
  .cta-grid,
  .contact-grid,
  .two-column,
  .cards.two,
  .cards.three,
  .service-grid,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .service-card.featured {
    grid-column: auto;
  }

  .section,
  .section-tight {
    padding: 58px 0;
  }

  .cta-band .primary {
    justify-self: start;
  }

  .contact-aside {
    position: static;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  h1 {
    font-size: 2.25rem;
  }

  .hero h1 {
    max-width: 16ch;
    font-size: clamp(1.95rem, 8.5vw, 2.2rem);
    line-height: 1.08;
  }

  h2 {
    font-size: 1.82rem;
  }

  .brand img {
    width: 152px;
  }

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

  .hero-panel,
  .card,
  .service-card,
  .contact-form,
  .contact-aside,
  .inline-panel,
  .step {
    padding: 22px;
  }

  .two-col-list {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    display: grid;
  }

  .footer-brand img {
    width: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand::after,
  .brand img {
    transition: none;
  }
}
