/* Custom CSS */

@media (min-width: 1200px) {
  #main-nav .container {
    max-width: 1300px;
  }
}

header .navbar .custom-logo-link img {
  max-width: 250px;
}

#main-menu {
  font-weight: 600;
  justify-content: center;
  width: 100%;
}

#main-menu .nav-link {
  text-wrap: nowrap;
}

.wp-block-buttons.mt-4 {
  margin-top: 0 !important;
}

.wp-block-buttons.has-x-large-font-size {
  font-size: unset !important;
}

.wp-block-button__link {
  background-color: var(--wp--preset--color--secondary);
  font-weight: 700;
  font-size: 1rem !important;
}

.hero-button a {
  background-color: var(--wp--preset--color--primary);
  box-shadow: 3px 3px 30px -5px rgba(255, 255, 255, 0.5);
}

/* nuke the hard-coded heights */
.hero-section {
  min-height: auto !important;
  height: auto !important;
}

#wrapper-navbar {
  height: fit-content;
  position: sticky;
  z-index: 999;
  top: 0;
  background-color: white;
  border-bottom: 1px solid lightgray;
}

/* Footer */
#wrapper-footer {
  background-color: var(--wp--preset--color--primary) !important;
  margin-top: 2em;
}

.footer-left.col-12.col-lg-4.d-flex.flex-column.align-items-center.align-items-lg-start.text-center.text-lg-start {
  align-items: center !important;
}

.social-media-container {
  display: flex;
  column-gap: 1em;
  row-gap: 1em;
}

.social-media-container img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(2%) hue-rotate(87deg) brightness(112%) contrast(101%);
  height: 36px;
  width: 36px;
}

#wrapper-footer .rounded-pill {
  margin-right: 0 !important;
}

/* Form Style */

#gform_wrapper_1,
#gform_wrapper_2,
#gform_wrapper_3 {
  background-color: #f5f5f5;
  padding: 40px;
  border-radius: 32px;
}

.gform_heading {
  text-align: center !important;
  padding-bottom: 10px !important;
}

#gform_wrapper_2 .gform_title,
#gform_wrapper_1 .gform_title,
#gform_wrapper_3 .gform_title {
  font-size: 32px;
  font-weight: bold;
}

#gform_wrapper_2 .gform_fields,
#gform_wrapper_1 .gform_fields,
#gform_wrapper_3 .gform_fields {
  row-gap: 15px !important;
}

#gform_wrapper_2 input,
#gform_wrapper_2 select,
#gform_wrapper_1 input,
#gform_wrapper_1 select,
#gform_wrapper_1 textarea,
#gform_wrapper_3 input,
#gform_wrapper_3 select,
#gform_wrapper_3 textarea {
  border: 1px solid #999999;
  min-height: 50px;
}

#gform_wrapper_2 input[type='submit'],
#gform_wrapper_1 input[type='submit'],
#gform_wrapper_3 input[type='submit'] {
  border: 1px solid var(--wp--preset--color--secondary);
  background: var(--wp--preset--color--secondary);
  color: #fff;
  font-size: 18px;
  padding: 12px 30px;
  font-weight: bold;
  min-height: initial !important;
  margin: 0 auto;
  border-radius: 32px;
}

.hero-section .wp-block-cover__image-background {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.hero-section {
  min-height: 60vh !important;
}



.service-card-wrapper {
  transition: 0.25s ease-in-out;
  margin-bottom: 2rem;

  .card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease-in-out
  }

}

.service-card-wrapper:hover {
  transform: scale(0.98);
  transition: 0.25s ease-in-out;
}

.landing-page-form-container #gform_wrapper_1 .gform_title {
  color: black;
}

.landing-page-form-container #gform_wrapper_1 .gform_required_legend {
  display: none;
}

.rounded-image img {
  border-radius: 12px !important;
}

.wp-block-image img {
  border-radius: 12px;
}

.intro-image img {
  border-radius: 12px;
}

/* Button Styles */
.wp-block-button.red-button-hover .wp-block-button__link {
  background-color: red;
  color: white;
  border-radius: 60px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.wp-block-button.red-button-hover .wp-block-button__link:hover {
  background-color: #a30000 !important;
  /* dark red */
  color: #fff !important;
}


.wp-block-button.blue-button-hover .wp-block-button__link {
  background-color: #003479;
  color: white;
  border-radius: 60px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.wp-block-button.blue-button-hover .wp-block-button__link:hover {
  background-color: #272727 !important;
  /* dark blue */
  color: #fff !important;
}



/* Header Button */
.blue-button-hover {
  background-color: transparent;
  border: 2px solid #003479;
  color: #003479 !important;
  border-radius: 60px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.blue-button-hover:hover {
  background-color: #003479 !important;
  color: #fff !important;
}

/* CTA Button Hover Effect */
.reference-btn {
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out;
  border: 1px solid transparent;
  background-color: var(--wp--preset--color--secondary);
  font-weight: 700;
}

#wrapper-footer .rounded-pill {
  font-weight: 700;
  background-color: var(--wp--preset--color--secondary);
}

.reference-btn:hover {
  background-color: #fff !important;
  color: var(--wp--preset--color--primary) !important;
  border-color: var(--wp--preset--color--primary) !important;
}



/* style issues fixed */

figure table tr,
figure table tr td {
  border: none !important;
}

.logo-carousel-block img {
  width: 100%;
}

.logo-carousel-block .slick-slider .slick-slide>div {
  justify-content: center;
}

#no-title-page-wrapper {
  padding: 0px;
}

/* Locations + Areas Served + Areas */
.area-container-with-sidebar {
  display: grid;
  grid-template-columns: 0.75fr 0.25fr;
  column-gap: 2em;
  margin: 4em auto 4em auto;
  max-width: 75%;
}

.sidebar-areas-list-container {
  background-color: #f5f5f5;
  padding: 40px;
  height: fit-content;
  margin-bottom: 1em;
  border-radius: 32px;
}

.active-area {
  text-decoration: underline !important;
}

.sidebar-areas-list {
  display: grid;
  row-gap: 0.25em;
  max-height: 200px;
  overflow-y: scroll;
  list-style-type: none;
  padding: 0;
  margin: 0;
  background: linear-gradient(rgb(245, 245, 245) 30%, rgba(255, 255, 255, 0)) center top, linear-gradient(rgba(255, 255, 255, 0), rgb(245, 245, 245) 70%) center bottom, radial-gradient(farthest-side at 50% 0, rgba(133, 133, 133, 0.2), rgba(0, 0, 0, 0)) center top, radial-gradient(farthest-side at 50% 100%, rgba(133, 133, 133, 0.2), rgba(0, 0, 0, 0)) center bottom;
  background-repeat: no-repeat;
  background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
  background-attachment: local, local, scroll, scroll;
}

.sidebar-areas-list a {
  text-decoration: none;
  font-size: 1.05rem;
}

.area-list-container h3 {
  margin-bottom: 20px;
}

ul.area-list-ul {
  margin: 0;
  padding: 0;
  display: grid;
  row-gap: 1em;
  list-style: none;
  grid-template-columns: auto auto auto auto auto;
}

.sidebar-list-title {
  font-size: 1.25rem;
  font-weight: bold;
}

li.area-list-point::before {
  content: '';
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 0.556em;
  height: 0.556em;
  border-radius: 50%;
  background-color: black;
}

li.sidebar-list-point::before {
  content: unset;
}

li.sidebar-list-point {
  padding: unset;
}

li.area-list-point {
  font-size: 1rem;
  line-height: 1.7;
  position: relative;
  padding: 0.1em 0 0.1em 1.5em;
}

.header-landing-page .img-fluid {
  max-height: 80px;
  height: auto;
  width: auto;
}

.landing-page-form {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  box-sizing: border-box;
  max-width: 600px;
  width: 100%;
  opacity: 90%;
}

/* Heading inside the form */
.landing-page-form h2,
.landing-page-form .wp-block-heading {
  line-height: 1.2;
  color: #003366;
  text-align: center;
  margin-bottom: 0.5em;
}

/* Description paragraph inside form */
.landing-page-form p {
  line-height: 1.6;
  color: #333;
  max-width: 500px;
  margin: 0 auto 1.5em;
  text-align: center;
}

/* 5) Submit button inside form */
.landing-page-form .gform_footer input[type="submit"],
.landing-page-form #gform_submit_button_4.gform_button.button {
  width: 100% !important;
  padding: 18px 0;
  background: #003366;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.landing-page-form .gform_footer input[type="submit"]:hover,
.landing-page-form #gform_submit_button_4.gform_button.button:hover {
  background: #eff7ff;
  color: #003479;
}


.secondary-navbar {
  display: none;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(87, 87, 87, 0.65);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  text-align: center;
  backdrop-filter: blur(1px);
}

.service-card:hover .card-overlay {
  opacity: 1;
}

.service-card .card-title,
.service-card a.text-primary {
  color: #fff !important;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card .card-img-top img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}


@media only screen and (max-width: 767px) {
  .secondary-navbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    padding: 0;
  }

  #wrapper-footer .rounded-pill {
    margin: auto !important
  }

  .hero-section {
    min-height: 40vh !important;
  }


  .secondary-navbar a {
    width: 100%;
    padding: 1em;
    background-color: rgba(var(--bs-primary-rgb));
    color: var(--wp--preset--color--white);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    text-wrap: nowrap;
    font-size: calc(0.65rem + .9vw) !important
  }

  .second-nav-phone {
    border-right: 1px solid var(--wp--preset--color--white);
  }

  .secondary-landing-nav-phone {
    width: 100%;
    padding: 1em;
    background-color: #003479 !important;
    color: var(--wp--preset--color--white);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    text-wrap: nowrap;
    font-size: calc(0.65rem + .9vw) !important
  }

  .nav-phone-number {
    font-size: calc(0.75rem + .9vw) !important
  }

  .nav-phone-icon {
    font-size: calc(0.85rem + .9vw) !important
  }

  .secondary-landing-page-navbar {
    display: block;
    grid-template-columns: 1fr;
    padding: 1.5rem 0rem;
    width: auto;
    margin: 0 auto;
    max-width: 180px;
  }

  .header-landing-page .navbar .navbar-brand,
  .header-landing-page .navbar .custom-logo-link {
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    display: block !important;
    text-align: center !important;
  }

  .hero-text {
    line-height: 1;
  }

  .visible-only-on-desktop {
    display: none !important;
  }

  .area-container-with-sidebar {
    grid-template-columns: 1fr;
    max-width: 95%;
    row-gap: 2em;
  }

  ul.area-list-ul {
    grid-template-columns: auto;
    row-gap: 0.5em;
  }

  .header-landing-page .img-fluid {
    padding-right: 5rem !important;
  }

  .service-card .card-overlay {
    opacity: 1;
  }

}

@media (min-width: 782px) and (max-width: 991px) {
  .landing-page-form-container {
    flex-basis: 55% !important;
  }
}