:root {
  --ink: #0d1b2a;
  --ink-soft: #415a77;
  --paper: #e0e1dd;
  --white: #ffffff;
  --sky: #778da9;
  --deep-sea: #1b263b;
  --line: rgba(65, 90, 119, 0.34);
  --shadow: 0 18px 48px rgba(13, 27, 42, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body:has(dialog[open]) {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

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

button {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.75rem max(1rem, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(65, 90, 119, 0.28);
  background: rgba(224, 225, 221, 0.96);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
}

.brand-name {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.15rem;
  font-size: 0.91rem;
}

.nav-link,
.nav-match,
.pneuma-link {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink-soft);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-match:hover,
.nav-match:focus-visible,
.pneuma-link:hover,
.pneuma-link:focus-visible {
  color: var(--ink);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 46px;
  padding: 0.75rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
}

.header-cta,
.button-primary {
  color: var(--white);
  background: var(--ink);
}

.header-cta:hover,
.header-cta:focus-visible,
.button-primary:hover,
.button-primary:focus-visible {
  background: var(--deep-sea);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(760px, calc(100vh - 72px));
  overflow: hidden;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--sky);
}

.hero-background,
.hero-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-background {
  z-index: -2;
  object-fit: cover;
  object-position: center;
}

.hero-wash {
  z-index: -1;
  background: rgba(224, 225, 221, 0.64);
}

.hero-content {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) 0 2rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2,
.info-dialog h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 1rem;
  font-size: 6.2rem;
  line-height: 0.93;
}

h1 span {
  color: var(--ink-soft);
}

.hero-lead {
  max-width: 630px;
  margin-bottom: 1.5rem;
  color: var(--deep-sea);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button-secondary {
  border-color: rgba(65, 90, 119, 0.56);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--white);
}

.offer-facts {
  max-width: 770px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(2rem, 6vh, 4rem) 0 0;
  border-top: 1px solid rgba(65, 90, 119, 0.42);
  border-bottom: 1px solid rgba(65, 90, 119, 0.42);
  background: rgba(224, 225, 221, 0.76);
}

.offer-facts div {
  min-width: 0;
  padding: 1rem;
}

.offer-facts div + div {
  border-left: 1px solid rgba(65, 90, 119, 0.42);
}

.offer-facts dt {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.offer-facts dd {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.process {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.process-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.process-heading h2,
.trust-band h2 {
  margin-bottom: 0;
  font-size: 4rem;
  line-height: 1;
}

.process-intro,
.trust-band > p,
.info-dialog p {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

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

.process-step {
  position: relative;
  min-width: 0;
  min-height: 250px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.process-step:hover,
.process-step:focus-visible,
.process-step.is-active {
  border-color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.process-step img {
  width: 100%;
  height: 205px;
  object-fit: cover;
  filter: saturate(0.72) contrast(0.96);
}

.step-number {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
}

.step-label {
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.process-detail {
  min-height: 116px;
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(280px, 1.25fr) auto;
  gap: 1.5rem;
  align-items: center;
  margin-top: 0.85rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.detail-kicker {
  margin-bottom: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.process-detail h3 {
  margin-bottom: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.65rem;
}

.process-detail > p {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.process-detail > a,
.dialog-link {
  font-weight: 700;
  color: var(--ink);
}

.trust-band {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 0.8fr) auto;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) max(1rem, calc((100vw - var(--max)) / 2));
  background: var(--sky);
}

.trust-band h2 {
  max-width: 620px;
  font-size: 3rem;
}

.trust-actions {
  display: grid;
  gap: 0.65rem;
}

.text-button {
  min-width: 165px;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgba(65, 90, 119, 0.56);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.text-button:hover,
.text-button:focus-visible {
  background: var(--white);
}

.locations {
  padding: clamp(3.5rem, 7vw, 6rem) max(1rem, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: var(--white);
}

.locations-heading {
  max-width: 760px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.locations-heading h2 {
  margin-bottom: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 4rem;
  font-weight: 600;
  line-height: 1;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.location-item {
  min-width: 0;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}

.location-label {
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.location-item h3 {
  margin-bottom: 0.75rem;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.65rem;
}

.location-item address {
  margin-bottom: 0.75rem;
  font-style: normal;
  line-height: 1.6;
}

.location-item > p:last-of-type {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.location-item > a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
  align-items: start;
  padding: 2rem max(1rem, calc((100vw - var(--max)) / 2));
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 0.86rem;
}

.footer-brand,
.footer-contact,
.site-footer address {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.site-footer address {
  font-style: normal;
}

.site-footer strong,
.site-footer a {
  color: var(--ink);
}

.site-footer > p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.76rem;
}

.info-dialog {
  width: min(calc(100% - 2rem), 610px);
  max-height: calc(100vh - 2rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(13, 27, 42, 0.34);
}

.info-dialog::backdrop {
  background: rgba(13, 27, 42, 0.72);
  backdrop-filter: blur(4px);
}

.info-dialog h2 {
  max-width: 500px;
  margin-bottom: 1rem;
  font-size: 3.25rem;
  line-height: 1;
}

.info-dialog p + p {
  margin-top: 1rem;
}

.dialog-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.dialog-link {
  display: inline-block;
  margin-top: 1.5rem;
}

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

@media (max-width: 900px) {
  .pneuma-link {
    display: none;
  }

  .hero {
    min-height: 700px;
  }

  h1 {
    font-size: 5.2rem;
  }

  .process-heading h2,
  .locations-heading h2 {
    font-size: 3.5rem;
  }

  .hero-background {
    object-position: 63% center;
  }

  .hero-wash {
    background: rgba(224, 225, 221, 0.76);
  }

  .process-heading,
  .trust-band {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .nav-link,
  .nav-match {
    display: none;
  }

  .header-cta {
    min-height: 42px;
    padding: 0.6rem 0.75rem;
    font-size: 0.82rem;
  }

  .hero {
    min-height: calc(100svh - 120px);
  }

  .hero-background {
    object-position: 58% center;
    opacity: 0.42;
  }

  .hero-wash {
    background: rgba(224, 225, 221, 0.64);
  }

  .hero-content {
    padding-top: 2.5rem;
  }

  h1 {
    font-size: 3.75rem;
  }

  .process-heading h2,
  .trust-band h2,
  .locations-heading h2 {
    font-size: 2.75rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .offer-facts {
    display: none;
  }

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

  .process-step {
    grid-template-columns: 120px 1fr;
    grid-template-rows: 120px;
    min-height: 120px;
    align-items: center;
  }

  .process-step img {
    width: 120px;
    height: 120px;
  }

  .step-label {
    padding: 1rem 1.25rem;
  }

  .trust-actions {
    grid-template-columns: 1fr;
  }

  .location-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer > p {
    grid-column: auto;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 3.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
