/* Site base on top of Bootstrap 5.3.
   Recreates the few looks the site took from MDB Free 4 (removed in #19):
   Roboto Light text, the navbar/footer/button styling, the home hero
   overlay and the colour helpers. Loaded on every page before layout.css. */

@font-face {
  font-family: Roboto;
  src: url(../fonts/roboto/Roboto-Light.woff2) format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: Roboto;
  src: url(../fonts/roboto/Roboto-Regular.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Roboto;
  src: url(../fonts/roboto/Roboto-Medium.woff2) format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Roboto;
  src: url(../fonts/roboto/Roboto-Bold.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bs-body-font-family: Roboto, sans-serif;
  --bs-body-font-weight: 300;
  --bs-body-line-height: 1.5;
  --bs-link-color-rgb: 2, 117, 216;
  --bs-link-hover-color-rgb: 2, 117, 216;
}

/* Bootstrap 4 grid: 30px gutters, positioned columns, 1140px max container */
.container, .container-fluid, .row {
  --bs-gutter-x: 30px;
}
.row > * {
  position: relative;
}
@media (min-width: 1400px) {
  .container { max-width: 1140px; }
}

/* The menu bar is fixed (up to 104 px tall): anything the browser scrolls to (an
   in-page link, a field reached with Tab) stops below it, not under it. */
html {
  scroll-padding-top: 112px;
}

hr {
  color: inherit;
  border-top: 1px solid rgba(0, 0, 0, .1);
  opacity: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
}

/* Bootstrap 4 heading sizes: fixed, where 5 shrinks them on small screens */
h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 2rem; }
h3, .h3 { font-size: 1.75rem; }
h4, .h4 { font-size: 1.5rem; }
.display-1 { font-size: 6rem; font-weight: 300; line-height: 1.2; }

a {
  text-decoration: none;
}

label {
  margin-bottom: .5rem;
}

/* Colour helpers used by the icons */
.red-text { color: #F44336 !important; }
.blue-text { color: #2196F3 !important; }
.green-text { color: #4CAF50 !important; }
.yellow-text { color: #ffeb3b !important; }
.grey-text { color: #9e9e9e !important; }
.black-text { color: #000 !important; }
.white-text { color: #fff !important; }

.z-depth-1 {
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
}

.h2-responsive { font-size: 145%; }
@media (min-width: 576px) { .h2-responsive { font-size: 140%; } }
@media (min-width: 768px) { .h2-responsive { font-size: 170%; } }
@media (min-width: 1200px) { .h2-responsive { font-size: 200%; } }

/* Navbar */
.navbar {
  --bs-navbar-padding-x: 1rem;
  font-weight: 300;
  border-radius: 2px;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
}
.navbar .navbar-brand {
  align-self: flex-start;
}
.navbar .navbar-toggler {
  min-width: 44px;
  min-height: 44px;
  border-width: 0;
  border-radius: 2px;
}
/* Menu links reached with Tab: a white ring (Bootstrap's blue glow is invisible on
   the blue bar). */
.navbar .navbar-nav .nav-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 2px;
  box-shadow: none;
}
/* Focus ring for keyboard users only, not after a tap */
.navbar .navbar-toggler:focus:not(:focus-visible) {
  box-shadow: none;
}
.navbar.navbar-dark {
  --bs-navbar-color: #fff;
  --bs-navbar-hover-color: rgba(255, 255, 255, .75);
  --bs-navbar-active-color: #fff;
  --bs-navbar-toggler-border-color: rgba(255, 255, 255, .1);
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}
.navbar.navbar-dark .navbar-nav .nav-link {
  color: #fff;
  transition: .35s;
}
.navbar.navbar-dark .navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, .75);
}
/* The page you're on: underlined, so it isn't marked by colour alone. */
.navbar .navbar-nav .nav-link[aria-current="page"] span {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.navbar.scrolling-navbar {
  z-index: 100;
}
@media (max-width: 991.98px) {
  .navbar-expand-lg > .container {
    padding-left: 0;
    padding-right: 0;
  }
  .navbar .nav-item .nav-link {
    padding-left: 6px;
    padding-right: 6px;
  }
}
@media (min-width: 600px) {
  .navbar.scrolling-navbar {
    transition: background .5s ease-in-out, padding .5s ease-in-out;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .navbar.scrolling-navbar.top-nav-collapse {
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

/* Buttons */
.btn {
  font-size: .875rem;
  padding: .85rem 2.13rem;
  margin: 6px;
  border-radius: 50rem; /* pill, like every button on the site */
  border: 0;
  color: #fff;
  white-space: normal;
  transition: .2s ease-out;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
}
.btn:hover,
.btn:focus,
.btn:active {
  box-shadow: 0 5px 11px 0 rgba(0, 0, 0, .18), 0 4px 15px 0 rgba(0, 0, 0, .15);
}

/* Home hero: full-screen photo with a dark overlay */
.view {
  position: relative;
  overflow: hidden;
  cursor: default;
}
.view .full-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.view img {
  display: block;
  position: relative;
}
.hm-black-strong .full-bg-img {
  background-color: rgba(0, 0, 0, .7);
}
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.flex-center ul {
  list-style-type: none;
  padding: 0;
  text-align: center;
}
.flex-center ul li {
  margin-bottom: 1rem;
}

/* Footer */
footer.page-footer {
  margin-top: 20px;
  padding-top: 20px;
  color: #fff;
}
footer.page-footer a {
  color: #fff;
}
footer.page-footer ul {
  list-style-type: none;
  padding: 0;
}
/* Standalone links (contacts, footer lists) get a 44px-tall tap area; the text
   doesn't move, only the area around it grows. */
.contact-link,
.tap-target,
footer.page-footer ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
/* The tap area already spaces these lines out; drop the paragraph/list margin. */
p:has(> .contact-link:only-child),
p:has(> .tap-target:only-child) {
  margin-bottom: 0;
}
footer.page-footer ul {
  margin-bottom: .25rem;
}
footer.page-footer .container-fluid {
  width: auto;
}
footer.page-footer .footer-copyright {
  overflow: hidden;
  height: 50px;
  line-height: 50px;
  background-color: rgba(0, 0, 0, .2);
  text-align: center;
  font-size: .9rem;
}
@media (max-width: 992px) {
  .center-on-small-only {
    text-align: center;
  }
}

/* Navbar Facebook icon: a 48 × 48 px tap area around the 41 px-wide glyph. */
.navbar-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
}

/* Phones: a round call button left of the menu toggle. */
.navbar-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: .5rem;
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
}
.navbar-call:hover,
.navbar-call:focus-visible {
  color: #fff;
  background-color: rgba(255, 255, 255, .15);
}

/* Skip link: hidden until a keyboard user tabs to it, then a pill at the top left. */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: #fff;
  color: #1967D2;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
  outline: 3px solid #1967D2;
  outline-offset: 2px;
}
/* <main> takes focus from the skip link; it needs no ring of its own. */
main:focus { outline: none; }
