@import url('variables.css');

/* reset  */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  background-color: var(--neutral-200);
}


h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
}

main {
  min-height: 80vh;
}

.toast-container {
  z-index: 2000;
}

.section-header {
  font-family: var(--heading-font);
  color: var(--primary-500);
  font-size: 2.5rem;
}

.section-header span {
  color: var(--secondary-500);
  font-weight: 800;
}

.container {
  max-width: 1140px;
  margin: auto;
}

.navbar-custom {
  background-image: -moz-linear-gradient(80deg, var(--primary-500) 45%, var(--secondary-500) 100%);
  background-image: -o-linear-gradient(80deg, var(--primary-500) 45%, var(--secondary-500) 100%);
  background-image: -ms-linear-gradient(80deg, var(--primary-500) 45%, var(--secondary-500) 100%);
  background-image: -webkit-linear-gradient(80deg, var(--primary-500) 45%, var(--secondary-500) 100%);
  background-image: linear-gradient(80deg, var(--primary-500) 45%, var(--secondary-500) 100%);
  background-color: var(--primary-500);
  /* drop shadow  */
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
  height: 55px;

}

.navbar-nav .nav-link {
  font-family: var(--body-font);
  color: var(--neutral-100) !important;
  line-height: 1.9;
}

.navbar-toggler {
  /* remove border  */
  border: none !important;
  /* remove outline */
  outline: none !important;
  /* remove box shadow */
  box-shadow: none !important;

}

.menu-toggle {
  color: var(--neutral-100) !important;
  font-size: 1.5rem;
}

.nav-item {
  background-color: var(--primary-600);
  font-size: .9rem;
  /* drop shadow  */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: .25rem;
  margin: 5px 3px;
  transition: background-color 0.3s;
}

.nav-item:hover {
  background-color: var(--primary-700);
}

.dropdown-menu {
  background-color: var(--primary-100);
  border: none;
}

.dropdown-item:hover {
  background-color: var(--primary-300);
}

@media screen and (max-width: 991px) {
  .navbar-nav .nav-link {
    padding-left: 10px !important;
  }

}

@media screen and (max-width: 575px) {
  .navbar-brand {
    height: 40px;
  }
}

/* Carousel / Hero Section */
.hero {
  background-image:
    linear-gradient(150deg, var(--secondary-600) 0%, var(--primary-600) 100%);
  background-position: center;
  background-blend-mode: multiply;
  background-size: cover;
  color: var(--neutral-100);
  text-shadow: 1px 1px 12px rgba(0, 0, 0, 1.0);
  padding-top: 250px;
  /* min height:  of 100 viewable height */
  min-height: 85vh;
}

.hero-slide1 {
  background-image:
    linear-gradient(150deg, var(--primary-500) 0%, var(--secondary-500) 100%),
    url('/static/images/carousel/01.jpg');
}

.hero-slide2 {
  background-image:
    linear-gradient(150deg, var(--primary-500) 0%, var(--secondary-500) 100%),
    url('/static/images/carousel/02.jpg');
}

.hero-slide3 {
  background-image:
  linear-gradient(150deg, var(--primary-500) 0%, var(--secondary-500) 100%),
    url('/static/images/carousel/03.jpg');
}

.carousel-contrast-bg {
  background-color: rgba(24, 32, 44, 0.5); /* or use var(--neutral-900-rgb, 0, 0, 0) */
  padding: 2rem;
  border-radius: 0.5rem;
  width: 100%;
  margin-inline: auto;
  color: white;
  text-align: center;
}


.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  text-align: center;

}

.hero p {
  text-align: center;

}

/* Mobile view */
@media (max-width: 767px) {
  .hero {
    padding-top: 150px;
  }

  .hero h1 {
    font-size: 2rem;
    padding: 0 20px;
  }

  .hero p {
    padding: 0 20px;
  }
}

/* Services Section */
#services,
#pricing {
  padding-top: 35px;
  /* height of your navbar */
}

.services-section {
  padding: 20px 0;
  background-color: var(--neutral-100);
}


.service-info {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  /* Ensure opacity transition */
  display: block;
  /* Ensure it is a block element for jQuery fade */
  min-height: 225px;
  padding-top: 10px;
}

.service-info.hidden {
  opacity: 0;
  display: none;
  /* Hide the content when not visible */
}

.service-title {
  font-size: 2rem;
  color: var(--primary-500);
  font-family: va(--heading-font);
  line-height: 1.2;
}

.service-title span {
  color: var(--secondary-500);
  font-weight: 800;
}

.service-description,
.pricing-description {
  color: var(--neutral-700);
  font-size: 1.2rem;
  font-family: var(--body-font);
  line-height: 1.2;
}

.stopwatch-image {
  width: 80%;
  height: auto;
}

/* Media query for stopwatch image to make it smaller and aligned center on devices */
@media (max-width: 767px) {
  .stopwatch-image {
    width: 50%;
    margin-bottom: 20px;
  }
}

/* Improved Button Styles */
.btn-primary {
  background-color: var(--primary-500);
  color: var(--neutral-100);
  transition: background-color 0.3s, color 0.3s;
  border: none;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
  background-color: var(--primary-600) !important;
  color: var(--neutral-100) !important;
}

.btn-secondary {
  background-color: var(--secondary-500);
  color: var(--neutral-100);
  transition: background-color 0.3s, color 0.3s;
  border: none;
}

.btn-secondary:hover,
.btn-secondary:active,
.btn-secondary:focus {
  background-color: var(--secondary-600) !important;
  color: var(--neutral-100) !important;
}


.btn-tertiary {
  background-color: var(--tertiary-500);
  color: var(--neutral-700);
  transition: background-color 0.3s, color 0.3s;
  border: none;
}

.btn-tertiary:hover,
.btn-tertiary:active,
.btn-tertiary:focus {
  background-color: var(--tertiary-600) !important;
  color: var(--neutral-100) !important;
}

.btn-neutral {
  background-color: var(--neutral-100);
  color: var(--neutral-700);
  transition: background-color 0.3s, color 0.3s;
  border: none;
}

.btn-neutral:hover {
  background-color: var(--neutral-400) !important;
  color: var(--neutral-700) !important;
}

.btn-neutral:focus,
.btn-neutral:active {
  background-color: var(--neutral-100) !important;
  color: var(--neutral-700) !important;
}


.service-buttons .btn {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 15px;
  background-color: var(--primary-300);
  color: var(--neutral-700);
  border: none;
  font-family: var(--heading-font);
  font-weight: bold;
  line-height: 0.735;
}

.service-buttons .btn:hover,
.service-buttons .btn.active {
  background-color: var(--secondary-500);
  color: var(--neutral-100);
}

#service-section-learn-more-btn,
#pricing-section-learn-more-btn {
  /* align to bottom of it's div */
  margin-top: 15px;
  font-size: 1.2rem;
  padding: 10px;
  font-weight: bold;
}

/* Mobile view */
@media (max-width: 767px) {

  .services-container,
  .pricing-container {
    display: flex;
    flex-direction: column-reverse;
    text-align: center;
  }

  .service-buttons {
    margin-top: 20px;
  }
}

/* Featured Projects Section */

#featured-projects {
  background: linear-gradient(
    to bottom,
    var(--neutral-200) 0%,
    var(--neutral-200) 30%,
    var(--secondary-500) 30%,
    var(--secondary-500) 60%,
    var(--neutral-200) 60%,
    var(--neutral-200) 100%
  );
  padding-top: 5em;
  padding-bottom: 5em;
  /* align vertical center  */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.featured-projects-box {
  border-radius: 15px;
  background-image: -moz-linear-gradient( 130deg, rgb(3,23,52) 0%, rgb(67,116,186) 100%);
  background-image: -webkit-linear-gradient( 130deg, rgb(3,23,52) 0%, rgb(67,116,186) 100%);
  background-image: -ms-linear-gradient( 130deg, rgb(3,23,52) 0%, rgb(67,116,186) 100%);
  box-shadow: 0px 1px 18px 0px rgba(0, 0, 0, 0.35);
  width: 100%;
  min-height: 580px;
  padding: 2rem;
  color: var(--neutral-100);
}

.featured-section-header {
  font-family: var(--heading-font);
  color: var(--neutral-100);
}

.featured-section-header span {
  /* color: var(--secondary-100); */
  font-weight: 800;
}

.featured-section-title {
  font-size: 1.5rem;
}

.featured-projects-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;

}

.featured-projects-info {
  min-height: 330px;
}

.featured-projects-options {
  /* align right  */
  display: flex;
  justify-content: flex-end;
}


@media (max-width: 767.98px) {
  .featured-projects-box {
    text-align: center;
  }

  .featured-projects-options {
    justify-content: center;
  }

  .featured-section-title,
  .featured-projects-info p {
    text-align: center;
  }
}


/* End Featured Projects Section */


/* Pricing Section */
.pricing-section {
  padding: 50px 0;
  background-color: var(--neutral-300);
}

.footer {
  background-color: var(--neutral-700);
  background-image: -webkit-linear-gradient(0deg, var(--neutral-900) 10%, var(--neutral-700) 100%);
  background-image: -o-linear-gradient(0deg, var(--neutral-900) 10%, var(--neutral-700) 100%);
  background-image: -ms-linear-gradient(0deg, var(--neutral-900) 10%, var(--neutral-700) 100%);
  background-image: -moz-linear-gradient(0deg, var(--neutral-900) 10%, var(--neutral-700) 100%);
  background-image: linear-gradient(0deg, var(--neutral-900) 10%, var(--neutral-700) 100%);
  color: var(--neutral-100);
  padding-top: 50px;
  min-height: 250px;
}


.footer-brand {
  height: 150px;
}

.footer h4 {
  font-size: 1rem;
  font-weight: bold;
}

.footer p {
  font-size: 0.8rem;
}

.footer ul {
  list-style-type: none;
  font-size: 0.8rem;
}

.footer ul li {
  margin-bottom: 7px;
}

/* Social Icons */
.social-icon {
  /* round  */
  border-radius: 10px;
  padding: .8rem;
  min-width: 55px;
  text-align: center;
  background-color: var(--neutral-700);
  font-size: 1.5rem;
  margin-right: 10px;
  color: var(--neutral-100);
  transition: color 0.3s, background-color 0.3s;
}

.social-icon:hover {
  color: var(--tertiary-500);
  background-color: var(--primary-600);
}

.footer a {
  color: var(--primary-100);
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover,
a:focus,
a:active {
  color: var(--tertiary-500);
}

@media screen and (max-width: 991px) {
  .social-icon {
    padding: .5rem;
    min-width: 30px;
    text-align: center;
    font-size: 1rem;
    margin-right: 5px;
  }

}

@media screen and (max-width: 768px) {
  .footer {
    text-align: center;
  }

}

/* Estimator Modal Styles */
#estimatorModal .modal-dialog {
  max-width: 800px;
  height: calc(100% - 40px);
  margin: 20px auto;
}

#estimatorModal .modal-content {
  height: 100%;
}

#estimatorModal .modal-header {
  background-image: -moz-linear-gradient(80deg, var(--secondary-500) 45%, var(--primary-500) 100%);
  background-image: -webkit-linear-gradient(80deg, var(--secondary-500) 45%, var(--primary-500) 100%);
  background-image: linear-gradient(80deg, var(--secondary-500) 45%, var(--primary-500) 100%);
  color: var(--neutral-100);
  border-bottom: none;
}

#estimatorModal .modal-title {
  font-weight: bold;
}

#estimatorModal .modal-body {
  padding: 30px;
  overflow-y: auto;
}

.form-spinner {
  /* Contents vertically and horizontally centered */
  text-align: center;
  padding: 20px;
  color: var(--primary-500);
  vertical-align: middle;

}

#estimatorModal .modal-footer {
  background-image: -moz-linear-gradient(80deg, var(--primary-400) 45%, var(--neutral-400) 100%);
  background-image: -webkit-linear-gradient(80deg, var(--primary-400) 45%, var(--neutral-400) 100%);
  background-image: linear-gradient(80deg, var(--primary-400) 45%, var(--neutral-400) 100%);
  vertical-align: baseline;
  min-height: 40px;
}

#estimatorModal .form-group {
  margin-bottom: 20px;
}


#estimatorModal h3 {
  margin-top: 1rem;
  margin-bottom: .5rem;
}

#estimatorModal p {
  margin-bottom: .5rem;
}

#estimatorModal label {
  font-weight: bold;
  color: var(--neutral-700);
}

#estimatorModal .attribute-section label+div div label {
  /* indent */
  margin-left: 10px;
  font-weight: normal;
  color: var(--neutral-700);
}

#estimatorModal .form-control {
  border-radius: 5px;
  border: 1px solid var(--neutral-500);
}

#estimatorModal .btn-primary {
  background-color: var(--primary-500);
  border: none;
}

#estimatorModal .btn-secondary {
  background-color: var(--secondary-500);
  border: none;
  color: var(--neutral-100);
}

/* Progress Bar Styles */
.progress-bar-container {
  display: flex;
  margin-bottom: 0;
}


.progress-step {
  flex: 1;
  padding: 8px;
  background-color: var(--neutral-300);
  color: var(--neutral-600);
  text-align: center;
  position: relative;
  font-size: 0.9rem;
  font-weight: normal;
}

.progress-step.completed {
  background-color: var(--primary-200);
  color: var(--neutral-700);
}

.progress-step.active {
  background-color: var(--secondary-500);
  color: var(--neutral-100);
}

.progress-step+.progress-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: -1px;
  width: 2px;
  height: 100%;
  background-color: var(--neutral-400);
}

.progress-step:first-child::before {
  display: none;
}

/* Two-Column Layout Styles for Forms */
.modal-body .row {
  display: flex;
}

.modal-body .col-md-6 {
  padding: 15px;
}

/* General Form Styles */
.form-check {
  margin-bottom: 10px;
}

.form-check-input {
  margin-right: 10px;
}

/* Enhanced Checkbox Styles */
.form-check-label {
  display: flex;
  align-items: center;
}

.attribute-section input[type="checkbox"]:checked+label {
  background-color: var(--secondary-500);
  color: var(--neutral-100);
  padding: 5px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

/* Accordion Styles */
.accordion-button {
  background-color: var(--neutral-300);
  color: var(--primary-500);
  font-weight: bold;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-500);
  color: var(--neutral-100);
}

/* Validation Error Styles */
.alert.alert-danger {
  background-color: var(--red-100);
  color: var(--red-700);
  border-radius: 5px;
  margin-bottom: 20px;
}

.alert.alert-primary {
  background-color: var(--primary-100);
  color: var(--primary-700);
  border-radius: 5px;
  margin-bottom: 20px;
}


/* Scroll to Top of Modal for Errors */
.modal-body {
  overflow-y: auto;
  max-height: 80vh;
}


/* Mobile View Adjustments */
@media (max-width: 767px) {

  .progress-step {
    margin-bottom: 10px;
  }

  .modal-body .row {
    flex-direction: column;
  }
}

@media only screen and (max-width: 767px) {
  #progress-bar-container {
    display: none;
  }
}

/* Success Checkmark Animated */
.checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--secondary-500);
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #fff;
  stroke-miterlimit: 10;
  margin: 10% auto;
  box-shadow: inset 0px 0px 0px var(--secondary-500);
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale {

  0%,
  100% {
    transform: none;
  }

  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 30px var(--secondary-500);
  }
}

/* Success Checkmark Animated */

/* Page Loader */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--neutral-400);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}

#page-loader .spinner-grow::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: growPulse 2s infinite ease-in-out, spinner-grow 0.75s linear infinite;
}

#page-loader .spinner-grow {
  width: 5rem;
  height: 5rem;
  position: relative;
  /* glow  */
  box-shadow: 0 0 10px var(--tertiary-500), 0 0 20px var(--tertiary-500), 0 0 30px var(--tertiary-500);
  background-color: var(--neutral-400);
}

@keyframes growPulse {
  0% {
    background-color: var(--primary-500);
  }
  50% {
    background-color: var(--secondary-500);
  }
  100% {
    background-color: var(--primary-500);
  }
}

/* Reuse Bootstrap's growing animation if needed */
@keyframes spinner-grow {
  0% {
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
  }
}


.loader-img {
  position: absolute;
  width: 75px;
  height: 75px;
  fill: var(--neutral-300); /* Only works if SVG is set up to inherit fill */
  z-index: 1;
}

/* Image Overlay Styles */
.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(151, 162, 178, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  padding: 2rem;
}

.image-overlay-content img {
  max-width: 99%;
  max-height: 99%;
}


/* End Image Overlay Styles */