/* Shieldbridge website styles.
   One typeface (Archivo, self-hosted) used at three widths.
   Colours: bridge-steel green, concrete greys, construction orange for actions. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin-var.woff2") format("woff2");
}

:root {
  --ink: #0d2b25;
  --steel: #165a47;
  --steel-deep: #0f4234;
  --paper: #f3f5f1;
  --white: #ffffff;
  --concrete: #d8ded7;
  --stone: #54635d;
  --mist: #dce9e3;
  --signal: #f47a1f;
  --signal-deep: #dc6510;
  --risk: #a8321f;
  --risk-tint: #f8e3de;
  --watch: #7a4d00;
  --watch-tint: #fbeccb;
  --ok: #17603f;
  --ok-tint: #dcefe4;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 24px;
  --section: 88px;
}

@media (min-width: 720px) {
  :root {
    --gutter: 40px;
    --section: 128px;
  }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
table {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

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

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

.band :focus-visible,
.closing :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--white);
}

strong {
  font-weight: 700;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
  color: var(--white);
}

/* Type */

.display {
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2rem, 10.2vw, 7.75rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.title {
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

h2,
.h2 {
  font-stretch: 118%;
  font-weight: 750;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3,
.h3 {
  font-stretch: 110%;
  font-weight: 700;
  font-size: 1.3125rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.lede {
  max-width: 34em;
  font-size: clamp(1.1875rem, 1.7vw, 1.375rem);
  line-height: 1.5;
}

.muted {
  color: var(--stone);
}

.nowrap {
  white-space: nowrap;
}

.small {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.prose > * + * {
  margin-top: 1em;
}

.prose {
  max-width: 38em;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 4px;
  background: var(--signal);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-stretch: 105%;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.button:hover {
  background: var(--signal-deep);
  color: var(--ink);
}

.button--small {
  min-height: 46px;
  padding: 0 20px;
  font-size: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.text-link {
  font-weight: 600;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--concrete);
  background: var(--paper);
}

.site-header__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
  justify-self: start;
}

.brand__mark {
  width: 32px;
  height: 32px;
  color: var(--steel);
  flex: none;
}

.brand__name {
  font-stretch: 125%;
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
}

@media (max-width: 349px) {
  .site-header .button {
    display: none;
  }
}

.site-header .button {
  padding-inline: 16px;
}

@media (min-width: 480px) {
  .brand__mark {
    width: 38px;
    height: 38px;
  }

  .brand__name {
    font-size: 1.375rem;
  }
}

.site-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--concrete);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

@media (min-width: 860px) {
  .site-header__row {
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    padding-block: 18px;
  }

  .site-nav {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    gap: 0 36px;
    margin: 0;
    padding: 0;
    border: 0;
  }
}

/* Hero */

.hero {
  padding-block: 56px 0;
}

.hero__copy {
  display: grid;
  gap: 28px;
}

.hero__note {
  color: var(--stone);
}

@media (min-width: 720px) {
  .hero {
    padding-block: 88px 0;
  }

  .hero__copy {
    gap: 36px;
  }
}

/* The bridge: an elevation drawing of the three-stage method */

.bridge {
  margin-top: 56px;
}

.bridge__banks {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--stone);
}

.bridge__banks span {
  max-width: 15em;
}

.bridge__banks span:last-child {
  text-align: right;
}

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

.bridge__drawing {
  display: block;
  width: 100%;
  height: auto;
  color: var(--steel);
}

/* Two drawings of the same bridge: a simpler one for narrow screens. */
.bridge__drawing--wide {
  display: none;
}

@media (min-width: 860px) {
  .bridge__drawing--wide {
    display: block;
  }

  .bridge__drawing--narrow {
    display: none;
  }
}

.bridge__stages {
  display: grid;
  gap: 28px;
  margin-top: 28px;
  padding-bottom: var(--section);
  counter-reset: stage;
}

.bridge__stages li {
  counter-increment: stage;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 6px 16px;
  align-items: start;
  align-content: start;
}

.bridge__stages li::before {
  content: counter(stage);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--steel);
  border-radius: 50%;
  color: var(--steel);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.bridge__stages h2 {
  line-height: 36px;
}

.bridge__stages p {
  grid-column: 2;
  color: var(--stone);
  max-width: 24em;
}

@media (min-width: 860px) {
  .bridge {
    margin-top: 80px;
  }

  /* Line the three stages up under the three spans (abutments are 6% each side). */
  .bridge__stages {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding-inline: 6%;
  }

  .bridge__stages li {
    padding-inline: 0 32px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .bridge__drawing .draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: bridge-draw 0.9s cubic-bezier(0.3, 0, 0.2, 1) forwards;
  }

  .bridge__drawing .draw--2 {
    animation-delay: 0.75s;
    animation-duration: 0.6s;
  }

  .bridge__drawing .draw--3 {
    animation-delay: 1.1s;
    animation-duration: 0.6s;
  }

  .bridge__drawing .draw--4 {
    animation-delay: 1.45s;
    animation-duration: 0.6s;
  }

  .bridge__drawing .rise {
    opacity: 0;
    animation: bridge-rise 0.5s ease-out 1.9s forwards;
  }

  @keyframes bridge-draw {
    to {
      stroke-dashoffset: 0;
    }
  }

  @keyframes bridge-rise {
    to {
      opacity: 1;
    }
  }
}

/* Sections: heading on the left, content on the right */

.section {
  padding-block: var(--section);
  border-top: 1px solid var(--concrete);
}

.section--plain {
  border-top: 0;
}

.split {
  display: grid;
  gap: 32px;
}

.split__head > * + * {
  margin-top: 14px;
}

.split__head p {
  color: var(--stone);
  max-width: 22em;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 64px;
  }
}

/* Situations */

.situations {
  display: grid;
  gap: 0;
}

.situations > div {
  padding-block: 28px;
  border-top: 1px solid var(--concrete);
}

.situations > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.situations dt {
  font-stretch: 110%;
  font-weight: 700;
  font-size: clamp(1.3125rem, 2.2vw, 1.625rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.situations dd {
  margin-top: 10px;
  max-width: 36em;
  color: var(--stone);
}

/* Assessment band */

.band {
  background: var(--steel);
  color: var(--white);
  padding-block: var(--section);
}

.band a:not(.button) {
  color: var(--white);
}

.band .muted,
.band .split__head p {
  color: var(--mist);
}

.band__grid {
  display: grid;
  gap: 48px;
  align-items: start;
}

.band__copy > * + * {
  margin-top: 22px;
}

.band__copy p {
  max-width: 30em;
  color: var(--mist);
}

@media (min-width: 960px) {
  .band__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 72px;
  }
}

.ticks li {
  position: relative;
  padding-left: 30px;
}

.ticks li + li {
  margin-top: 8px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 14px;
  height: 8px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(-45deg);
  color: var(--steel);
}

.band .ticks li::before {
  color: var(--signal);
}

/* Sample report sheet */

.sheet {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--ink);
}

.sheet__title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--ink);
}

.sheet__title strong {
  font-stretch: 112%;
  font-size: 1.1875rem;
}

.sheet__title span {
  font-size: 0.9375rem;
  color: var(--stone);
}

.sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.4;
}

.sheet th,
.sheet td {
  padding: 13px 22px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--concrete);
}

.sheet thead th {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--stone);
  padding-block: 10px;
}

.sheet tbody th {
  font-weight: 600;
}

.sheet td:last-child {
  color: var(--stone);
}

.sheet__foot {
  padding: 12px 22px;
  font-size: 0.875rem;
  color: var(--stone);
}

.tag {
  display: inline-block;
  min-width: 4.6em;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.tag--high {
  background: var(--risk-tint);
  color: var(--risk);
}

.tag--medium {
  background: var(--watch-tint);
  color: var(--watch);
}

.tag--ok {
  background: var(--ok-tint);
  color: var(--ok);
}

@media (max-width: 560px) {
  .sheet thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .sheet tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--concrete);
  }

  .sheet th,
  .sheet td {
    padding: 0;
    border: 0;
  }

  .sheet td:last-child {
    grid-column: 1 / -1;
  }

  .sheet__title,
  .sheet__foot {
    padding-inline: 18px;
  }
}

/* Service overview and service detail */

.groups {
  display: grid;
  gap: 40px;
}

.groups h3 {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.groups p {
  margin-top: 12px;
  color: var(--stone);
}

.groups ul {
  margin-top: 14px;
}

.groups li + li {
  margin-top: 4px;
}

.groups li a {
  display: inline-block;
  padding-block: 5px;
  color: var(--ink);
  font-weight: 600;
}

@media (min-width: 720px) {
  .groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

.after {
  margin-top: 40px;
}

.svc {
  padding-block: 32px;
  border-top: 1px solid var(--concrete);
}

.svc:first-child {
  padding-top: 0;
  border-top: 0;
}

.svc:last-child {
  padding-bottom: 0;
}

.svc > p {
  margin-top: 8px;
  max-width: 36em;
}

.svc .ticks {
  margin-top: 16px;
  color: var(--stone);
}

/* Facts */

.facts {
  display: grid;
  gap: 0;
}

.facts li {
  padding-block: 26px;
  border-top: 1px solid var(--concrete);
}

.facts li:first-child {
  padding-top: 0;
  border-top: 0;
}

.facts p:first-child {
  max-width: 30em;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.35;
}

.facts p + p {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--stone);
}

.facts a {
  color: var(--stone);
}

/* Steps: a real sequence, so it is numbered */

.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 4px 12px;
  padding-block: 24px;
  border-top: 1px solid var(--concrete);
}

.steps li:first-child {
  padding-top: 0;
  border-top: 0;
}

.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  font-stretch: 125%;
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--steel);
}

.steps p {
  grid-column: 2;
  max-width: 34em;
  color: var(--stone);
}

/* Three plain columns */

.columns {
  display: grid;
  gap: 32px;
}

.columns p {
  margin-top: 10px;
  color: var(--stone);
}

@media (min-width: 720px) {
  .columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

/* Plain list with dividers */

.rows > li,
.rows > div {
  padding-block: 20px;
  border-top: 1px solid var(--concrete);
}

.rows > li:first-child,
.rows > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.rows p,
.rows dd {
  margin-top: 4px;
  max-width: 36em;
  color: var(--stone);
}

.rows dt {
  font-stretch: 110%;
  font-weight: 700;
  font-size: 1.3125rem;
  line-height: 1.3;
}

.certs li {
  padding-block: 10px;
  border-top: 1px solid var(--concrete);
  font-weight: 600;
}

.certs li:first-child {
  border-top: 0;
  padding-top: 0;
}

/* Questions */

.faq details {
  border-top: 1px solid var(--concrete);
}

.faq details:first-child {
  border-top: 0;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-block: 20px;
  font-stretch: 110%;
  font-weight: 700;
  font-size: 1.3125rem;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq details:first-child summary {
  padding-top: 0;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-right: 3px solid var(--steel);
  border-bottom: 3px solid var(--steel);
  transform: rotate(45deg);
}

.faq details[open] summary::after {
  margin-top: 12px;
  transform: rotate(-135deg);
}

.faq details p {
  max-width: 36em;
  padding-bottom: 24px;
  color: var(--stone);
}

/* Closing call to action */

.closing {
  background: var(--steel);
  color: var(--white);
  padding-block: 88px;
}

.closing__grid {
  display: grid;
  gap: 28px;
  align-items: end;
}

.closing p {
  margin-top: 16px;
  max-width: 30em;
  color: var(--mist);
}

@media (min-width: 860px) {
  .closing__grid {
    grid-template-columns: 1fr auto;
    gap: 64px;
  }
}

/* Page header for inner pages */

.page-head {
  padding-block: 64px 0;
}

.page-head .lede {
  margin-top: 24px;
}

.page-head + .section {
  margin-top: 64px;
}

@media (min-width: 720px) {
  .page-head {
    padding-block: 104px 0;
  }

  .page-head + .section {
    margin-top: 96px;
  }
}

/* Contact */

.contact {
  display: grid;
  gap: 48px;
  grid-template-areas:
    "head"
    "form"
    "aside";
  padding-block: 56px var(--section);
}

.contact__head {
  grid-area: head;
}

.contact__form {
  grid-area: form;
}

.contact__aside {
  grid-area: aside;
}

.contact__aside > * + * {
  margin-top: 32px;
}

@media (min-width: 960px) {
  .contact {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "head form"
      "aside form";
    gap: 40px 80px;
    padding-top: 80px;
  }

  .contact__form {
    align-self: start;
  }
}

.notice {
  padding: 18px 20px;
  border-left: 4px solid var(--signal);
  background: var(--white);
}

.notice p + p {
  margin-top: 6px;
  color: var(--stone);
}

.form {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 28px 24px 32px;
  background: var(--white);
  border: 1px solid var(--ink);
}

@media (min-width: 720px) {
  .form {
    padding: 40px 40px 44px;
  }
}

.field {
  display: grid;
  gap: 6px;
}

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

.field .optional {
  font-weight: 400;
  color: var(--stone);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--stone);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

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

.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.field [aria-invalid="true"] {
  border-color: var(--risk);
  border-width: 2px;
}

.field .hint {
  font-size: 0.9375rem;
  color: var(--stone);
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.form__status {
  min-height: 1.6em;
  font-weight: 600;
}

.form__status[data-kind="success"] {
  color: var(--ok);
}

.form__status[data-kind="error"] {
  color: var(--risk);
}

/* Legal text */

.legal {
  padding-block: 48px var(--section);
}

.legal h2 {
  margin-top: 48px;
  font-size: 1.5rem;
  font-stretch: 112%;
}

.legal p,
.legal ul {
  max-width: 38em;
  margin-top: 12px;
}

.legal ul {
  padding-left: 22px;
  list-style: disc;
}

.legal li + li {
  margin-top: 6px;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: var(--mist);
  padding-block: 64px 36px;
  font-size: 1rem;
}

.site-footer a {
  color: var(--mist);
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer__grid {
  display: grid;
  gap: 40px;
}

.site-footer .brand {
  color: var(--white);
}

.site-footer .brand__mark {
  color: var(--white);
}

.site-footer__about p {
  margin-top: 14px;
  max-width: 24em;
}

.site-footer h2 {
  font-size: 1rem;
  font-stretch: 105%;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--white);
}

.site-footer ul {
  margin-top: 10px;
}

.site-footer li a {
  display: inline-block;
  padding-block: 7px;
  text-decoration: none;
}

.site-footer li a:hover {
  text-decoration: underline;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid #2b4a43;
  font-size: 0.9375rem;
}

@media (min-width: 860px) {
  .site-footer__grid {
    grid-template-columns: 5fr 3fr 3fr 3fr;
    gap: 48px;
  }
}

/* Not found */

.notfound {
  padding-block: 96px var(--section);
}

.notfound > * + * {
  margin-top: 24px;
}

@media print {
  .site-header,
  .site-footer,
  .closing,
  .form {
    display: none;
  }

  body {
    background: #ffffff;
  }
}
