/*
 * The rules these two pages actually use, extracted from the original
 * template's main.css, responsive.css and bootstrap.min.css (4.4.1) with
 * Chrome CSS coverage. Visual parity with the original is checked by
 * tests/e2e/visual.spec.mjs.
 */

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

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/montserrat-latin-600-normal.woff2) format("woff2");
}

:root {
  --brand-cyan: #00bce4;
  --brand-blue: #0081c6;
  /* Darkened from the template's #8d9aa8 (2.9:1 on white) to pass WCAG AA. */
  --text-muted: #677382;
  /* --brand-blue is 4.2:1 on white: fine for large headings, too light for
     body-size link text. */
  --link-on-white: #0077b6;
  --footer-bg: #232427;
  --footer-text: #ddedf2;
}

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

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  line-height: 26px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: -0.2px;
  text-align: left;
  position: relative;
  overflow-x: hidden;
}

::selection {
  background-color: var(--brand-cyan);
  color: #fff;
}

h1,
h2,
h3 {
  font-family: Montserrat, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--brand-blue);
  margin: 0 0 10px;
}

h1 {
  font-size: 45px;
  font-weight: 400;
  line-height: 55px;
}

h2 {
  font-size: 32px;
  line-height: 42px;
  font-weight: 600;
  letter-spacing: -1px;
}

h3 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.5px;
}

p {
  font-size: 16px;
  line-height: 26px;
  margin-bottom: 15px;
}

a {
  color: #007bff;
  text-decoration: none;
  background-color: transparent;
  transition: all 0.5s;
}

img {
  vertical-align: middle;
  border: none;
  outline: none;
  max-width: 100%;
  height: auto;
  transition: all 0.5s;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* Header */

.header {
  position: absolute;
  z-index: 999;
  width: 100%;
  display: block;
}

.primary-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.primary-header .header-logo {
  max-width: 180px;
}

.header-right {
  display: flex;
  align-items: center;
  line-height: 80px;
  margin-left: 20px;
}

/* The original template shows a menu icon below 992px with no menu behind
   it. Kept for visual parity, hidden from assistive technology. */
.mobile-menu-icon {
  display: none;
  margin-left: 20px;
}

.burger-menu {
  width: 20px;
  height: 17px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.line-menu {
  background-color: #fff;
  border-radius: 2px;
  width: 100%;
  height: 3px;
}

.line-menu.line-half {
  width: 50%;
}

.line-menu.last-line {
  align-self: flex-end;
}

/* Hero */

.hero {
  text-align: center;
  position: relative;
  background: url(../img/homeHeader.jpg);
  background-size: cover;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100vh;
}

.hero-text {
  margin: 0 auto;
  padding: 0 15px;
}

.hero-title {
  font-size: 45px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: -0.5px;
  color: #fff;
}

.hero-tagline {
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: -0.2px;
  color: var(--brand-cyan);
  margin: 30px 0 0;
}

.hero-lede {
  color: #fff;
  margin-top: 10px;
}

.contact-button {
  min-width: 130px;
  height: 40px;
  line-height: 40px;
  margin-top: 30px;
  display: inline-block;
  text-align: center;
  border-radius: 30px;
  font-size: 16px;
  color: #000;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease-in-out;
}

.contact-button::before,
.contact-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  border-radius: 30px;
  transition: all 0.3s;
}

.contact-button::before {
  background-color: var(--brand-cyan);
}

.contact-button::after {
  opacity: 0;
  border: 1px solid var(--brand-cyan);
  transform: scale(1.2, 1.2);
}

.contact-button:hover,
.contact-button:focus-visible {
  color: var(--brand-cyan);
}

.contact-button:hover::before,
.contact-button:focus-visible::before {
  opacity: 0;
  transform: scale(0.5, 0.5);
}

.contact-button:hover::after,
.contact-button:focus-visible::after {
  opacity: 1;
  transform: scale(1, 1);
}

/* 404 */

.error-header {
  background-color: var(--footer-bg);
  padding: 25px 0;
}

.error-content {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-info {
  margin-top: 50px;
  text-align: center;
}

.error-info h1 {
  font-size: 200px;
  line-height: 200px;
  font-weight: 600;
  letter-spacing: -10px;
}

.error-info a {
  color: var(--link-on-white);
  font-weight: 600;
  text-decoration: underline;
}

.error-home {
  font-size: 20px;
  line-height: 1.7;
  letter-spacing: -0.5px;
  margin-bottom: 120px;
}

/* Footer */

.footer {
  background-color: var(--footer-bg);
  display: block;
  color: #fff;
  text-align: center;
  padding: 25px 0;
}

.footer p {
  font-size: 15px;
  color: var(--footer-text);
  margin: 0;
}

/* Bootstrap container widths */

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

/* Responsive */

@media (max-width: 992px) {
  .mobile-menu-icon {
    display: block;
  }

  .primary-header {
    padding: 10px 0;
  }

  h2 {
    font-size: 22px;
  }

  .error-content {
    display: block;
  }

  .error-info {
    padding-left: 10px;
  }

  .error-info h1 {
    font-size: 120px;
    line-height: 120px;
    margin-bottom: 30px;
  }

  .error-info a {
    display: block;
  }
}

@media (max-width: 767px) {
  body,
  p {
    font-size: 12px;
    line-height: 22px;
  }

  h1 {
    font-size: 30px;
  }

  h3 {
    font-size: 16px;
  }

  .hero-title {
    line-height: 50px;
  }

  .error-home {
    font-size: 16px;
  }
}

@media (max-width: 580px) {
  .primary-header .header-logo {
    max-width: 150px;
  }
}

@media (max-width: 547px) {
  .hero-title {
    font-size: 35px;
  }
}
