:root {
  --primary-color: #c8a45d;
  --secondary-color: #0d1e3d;
}

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

html, body {
  overflow-x: clip;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}

.hero-section {
  position: relative;
  min-height: 60vh;
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #0E1733;
  z-index: 1;
}

.hero-section > .container {
  position: relative;
  z-index: 2;
}

.hero-gold-line {
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Custom scaling for the main hero heading */

.hero-main-title {
  font-size: 28px;
}

@media (min-width: 576px) {
  .hero-main-title {
    font-size: max(30px, 7.5vw);
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-main-title {
    font-size: max(30px, 6vw);
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-main-title {
    font-size: max(30px, 5.2vw);
  }
}

@media (min-width: 1200px) {
  .hero-main-title {
    font-size: max(30px, 4.8vw);
  }
}

/* Custom scaling for the hero text and buttons */

.hero-btn-container {
  max-width: 380px;
}

@media (min-width: 1200px) {
  .hero-btn-container {
    max-width: 500px;
  }
}

.hero-kicker-text {
  font-size: 12px;
}

@media (min-width: 1200px) {
  .hero-kicker-text {
    font-size: 15px;
  }
}

.hero-sub-text {
  font-size: 16px;
}

@media (min-width: 992px) {
  .hero-sub-text {
    font-size: 14px;
  }
}

@media (min-width: 1200px) {
  .hero-sub-text {
    font-size: 15px;
  }
}

.hero-btn-text {
  font-size: 13px;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-btn-text {
    font-size: 15px;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .hero-btn-text {
    font-size: 16px;
    padding-top: 0.95rem !important;
    padding-bottom: 0.95rem !important;
  }
}

@media (min-width: 1400px) {
  .hero-btn-text {
    font-size: 18px;
    padding-top: 1.05rem !important;
    padding-bottom: 1.05rem !important;
  }
}

/* Scaling for the Containment Photo in the Equipment section */

.containment-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
}

@media (min-width: 992px) {
  .containment-img {
    height: 180px;
  }
}

/* Custom scaling for the hero features */

.hero-feature-title {
  font-size: 13px;
}

@media (min-width: 576px) {
  .hero-feature-title {
    font-size: 1rem;
  }
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #0E1733 50%, rgba(14, 23, 51, 0.3) 100%);
  z-index: -1;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: url('../../assets/img/lmr-group-lower-mainland-remediation-header-photo.webp') center / cover no-repeat;
  z-index: -2;
}

/* Specific spacing for hero text strictly on SM views */

@media (min-width: 576px) and (max-width: 767.98px) {
  .sm-hero-subtitle {
    padding-right: 0 !important;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .sm-hero-desc {
    padding-right: 0 !important;
  }
}

/* Compress the hero text slightly on MD views */

@media (min-width: 768px) and (max-width: 991.98px) {
  .sm-hero-subtitle {
    padding-right: 3rem !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .sm-hero-desc {
    padding-right: 4rem !important;
  }
}

.section-title {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  font-weight: bold;
  color: var(--secondary-color);
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.btn-primary.custom-btn {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 0;
  padding: 12px 30px;
  text-transform: uppercase;
  font-weight: bold;
}

.btn-primary.custom-btn:hover {
  background-color: #b08e4d;
  border-color: #b08e4d;
}

.nav-link {
  font-weight: 600;
  letter-spacing: 1px;
}

/* Scale down nav links for LG screens */

@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-nav .nav-link {
    font-size: 0.75rem;
    padding-left: 0.4rem !important;
    padding-right: 0.4rem !important;
  }
}

/* Scale down nav links for XL screens */

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navbar-nav .nav-link {
    font-size: 0.85rem;
    padding-left: 0.6rem !important;
    padding-right: 0.6rem !important;
  }
}

.nav-link.active {
  color: var(--primary-color) !important;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(200, 164, 93, 0.1);
  color: var(--secondary-color);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

.process-step {
  position: relative;
  z-index: 1;
}

.process-step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid var(--primary-color);
  color: var(--secondary-color);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto -15px auto;
  position: relative;
  z-index: 2;
  font-size: 0.9rem;
}

.process-step-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  font-size: 2rem;
  position: relative;
}

.process-connector {
  position: absolute;
  top: 55px;
  left: 50%;
  width: 100%;
  height: 2px;
  border-top: 2px dashed var(--primary-color);
  z-index: 0;
}

@media (max-width: 991px) {
  .process-step {
    display: flex;
    text-align: left;
    align-items: center;
  }
}

@media (max-width: 991px) {
  .process-step-icon-wrap {
    flex-shrink: 0;
    margin-right: 1.5rem;
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 991px) {
  .process-step-icon {
    margin: 0;
  }
}

@media (max-width: 991px) {
  .process-step-content {
    padding-top: 0;
    margin-top: -15px;
  }
}

/* Ensure equal spacing for Step 2 and all items on mobile */

@media (max-width: 767px) {
  .process-step {
    align-items: stretch;
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 767px) {
  .process-step-content {
    margin-top: 15px;
  }
}

@media (max-width: 767px) {
  .process-connector {
    width: 2px;
    height: auto;
    bottom: -1.5rem;
    border-top: none;
    border-left: 2px dashed var(--primary-color);
    top: 55px;
    left: 50%;
    margin-left: -1px;
    transform: none;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .process-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    grid-auto-flow: column;
    align-items: start;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .process-row > .col-md-6 {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .process-connector {
    width: 2px;
    height: auto;
    bottom: calc(-1.5rem - 55px);
    border-top: none;
    border-left: 2px dashed var(--primary-color);
    top: 55px;
    left: 40px;
    transform: none;
  }
}

/* Don't extend the line below the very last steps (Step 3 and Step 6) */

@media (min-width: 768px) and (max-width: 991px) {
  .process-step:nth-child(3) .process-connector, .process-step:nth-child(6) .process-connector {
    display: none;
  }
}

.faq-accordion .accordion-item {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0 !important;
}

.faq-accordion .accordion-button {
  background-color: transparent;
  color: #212529;
  font-weight: 600;
  padding-left: 0;
  padding-right: 0;
  box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background-color: transparent;
  color: #c8a45d;
  box-shadow: none;
}

.faq-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23c8a45d'%3e%3cpath fill-rule='evenodd' d='M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2Z'/%3e%3c/svg%3e");
}

.faq-accordion .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23c8a45d'%3e%3cpath fill-rule='evenodd' d='M2 8a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11A.5.5 0 0 1 2 8Z'/%3e%3c/svg%3e");
  transform: none;
}

.faq-accordion .accordion-body {
  padding-left: 0;
  padding-right: 0;
  color: #6c757d;
}

/* Service Tabs Full-Width Background */

.services-section {
  overflow-x: hidden;
}

.services-tabs-row .tab-pane > section, .services-tabs-row .tab-pane > div.py-5 {
  position: relative;
}

.services-tabs-row .tab-pane > section::before, .services-tabs-row .tab-pane > div.py-5::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -50vw;
  right: -50vw;
  background-color: inherit;
  z-index: -1;
}

/* Add extra breathing room outside the expanded panels on mobile */

.services-tabs-row .tab-pane {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 992px) {
  .services-tabs-row .tab-pane {
    margin-top: 2rem;
    margin-bottom: 0;
  }
}

/* Add extra padding inside the content container for mobile views */

.services-tabs-row .tab-pane .container {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

/* Service Tabs */

.services-tabs-container {
  position: relative;
  z-index: 10;
}

@media (min-width: 992px) {
  .services-tabs-container {
    margin-top: -160px;
  }
}

.service-tab-card {
  background-color: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  color: #212529;
}

.service-tab-card:hover {
  filter: brightness(0.97);
  border-color: #c8a45d;
}

.services-tabs-row:hover .service-tab-card:not(:hover) {
  opacity: 0.6;
}

.nav-pills .nav-link.service-tab-card.active, .nav-pills .show > .nav-link.service-tab-card {
  background-color: #0E1733 !important;
  color: #fff !important;
  border-color: #0E1733;
}

#service1, #service2, #service3 {
  display: none;
}

#service1.active, #service2.active, #service3.active {
  display: block;
}

.service-tab-card.active .tab-title, .service-tab-card.active .tab-text {
  color: #fff !important;
}

.service-tab-card.active .tab-icon {
  color: #c8a45d !important;
}

.service-tab-card .tab-arrow {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-tab-card.active .tab-arrow {
  opacity: 1;
}

.service-tab-card::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 20px 20px 0;
  border-style: solid;
  border-color: #0E1733 transparent transparent transparent;
  display: none;
  z-index: 20;
}

@media (min-width: 768px) {
  .service-tab-card.active::after {
    display: block;
  }
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: transparent;
  border: 2px solid #c8a45d;
  color: #c8a45d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

/* Ensure sections scroll below the fixed header */

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

/* Make the active navigation link turn gold */

.navbar-nav .nav-link.active {
  color: #c8a45d !important;
  border-bottom: 2px solid #c8a45d;
}

/* Footer Logo Scaling */

.footer-logo {
  max-height: 140px;
}

@media (min-width: 992px) {
  .footer-logo {
    max-height: 90px;
  }
}

/* Scroll to Top Button */

#scrollToTopBtn {
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  z-index: 1000;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--secondary-color);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#scrollToTopBtn:hover {
  background-color: #b08e4d;
  border-color: #b08e4d;
  transform: translateY(-3px);
}

.trust-icon {
  font-size: 120px;
}

@media (min-width: 992px) {
  .trust-icon {
    font-size: 222px;
  }
}

