/* Site-specific Bootstrap 5 integration. Keep the established content widths,
   colours and navigation while using Bootstrap 5's flex grid and utilities. */
:root {
  --bs-body-font-family: "Barlow", sans-serif;
  --bs-body-line-height: 1.42857143;
}
.container,
.container-fluid {
  --bs-gutter-x: 30px;
}
.row {
  --bs-gutter-x: 30px;
}
.row > * {
  min-width: 0;
}
.container {
  width: 100%;
  max-width: none;
}
@media (min-width: 768px) {
  .container {
    max-width: 750px;
  }
}
@media (max-width: 767px) {
  .site-footer .link-widget {
    max-width: 350px;
    margin-bottom: 40px;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 970px;
  }
}
@media (min-width: 1300px) {
  .container {
    max-width: 1270px;
  }
}

a {
  text-decoration: none;
}
img,
video {
  max-width: 100%;
}
p {
  margin-bottom: 10px;
}
.contact-field label {
  display: inline-block;
  margin-bottom: 5px;
}
.contact-form .form-control,
.contact-form .form-select {
  font-size: 14px;
  border-radius: 4px;
}
.contact-form textarea.form-control {
  height: auto;
  min-height: 140px;
  resize: vertical;
}
.contact-form .form-select {
  padding-right: 36px;
}
.contact-form .form-control::placeholder {
  color: #bacbd8;
  opacity: 1;
  font-weight: 400;
}
.contact-form .form-select:invalid {
  color: #bacbd8;
}
.info-block .value,
.contact-widget {
  overflow-wrap: anywhere;
  margin-bottom: 40px;
}

/* The site menu is a custom slide-in drawer, independent of Bootstrap Collapse. */
.site-header .navigation {
  padding: 0;
}
#header .navigation.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 1;
  transform: none;
  transition: box-shadow 0.2s ease;
  background: linear-gradient(
    270deg,
    rgba(44, 29, 76, 0.98),
    rgba(0, 131, 135, 0.98)
  );
}
.site-header .navigation > .container-fluid {
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  gap: 24px;
}
.site-header .navbar-header {
  flex: 0 0 auto;
}
.site-header .navbar-brand {
  display: block;
  margin: 0;
  padding: 10px;
}
.site-header .navbar-brand img {
  display: block;
  width: 88px;
  height: auto;
}
.site-header #navbar {
  flex: 1 1 auto;
  min-width: 0;
}
.site-header #navbar .navbar-nav {
  margin: 0;
}
.site-header #navbar a {
  display: block;
}
.site-header .search-contact {
  position: static;
  flex: 0 0 auto;
  height: auto;
  line-height: normal;
}
.site-header .navigation.sticky-on .search-contact {
  position: static;
  height: auto;
}
.site-header .navigation.sticky-on .search-contact .call i {
  left: 0;
}
#header .search-contact > .contact {
  float: none;
  display: block;
}
#header .search-contact .call {
  display: grid;
  grid-template-columns: 40px auto;
  column-gap: 12px;
  align-items: center;
  float: none;
  padding: 0;
}
#header .navigation .search-contact .call i {
  position: static;
  grid-column: 1;
  grid-row: 1 / 3;
  line-height: 1;
}
#header .search-contact .call i::before {
  font-size: 36px;
}
#header .navigation .search-contact .call p {
  grid-column: 2;
  margin: 0 0 4px;
  padding: 0;
  font-size: 14px;
  line-height: 1.3;
}
#header .search-contact .call h5 {
  grid-column: 2;
  margin: 0;
  font-family: "Barlow", sans-serif;
  font-size: 20px;
  line-height: 1.25;
  white-space: nowrap;
}
#header .search-contact .call h5 a {
  color: inherit;
}
#header .search-contact .call h5 a:focus-visible {
  outline: 2px solid #f6b839;
  outline-offset: 4px;
}
.site-header .navbar-header button .visually-hidden {
  margin: -1px !important;
}
.site-header .navbar-header button:focus-visible,
.site-header #navbar a:focus-visible {
  outline: 2px solid #f6b839;
  outline-offset: 3px;
}
@media (min-width: 992px) {
  .site-header #navbar {
    display: block;
    position: static;
  }
  .site-header #navbar .navbar-nav {
    flex-direction: row;
    justify-content: center;
  }
  .site-header #navbar > ul > li > a {
    white-space: nowrap;
    padding-top: 28px;
    padding-bottom: 28px;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-header #navbar > ul > li > a {
    padding-left: 9px;
    padding-right: 9px;
    font-size: 14px;
    letter-spacing: 0.4px;
  }
  .site-header .navigation.sticky-on #navbar > ul > li > a {
    padding-left: 9px;
    padding-right: 9px;
  }
}
@media (max-width: 1399.98px) {
  .site-header .search-contact {
    display: none;
  }
}
@media (min-width: 1500px) {
  .site-header .navigation > .container-fluid {
    width: calc(100% - 96px);
    max-width: 1680px;
    margin: 0 auto;
  }
}
@media (max-width: 991.98px) {
  #header {
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    z-index: 100;
  }
  #header .navigation {
    background: linear-gradient(270deg, #2c1d4c, #008387);
  }
  .site-header .navigation {
    padding: 10px 0;
  }
  .site-header .navbar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .site-header .navbar-brand img {
    width: 64px;
  }
  #header .navigation .navbar-header .open-btn {
    position: static;
    order: 2;
    display: flex;
    flex: 0 0 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 40px;
    margin: 0;
    padding: 8px;
    border: 0;
    border-radius: 3px;
    background: #f6b839;
    transform: none;
  }
  #header .navigation .open-btn .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0;
    background: #fff;
  }
  .site-header #navbar {
    width: min(280px, calc(100vw - 48px));
    visibility: hidden;
    transition:
      right 0.3s,
      visibility 0.3s;
  }
  .site-header #navbar.slideInn {
    visibility: visible;
  }
  .site-header #navbar .navbar-nav {
    flex-direction: column;
    padding-top: 25px;
  }
  .site-header #navbar .close-navbar {
    top: 20px;
  }
  body.body-overlay {
    overflow: hidden;
  }
  .body-overlay::before {
    position: fixed;
  }
  .equipment-filter-bar,
  .equipment-grid {
    padding: 0px;
  }
}

/* Keep narrow screens readable without horizontal scrolling. */
@media (max-width: 767.98px) {
  #sustainability .sustainability-bg-img .row {
    margin-left: 0;
    margin-right: 0;
  }
  #sustainability .sustainability-bg-img .row > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  #sustainability .row-eq-height {
    row-gap: 12px;
  }
  #sustainability .equal-height-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  #sustainability .equal-height-row > [class*="col-"] {
    width: 100%;
  }
  #sustainability .sustainability-card .scard-body {
    margin: 0;
    padding: 20px;
    min-width: 0;
  }
  #sustainability .scard-body h4 {
    padding-bottom: 16px;
    margin-bottom: 12px;
  }
  #sustainability .scard-body ul {
    margin-top: 0;
  }
  #sustainability .sutainability-block h1 {
    font-size: clamp(36px, 8vw, 56px);
    margin-bottom: 20px;
  }
}
.equipment-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 28px;
}
.equipment-filter-bar .gallery-tabs {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 4px 2px;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.equipment-filter-bar .gallery-tabs::-webkit-scrollbar {
  display: none;
}
.equipment-filter-bar .gallery-tabs .btn {
  flex: 1 0 auto;
  margin: 0 !important;
  padding: 10px 8px !important;
  font-size: 14px;
  white-space: nowrap;
}
.filter-scroll-arrow {
  display: none;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 40px;
  border: 1px solid #dcebf3;
  border-radius: 5px;
  background: #f0f7fa;
  color: #092f53;
  font-size: 25px;
}
.equipment-filter-bar.is-overflowing .filter-scroll-arrow {
  display: inline-flex;
}
.filter-scroll-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
.filter-scroll-arrow:not(:disabled):hover {
  background: #092f53;
  color: #fff;
}
.equipment-filter-bar button:focus-visible {
  outline: 2px solid #08768b;
  outline-offset: 2px;
}
@media (max-width: 991.98px) {
  .equipment-filter-bar .filter-scroll-arrow {
    display: inline-flex;
  }
  .equipment-filter-bar .gallery-tabs {
    gap: 3px;
  }
  .equipment-filter-bar .gallery-tabs .btn {
    flex: 0 0 auto;
    padding: 10px 16px !important;
  }
}
.hero-slider .card-wrapper {
  width: min(330px, calc(100% - 40px));
  height: auto;
  aspect-ratio: 330 / 380;
}
.hero-slider .card-image,
.hero-slider .bg-one,
.hero-slider .bg-two {
  width: 100%;
}
.hero-slider .bg-one,
.hero-slider .bg-two {
  height: 100%;
}
.hero-slider .card-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 330 / 380;
  object-fit: cover;
}
.site-footer .row > [class*="col-"] {
  min-width: 0;
}
.site-footer .contact-widget li {
  overflow-wrap: anywhere;
}
@media (max-width: 991.98px) {
  .hero-slider.hero-style-1 {
    height: auto !important;
  }
  .hero-slider .slide-inner {
    position: relative;
    height: auto;
  }
  .hero-slider .swiper-slide {
    height: auto;
  }
  .hero-slider .hero-content {
    padding-bottom: 24px;
  }
}
@media (max-width: 575.98px) {
  .section-title {
    overflow-wrap: break-word;
  }
  .equal-height-row > [class*="col-"] {
    flex: 0 0 100%;
    width: 100%;
  }
  .sustainability-card .scard-body {
    padding: 20px;
  }
  #services .home-service-panel {
    padding: 26px 18px;
  }
  #services .home-service-list > li {
    gap: 12px;
  }
  #services .home-service-copy {
    overflow-wrap: break-word;
  }
  .site-footer .upper-footer {
    padding-bottom: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .site-header #navbar {
    transition: none;
  }
}
/* Homepage Plant Hire quote buttons. */
.quote-button {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  margin-top: auto;
  padding: 1px;
  border: 1px solid #438c98;
  border-radius: 999px;
  background: linear-gradient(
    270deg,
    rgba(44, 29, 76, 0.98),
    rgba(0, 131, 135, 0.98)
  );
  box-shadow:
    inset 0 1px 4px #ffffff40,
    0 4px 12px #123e5520;
  color: #fff;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.quote-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(44, 29, 76, 0.98),
    rgba(0, 131, 135, 0.98)
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.quote-button-label {
  flex: 1;
  padding: 0 10px;
  text-align: center;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.2px;
  line-height: 1.3;
  text-transform: uppercase;
}
.quote-button-arrow {
  display: flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid #56aebd70;
  border-radius: 50%;
  background: radial-gradient(circle at 25% 25%, #218b9c, #0d4967 75%);
  box-shadow: inset 0 1px 5px #72d4df60;
  color: #e5f5f8;
}
.quote-button-arrow .quote-arrow-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: none;
  transition: transform 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .quote-button:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow:
      inset 0 1px 4px #ffffff40,
      0 7px 18px #123e5535;
  }
  .quote-button:hover::before {
    opacity: 1;
  }
  .quote-button:hover .quote-arrow-icon {
    transform: translateX(3px);
  }
}
.quote-button:focus-visible::before {
  opacity: 1;
}
.quote-button:focus-visible {
  outline: 3px solid #08768b;
  outline-offset: 3px;
  color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .quote-button,
  .quote-button::before,
  .quote-button-arrow .quote-arrow-icon {
    transition: none;
  }
  .quote-button:hover,
  .quote-button:hover .quote-arrow-icon {
    transform: none;
  }
}
/* Equipment catalogue shares the homepage card design and retains its filters. */
.hire-catalog .home-hire-card {
  height: 100%;
}
.hire-catalog .home-hire-media {
  flex-shrink: 0;
  height: 230px;
}
.hire-catalog .home-hire-media > a {
  display: block;
  height: 100%;
}
.hire-catalog .hire-catalog-footer {
  margin-top: auto;
  padding: 0 12px 12px;
}
@media (min-width: 1300px) {
  .equipment-grid.hire-catalog {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hire-catalog .home-hire-media {
    height: 190px;
  }
}
/* One swipeable gallery per equipment listing. */
.hire-catalog .equipment-photo-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.equipment-photo-track::-webkit-scrollbar { display: none; }
.hire-catalog .equipment-photo-track > a {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
}
.equipment-photo-gallery button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #ffffff80;
  border-radius: 50%;
  background: #123247d9;
  color: #fff;
  font-size: 23px;
}
.equipment-photo-prev { left: 8px; }
.equipment-photo-next { right: 8px; }
.equipment-photo-gallery .equipment-photo-toggle {
  top: auto;
  bottom: 8px;
  left: 10px;
  transform: none;
  width: 30px;
  height: 30px;
  font-size: 12px;
}
.equipment-photo-gallery button:disabled { opacity: .4; }
.equipment-photo-count {
  position: absolute;
  bottom: 8px;
  right: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  background: #123247d9;
  color: #fff;
  font-size: 12px;
  pointer-events: none;
}
.equipment-photo-gallery :focus-visible { outline: 2px solid #f6b839; outline-offset: -3px; }
