/* UBW sector cards - used by [ubw_project_sector_cards] on the Sector page. */

.ubw-project-sector-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 0;
  justify-content: start;
  width: 100%;
}

.ubw-sector-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #E8E8E8;
  background: #fff;
}

.ubw-sector-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 384 / 220;
  overflow: hidden;
  border-bottom: 1px solid #BDBDBD;
  background:
    linear-gradient(to bottom right, transparent calc(50% - 0.5px), #BDBDBD 50%, transparent calc(50% + 0.5px)),
    linear-gradient(to top right, transparent calc(50% - 0.5px), #BDBDBD 50%, transparent calc(50% + 0.5px)),
    #E8E8E8;
}

.ubw-sector-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ubw-sector-card__placeholder-label {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  padding: 4px 8px;
  border-radius: 2px;
  background: #fff;
  color: #6B6B6B;
  font-family: "Open Sans", sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.ubw-sector-card__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding: 18px 22px 22px;
  overflow: hidden;
}

.ubw-sector-card__eyebrow {
  color: #6B6B6B;
  font-family: "SF Pro Display", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 2.16px;
  text-transform: uppercase;
}

.ubw-sector-card__title {
  margin: 0;
  color: #111;
  font-family: "SF Pro Display", sans-serif;
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.44px;
  text-transform: uppercase;
}

.ubw-sector-card__meta {
  color: #6B6B6B;
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
}

.ubw-sector-card__link {
  width: fit-content;
  color: #EB7527;
  font-family: "SF Pro Display", sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 1.04px;
  text-decoration: none;
  text-transform: uppercase;
}

.ubw-sector-card__link:hover {
  color: #D7651B;
}

@media (max-width: 1024px) {
  .ubw-project-sector-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* UBW current sector project archive - used by [ubw_current_sector_projects]. */

/* UBW Project Category breadcrumb - Yoast widget or [ubw_project_category_breadcrumb]. */

.ubw-project-category-breadcrumb,
.ubw-project-category-breadcrumb .yoast-breadcrumbs,
.ubw-project-category-breadcrumb .elementor-widget-container,
.ubw-project-category-breadcrumb a {
  color: #6B6B6B;
  font-family: "SF Pro Display", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 2.16px;
  text-transform: uppercase;
  text-decoration: none;
}

.ubw-project-category-breadcrumb a:hover {
  color: #EB7527;
}

.ubw-sector-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 0;
  width: 100%;
}

.ubw-sector-project-grid *,
.ubw-sector-project-grid *::before,
.ubw-sector-project-grid *::after {
  box-sizing: border-box;
}

.ubw-sector-project-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #E8E8E8;
  background: #fff;
}

.ubw-sector-project-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 389 / 220;
  overflow: hidden;
  border-bottom: 1px solid #BDBDBD;
  background:
    linear-gradient(to bottom right, transparent calc(50% - 0.5px), #BDBDBD 50%, transparent calc(50% + 0.5px)),
    linear-gradient(to top right, transparent calc(50% - 0.5px), #BDBDBD 50%, transparent calc(50% + 0.5px)),
    #E8E8E8;
}

.ubw-sector-project-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ubw-loop-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #E8E8E8;
}

.ubw-loop-card-image .elementor-widget-container,
.ubw-loop-card-image a,
.ubw-loop-card-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.ubw-loop-card-image img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1024px) {
  .ubw-loop-card-image {
    height: auto;
    aspect-ratio: 389 / 220;
  }
}

.ubw-sector-project-card__placeholder-label {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  padding: 4px 8px;
  border-radius: 2px;
  background: #fff;
  color: #6B6B6B;
  font-family: "Open Sans", sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.ubw-sector-project-card__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  padding: 14px 18px 18px;
  overflow: hidden;
}

.ubw-sector-project-card__meta {
  color: #6B6B6B;
  font-family: "SF Pro Display", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 2.16px;
  text-transform: uppercase;
}

.ubw-sector-project-card__title {
  margin: 0;
  color: #111;
  font-family: "SF Pro Display", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.36px;
  text-transform: uppercase;
}

.ubw-sector-project-card__title a {
  color: inherit;
  text-decoration: none;
}

.ubw-sector-project-card__title a:hover {
  color: #EB7527;
}

@media (max-width: 1024px) {
  .ubw-sector-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* UBW Contact Form 7 - contact/enquiry form styles. */

.ubw-cf7-form {
  width: 100%;
  max-width: 688px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ubw-cf7-form *,
.ubw-cf7-form *::before,
.ubw-cf7-form *::after {
  box-sizing: border-box;
}

.ubw-cf7-form p {
  margin: 0;
}

.ubw-cf7-form br {
  display: none;
}

.ubw-cf7-row {
  display: flex;
  gap: 16px;
  width: 100%;
}

.ubw-cf7-field {
  width: 100%;
}

.ubw-cf7-row .ubw-cf7-field {
  flex: 1 1 0;
  max-width: 336px;
}

.ubw-cf7-field label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #111;
  font-family: "SF Pro Display", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 2.16px;
  text-transform: uppercase;
}

.ubw-cf7-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.ubw-cf7-form .wpcf7-form-control-wrap[data-name="your-service"],
.ubw-cf7-form .wpcf7-form-control-wrap[data-name="estimated-value"] {
  position: relative;
}

.ubw-cf7-form .wpcf7-form-control-wrap[data-name="your-service"]::after,
.ubw-cf7-form .wpcf7-form-control-wrap[data-name="estimated-value"]::after {
  position: absolute;
  top: 50%;
  z-index: 1;
  color: #6B6B6B;
  content: "▾";
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  left: var(--ubw-select-arrow-left, 202px);
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.ubw-cf7-input,
.ubw-cf7-form input[type="text"],
.ubw-cf7-form input[type="email"],
.ubw-cf7-form input[type="tel"],
.ubw-cf7-form select,
.ubw-cf7-form textarea {
  display: block;
  width: 100%;
  height: 52px;
  padding: 14px 16px;
  border: 1px solid #111;
  border-radius: 2px;
  background: #fff;
  color: #111;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
  box-shadow: none;
  outline: none;
}

.ubw-cf7-input:focus,
.ubw-cf7-form input[type="text"]:focus,
.ubw-cf7-form input[type="email"]:focus,
.ubw-cf7-form input[type="tel"]:focus,
.ubw-cf7-form select:focus,
.ubw-cf7-form textarea:focus {
  border-color: #111;
  box-shadow: none;
}

.ubw-cf7-form input::placeholder,
.ubw-cf7-form textarea::placeholder {
  color: #6B6B6B;
  opacity: 1;
}

.ubw-cf7-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  color: #6B6B6B;
  background-image: none;
  padding-right: 16px;
}

.ubw-cf7-textarea,
.ubw-cf7-form textarea {
  height: 120px;
  min-height: 120px;
  resize: vertical;
}

.ubw-cf7-note {
  margin: 0;
  color: #6B6B6B;
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
}

.ubw-cf7-captcha {
  width: fit-content;
  background: #fff;
  padding: 6px 20px;
}

.ubw-cf7-captcha p {
  margin: 0;
}

.ubw-cf7-captcha .wpcf7-list-item {
  margin: 0;
}

.ubw-cf7-captcha label {
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
}

.ubw-cf7-captcha input[type="checkbox"] {
  width: 34px;
  height: 34px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #000;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  position: relative;
}

.ubw-cf7-captcha input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 5px;
  width: 10px;
  height: 18px;
  border: solid #111;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.ubw-cf7-captcha .wpcf7-list-item-label {
  color: #000;
  font-family: "SF Pro Display", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.ubw-cf7-submit-wrap {
  display: flex;
}

.ubw-cf7-submit-wrap p {
  margin: 0;
}

.ubw-cf7-submit-wrap input[type="submit"],
.ubw-cf7-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 14px 24px;
  border: 2px solid #EB7527;
  border-radius: 2px;
  background: #EB7527;
  color: #fff;
  font-family: "SF Pro Display", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 1.12px;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 1;
  -webkit-appearance: none;
  appearance: none;
}

.ubw-cf7-submit-wrap input[type="submit"]:hover,
.ubw-cf7-form .wpcf7-submit:hover {
  background: #D7651B;
  border-color: #D7651B;
}

.ubw-cf7-submit-wrap input[type="submit"]:disabled,
.ubw-cf7-form .wpcf7-submit:disabled {
  background: #EB7527;
  border-color: #EB7527;
  color: #fff;
  cursor: not-allowed;
}

.ubw-cf7-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #B8520F;
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

.ubw-cf7-form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-color: #E8E8E8;
  color: #111;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

/* UBW footer navigation - hide Elementor submenus in footer. */

.elementor-location-footer .elementor-nav-menu .sub-arrow,
footer .elementor-widget-nav-menu .elementor-nav-menu .sub-arrow {
  display: none;
}

.elementor-location-footer .elementor-nav-menu .sub-menu,
.elementor-location-footer .elementor-nav-menu .menu-item-has-children:hover > .sub-menu,
.elementor-location-footer .elementor-nav-menu .menu-item-has-children:focus-within > .sub-menu,
footer .elementor-widget-nav-menu .elementor-nav-menu .sub-menu,
footer .elementor-widget-nav-menu .elementor-nav-menu .menu-item-has-children:hover > .sub-menu,
footer .elementor-widget-nav-menu .elementor-nav-menu .menu-item-has-children:focus-within > .sub-menu {
  display: none !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 767px) {
  /* UBW mobile header - keep logo/toggle visible above the mobile menu. */
  #header-bar {
    min-height: 72px;
    overflow: visible;
  }

  #header-bar .e-con-inner,
  #header-bar .header-internal {
    min-height: 72px;
    align-items: center;
  }

  #header-bar .e-con-inner {
    width: 100%;
  }

  #header-bar .header-internal {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
  }

  #header-bar .header-internal > .elementor-element {
    min-width: 0;
  }

  #header-bar .header-internal > .elementor-element:first-child {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    width: auto;
    min-width: 132px;
  }

  #header-bar .header-internal > .elementor-element:nth-child(2),
  #header-bar .header-internal > .elementor-element:has(.elementor-widget-maxmegamenu) {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    margin-left: auto;
  }

  #header-bar .header-internal .elementor-widget-image {
    display: block;
    width: 132px;
  }

  #header-bar .header-internal .elementor-widget-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 132px;
    max-height: 48px;
    object-fit: contain;
  }

  #header-bar .elementor-widget-maxmegamenu,
  #header-bar .elementor-widget-maxmegamenu .elementor-widget-container,
  #header-bar #mega-menu-wrap-menu-1 {
    overflow: visible;
  }

  #header-bar #mega-menu-wrap-menu-1 .mega-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 48px;
  }

  #header-bar #mega-menu-wrap-menu-1 .mega-toggle-blocks-left {
    display: flex;
    align-items: center;
  }

  #header-bar #mega-menu-wrap-menu-1 .mega-toggle-animated {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
  }

  #header-bar #mega-menu-wrap-menu-1 .mega-menu-toggle.mega-menu-open + #mega-menu-menu-1 {
    margin-top: 12px;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  /* UBW sector cards - mobile layout. */
  .ubw-project-sector-cards {
    grid-template-columns: 1fr;
  }

  .ubw-sector-card {
    width: 100%;
  }

  /* UBW current sector project archive - mobile layout. */
  .ubw-sector-project-grid {
    grid-template-columns: 1fr;
  }

  /* UBW Contact Form 7 - mobile layout. */
  .ubw-cf7-row {
    flex-direction: column;
  }

  .ubw-cf7-row .ubw-cf7-field {
    max-width: 100%;
  }

  .ubw-cf7-form {
    max-width: 100%;
  }

  /* UBW footer navigation - mobile submenu dropdowns. */
  .elementor-location-footer .elementor-nav-menu--dropdown.sub-menu,
  .elementor-location-footer .elementor-nav-menu .sub-menu.elementor-nav-menu--dropdown {
    position: static;
    min-width: 100%;
    margin: 8px 0 0;
    box-shadow: none;
  }

  .elementor-location-footer .elementor-nav-menu--dropdown.sub-menu::before,
  .elementor-location-footer .elementor-nav-menu .sub-menu.elementor-nav-menu--dropdown::before {
    display: none;
  }
}


.heading-card a,.heading-card a:hover{
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 160%;
  letter-spacing: 1.04px;
  text-transform: uppercase;
}
