/* Small fixes for the static copy of the existing site. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  overflow-wrap: break-word;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #8c17c6;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 1100;
  padding: 0.75rem 1rem;
  background: #fff;
}

.skip-link:focus {
  top: 1rem;
}

#header {
  position: sticky;
  top: 0;
  height: auto;
  min-height: 70px;
  padding: 10px 0;
  box-shadow: 0 2px 15px rgb(0 0 0 / 8%);
}

#header > .container {
  max-width: 1440px;
  justify-content: space-between !important;
  gap: 16px;
}

#header .logo {
  flex-shrink: 0;
}

#header .logo img {
  width: 95px;
  max-height: 56px;
  object-fit: contain;
}

.navbar a,
.navbar a:focus {
  padding-left: 18px;
  font-size: 14px;
}

.navbar .getstarted,
.navbar .getstarted:focus {
  margin-left: 16px;
  padding: 8px 16px;
  color: #6e268c;
  border-color: #6e268c;
}

.navbar .getstarted:hover {
  background: #6e268c;
  color: #fff;
}

.mobile-nav-toggle {
  padding: 10px 14px;
  border: 1px solid #6e268c;
  border-radius: 4px;
  background: #fff;
  color: #6e268c;
  font-size: 16px;
  line-height: 1.2;
}

.navbar-mobile .mobile-nav-toggle {
  color: #6e268c;
}

#hero.hero-banner {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  position: relative;
  margin: 0;
  background: url("../img/biglav.jpg") center top / cover no-repeat;
}

.hero-logo {
  width: 50%;
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1rem;
}

.card-img-top {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.education-topic {
  display: block;
  padding: 5px 0;
}

.education .list-group {
  margin-bottom: 24px;
}

.insurance-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 32px;
}

.insurance-logo img {
  display: block;
  width: 100%;
  max-width: 160px;
  height: 100px;
  object-fit: contain;
  margin: auto;
}

.map-section iframe {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 24px auto 0;
  border-radius: 8px;
}

.back-to-top {
  color: #fff;
  font-size: 26px;
  background: #6e268c;
}

.error-page {
  max-width: 680px;
  margin: 12vh auto;
  padding: 24px;
  text-align: center;
}

@media (max-width: 1399px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }

  .navbar-mobile ul {
    display: block;
  }

  .navbar-mobile .getstarted {
    margin: 15px;
  }
}

@media (max-width: 767px) {
  .hero-logo {
    width: 65%;
    padding: 0.5rem;
  }

  .education.p-5,
  .clients.p-5,
  .map-section.p-5 {
    padding: 40px 16px !important;
  }

  .insurance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .insurance-logo:last-child {
    grid-column: 1 / -1;
  }
}

/* Keep the navigation usable even when JavaScript is disabled. */
html:not(.js-enabled) .mobile-nav-toggle {
  display: none;
}

@media (max-width: 1399px) {
  html:not(.js-enabled) #header {
    position: static;
  }

  html:not(.js-enabled) #header > .container {
    flex-wrap: wrap;
  }

  html:not(.js-enabled) .navbar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
