/* Integrated Emergency Management Solutions
   Pale tints of the logo blue and a warm paper colour, black text,
   globe blue for links and focus, logo orange only on the Send button
   and the small footer mark. Karla for everything. */

@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/karla-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/karla-700-latin.woff2") format("woff2");
}

:root {
  --ink: #121418;
  --muted: #3e4c56;
  --white: #ffffff;
  --line: #b0b4b8;
  --blue: #305878;
  --blue-deep: #244864;
  --black: #121418;
  --orange: #f05018;
  --orange-deep: #e64c16;
  --grey-1: #e6e8eb;
  --grey-2: #d9dce1;
  --grey-3: #d0d4d8;
  --grey-4: #c8ccd1;
  --sans: "Karla", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: min(72rem, calc(100% - 2.5rem));
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.75rem;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--grey-1);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
}

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

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

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 20;
  padding: 0.4rem 0.65rem;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

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

p {
  margin: 0 0 0.9rem;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
}

h3 {
  font-size: 1.125rem;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.measure {
  max-width: 65ch;
}

/* Header. Black so the white parts of the logo still read.
   No orange stripe. */

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--black);
  color: var(--white);
}

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  min-height: 4rem;
  padding: 0.45rem 0;
}

.logo img {
  display: block;
  width: auto;
  height: 52px;
}

.nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
}

.nav a,
.footer-nav a {
  color: inherit;
  font-size: 0.875rem;
  line-height: 1.3;
  text-decoration: none;
}

.nav a {
  padding: 0.3rem 0;
  color: var(--white);
}

.nav a:hover,
.footer-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.masthead a:focus-visible {
  outline-color: var(--white);
}

/* Opening. The storm photo is a plate. The title sits on the white page. */

.hero-photo {
  display: block;
  width: 100%;
  max-width: none;
  height: min(32rem, 50vh);
  object-fit: cover;
  object-position: center 69%;
}

.opening h1 {
  max-width: 16em;
  margin: 1.35rem auto 0;
  text-align: center;
  text-wrap: balance;
}

/* Desktop. The title can run wider than the 65-character intro so it sits on two lines. */
@media (min-width: 1024px) {
  .opening h1 {
    max-width: none;
  }
}

.sub {
  max-width: 65ch;
  margin: 0.85rem auto 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  text-align: center;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.15rem;
}

.call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 0.85rem;
  border-radius: 5px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.call:hover {
  background: var(--blue-deep);
  color: var(--white);
}

.ask {
  font-size: 0.9375rem;
  font-weight: 700;
  text-underline-offset: 0.15em;
}

.facts-band {
  margin-top: 1.35rem;
  background-color: var(--grey-4);
  background-image: url("../assets/contour.svg");
  background-repeat: repeat;
  background-size: 220px 220px;
  border-top: 1px solid #d3dee6;
  border-bottom: 1px solid #d3dee6;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1.5rem;
  width: var(--wrap);
  margin: 0 auto;
  padding: 0.85rem 0;
  list-style: none;
  text-align: center;
}

.facts li {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.facts li::before {
  content: "";
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0 auto 0.35rem;
  background: var(--blue);
}

.block {
  padding: 3rem 0;
}

.block h2 {
  margin: 0 0 1rem;
}

.value h3 {
  margin: 0 0 0.3rem;
}

.contact-grid {
  display: grid;
  gap: 1.35rem;
  align-items: start;
}

.block-services,
.block-contact {
  background: var(--grey-2);
}

.block-services {
  padding: 2.75rem 0 1.5rem;
}

.service-groups {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.service-group picture,
.training-row picture {
  display: block;
}

.service-group picture {
  margin: 0 0 0.85rem;
}

.service-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.service-groups h3 {
  margin: 0 0 0.45rem;
  font-size: 1.125rem;
}

.service-groups ul {
  margin: 0;
  padding: 0 0 0 1.15rem;
}

.service-groups li {
  margin: 0 0 0.4rem;
  padding: 0;
}

.service-groups li:last-child {
  margin-bottom: 0;
}

.training-row {
  display: grid;
  gap: 1rem;
  align-items: center;
  margin-top: 1.75rem;
}

.training {
  max-width: 65ch;
  margin: 0;
}

.duty {
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.duty h3 {
  margin: 0 0 0.65rem;
}

.duty-sources,
.duty-note {
  max-width: 65ch;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.duty-sources {
  margin-top: 1.15rem;
}

.audience {
  padding: 2.75rem 0;
  background: var(--grey-3);
}

.audience-grid {
  display: grid;
  gap: 2.25rem;
}

.audience .block-who,
.audience .block-about {
  padding: 0;
}

.audience p {
  max-width: 65ch;
  margin: 0.85rem 0 0;
}

.audience p:first-of-type {
  margin-top: 0;
}

.block-who h2,
.block-about h2 {
  margin-bottom: 0.85rem;
}

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

.value {
  padding: 0.55rem 0 0.6rem;
  border-top: 1px solid var(--line);
}

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

.block-values {
  padding: 1.75rem 0 2rem;
  background-color: var(--grey-4);
  background-image: url("../assets/contour.svg");
  background-repeat: repeat;
  background-size: 220px 220px;
}

.block-contact {
  padding: 3rem 0 3.5rem;
}

.contact-intro {
  max-width: 36em;
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
}

.phone {
  margin: 0.35rem 0 0.2rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

.phone a {
  text-underline-offset: 0.12em;
}

.address {
  margin: 0;
  color: var(--muted);
}

.contact-form {
  margin: 0;
}

.field {
  margin: 0 0 0.9rem;
}

.field label {
  display: block;
  margin: 0 0 0.3rem;
  font-size: 0.875rem;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.45;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin-top: 0.15rem;
  padding: 0.5rem 0.95rem;
  border: 0;
  border-radius: 5px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.send:hover {
  background: var(--orange-deep);
  color: var(--ink);
}

.send:disabled {
  cursor: wait;
  opacity: 0.7;
}

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

.cf-turnstile {
  margin: 0.15rem 0 0.85rem;
}

.form-status,
.form-note {
  max-width: 65ch;
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
}

.form-note a {
  text-underline-offset: 0.12em;
}

/* Footer */

.site-footer {
  padding: 2.25rem 0 calc(2rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--grey-3);
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.biz-name {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}

.footer-id p {
  margin: 0 0 0.15rem;
}

.footer-id a,
.footer-nav a {
  color: var(--blue);
}

.copy {
  margin: 0;
  color: var(--muted);
}

.records-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.2rem;
  vertical-align: middle;
  text-decoration: none;
}

.records-mark span {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--orange);
}

.records-mark:hover span {
  background: var(--orange-deep);
}

/* Activity page. Same type and header. A record sheet, not a brochure. */

.activity {
  padding: 2.25rem 0 3rem;
}

.activity h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.lede {
  max-width: 40em;
  margin: 0 0 1.25rem;
}

.range {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
}

.range button {
  min-height: 2.25rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--blue);
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.875rem;
  cursor: pointer;
}

.range button[aria-pressed="true"] {
  background: var(--blue);
  color: var(--white);
}

.range button:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: var(--white);
}

.status {
  max-width: 38em;
  margin: 0.25rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.period,
.note,
.stat span,
.stat small,
.bar-labels {
  color: var(--muted);
  font-size: 0.875rem;
}

.period,
.note {
  margin: 0 0 0.85rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  max-width: 36rem;
  margin: 0 0 1.75rem;
}

.stat {
  margin: 0;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.stat b {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat span,
.stat small {
  display: block;
  margin-top: 0.3rem;
  font-weight: 400;
  line-height: 1.45;
}

.chart {
  margin: 0 0 1.75rem;
}

.chart h2,
.panels caption {
  margin: 0 0 0.7rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: left;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 7.5rem;
}

.bars span {
  flex: 1 1 0;
  display: block;
  min-height: 2px;
  height: var(--h, 2px);
  background: var(--blue);
}

.bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
}

.panels {
  display: grid;
  gap: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

caption {
  caption-side: top;
}

th,
td {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
}

th:last-child,
td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

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

/* Phones. A short wide crop so the headline sits above the browser toolbar.
   Desktop, from 800px, keeps the taller plate. */

@media (max-width: 799px) {
  html {
    /* Header is the 44px link row plus 0.15rem of padding. The 1.25rem
       section padding below then leaves the heading about 20px clear. */
    scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 3.05rem);
  }

  .block-services,
  .block-values,
  .block-contact {
    padding-top: 1.25rem;
  }

  .audience .block-about {
    scroll-margin-top: 1.25rem;
  }

  .masthead .wrap {
    width: min(72rem, calc(100% - 1.5rem));
  }

  .masthead-inner {
    min-height: 0;
    gap: 0.1rem 0.5rem;
    padding: 0.15rem 0;
  }

  .logo img {
    height: 44px;
  }

  .nav {
    gap: 0 0.4rem;
  }

  .nav a,
  .ask,
  .phone a,
  .footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .nav a {
    padding: 0 0.1rem;
    font-size: 0.8125rem;
    line-height: 1.2;
  }

  .hero-photo {
    height: min(10.5rem, 30vh);
    object-position: center 62%;
  }

  .opening h1 {
    margin-top: 0.7rem;
    font-size: 1.45rem;
    line-height: 1.12;
  }

  .sub {
    margin-top: 0.55rem;
    font-size: 0.9375rem;
    line-height: 1.4;
  }

  .actions {
    margin-top: 0.75rem;
  }

}

@supports (height: 1svh) {
  @media (max-width: 799px) {
    .hero-photo {
      height: min(10.5rem, 26svh);
    }
  }
}

@media (min-width: 800px) {
  :root {
    --wrap: min(72rem, calc(100% - 4rem));
  }

  html {
    scroll-padding-top: 6.25rem;
  }

  .logo img {
    height: 68px;
  }

  .masthead-inner {
    min-height: 4.5rem;
  }

  .facts {
    gap: 0.85rem 2rem;
    padding: 1rem 0;
  }

  .facts li {
    font-size: 0.875rem;
  }

  .training-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 2rem;
  }

  .service-groups,
  .audience-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .audience {
    padding: 3.25rem 0;
  }

  #about {
    scroll-margin-top: 1rem;
  }

  .values {
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) auto;
    align-items: start;
  }

  .footer-nav {
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
  }

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

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

@supports (min-height: 100svh) {
  body {
    min-height: 100svh;
  }
}
