/********** Template CSS **********/
:root {
  --primary: #a1cc34;
  --secondary: #585453;
  --light: #f9fbfa;
  --dark: #363c3c;
}

.fw-medium {
  font-weight: 600 !important;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  font-weight: 600;
  transition: 0.5s;
}

.btn.btn-primary,
.btn.btn-secondary {
  color: #ffffff;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

/*** Navbar ***/
.top-bar {
  height: 75px;
  padding: 0 4rem;
}

.nav-bar {
  position: relative;
  padding: 0 4.75rem;
  transition: 0.5s;
  z-index: 9999;
}

.nav-bar.sticky-top {
  position: sticky;
  padding: 0;
  z-index: 9999;
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
  margin-right: 30px;
  padding: 25px 0;
  color: var(--dark);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary);
}

.form-control,
.form-select {
  border-radius: 0.625rem;
  resize: none;
  min-height: 3.5rem;
}

.form-select-wrapper {
  position: relative;
}

.form-select-wrapper::after {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f107";
  pointer-events: none;
}

@media (max-width: 991.98px) {
  .nav-bar {
    padding: 0;
  }

  .navbar-light .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }

  .navbar-light .navbar-nav {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eeeeee;
  }
}

.dropdown-menu {
  padding-top: 0;
  padding-bottom: 0;
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/*** Header ***/
.header-carousel .container,
.page-header .container {
  position: relative;
  padding: 45px 0 45px 35px;
  border-left: 15px solid #ffffff;
}

.header-carousel .container::before,
.header-carousel .container::after,
.page-header .container::before,
.page-header .container::after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100px;
  height: 15px;
  background: #ffffff;
}

.header-carousel .container::after,
.page-header .container::after {
  top: 100%;
  margin-top: -15px;
}

@media (max-width: 767.98px) {
  .header-carousel .owl-carousel-item {
    position: relative;
  }

  .header-carousel .owl-carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .header-carousel .owl-carousel-item h5,
  .header-carousel .owl-carousel-item p {
    font-size: 14px !important;
    font-weight: 400 !important;
  }

  .header-carousel .owl-carousel-item h1 {
    font-size: 30px;
    font-weight: 600;
  }
}

.header-carousel .owl-nav {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
  margin: 7px 0;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: transparent;
  border: 1px solid #ffffff;
  border-radius: 45px;
  font-size: 22px;
  transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url(/var/site/storage/images/media/images/roofing-repair-houston-rose-roofing/2014-1-eng-US/roofing-repair-houston-rose-roofing.webp)
      center center no-repeat;
  background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--light);
}

/*** Facts ***/
.fact {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url(../img/bg.jpg) center center no-repeat;
  background-size: cover;
}

/*** Service ***/
.service-item-top img {
  transition: 0.5s;
  aspect-ratio: 16/10;
}

.service-item-top:hover img {
  transform: scale(1.1);
}

.service-carousel .owl-dots {
  margin-top: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.service-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin: 0 5px;
  width: 15px;
  height: 15px;
  background: var(--primary);
  border: 5px solid var(--light);
  transition: 0.5s;
}

.service-carousel .owl-dot.active {
  background: var(--light);
  border-color: var(--primary);
}

/*** Booking ***/
.video {
  position: relative;
  padding: 8rem 0 12rem 0;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url(../img/carousel-1.jpg) center center no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.video .btn-play {
  position: relative;
  box-sizing: content-box;
  display: block;
  width: 32px;
  height: 44px;
  border-radius: 50%;
  border: none;
  outline: none;
  padding: 18px 20px 18px 28px;
  margin-bottom: 4rem;
}

.video .btn-play:before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: block;
  width: 100px;
  height: 100px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulse-border 1500ms ease-out infinite;
}

.video .btn-play:after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: block;
  width: 100px;
  height: 100px;
  background: #ffffff;
  border-radius: 50%;
  transition: all 200ms;
}

.video .btn-play img {
  position: relative;
  z-index: 3;
  max-width: 100%;
  width: auto;
  height: auto;
}

.video .btn-play span {
  display: block;
  position: relative;
  z-index: 3;
  width: 0;
  height: 0;
  border-left: 32px solid var(--primary);
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
}

@keyframes pulse-border {
  0% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
    opacity: 0;
  }
}

#videoModal {
  z-index: 99999;
}

#videoModal .modal-dialog {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0 auto;
}

#videoModal .modal-body {
  position: relative;
  padding: 0px;
}

#videoModal .close {
  position: absolute;
  width: 30px;
  height: 30px;
  right: 0px;
  top: -30px;
  z-index: 999;
  font-size: 30px;
  font-weight: normal;
  color: #ffffff;
  background: #000000;
  opacity: 1;
}

.bootstrap-datetimepicker-widget.bottom {
  top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
  border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
  font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
  padding: 10px;
  border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
  background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
  border-bottom-color: var(--primary);
}

/*** Team ***/
.team-item img {
  transition: 0.5s;
  aspect-ratio: 1/1;
}

.team-item:hover img {
  transform: scale(1.1);
}

.team-item .team-text {
  height: 90px;
  overflow: hidden;
}

.team-item .team-text .bg-light,
.team-item .team-text .bg-primary {
  position: relative;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: 0.5s;
}

.team-item .team-text .bg-primary {
  flex-direction: row;
}

/* .team-item:hover .team-text .bg-light {
  margin-top: -90px;
} */

.team-item .team-text .bg-primary .btn {
  color: var(--primary);
  background: #ffffff;
}

.team-item .team-text .bg-primary .btn:hover {
  color: #ffffff;
  background: var(--secondary);
}

/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
  position: relative;
  transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
  background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
  color: #ffffff !important;
}

.testimonial-carousel .owl-item .testimonial-text::after {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  left: 50%;
  bottom: -30px;
  transform: translateX(-50%);
  border: 15px solid;
  border-color: var(--light) transparent transparent transparent;
  transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-text::after {
  border-color: var(--primary) transparent transparent transparent;
}

.testimonial-carousel .owl-nav {
  position: absolute;
  width: 350px;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  opacity: 0;
  transition: 0.5s;
  z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
  width: 300px;
  opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  font-size: 30px;
  color: var(--primary);
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  color: var(--dark);
}

/*** Footer ***/
.footer .btn.btn-social {
  margin-right: 5px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  border: 1px solid #ffffff;
  border-radius: 35px;
  transition: 0.3s;
}

.footer .btn.btn-social:hover {
  color: var(--primary);
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: #ffffff;
  font-size: 15px;
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
  display: flex;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  opacity: 0.75;
  box-shadow: none;
}

.footer .copyright {
  padding: 25px 0;
  font-size: 15px;
  border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a {
  color: var(--light);
}

/* 
 * Modifications
 */
.dropdown-menu {
  border: none;
}

.dropdown-menu li {
  position: relative;
}

.dropdown-item {
  white-space: initial;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar {
  padding: 0.25rem 1rem;
}

.navbar .nav-item .dropdown-menu.submenu {
  padding-left: 1rem;
}

.navbar-nav {
  overflow-y: auto;
  max-height: calc(100vh - 13rem);
}

.navbar-brand {
  align-self: center;
  display: inline-flex;
  align-items: center;
  white-space: initial;
  aspect-ratio: 160/46;
  transition: width 0.5s ease;
}

.sticky-top .navbar-brand {
  width: 6rem;
}

.navbar-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.top-bar {
  height: auto;
}

.btn {
  border-radius: 0.625rem;
}

.mega-dropdown .dropdown-item:has(+ .submenu)::after,
.dropdown-item:has(+ .submenu)::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
}

.navbar-toggler {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 0.375rem;
}

.navbar .mega-dropdown-menu .dropdown-menu,
.navbar .nav-item:hover .mega-dropdown-menu .dropdown-menu {
  position: static;
  opacity: 1;
  visibility: visible;
}

.dropdown-item:has(+ .mega-dropdown-menu)::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
}

.mega-dropdown .dropdown-item {
  justify-content: flex-start;
}

.mega-dropdown .dropdown-menu.submenu {
  display: none;
}

.mega-dropdown .dropdown-menu.submenu.show {
  display: block;
}

@media screen and (min-width: 992px) {
  .navbar {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
  }

  .navbar-nav {
    overflow-y: visible;
    flex: unset;
  }

  .navbar-light .navbar-nav .nav-link {
    padding: 2rem 0;
  }

  .dropdown-menu:not(.mega-dropdown-menu) {
    max-width: 16rem;
  }

  .navbar-brand {
    width: 15rem;
  }

  .dropdown-item {
    justify-content: space-between;
  }

  .navbar .nav-item .dropdown-menu.submenu {
    left: 100%;
    visibility: hidden;
    opacity: 0;
  }

  .navbar .dropdown-menu li:hover > .dropdown-menu.submenu {
    top: 0;
    visibility: visible;
    opacity: 1;
  }

  .dropdown-item:has(+ .submenu)::after {
    content: "\f105";
  }

  .mega-dropdown-menu {
    left: 0;
    right: 0;
    padding: 0.5rem 1rem;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  }

  .mega-dropdown-menu .dropdown-item {
    border-radius: 0.5rem;
    width: auto;
    margin-block: 0.125rem;
  }
}

/* ==================== 19th Apr, 2025 ======================= */
/* Header Navbar */
.navbar-brand {
  width: 10rem;
}

@media (min-width: 768px) {
  .navbar-brand {
    width: 12rem;
  }
}

@media (min-width: 1200px) {
  .navbar-brand {
    width: 15rem;
  }
}

/* Header Carousel */
.header-carousel .owl-carousel-item {
  height: 640px;
}

@media (min-width: 992px) {
  .header-carousel .owl-carousel-item {
    height: 760px;
  }
}

@media (min-width: 1200px) {
  .header-carousel .owl-carousel-item {
    height: 1080px;
  }
}

/* ==================== 19th Apr, 2025 ======================= */

/* ==================== 23th Apr, 2025 ======================= */
/* About Us */
.section-about-us ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.5rem;
}

.section-about-us ul li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 500;
  color: var(--primary);
}

.section-about-us ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--primary);
}
/* ==================== 23th Apr, 2025 ======================= */
/* ==================== 27th Apr, 2025 ======================= */
/* Shopping Cart */
.shop-basket li.selected {
  color: var(--primary);
}
/* ==================== 27th Apr, 2025 ======================= */
/* ==================== 9th May, 2025 ======================= */
.service-item ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.5rem;
}

.service-item ul li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 500;
  color: var(--primary);
}

.service-item ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--primary);
}
/* ==================== 9th May, 2025 ======================= */
/* ==================== 10th May, 2025 ======================= */
/* @media only screen and (min-width: 992px) {
  .mega-dropdown .mega-menu-nav {
    max-height: 360px;
    overflow-y: auto;
  }
} */
/* ==================== 10th May, 2025 ======================= */
/* ==================== 17th May, 2025 ======================= */
.contracts-item figure img {
  aspect-ratio: 4/3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-gallery img {
  aspect-ratio: 4/3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sitemap ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.5rem;
}

.sitemap ul li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 500;
  color: var(--primary);
}

.sitemap ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--primary);
}

section {
  overflow-x: hidden;
}

/* Print CSS::Begin */
/* print.css */

/* Ensure only relevant sections are printed */
@media print {
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  /* Hide elements marked with no-print */
  .no-print,
  .no-print * {
    display: none !important;
  }

  /* Remove unnecessary spacing and visual effects */
  .wow,
  .container,
  .shop-basket {
    all: unset;
    display: block;
    width: 100%;
  }

  h1,
  h2,
  h3,
  h4,
  h5 {
    color: #000;
    page-break-after: avoid;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  .table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #000;
  }

  .table th,
  .table td {
    border: 1px solid #000;
    padding: 6px;
    text-align: left;
  }

  .table thead {
    background-color: #f0f0f0;
    font-weight: bold;
  }

  /* Optimize card layout */
  .card,
  .card-body,
  .card-header {
    border: none;
    padding: 0;
  }

  .d-flex {
    display: flex;
    justify-content: space-between;
  }

  .mb-3,
  .mb-4,
  .py-5,
  .pt-lg-5,
  .m-lg-n2 {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Ensure full-width tables and responsive behavior in print */
  .table-responsive {
    overflow: visible !important;
  }

  /* Optional: Page break after each order */
  .shop-basket {
    page-break-after: always;
  }

  /* Ensure bookmarked message appears nicely */
  p {
    margin: 0 0 1em;
  }
}
/* Print CSS::End */
/* ==================== 17th May, 2025 ======================= */
/* ==================== 24th May, 2025 ======================= */
.break-all {
  word-break: break-all;
}
/* ==================== 24th May, 2025 ======================= */
#debug {
  overflow-x: auto;
}
/* ==================== 25th May, 2025 ======================= */
@media only screen and (min-width: 992px) {
  .mega-dropdown .mega-menu-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-bar .navbar-brand {
    display: none;
  }

  .sticky-top .navbar-brand {
    display: flex;
    width: 10rem;
  }

  .navbar-light .navbar-nav .nav-link {
    margin-right: 1.25rem;
  }
}
/* ==================== 25th May, 2025 ======================= */
