/*
Theme name: Wise 2023
Author: Leverage
Version: 1.0
Description: Custom Theme for Wise Property Management
*/

:root{
  --main-color: #41c166;
  --dark-blue: #16315a;
	--light-gray: #dadde5;
	--medium-gray: #8d8d8d;
  --title-overlay: rgba(22, 49, 90, 0.8);
}

@font-face {
    font-family: ProximaNova;
    src: url('fonts/proximanova-bold-webfont.woff');
    font-weight: bold;
  }
  
  @font-face {
    font-family: ProximaNova;
    src: url('fonts/proximanova-extrabold-webfont.woff');
    font-weight: 800;
  }

  @font-face {
    font-family: ProximaNova;
    src: url('fonts/proximanova-regular-webfont.woff');
    font-weight: normal;
  }

  html {
    margin-top: 0 !important;
  }

  body {
    font-family: ProximaNova;
    font-size: 1.5rem;
    background-color: #fff;
    padding: 0;
    margin: 0;
  }

	#content-wrapper h1 {
		font-size: 2.5rem;
		font-weight: bold;
	}

	#content-wrapper h2 {
		font-size: 2rem;
		font-weight: bold;
	}

	#content-wrapper h3 {
		font-size: 1.8rem;
		font-weight: bold;
	}

	#content-wrapper h4 {
		font-size: 1.5rem;
		font-weight: bold;
	}

	#content-wrapper h5 {
		font-size: 1.3rem;
		font-weight: bold;
	}

  #title-wrap {
    color: #fff;
    background-color: var(--dark-blue);
    padding: 3rem 0;
    background-size: cover;
    background-position: center;
  }

  #title-wrap h1 {
    font-weight: bold;
  }

	.white-title {
    font-weight: bold;
    color: #fff !important;
  }

  .white-title::before {
    display: block;
    content: '';
    width: 30px;
    height: 4px;
    background-color: #fff;
    margin: 10px 0;
  }

	/*=== Widgets ===*/
	#side-bar {
		padding-left: 4rem;
	}

	#side-bar h3 {
    color: var(--dark-blue);
    text-transform: uppercase;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    margin: 1rem 0;
  }

	#side-bar h3::before {
    display: block;
    content: '';
    width: 70px;
    height: 7px;
    background-color: var(--dark-blue);
    margin: 0 auto 1rem;
  }

	#side-bar .widget {
		margin-bottom: 3rem;
	}

	#recent-posts-2 ul {
		padding: 0;
		list-style-image: url('images/arrow-bullet-small.png');
	}

	#recent-posts-2 ul li {
		margin-bottom: 12px;
	}
/*		
	#recent-posts-2 ul li::marker{
		content: "\203A  ";
		font-weight: 800;
		font-size: 36px;
		color: var(--dark-blue);
	}
*/
	#recent-posts-2 ul li a {
		color: var(--medium-gray);
		text-decoration: none;
	}

	#recent-posts-2 ul li a:hover {
		text-decoration: underline;
	}

	.gform_widget {
		background-color: var(--light-gray);
		padding: 20px;
	}

	.gform_widget input[type="submit"] {
		background-color: var(--main-color);
		padding: 15px 18px;
		border-radius: 30px;
		border: 0;
		color: #fff;
		font-weight: bold;
	}

  #main-menu .menu-item {
    margin-left: 1.8rem;
    display: flex;
    align-items: center;
    font-weight: bold;
		font-size: 1rem;
  }

  #main-menu .menu-item a {
    color: #000;
    text-decoration: none;
  }

	#main-menu > li:nth-last-child(2){
    background-color: var(--dark-blue);
    padding: 15px 18px;
    border-radius: 30px;
  }

	#main-menu > li:nth-last-child(2) a{
    color: #fff;
  }

  #home-slider #main-menu .menu-item a,
  #main-menu > li:last-child a {
    color: #fff;
  }

  #main-menu > li:last-child{
    background-color: var(--main-color);
    padding: 15px 18px;
    border-radius: 30px;
  }

  #home-slider #main-menu > li:nth-last-child(2){
    background-color: #fff;
  }

  #home-slider #main-menu > li:nth-last-child(2) a{
    color: #000;
  }

  header svg {  fill: #043368; }

  #home-slider { position: relative; }

  #home-slider header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
  }

  #home-slider header svg {  fill: #fff; }

  #home-slider .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb%28255, 255, 255%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");;
  }

  #home-slider .navbar-toggler {
    border: 1px solid #fff8;
  }

  #home-carousel .carousel-item {
    height: 100vh;
    background-size: cover;
  }

  #home-carousel .scroll-down {
    font-size: 3rem;
    line-height: 1;
    z-index: 300;
    position: absolute;
    left: 50%;
    bottom: 10px;
    padding: 0 10px;
    transform: translateX(-50%);
    color: #fff;
    transition: color .2s ease, bottom .2s ease;
  }

  #home-carousel .scroll-down:hover,
  #home-carousel .scroll-down:focus-visible {
    bottom: 4px;
    color: var(--main-color);
  }

  #home-carousel .btn {
    background-color: var(--main-color);
    border: 2px solid var(--main-color);
    color: #fff;
    font-weight: bold;
    padding: 15px 40px;
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 1.2rem;
    margin: 1.5rem;
  }

  #home-carousel .btn.btn-contact {
    background-color: transparent;
    border-color: #fff;
  }

  #home-carousel .btn.btn-contact:hover,
  #home-carousel .btn.btn-contact:focus-visible,
  #home-carousel .btn.btn-contact:active {
    background-color: #fff;
    border-color: #fff;
    color: var(--dark-blue);
  }

  @media screen and (max-width: 576px) {
    #home-carousel .btn {
      margin: .5rem;
    }
  }

  #home-carousel h2 {
    font-weight: 800;
    font-size: 2.5rem;
    color: #fff;
  }

  #home-content,
  #sub-content {
    padding: 6rem 0;
    color: var(--medium-gray);
    font-size: 1.5rem;
    line-height: 2.8rem;
  }

  #home-content h1,
  h2.wise-heading,
	.wise-heading {
    color: var(--dark-blue);
    text-transform: uppercase;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.6rem;
  }

  #home-content h1::before, 
	.wise-heading::before {
    display: block;
    content: '';
    width: 200px;
    height: 8px;
    background-color: var(--dark-blue);
    margin: 0 auto 2rem;
  }

  .wise-block{
    color: #fff;
  }

  .wise-block{
    background-image: url('images/block_bg.png');
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;
    background-color: #2c436f;
    padding: 4rem 2.5em;
		font-size: 1.3rem;
  }

  #work-section .wise-block i {
    font-size: 4rem;
    margin-top: 2rem;
  }

  #stats-section { color: #fff; }
  #stats-section h2 { text-align: center; }
  #stats-section h2, #stats-section h3 { color: #fff; }
  #stats-section h3,
	#work-section .wise-block h3 {
    font-weight: bold;
    margin-top: 3rem;
		font-size: 2rem;
  }

	#stats-section h3::before,
  #work-section .wise-block h3::before,
  #latest-posts .wise-block h3::before {
    display: block;
    content: '';
    width: 60px;
    height: 7px;
    background-color: #fff;
    margin: 0 0 1.2rem 0;
  }

  #work-section .wise-block h3 a,
  #latest-posts .wise-block h3 a {
    color: #fff;
    text-decoration: none;
  }

  #testimonials{
    background-image: linear-gradient( to right, #ced3dd 0%, #ced3dd 50%, #b1b6c3 50%, #b1b6c3 100% );
    color: var(--dark-blue);
  }

  #testimonials .container{
    background-image: url('images/testimonials_bg.png');
    background-repeat: no-repeat;
    background-position: right top;
    padding-top: 7rem;
    padding-bottom: 7rem;
  }

  #testimonials h2 {
    font-weight: bold;
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
  }

  #testimonials h2::before{
    display: block;
    content: '';
    width: 200px;
    height: 7px;
    background-color: var(--dark-blue);
    margin: 0 auto 2rem;
  }

  #testimonials-carousel .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23111'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
  }

  #testimonials-carousel .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23111'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  }

  #testimonials-carousel .carousel-control-next, #testimonials-carousel .carousel-control-prev {
    width: 40px;
  }

  #testimonials-carousel .carousel-item {
    padding: 0 4rem;
    text-align: center;
  }

	.wise-box {
		background-image: url('images/box_bg.gif');
		background-size: cover;
		background-position: right;
		background-repeat: no-repeat;
		background-color: #2c436f;
		padding: 3rem 2.5em;
		font-size: 1.3rem;
		color: #fff;
	}

	.wise-box h2 {
		font-size: 6rem;
		font-weight: 800;
	}

  #latest-posts{
    background: linear-gradient( to right, #2d436f 0%, #2d436f 50%, #233f78 50%, #233f78 100% );
  }

  #latest-posts .wise-block {
    font-size: 1rem;
  }

  #latest-posts .wise-block h3 {
    font-weight: bold;
    margin-top: 3rem;
		font-size: 1.7rem;
  }

	/*=== ABOUT ===*/
	#main-content {
		padding: 5rem 0;
		color: var(--medium-gray);
	}

	#main-content h2 {
		color: var(--dark-blue);
		font-weight: bold;
		font-size: 2rem;
	}

	.sub-content .container {
		padding-top: 5rem;
		padding-bottom: 5rem;
	}

	.sub-content.content-bg{
    background-image: linear-gradient( to right, #ccd1dc 0%, #ccd1dc 50%, #9fa7b6 50%, #9fa7b6 100% );
    color: var(--dark-blue);
  }

	.sub-content.content-bg .container {
		background-image: url('images/section_bg.jpg');
		background-size: contain;
		background-repeat: no-repeat;
		background-position: right center;
	}

	#team {
		padding: 5rem 0;
	}

	.team-member img {
		object-fit: cover;
		width: 100%;
		object-position: center;
		height: 500px;
	}

	.team-member .member-info {
		background-color: var(--dark-blue);
		color: #fff;
		padding: 15px;
	}

	#sub-content-2 {
		background-color: var(--dark-blue);
		color: #fff;
	}

	#sub-content-2 h2 {
		font-weight: bold;
    color: #fff;
	}

	#about-cta {
		background-color: #ccd1dc;
		color: var(--dark-blue);
		text-align: center;
	}

	.cta-btn {
		background-color: var(--dark-blue);
		color: #fff;
		font-weight: bold;
		text-transform: uppercase;
		padding: 1rem 1.5rem;
		border-radius: 30px;
		margin-top: 2rem;
	}

	#awards {
		padding: 5rem 0;
	}

	#awards .col-12 {
		text-align: center;
	}

	#awards .col-12 img {
		margin: 0 5px;
    max-width: 100%;
	}
		

	/*=== RESOURCES ===*/
	#resources {
		padding: 5rem 0;
	}

	.resource-form{
		height: 0;
		padding: 2.5rem 2.5rem 60%;
	}

	.resource-form h4 a {
		color: #fff;
		text-decoration: none;
	}

	#resources-cta-1 {
		text-align: center;
		background-image: url('images/cta_bg.jpg');
		background-size: cover;
		background-position: center;
		background-color: var(--light-gray);
	}

	#resources-cta-2 {
		background-color: var(--dark-blue);
		text-align: center;
		color: #fff;
	}

	#resources-cta-2 .wise-heading {
		color: #fff;
	}

	#resources-cta-2 .wise-heading::before {
		background-color: #fff;
	}

	#resources-cta-2 .cta-btn {
		background-color: var(--main-color);
		color: #fff;
	}

	#resources-cta-3 {
		text-align: center;
		background-color: var(--light-gray);
	}

	/*=== SERVICES ===*/
	body.services #content-wrapper h2 {
		color: var(--dark-blue);
		font-weight: bold;
	}

	#services-items {
		padding: 5rem 0;
	}

	.service-item {
		height: 0;
		position: relative;
		padding-bottom: 50%;
		margin-bottom: 30px;
		overflow: hidden;
	}

	.service-item h4 a {
		color: #fff;
		text-decoration: none;
	}

	.service-desc {
		position: absolute;
		width: 100%;
		background-color: #0008;
		padding: 15px;
		left: 0;
		bottom: 0;
		transform: translateY(100%);
		transition: transform 0.2s ease;
	}

	.service-item:hover .service-desc,
	.service-item:focus-within .service-desc {
		transform: none;
	}

	/*=== FOOTER ===*/
  footer {
    padding: 3rem 0;
		font-size: 1.2rem;
  }

  .footer-logo svg {
    fill: var(--dark-blue);
  }

  footer .lvrg-logo {
    display: flex;
    align-items: center;
  }

  footer .lvrg-logo img {
    max-width: 200px;
  }

  .footer-address {
    color: var(--dark-blue);
    font-weight: bold;
    margin-top: 1.5rem;
  }

  .footer-copyright {
    text-align: center;
    margin-top: 2rem;
  }

  .footer-copyright a {
    color: var(--main-color);
  }

  .mail-to {
    color: inherit;
    text-decoration: none;
  }

  .footer-awards img { width: 100px; }

  .mail-to a:hover {
    text-decoration: underline;
  }

  /*
    Hover & focus states - Nov 2026
    Bootstrap's .btn:hover clears the background and the Elementor kit turns links green,
    so every button and menu link sets readable hover colors explicitly.
  */
  #home-carousel .btn:hover,
  #home-carousel .btn:focus-visible,
  #home-carousel .btn:active {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    color: #fff;
  }

  .btn.cta-btn:hover,
  .btn.cta-btn:focus-visible,
  .btn.cta-btn:active {
    background-color: var(--main-color);
    color: var(--dark-blue);
  }

  #resources-cta-2 .btn.cta-btn:hover,
  #resources-cta-2 .btn.cta-btn:focus-visible,
  #resources-cta-2 .btn.cta-btn:active {
    background-color: #fff;
    color: var(--dark-blue);
  }

  #main-menu .menu-item a:hover,
  #main-menu .menu-item a:focus-visible {
    color: #000;
  }

  #home-slider #main-menu .menu-item a:hover,
  #home-slider #main-menu .menu-item a:focus-visible {
    color: #fff;
  }

  #main-menu > li:nth-last-child(n+3) > a:hover,
  #main-menu > li:nth-last-child(n+3) > a:focus-visible {
    text-decoration: underline;
    text-decoration-color: var(--main-color);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }

  @media screen and (min-width: 993px) {
    #main-menu > li:nth-last-child(-n+2) {
      transition: background-color .2s ease;
    }

    #main-menu > li:nth-last-child(2):hover,
    #main-menu > li:nth-last-child(2):focus-within,
    #home-slider #main-menu > li:nth-last-child(2):hover,
    #home-slider #main-menu > li:nth-last-child(2):focus-within {
      background-color: var(--main-color);
    }

    #main-menu > li:nth-last-child(2):hover a,
    #main-menu > li:nth-last-child(2):focus-within a,
    #home-slider #main-menu > li:nth-last-child(2):hover a,
    #home-slider #main-menu > li:nth-last-child(2):focus-within a {
      color: var(--dark-blue);
    }

    #main-menu > li:last-child:hover,
    #main-menu > li:last-child:focus-within {
      background-color: var(--dark-blue);
    }

    #main-menu > li:last-child:hover a,
    #main-menu > li:last-child:focus-within a {
      color: #fff;
    }

    #home-slider #main-menu > li:last-child:hover,
    #home-slider #main-menu > li:last-child:focus-within {
      background-color: #fff;
    }

    #home-slider #main-menu > li:last-child:hover a,
    #home-slider #main-menu > li:last-child:focus-within a {
      color: var(--dark-blue);
    }
  }

  @media screen and (max-width: 992px){
    /*
    header .col-12,
    header .container-fluid {
      padding-left: 0;
      padding-right: 0;
    }
    */
		#side-bar {
			padding-left: calc(var(--bs-gutter-x) * .5);
		}

    ul#main-menu { background-color: var(--dark-blue); }

    #main-menu .menu-item {
      margin-left: 0;
      justify-content: center;
      padding: 8px 0;
    }

		#home-slider #main-menu > li:nth-last-child(2),
    #main-menu > li:nth-last-child(2),
    #main-menu > li:last-child {
      background-color: transparent;
      padding: 8px 0;
      border-radius: 0;
    }

		#home-slider #main-menu > li:nth-last-child(2) a,
    #main-menu > li:nth-last-child(2) a {
      color: #fff;
    }

		#main-menu .menu-item a {
			color: #fff;
		}

    #main-menu .menu-item a:hover,
    #main-menu .menu-item a:focus-visible {
      color: #fff;
      text-decoration: underline;
      text-decoration-color: var(--main-color);
      text-decoration-thickness: 2px;
      text-underline-offset: 6px;
    }

    #testimonials{
      background-color: #ced3dd;
      background-image: none;
    }

    #testimonials .container{
      background-image: none;
    }

    #testimonials-carousel .carousel-item {
      padding: 0 2rem;
    }

    footer .lvrg-logo {
      justify-content: center;
      padding-top: 3rem;
    }
  }

/* Style Additions - June 2026 */

.fade-in {
  opacity: 0;
  visibility: hidden;
  transition-property: opacity, visibility;
  transition-duration: .4s;
  transition-timing-function: linear;
}

.fade-in.is-animated {
  opacity: 1;
  visibility: visible;
}

.image-zoom-in img,
.image-zoom-in video {
  transform: scale(1.1);
  transition-property: transform;
  transition-duration: .4s;
  transition-timing-function: linear;
}

.image-zoom-in.is-animated img,
.image-zoom-in.is-animated video {
  transform: scale(1);
}

.fade-in-up {
  opacity: 0;
  visibility: hidden;
}

.fade-in-up.is-animated {
  visibility: visible;
  opacity: 1;
  animation-name: fadeInUp;
  animation-duration: 1s;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 30%, 0);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}
  
/* Sticky header - Nov 2026 */

html {
  scroll-padding-top: 80px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: #fff;
  transition: background-color .3s ease, box-shadow .3s ease, margin-bottom .3s ease;
}

#home-slider .site-header {
  position: fixed;
  background-color: transparent;
}

.site-header .navbar-brand svg {
  display: block;
  width: auto;
  height: 77px;
  transition: height .3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 18px rgba(22, 49, 90, .15);
}

/* The logo shrinks by 22px, the margin keeps the page from jumping on inner pages. */
.site-header.is-scrolled .navbar-brand svg {
  height: 55px;
}

body:not(.home) .site-header.is-scrolled {
  margin-bottom: 22px;
}

#home-slider .site-header.is-scrolled {
  background-color: var(--dark-blue);
}

body.admin-bar .site-header,
body.admin-bar #home-slider .site-header {
  top: 32px;
}

@media screen and (max-width: 992px) {
  .site-header .navbar-collapse {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header,
  body.admin-bar #home-slider .site-header {
    top: 46px;
  }
}

@media screen and (max-width: 600px) {
  body.admin-bar .site-header,
  body.admin-bar #home-slider .site-header {
    top: 0;
  }

  /* Here the admin bar scrolls away, so the fixed home header only has to clear it at the very top. */
  body.admin-bar #home-slider .site-header:not(.is-scrolled) {
    top: 46px;
  }
}

/* Latest posts carousel - Nov 2026 */

.latest-posts-carousel {
  display: flow-root;
  position: relative;
}

/* The top padding leaves room for the hover lift, the negative margin keeps the layout. */
#latest-posts .latest-posts-track {
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-top: 12px;
  margin-top: -12px;
}

.latest-posts-track::-webkit-scrollbar {
  display: none;
}

.latest-posts-track:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

#latest-posts .latest-posts-track > .wise-block {
  flex: 0 0 100%;
  max-width: 100%;
  padding-left: 3.5rem;
  padding-right: 3.5rem;
  scroll-snap-align: start;
}

@media screen and (min-width: 768px) {
  #latest-posts .latest-posts-track > .wise-block {
    flex-basis: 50%;
    max-width: 50%;
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

.latest-posts-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #fff;
  color: var(--dark-blue);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: background-color .2s ease, opacity .2s ease, visibility .2s ease;
}

.latest-posts-prev { left: 0; }
.latest-posts-next { right: 0; }

.latest-posts-nav:hover,
.latest-posts-nav:focus-visible {
  background-color: var(--main-color);
}

.latest-posts-nav:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.latest-posts-nav[disabled] {
  opacity: 0;
  visibility: hidden;
}

.latest-posts-carousel.is-static .latest-posts-nav {
  display: none;
}

@media screen and (max-width: 576px) {
  .latest-posts-nav {
    width: 36px;
    height: 36px;
    margin-top: -18px;
  }
}

/* Pop-out cards - Nov 2026 */

.pop-out {
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}

.pop-out:hover,
.pop-out:focus-within {
  z-index: 1;
  transform: translateY(-8px);
  box-shadow: 0 16px 30px rgba(22, 49, 90, .35);
}

/* Home work tiles fade up one after another. */
#work-section .list-box.fade-in-up.is-animated {
  animation-fill-mode: backwards;
}

#work-section .wise-block:nth-child(4n+2) .list-box { animation-delay: .12s; }
#work-section .wise-block:nth-child(4n+3) .list-box { animation-delay: .24s; }
#work-section .wise-block:nth-child(4n+4) .list-box { animation-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  .pop-out:hover,
  .pop-out:focus-within {
    transform: none;
  }

  .fade-in-up.is-animated {
    animation: none;
  }
}

/* Site fixes - Nov 2026 */

/* Menu: stays on one line and inside the page on laptop screens. */
@media screen and (min-width: 993px) {
  #main-menu .menu-item a {
    white-space: nowrap;
  }
}

@media screen and (min-width: 1200px) and (max-width: 1399.98px) {
  #main-menu .menu-item {
    margin-left: 1.1rem;
  }
}

@media screen and (min-width: 993px) and (max-width: 1199.98px) {
  #main-menu .menu-item {
    margin-left: .7rem;
    font-size: .875rem;
  }

  #main-menu > li:nth-last-child(-n+2) {
    padding: 10px 14px;
  }
}

/* The reCAPTCHA badge sits above the accessibility button instead of under it. */
.grecaptcha-badge {
  bottom: 70px !important;
}

/* Links inside white text (the dark cards on Associations) stay readable. */
.elementor-widget-text-editor span[style*="color: #ffffff"]:not([style*="background"]) a {
  color: inherit;
  text-decoration: underline;
}

.elementor-widget-text-editor span[style*="color: #ffffff"]:not([style*="background"]) a:hover,
.elementor-widget-text-editor span[style*="color: #ffffff"]:not([style*="background"]) a:focus-visible {
  color: var(--main-color);
}

/* H1s inside the content are H2s now (the page title is the H1). This keeps their look. */
#content-wrapper h2.title-heading {
  font-size: 2.5rem;
  color: inherit;
  text-transform: none;
  line-height: 1.2;
  letter-spacing: normal;
}

/* Same for the About name tiles. */
#content-wrapper .pop-out h2.elementor-heading-title {
  font-size: 2.5rem;
  color: #fff;
  letter-spacing: normal;
}

/* Phones and forms polish - Nov 2026 */

/* Phones (767px and below): smaller logo, headings and intro text. */
@media screen and (max-width: 767.98px) {
  .site-header .navbar-brand svg {
    height: 56px;
  }

  .site-header.is-scrolled .navbar-brand svg {
    height: 46px;
  }

  /* The logo shrinks by 10px here, not 22px. */
  body:not(.home) .site-header.is-scrolled {
    margin-bottom: 10px;
  }

  #title-wrap {
    padding: 2rem 0;
  }

  #title-wrap h1 {
    font-size: 1.6rem;
  }

  #home-carousel h2 {
    font-size: 1.75rem;
  }

  #home-carousel .btn {
    padding: 12px 32px;
    font-size: 1rem;
  }

  #home-content,
  #sub-content {
    padding: 4rem 0;
    font-size: 1.15rem;
    line-height: 2rem;
  }

  #home-content h1,
  h2.wise-heading,
  .wise-heading {
    font-size: 1.75rem;
  }

  #home-content h1::before,
  .wise-heading::before {
    width: 120px;
    height: 6px;
    margin-bottom: 1.5rem;
  }

  #content-wrapper h1,
  #content-wrapper h2.title-heading,
  #content-wrapper .pop-out h2.elementor-heading-title {
    font-size: 1.75rem;
  }

  #content-wrapper h2,
  #main-content h2 {
    font-size: 1.5rem;
  }

  #content-wrapper h3 {
    font-size: 1.3rem;
  }

  #content-wrapper h4 {
    font-size: 1.15rem;
  }

  #content-wrapper h5 {
    font-size: 1.05rem;
  }

  #main-content {
    padding: 3rem 0;
  }

  #testimonials .container {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  #testimonials h2 {
    font-size: 1.75rem;
  }

  .wise-box h2 {
    font-size: 4rem;
  }

  #stats-section h3,
  #work-section .wise-block h3 {
    margin-top: 2rem;
    font-size: 1.5rem;
  }

  #latest-posts .wise-block h3 {
    margin-top: 1rem;
    font-size: 1.35rem;
  }

  .sub-content .container {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

/* No card lift on phones and touch screens: nothing hovers there, the card would just jump. */
@media screen and (max-width: 767.98px), (hover: none) {
  .pop-out:hover,
  .pop-out:focus-within {
    z-index: auto;
    transform: none;
    box-shadow: none;
  }
}

/*
Forms (Gravity Forms, old and new markup).
":is(#main-content, body)" lifts these rules above the plugin's own, which chain up to seven :not().
*/
:is(#main-content, body) .gform_wrapper {
  --wise-field-border: #b9c0cf;
  --wise-field-hint: #6a7283;
  --wise-error: #c02b0a;
  margin-top: 0;
  margin-bottom: 0;
}

/* Fields */
:is(#main-content, body) .gform_wrapper input[type="text"],
:is(#main-content, body) .gform_wrapper input[type="email"],
:is(#main-content, body) .gform_wrapper input[type="tel"],
:is(#main-content, body) .gform_wrapper input[type="url"],
:is(#main-content, body) .gform_wrapper input[type="number"],
:is(#main-content, body) .gform_wrapper input[type="password"],
:is(#main-content, body) .gform_wrapper select,
:is(#main-content, body) .gform_wrapper textarea {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--wise-field-border);
  border-radius: 6px;
  background-color: #fff;
  box-shadow: none;
  color: var(--dark-blue);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease;
}

:is(#main-content, body) .gform_wrapper textarea {
  min-height: 150px;
  resize: vertical;
}

:is(#main-content, body) .gform_wrapper input::placeholder,
:is(#main-content, body) .gform_wrapper textarea::placeholder {
  color: var(--wise-field-hint);
  opacity: 1;
}

:is(#main-content, body) .gform_wrapper input[type="text"]:focus,
:is(#main-content, body) .gform_wrapper input[type="email"]:focus,
:is(#main-content, body) .gform_wrapper input[type="tel"]:focus,
:is(#main-content, body) .gform_wrapper input[type="url"]:focus,
:is(#main-content, body) .gform_wrapper input[type="number"]:focus,
:is(#main-content, body) .gform_wrapper input[type="password"]:focus,
:is(#main-content, body) .gform_wrapper select:focus,
:is(#main-content, body) .gform_wrapper textarea:focus {
  border-color: var(--dark-blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(65, 193, 102, .35);
}

/* Field spacing in the old (list) markup, to match the new one. */
:is(#main-content, body) .gform_legacy_markup_wrapper ul.gform_fields li.gfield {
  width: 100%;
  max-width: 100%;
  margin: 16px 0 0;
  padding-right: 0;
}

:is(#main-content, body) .gform_legacy_markup_wrapper .ginput_container,
:is(#main-content, body) .gform_legacy_markup_wrapper li.gfield.gfield_error .ginput_container,
:is(#main-content, body) .gform_legacy_markup_wrapper li.gfield.gfield_error .gfield_label {
  margin-top: 0;
  padding-right: 0;
}

/* Labels, hints and section titles */
:is(#main-content, body) .gform_wrapper .gfield_label {
  margin: 0 0 6px;
  color: var(--dark-blue);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

:is(#main-content, body) .gform_wrapper .gfield_required {
  padding-left: 3px;
  color: var(--wise-error);
  font-size: inherit;
}

:is(#main-content, body) .gform_wrapper .gform_required_legend,
:is(#main-content, body) .gform_wrapper .gfield_description:not(.validation_message),
:is(#main-content, body) .gform_wrapper .ginput_complex label,
:is(#main-content, body) .gform_wrapper .gform-field-label--type-sub {
  margin: 0;
  padding-top: 4px;
  color: var(--wise-field-hint);
  font-size: .875rem;
  font-weight: normal;
  line-height: 1.4;
}

:is(#main-content, body) .gform_wrapper .gsection {
  margin-top: 24px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--light-gray);
}

:is(#main-content, body) .gform_wrapper .gsection:first-child,
:is(#main-content, body) .gform_wrapper .gform_validation_container + .gsection {
  margin-top: 0;
}

:is(#main-content, body) .gform_wrapper .gsection_title {
  margin: 0;
  color: var(--dark-blue);
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1.3;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* Date, choices and file upload */
:is(#main-content, body) .gform_wrapper .ginput_container_date {
  display: flex;
  align-items: center;
  gap: 10px;
}

:is(#main-content, body) .gform_wrapper .ginput_container_date input {
  max-width: 240px;
}

:is(#main-content, body) .gform_wrapper .gfield_radio,
:is(#main-content, body) .gform_wrapper .gfield_checkbox {
  margin: 0;
  padding: 0;
}

:is(#main-content, body) .gform_wrapper .gchoice,
:is(#main-content, body) .gform_wrapper .gfield_radio li,
:is(#main-content, body) .gform_wrapper .gfield_checkbox li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
}

:is(#main-content, body) .gform_wrapper input[type="radio"],
:is(#main-content, body) .gform_wrapper input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--dark-blue);
}

:is(#main-content, body) .gform_wrapper .gchoice label,
:is(#main-content, body) .gform_wrapper .gfield_radio li label,
:is(#main-content, body) .gform_wrapper .gfield_checkbox li label {
  margin: 0;
  color: var(--dark-blue);
  font-size: 1rem;
}

:is(#main-content, body) .gform_wrapper input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px dashed var(--wise-field-border);
  border-radius: 6px;
  background-color: #f6f7fa;
  color: var(--dark-blue);
  font-family: inherit;
  font-size: .95rem;
}

:is(#main-content, body) .gform_wrapper input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 9px 18px;
  border: 0;
  border-radius: 30px;
  background-color: var(--dark-blue);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Buttons: the site's pill button */
:is(#main-content, body) .gform_wrapper .gform_footer,
:is(#main-content, body) .gform_wrapper .gform_page_footer {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

:is(#main-content, body) .gform_wrapper input[type="submit"],
:is(#main-content, body) .gform_wrapper input[type="button"],
:is(#main-content, body) .gform_wrapper button.gform_button {
  width: auto;
  min-height: 0;
  margin: 0 8px 0 0;
  padding: 15px 34px;
  border: 2px solid var(--main-color);
  border-radius: 30px;
  background-color: var(--main-color);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

:is(#main-content, body) .gform_wrapper input[type="submit"]:hover,
:is(#main-content, body) .gform_wrapper input[type="submit"]:focus-visible,
:is(#main-content, body) .gform_wrapper input[type="button"]:hover,
:is(#main-content, body) .gform_wrapper input[type="button"]:focus-visible,
:is(#main-content, body) .gform_wrapper button.gform_button:hover,
:is(#main-content, body) .gform_wrapper button.gform_button:focus-visible {
  border-color: var(--dark-blue);
  background-color: var(--dark-blue);
  color: #fff;
}

:is(#main-content, body) .gform_wrapper input.gform_previous_button {
  border-color: var(--dark-blue);
  background-color: transparent;
  color: var(--dark-blue);
}

/* The sidebar form keeps its full-width button. */
:is(#main-content, body) .gform_widget .gform_wrapper input[type="submit"] {
  width: 100%;
  margin: 0;
}

/* Errors: one calm box at the top, a short red line under each field. */
:is(#main-content, body) .gform_wrapper .gform_validation_errors,
:is(#main-content, body) .gform_wrapper div.validation_error {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid #e7b9af;
  border-left: 4px solid var(--wise-error);
  border-radius: 6px;
  background-color: #fdf4f2;
  box-shadow: none;
  color: var(--wise-error);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

/* The red bar already marks the box, so the plugin's icons are not needed. */
:is(#main-content, body) .gform_wrapper .gform_validation_errors .gform-icon {
  display: none;
}

:is(#main-content, body) .gform_wrapper .gform_validation_errors > h2::before {
  content: none;
}

:is(#main-content, body) .gform_wrapper .gform_validation_errors > h2 {
  margin: 0;
  color: var(--wise-error);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
}

:is(#main-content, body) .gform_wrapper .gform_validation_errors > ol {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: .9rem;
  font-weight: normal;
}

:is(#main-content, body) .gform_wrapper .gform_validation_errors > ol a {
  color: var(--wise-error);
}

:is(#main-content, body) .gform_wrapper .gfield_error,
:is(#main-content, body) .gform_legacy_markup_wrapper li.gfield.gfield_error {
  margin-bottom: 0 !important; /* the plugin sets this with !important */
  padding: 0;
  border: 0;
  background: none;
}

:is(#main-content, body) .gform_wrapper .gfield_error input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
:is(#main-content, body) .gform_wrapper .gfield_error select,
:is(#main-content, body) .gform_wrapper .gfield_error textarea {
  border-color: var(--wise-error);
}

:is(#main-content, body) .gform_wrapper .gfield_error .gfield_label,
:is(#main-content, body) .gform_wrapper .gfield_error legend.gfield_label {
  color: var(--dark-blue);
}

:is(#main-content, body) .gform_wrapper .validation_message,
:is(#main-content, body) .gform_wrapper .gfield_validation_message {
  margin: 0;
  padding: 6px 0 0;
  border: 0;
  background: none;
  color: var(--wise-error);
  font-size: .875rem;
  font-weight: normal;
  line-height: 1.4;
}

:is(#main-content, body) .gform_wrapper .validation_message--hidden-on-empty:empty {
  display: none;
}

/* Thank-you message */
:is(#main-content, body) .gform_confirmation_message {
  padding: 16px 18px;
  border-left: 4px solid var(--main-color);
  border-radius: 6px;
  background-color: #eef9f1;
  color: var(--dark-blue);
  font-size: 1rem;
  line-height: 1.5;
}

/* Long forms on full-width pages stay a comfortable width. */
#content-wrapper.col-md-12 .gform_wrapper {
  max-width: 800px;
}

/* Buttons placed in the page content follow the site's pill button, with a readable hover. */
:is(#content-wrapper, #home-content) .elementor-button {
  padding: 15px 34px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

:is(#content-wrapper, #home-content) .elementor-button.elementor-size-sm {
  padding: 12px 26px;
  font-size: .875rem;
}

:is(#content-wrapper, #home-content) .elementor-button:hover,
:is(#content-wrapper, #home-content) .elementor-button:focus-visible {
  background-color: #fff;
  box-shadow: inset 0 0 0 2px var(--dark-blue);
  color: var(--dark-blue);
}

/* Resources: the text on the light call-to-action bands matches the other pages. */
#resources-cta-1,
#resources-cta-3 {
  color: var(--dark-blue);
}

@media screen and (max-width: 767.98px) {
  /* Room between the page content and the sidebar once they stack. */
  #side-bar {
    margin-top: 3rem;
  }
}

/* Sidebar form on narrower desktops: more room, and the button label wraps instead of being cut. */
@media screen and (min-width: 768px) and (max-width: 1199.98px) {
  #side-bar {
    padding-left: 1.5rem;
  }
}

:is(#main-content, body) .gform_widget .gform_wrapper input[type="submit"] {
  padding: 14px 16px;
  white-space: normal;
}

/* A name field with a single box fills the row like the other fields. */
:is(#main-content, body) .gform_wrapper .gf_name_has_1 {
  margin-right: 0;
  margin-left: 0;
}

:is(#main-content, body) .gform_wrapper .gf_name_has_1 > span {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  padding-right: 0;
  padding-left: 0;
}

/*
  Footer awards and home hero - Nov 2026
  Five award logos: one row from 992px up, three per row (3 + 2) below.
  The hero photo gets the brand blue overlay (it used to be built into the image).
*/
:root {
  --hero-overlay: rgba(18, 40, 135, 0.55);
}

#home-carousel .carousel-item {
  background-position: center;
}

footer .footer-awards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 8px;
}

footer .footer-awards img {
  width: 100px;
  height: auto;
}

@media screen and (min-width: 992px) and (max-width: 1199.98px) {
  footer .footer-awards {
    column-gap: 6px;
  }

  footer .footer-awards img {
    width: 84px;
  }
}

/* Phones: cap the row at three logos so five always wrap 3 + 2, and shrink them on narrow screens. */
@media screen and (max-width: 767.98px) {
  footer .footer-awards {
    max-width: 344px;
    margin-left: auto;
    margin-right: auto;
  }

  footer .footer-awards img {
    width: calc((100% - 16px) / 3);
    max-width: 100px;
  }
}

/* Tablets: stack the footer columns like on phones, so the email address no longer runs into the award logos. */
@media screen and (min-width: 768px) and (max-width: 991.98px) {
  footer .row > .col-md-3,
  footer .row > .col-md-6 {
    width: 100%;
  }
}

/* Small desktops: the footer column is narrower than the email address, so set it a little smaller. */
@media screen and (min-width: 992px) and (max-width: 1199.98px) {
  footer .mail-to {
    font-size: 0.85em;
  }
}
