/* Bluezone Advisory: additions on top of the base stylesheet. */

html {
  scroll-behavior: auto;
}

/* Logo: the Bluezone mark as a mask, so it takes the colour of the text around it. */
.bz_logo {
  display: block;
  width: 100%;
  height: 100%;
  background-color: currentColor;
  -webkit-mask: url("../img/logo-mark.png") left center / contain no-repeat;
  mask: url("../img/logo-mark.png") left center / contain no-repeat;
}
.logo {
  width: 11.25em;
  height: 2.6em;
}
.logo.footer_logo {
  width: 14em;
  height: 3.25em;
  color: var(--navy);
}

/* Menu: plain links to sections. */
.mobile_menu--icon {
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
@media (min-width: 993px) {
  .mobile_menu--icon {
    display: none;
  }
}
@media (max-width: 992px) {
  .nav_links > a.nav_link {
    padding: 1.25em var(--site_padding);
    border-bottom: 0.0625em solid var(--tint);
  }
  .nav_links > a.nav_link p {
    font-size: 1.125em;
  }
}

/* Opening section: the introduction needs more room than the original one-liner. */
@media (min-width: 993px) {
  /* On short windows the headline and bar are taller than the space set aside for them: let the
     block grow upwards instead of letting the bar spill out of the bottom of the section. */
  .header_section .header_content {
    height: auto;
    min-height: 55vh;
  }
  .header_section .sub_headline--bottom {
    padding-top: 2em;
    padding-bottom: 2em;
  }
  .header_section .p_vid--wrap {
    grid-column: 1 / 6;
  }
  .header_section .scd {
    grid-column: 6 / 8;
  }
}

/* Page not found: the opening section on its own, with one button. */
.bz_404 .sub_headline--buttons .btn {
  width: fit-content;
}
@media (max-width: 992px) {
  .bz_404 {
    padding-bottom: 2.5em;
  }
  .bz_404 .sub_headline--buttons .btn {
    width: 100%;
  }
}

/* Services: a lightly tinted band of cards. Two wide cards over three on desktop, one column on phones. */
:root {
  --wash: #ecf0f5;
  --card_line: #d3dce9;
}
.bz_services {
  background-color: var(--wash);
  padding: 5em var(--site_padding);
}
.bz_service_cards {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25em;
  margin-top: 3em;
}
.bz_service {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  padding: 1.75em;
  background-color: var(--white);
  border: 0.0625em solid var(--card_line);
  box-shadow: 0 0.0625em 0.1875em rgba(20, 33, 61, 0.06);
}
.bz_service:nth-child(-n + 2) {
  grid-column: span 3;
}
.bz_service_icon {
  width: 1.75em;
  height: 1.75em;
  margin-bottom: 0.5em;
  color: var(--accent);
}
.bz_service_icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
@media (max-width: 992px) {
  .bz_services {
    padding: 3.75em var(--site_padding);
  }
  .bz_service_cards {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    margin-top: 0.5em;
  }
  .bz_service {
    padding: 1.5em 1.25em;
  }
}

/* About: statement on the left, portrait card on the right. */
.about_section.bz_about {
  border-top: 0.0625em solid var(--tint);
}
.bz_about .section_headline.about {
  grid-column: 1 / 8;
}
.bz_about .bz_card {
  grid-column: 10 / 13;
  cursor: default;
}
.bz_about .bz_card .tm_name--role p {
  min-height: 0;
}
.bz_about .bz_card .link {
  margin-top: 0.375em;
}
@media (max-width: 992px) {
  .bz_about .grid {
    gap: 2.5em;
  }
  .bz_about .bz_card {
    max-width: 22em;
  }
}

/* Contact. */
.bz_contact .str_cta--content .btn {
  margin-top: 0.5em;
}
.bz_contact .sm_link {
  margin-top: 0.75em;
}

/* Footer. */
.company_info p + p {
  margin-top: -0.25em;
}
.ci_links {
  display: flex;
  flex-direction: column;
  margin-top: 0.5em;
}

/* Keyboard focus. */
a:focus-visible,
button:focus-visible {
  outline: 0.125em solid var(--accent);
  outline-offset: 0.1875em;
}
.header_section a:focus-visible,
.nav:not(.light) a:focus-visible {
  outline-color: var(--paper);
}

@media (prefers-reduced-motion: reduce) {
  .scd_icon > * {
    animation: none;
  }
}

/* The cover shown while the page loads. */
.loading_overlay {
  background-color: var(--navy) !important;
}

/* Palette: Slate and stone. */
:root {
  --accent_on_navy: #a9c4e4;
}
.header_section a:focus-visible,
.nav a:focus-visible,
.nav button:focus-visible {
  outline-color: var(--accent_on_navy);
}
@media (max-width: 992px) {
  .nav_links a:focus-visible {
    outline-color: var(--accent);
  }
}
