/* Supplemental styles: reproduce the handful of behaviours the original theme
   drove with jQuery + Owl Carousel (hidden without JS), plus the contact modal
   and cookie banner. Everything else is styled by the theme's own classes. */

/* Dial the root type down ~15% from the original (it was designed large). */
html {
  font-size: calc(0.58rem + 0.26vw) !important;
}

@media screen and (max-width: 767px) {
  html {
    font-size: calc(0.68rem + 0.34vw) !important;
  }
}

/* Home hero: draggable Embla carousel (replaces the Owl carousel) */
.home__slider_content {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  overflow: hidden;
}

.scs-hero-viewport {
  overflow: hidden;
  cursor: grab;
}

.scs-hero-viewport:active {
  cursor: grabbing;
}

.scs-hero {
  display: flex;
  flex-wrap: nowrap;
}

.scs-hero__slide {
  flex: 0 0 100%;
  min-width: 0;
}

/* Inner-page heroes get a sensible height for the background image */
.page-template__hero {
  min-height: 22rem;
  display: flex;
  align-items: center;
  background-size: cover;
}

/* News feed: static responsive grid (replaces the Owl carousel) */
.scs-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

@media (max-width: 991px) {
  .scs-news-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Contact modal (replaces the Bootstrap modal) */
.scs-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1140;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  background: rgba(34, 34, 34, 0.7);
}

.scs-modal {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: auto;
  padding: 2.5rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1rem 3rem rgba(41, 53, 81, 0.3);
}

.scs-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  padding: 0;
  font-size: 2rem;
  line-height: 1;
  color: #293551;
  background: none;
  border: 0;
  cursor: pointer;
}

.scs-modal__heading {
  margin-bottom: 1.5rem;
  color: #293551;
}

.scs-modal__heading span {
  color: #1ebcbe;
}

/* Cookie consent banner: osano "edgeless" floating card, bottom-left */
.scs-cookie {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  width: calc(100% - 40px);
  max-width: 525px;
  color: #fff;
  background: #1ebcbe;
  box-shadow: 0 0.4rem 1.6rem rgba(41, 53, 81, 0.35);
  opacity: 1;
  transition: opacity 0.5s ease;
}

.scs-cookie--closing {
  opacity: 0;
}

.scs-cookie__message {
  margin: 3.3rem 3.3rem 2.5rem;
  font-size: 1.7rem;
  line-height: 1.4;
}

.scs-cookie__message a {
  color: #fff;
  text-decoration: underline;
}

.scs-cookie__btn {
  display: block;
  width: 100%;
  padding: 0.6rem 1.2rem;
  font-size: 1.55rem;
  font-weight: 700;
  text-align: center;
  color: #001b59;
  background: #fff;
  border: 0;
  outline: none;
  cursor: pointer;
}

/* Ensure the CTA gradient graphic anchors to the panel */
.cta {
  position: relative;
}

/* Footer contact detail icons */
.footer__middle__col__contact_details p {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.contact_details__icon {
  flex: 0 0 auto;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.55);
}

.contact_details__icon svg {
  display: block;
}

/* Contact page map */
#map {
  width: 100%;
  height: 100%;
  min-height: 24rem;
  border: 0;
}

/* Form feedback */
.scs-form-note {
  margin-top: 0.75rem;
}

.scs-form-note--ok {
  color: #58ac5c;
}

.scs-form-note--err {
  color: #df0185;
}

/* Navigation: desktop hover dropdowns (the original used jQuery for this) */
@media (min-width: 1200px) {
  .header .nav-item.dropdown:hover > .dropdown-menu,
  .header__sticky .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
  }

  .dropdown-menu .nav-item.dropdown {
    position: relative;
  }

  .dropdown-menu .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    top: 0;
    left: 100%;
    margin-top: -1rem;
  }
}

/* Below xl the collapsed menu stacks; submenus flow inline rather than overlay */
@media (max-width: 1199px) {
  .menu .dropdown-menu,
  .header__sticky .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    box-shadow: none;
  }
}

.dropdown-toggle {
  cursor: pointer;
}

/* Sticky compact header: reveal on scroll, laid out as a clean horizontal bar */
.header__sticky {
  top: 0;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.header__sticky--visible {
  transform: translateY(0);
}

.header__sticky__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.4rem 15px;
}

.header__sticky .navbar {
  margin: 0;
}

/* Keep the header logo at its natural aspect ratio (theme sets an off-ratio height) */
.header__middle__left .navbar-brand .brand img {
  height: auto;
}

/* Match the main header logo size (the theme already sizes it large) */
.header__sticky .navbar-brand .brand img {
  width: calc(160px + 4vw);
  height: auto;
}

/* Reset the reused main-menu list so it doesn't inherit bullets / block layout */
.header__sticky .menu__content__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__sticky .menu__content__list .dropdown-menu {
  list-style: none;
}

/* Nav links mirror the main header: regular weight, dark navy, no underline */
.header__sticky .menu__content__list .nav-link,
.header__sticky .menu__content__list .dropdown-toggle {
  padding: 0;
  font-size: 1.92rem;
  font-weight: 400;
  line-height: 1.75;
  color: #181f2f;
  text-decoration: none;
}

.header__sticky .menu__content__list .dropdown-menu .dropdown-item {
  color: #181f2f;
}

/* Mobile menu open/close (toggles the Bootstrap .collapse .show) */
.navbar-toggler {
  cursor: pointer;
}
