:root {
  --primary-color: #0b5079; /* A blue color for primary actions */
  --secondary-color: #00adee; /* A gray for secondary elements */
  --fourth-color: white; /* Light gray for backgrounds */
  --text-color: white; /* Dark color for body text */
  --third-color: #000001; /* A green color for success messages */
}
html,
body {
  overflow-x: hidden;
  width: 100%;
}

.bg-primary-color {
  background-color: var(--primary-color) !important;
}
nav {
  position: relative;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: none; /* Remove any shadow */
}
.loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 56, 90, 0.75);
  z-index: 2000;
}
nav::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
  opacity: 0; /* Start invisible */
  transition: opacity 0.3s ease; /* Smooth fade in/out */
}

.navbar-collapse.show,
.navbar-collapse.collapsing {
  background-color: var(--primary-color);
}
/* Show underline when scrolled */
.navbar.scrolled::after {
  opacity: 1;
}

.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='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar {
  background-color: transparent;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: none;
  transition: background-color 0.3s ease, padding 0.3s ease; /* Add explicit properties */
}
.navbar.scrolled {
  background-color: var(--primary-color);
}
.logo-nav {
  height: 80px;
  width: auto;
  transition: all 0.3s ease;
}
.navbar.scrolled .logo-nav {
  height: 50px !important; /* Smaller size when scrolled */
}
.navbar .nav-link {
  color: var(--text-color);
  font-weight: 700;
  margin: 0 6px;
  padding: 8px 12px;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 4px;
}

/* Replace underline with hover background */
.navbar .nav-link:hover {
  color: var(--secondary-color);
}

/* Fixed navbar toggler styles */
.navbar-toggler {
  border: none !important;
  padding: 0;
  width: 30px;
  height: 30px;
  position: relative;
  background: transparent !important;
  outline: none !important;
}

.navbar-toggler:focus,
.navbar-toggler:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Mobile navbar styles */
@media (max-width: 991px) {
  .navbar-collapse {
    padding: 20px;
    border-radius: 8px;

    margin-top: 15px;
  }

  .navbar .nav-link {
    margin: 8px 0;
    padding: 10px 15px;
  }

  .navbar .nav-link.btn {
    margin: 8px 0;
    display: inline-block;
  }
}
.btn-primary {
  background-color: var(--secondary-color);
  border: 2px solid transparent; /* ensure a visible border that can change color */
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--fourth-color);
}
.btn-secondary {
  background-color: var(--fourth-color);
  color: var(--secondary-color) !important;
  border: 2px solid transparent; /* ensure a visible border that can change color */
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.btn-secondary:hover {
  background-color: var(--fourth-color);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}
.navbar .nav-link.dropdown-toggle:hover,
.navbar .nav-link.dropdown-toggle:active,
.navbar .nav-link.dropdown-toggle:focus,
.navbar .nav-link.dropdown-toggle[aria-expanded="true"] {
  color: var(--text-color); /* Keep original color */
}

/* Show dropdown on hover */
@media (min-width: 992px) {
  .dropdown:hover > .dropdown-menu {
    display: block;
  }
  .dropdown:hover > .dropdown-toggle::after {
    border-top: 0;
    border-bottom: 0.3em solid;
  }
}
.dropdown-menu {
  padding: 10px;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  min-width: 220px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background-color: white;
}

.dropdown-item {
  padding: 12px 15px;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
  color: var(--third-color);
}

.dropdown-item:last-child {
  margin-bottom: 0;
}

/* Item hover state - blue background with white text, with margins */
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
  background-color: var(--primary-color);
  color: white;
}
/* Hero Section Styles */
.hero-section {
  padding-top: 30px; /* Adjust based on your navbar height */
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(/img/heroimage.png);
  background-size: cover;
  z-index: -2;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.installation-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(https://assets.cdn.filesafe.space/R24tEXxG4UHbIRsAowb2/media/66c0b91c66f58d891fd34001.jpeg);
  background-size: cover;
  z-index: -2;
}

.installation-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}
.installation-height {
  height: 85vh;
}
.installation-height .js-open-quote {
  position: relative;
  z-index: 10;
}
.quote-form {
  background-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.quote-form input,
.quote-form textarea {
  background-color: white;
  border: none;
  padding: 12px 15px;
}

.quote-form .btn-info {
  background-color: #00adee; /* Use var(--secondary-color) if it matches */
  border: none;
  transition: all 0.3s ease;
}

.quote-form .btn-info:hover {
  background-color: #0095cc;
}

/* Make the hero section responsive */
@media (max-width: 991px) {
  .hero-section {
    padding: 120px 0 60px;
  }
}
/* About Section Styles */
.about-section {
  background-color: var(--primary-color);
  overflow: hidden;
}

.about-underline {
  width: 300px;
  height: 3px;
  background-color: var(--secondary-color);
  margin-top: 10px;
}

.about-logo {
  max-width: 100%;
  filter: brightness(1.1);
}

/* Make icons slightly larger for better visibility */
.about-section .bi {
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}
/* Services Section Styles */
.services-section {
  background-color: var(--primary-color);
}

.service-badge {
  background-color: #000;
  border-radius: 4px;
}

.services-underline {
  width: 300px;
  height: 3px;
  background-color: var(--secondary-color);
  margin-top: 10px;
}

.service-card {
  height: 300px;
  transition: all 0.3s ease;
}

.service-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-overlay {
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  padding: 20px;
  transition: all 0.3s ease;
}

.service-card-link {
  display: block;
  text-decoration: none;
}

.service-card-link:hover img {
  transform: scale(1.05);
}

.service-card-link:hover .service-overlay {
  padding-bottom: 30px;
}

.service-card-link:hover .bi {
  transform: translateX(5px);
}

.bi-arrow-right-circle-fill {
  transition: transform 0.3s ease;
  color: var(--secondary-color);
}
/* Process Section Styles */
.process-section {
  background-color: var(--primary-color);
  padding: 60px 0;
}

.process-underline {
  width: 300px;
  height: 3px;
  background-color: var(--secondary-color);
  margin-top: 10px;
}

/* Process step wrapper with connector line */
.process-step {
  margin-bottom: 40px;
  position: relative;
}

/* Animated connector line between steps */
.process-step::after {
  content: "";
  position: absolute;
  top: 60px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--secondary-color) 0%,
    transparent 100%
  );
  z-index: 0;
  opacity: 0.4;
}

.process-step:last-child::after {
  display: none;
}

/* Process icons - gradient circles with shadow */
.process-icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 25px rgba(0, 173, 238, 0.25);
  position: relative;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 3px solid transparent;
}

.process-step:hover .process-icon {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 173, 238, 0.4);
  border-color: var(--secondary-color);
  background: linear-gradient(135deg, #fff 0%, #e0f4ff 100%);
}

.process-icon i {
  color: var(--primary-color);
  font-size: 2.5rem;
  transition: all 0.3s ease;
}

.process-step:hover .process-icon i {
  color: var(--secondary-color);
  transform: scale(1.1);
}

/* Step number badge */
.process-step::before {
  content: attr(data-step);
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--secondary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 173, 238, 0.5);
}

/* Modern label design */
.process-label {
  background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
  color: #fff;
  padding: 14px 28px;
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

.process-step:hover .process-label {
  background: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--primary-color) 100%
  );
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 173, 238, 0.4);
}

/* Add description text support */
.process-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-top: 12px;
  padding: 0 15px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.process-step:hover .process-description {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .process-step {
    margin-bottom: 60px;
  }

  .process-step::after {
    display: none;
  }

  .process-icon {
    width: 100px;
    height: 100px;
  }

  .process-icon i {
    font-size: 2rem;
  }

  .process-label {
    font-size: 0.9rem;
    padding: 12px 22px;
  }
}

@media (min-width: 992px) {
  .process-step::after {
    left: 60%;
  }
}

.portfolio-section {
  background-color: var(--primary-color);
}

.portfolio-badge {
  background-color: #000;
  border-radius: 4px;
}

.portfolio-underline {
  width: 300px;
  height: 3px;
  background-color: var(--secondary-color);
  margin-top: 10px;
}

.portfolio-item {
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.portfolio-item:hover {
  transform: scale(1.05);
}

.portfolio-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .portfolio-item img {
    height: 200px;
  }
}

.cta-section {
  position: relative;
  padding: 350px 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/heroimage.png") no-repeat center center;
  background-size: cover;
  z-index: 1;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* The SVG has been removed from here */
  background: rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.cta-section .container {
  /* Increased z-index to be on top of the waves */
  z-index: 4;
}

.cta-wave-top,
.cta-wave-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 3;
  line-height: 0; /* Removes extra space under the SVG */
}

.cta-wave-top {
  top: 0;
}

.cta-wave-bottom {
  bottom: 0;
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .cta-section {
    padding: 80px 0;
  }
  .cta-section h2 {
    font-size: 2rem;
  }
}

.review-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 25px 45px rgba(11, 80, 121, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 55px rgba(11, 80, 121, 0.32);
}

.review-text {
  color: #1a1a1a;
  font-size: 1rem;
  line-height: 1.6;
}

.review-author {
  color: #0b5079;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#reviewCarousel .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
}

#reviewCarousel .carousel-indicators .active {
  background-color: #00a9ff;
}

#reviewCarousel .carousel-control-prev-icon,
#reviewCarousel .carousel-control-next-icon {
  filter: invert(1);
}

.review-google-cta {
  background: rgba(0, 0, 0, 0.78);
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 2.5rem 1.5rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.faq-section {
  background-color: var(--primary-color);
  color: #fff;
}

.faq-image-wrapper img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.faq-section .accordion-button {
  background: rgba(255, 255, 255, 0.08);
  color: var(--third-color);
  font-weight: 600;
  border: none;
}

.faq-section .accordion-button:not(.collapsed) {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.faq-section .accordion-item {
  border: none;
  margin-bottom: 1rem;
}

.faq-section .accordion-body {
  background: var(--secondary-color);
  color: white;
}

.faq-service-title {
  font-size: 2rem;
  letter-spacing: 0.06em;
}

.faq-service-list li {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
#quoteModal .modal-content {
  background: transparent;
  border: none;
  position: relative;
}

#quoteModal .btn-close {
  filter: invert(1);
  position: absolute;
  top: 18px;
  right: 18px;
  margin: 0;
}

#quoteModal .btn-close {
  filter: invert(1);
}

@media (max-width: 576px) {
  #quoteModal .modal-dialog {
    margin: 1rem;
  }
}

.footer-section {
  background: var(--primary-color);
  color: #e7f5ff;
}

.footer-contact-card {
  background: #ffffff;
  border-radius: 18px;
  color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.footer-column-title {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-links li,
.footer-hours li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-links a {
  color: #e7f5ff;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-separator {
  border-color: rgba(255, 255, 255, 0.25);
}

.footer-bottom a {
  color: #e7f5ff;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.footer-bottom a:hover {
  color: var(--secondary-color);
}

@media (max-width: 768px) {
  .footer-contact-card {
    text-align: center;
  }
}

.floating-quote-cta {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1100;
}

.floating-quote-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--secondary-color);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 575.98px) {
  .floating-quote-cta {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

.sms-chat-dialog {
  margin: 0 0 2.5rem auto;
  max-width: 380px;
}

#smsModal.modal.show .sms-chat-dialog {
  transform: translateY(0);
}

.sms-chat-content {
  background-color: #fff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(7, 54, 84, 0.25);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.sms-chat-header {
  background: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.sms-chat-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.sms-chat-subtitle {
  font-size: 0.8rem;
  opacity: 0.8;
}

.sms-chat-body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.sms-chat-bubble {
  background-color: #f0f7ff;
  color: var(--primary-color);
  padding: 0.75rem 1rem;
  border-radius: 0 12px 12px 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  display: inline-block;
  max-width: 95%;
}

.sms-chat-body .form-control {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

.sms-chat-body .form-control:focus {
  background-color: #fff;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(0, 173, 238, 0.15);
}

.sms-chat-body .form-check-label {
  font-size: 0.8rem;
  color: #6c757d;
}

.sms-chat-body .form-check-input {
  margin-top: 0.2em;
}

.sms-chat-body .form-check-input:checked {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.sms-chat-body .btn-primary {
  padding: 0.65rem;
  font-size: 0.95rem;
}

@media (max-width: 575.98px) {
  #smsModal .modal-dialog {
    margin: 1rem;
  }

  .sms-chat-dialog {
    width: 100%;
    max-width: none;
  }

  .sms-chat-content {
    min-height: 520px;
    max-height: calc(100vh - 2rem);
  }

  .modal-dialog-centered.sms-chat-dialog {
    align-items: center;
  }
}

@media (max-width: 575.98px) {
  body.modal-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
  }
}

.modal-open {
  padding-right: 0 !important;
}

#smsModal .modal-dialog {
  transition: none;
}

#smsModal .form-control,
#smsModal textarea {
  font-size: 16px;
}

@media (max-width: 575.98px) {
  #smsModal.modal.show .sms-chat-dialog {
    position: fixed;
    bottom: 1rem; /* Sticks it to the bottom */

    /* --- This is the fix --- */
    left: 1rem; /* 1rem from the left edge */
    right: 1rem; /* 1rem from the right edge */

    /* --- Override the conflicting styles --- */
    width: auto; /* Let the browser calculate the width */
    margin: 0; /* Remove the bad margin */
  }
}

@media (max-width: 575.98px) {
  body.modal-open .floating-quote-cta {
    display: none;
  }
}
.contact-hero-logo {
  width: 100%;
  max-width: 200px; /* Adjust size as needed */
  height: auto;
  color: white; /* This will color the SVG paths */
  margin-top: 1rem;
}
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;

  /* Give it a minimum height so it's centered 
     even if the container was empty. */
  min-height: 250px;
}
.floating-quote-btn-hide {
  display: none;
}
/* This is the actual spinner animation.
*/
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3; /* Light grey */
  border-top: 5px solid #3498db; /* Blue */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* The rotation animation 
*/
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.grecaptcha-badge {
  visibility: hidden !important;
}
