:root {
  --navy: #102235;
  --navy-soft: #1a3148;
  --ink: #182026;
  --paper: #fffdf8;
  --ivory: #f5f1e8;
  --muted: #5f676b;
  --green: #365e52;
  --burgundy: #6b343b;
  --rule: #cfc9bd;
  --rule-dark: #a9a398;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --content: 72rem;
  --reading: 47rem;
}

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

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, var(--navy) 0, var(--navy) 0.3rem, transparent 0.3rem),
    var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-180%);
  background: var(--paper);
  border: 1px solid var(--navy);
  color: var(--navy);
  font-weight: 700;
}

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

.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 253, 248, 0.97);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(calc(100% - 3rem), var(--content));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6.4rem;
  gap: 2rem;
}

.wordmark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  max-width: 16rem;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.16;
  text-decoration: none;
}

.wordmark::before {
  width: 0.28rem;
  height: 2.65rem;
  margin-right: 0.85rem;
  background: var(--green);
  content: "";
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: inline-block;
  padding: 0.75rem 0;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 620;
  line-height: 1.2;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  border-bottom-color: var(--green);
  color: var(--navy);
}

main {
  min-height: 62vh;
}

.hero {
  padding: clamp(4.75rem, 9vw, 8rem) 0 clamp(4.25rem, 8vw, 7rem);
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(105deg, rgba(16, 34, 53, 0.035), transparent 46%),
    var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.75fr);
  gap: clamp(3rem, 8vw, 7.5rem);
  align-items: end;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.135em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 500;
  text-wrap: balance;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.75rem, 6.2vw, 5.1rem);
  letter-spacing: -0.035em;
  line-height: 0.99;
}

.hero .standfirst {
  max-width: 33rem;
  margin: 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule-dark);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.46rem);
  line-height: 1.52;
}

.intro-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2.5rem, 7vw, 6.5rem);
  padding: clamp(4rem, 7vw, 6.4rem) 0;
}

.section-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 740;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-copy .prose {
  max-width: 46rem;
}

.intro-copy .prose p:first-child {
  margin-top: 0;
}

.services {
  padding: clamp(4rem, 7vw, 6rem) 0;
  background: var(--ivory);
  border-block: 1px solid var(--rule);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: 2.6rem;
}

.service-item {
  padding-top: 1.2rem;
  border-top: 1px solid var(--navy);
}

.service-item h2 {
  margin: 0 0 0.85rem;
  font-size: 1.38rem;
  line-height: 1.25;
}

.service-item p {
  margin: 0;
  color: #384149;
  font-size: 0.98rem;
}

.access-section {
  padding: clamp(4rem, 7vw, 6.4rem) 0;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 7vw, 6rem);
}

.access-item h2 {
  margin: 0 0 0.85rem;
  font-size: 1.45rem;
}

.access-item p {
  margin: 0;
}

.cta-row {
  margin-top: 3.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--rule);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3.15rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--navy);
  border-radius: 2px;
  background: var(--navy);
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 720;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.button:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
}

.button--quiet {
  background: transparent;
  color: var(--navy);
}

.button--quiet:hover {
  background: var(--navy);
  color: var(--paper);
}

.page-heading {
  padding: clamp(4.4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--rule);
  background: var(--ivory);
}

.page-heading h1 {
  max-width: 18ch;
  font-size: clamp(2.65rem, 5vw, 4.65rem);
  line-height: 1.02;
}

.content-wrap {
  display: grid;
  grid-template-columns: minmax(9rem, 0.35fr) minmax(0, var(--reading));
  gap: clamp(2rem, 8vw, 7rem);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.content-rail {
  align-self: start;
  position: sticky;
  top: 2rem;
  padding-top: 0.3rem;
}

.content-rail p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 740;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}

.prose {
  min-width: 0;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 3.5rem 0 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.015em;
  line-height: 1.18;
}

.prose h3 {
  margin: 2rem 0 0.65rem;
  font-size: 1.28rem;
}

.prose p {
  margin: 0 0 1.35rem;
}

.prose ul,
.prose ol {
  margin: 1.25rem 0 1.8rem;
  padding-left: 1.35rem;
}

.prose li {
  margin: 0 0 0.72rem;
  padding-left: 0.35rem;
}

.prose strong {
  color: var(--navy);
  font-weight: 730;
}

.steps {
  padding-left: 1.5rem;
  counter-reset: steps;
  list-style: none;
}

.steps li {
  position: relative;
  margin-bottom: 1.8rem;
  padding-left: 2.2rem;
  counter-increment: steps;
}

.steps li::before {
  position: absolute;
  top: 0.05rem;
  left: -1.5rem;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  content: counter(steps);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 2.2rem;
  text-align: center;
}

.legal-notice {
  margin: 1.75rem 0 2.4rem;
  padding: 1.6rem 1.7rem;
  border-left: 3px solid var(--navy);
  background: var(--ivory);
}

.legal-notice p:last-child,
.legal-notice ul:last-child {
  margin-bottom: 0;
}

.emergency {
  margin: 1.8rem 0 0;
  padding: 1.25rem 0 0.1rem 1.35rem;
  border-left: 3px solid var(--burgundy);
}

.expert-intro {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.55;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 9vw, 8rem);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.contact-details {
  align-self: start;
  padding-top: 0.25rem;
}

.contact-details address {
  font-style: normal;
}

.contact-details p {
  margin: 0 0 1.3rem;
}

.contact-form {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--rule-dark);
  background: var(--ivory);
}

.field {
  margin-bottom: 1.3rem;
}

label {
  display: block;
  margin-bottom: 0.38rem;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 720;
}

input,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--rule-dark);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.field-note,
.form-warning,
.cta-note {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.field-note {
  margin: 0.35rem 0 0;
}

.form-warning {
  margin: 1.4rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
}

button {
  cursor: pointer;
}

.site-footer {
  background: var(--navy);
  color: #e8e4da;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(14rem, 0.85fr);
  gap: 2.5rem 5rem;
  padding: 3.25rem 0;
}

.footer-name {
  margin: 0 0 0.45rem;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.footer-copy,
.footer-links {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.65;
}

.footer-links {
  text-align: right;
}

.site-footer a {
  color: #f3efe6;
  text-decoration-color: #91aa9f;
}

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

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.2rem 0 1rem;
  }

  .primary-nav ul {
    justify-content: flex-start;
  }

  .hero-grid,
  .intro-copy,
  .content-wrap,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-items: start;
    gap: 2.8rem;
  }

  .intro-copy,
  .content-wrap,
  .contact-layout {
    gap: 1.7rem;
  }

  .content-rail {
    position: static;
  }
}

@media (max-width: 700px) {
  body {
    background: var(--paper);
    font-size: 1rem;
  }

  .header-inner,
  .page-shell,
  .footer-inner {
    width: min(calc(100% - 2rem), var(--content));
  }

  .wordmark {
    font-size: 1.1rem;
  }

  .primary-nav ul {
    gap: 0 1rem;
  }

  .primary-nav a {
    padding: 0.62rem 0;
    font-size: 0.83rem;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4.1rem);
  }

  .service-grid,
  .access-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .service-grid {
    gap: 2.2rem;
  }

  .footer-links {
    text-align: left;
  }
}

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

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .skip-link,
  .site-header,
  .site-footer,
  .cta-row,
  .button,
  form {
    display: none !important;
  }

  .hero,
  .page-heading,
  .services {
    background: #fff;
  }

  .page-shell,
  .content-wrap,
  .hero-grid,
  .intro-copy {
    display: block;
    width: 100%;
    max-width: none;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}
