/* ==========================================================================
   Design Enhancements — CapitalXB
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Scroll Progress Indicator
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #cfff45, #21b16c);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   2. Sticky Mobile CTA Bar
   -------------------------------------------------------------------------- */
.mobile-cta-bar {
  display: none;
}

@media (max-width: 991px) {
  .theme-main-menu .right-widget li:has(.login-btn-one) {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: #19352d;
    padding: 12px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    align-items: center;
    justify-content: space-between;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }
  .mobile-cta-bar.visible {
    transform: translateY(0);
  }
  .mobile-cta-bar .cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
  }
  .mobile-cta-bar .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #cfff45;
    color: #19352d;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 40px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
  }
  .mobile-cta-bar .cta-button:hover {
    background: #e6fd5a;
  }

  /* prevent footer content from hiding behind sticky bar */
  .footer-three {
    padding-bottom: 70px;
  }
}

/* --------------------------------------------------------------------------
   3. Tone Down Decorative Shapes
   -------------------------------------------------------------------------- */
.shapes {
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

/* --------------------------------------------------------------------------
   4. Improved Text Contrast
   -------------------------------------------------------------------------- */
body {
  color: #2d2d2d;
}

.footer-three .footer-nav-link a {
  color: rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   5. Team Card Hover Effects
   -------------------------------------------------------------------------- */
.card-style-fifteen {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-style-fifteen:hover {
  transform: translateY(-6px);
  box-shadow: 0px 20px 50px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   6. Reduced H1 Size for Better Proportions
   -------------------------------------------------------------------------- */
.h1,
h1 {
  font-size: 72px;
  line-height: 1.08em;
}
.h2,
h2 {
  font-size: 56px;
  line-height: 1.14em;
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .h1,
  h1 {
    font-size: 60px;
  }
  .h2,
  h2 {
    font-size: 50px;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .h1,
  h1 {
    font-size: 52px;
  }
  .h2,
  h2 {
    font-size: 44px;
  }
}
@media (max-width: 991px) {
  .h1,
  h1 {
    font-size: 42px;
  }
  .h2,
  h2 {
    font-size: 36px;
  }
}
@media (max-width: 575px) {
  .h1,
  h1 {
    font-size: 34px;
  }
  .h2,
  h2 {
    font-size: 28px;
  }
}

/* --------------------------------------------------------------------------
   7. Unified Lime Accent — override variants to single #cfff45
   -------------------------------------------------------------------------- */
/* consolidated lime overrides handled via style.css replacements */

/* --------------------------------------------------------------------------
   8. Subtle Section Transitions
   -------------------------------------------------------------------------- */
.fancy-feature-three,
.fancy-feature-six,
.fancy-feature-seven,
.fancy-feature-twentyFour,
.block-feature-one,
.block-feature-six,
.feedback-section-three,
.text-feature-one,
.text-feature-three,
.text-feature-four {
  position: relative;
}
.fancy-feature-three::before,
.fancy-feature-six::before,
.fancy-feature-seven::before,
.fancy-feature-twentyFour::before,
.block-feature-one::before,
.block-feature-six::before,
.feedback-section-three::before,
.text-feature-one::before,
.text-feature-three::before,
.text-feature-four::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Don't add gradient on sections that already have colored backgrounds */
.light-bg .fancy-feature-three::before,
.light-bg .fancy-feature-six::before,
.light-bg-deep .fancy-feature-three::before,
.light-bg-deep .fancy-feature-six::before,
.fancy-feature-three.light-bg::before,
.fancy-feature-six.light-bg::before {
  display: none;
}

/* --------------------------------------------------------------------------
   9. Footer Design Improvements
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   10. Counter Animation Easing
   -------------------------------------------------------------------------- */
.counter-block-one .main-count,
.counter-block-two .main-count,
.card-style-ten .main-count {
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.counter {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   11. Glass-morphism on Service Cards
   -------------------------------------------------------------------------- */
.card-style-eight {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}
.card-style-eight:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0px 16px 40px rgba(8, 32, 26, 0.06);
  transform: translateY(-3px);
}

.card-style-nine {
  background: rgba(246, 246, 246, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}
.card-style-nine:hover {
  transform: translateY(-3px);
  box-shadow: 0px 16px 40px rgba(0, 0, 0, 0.05);
}

/* --------------------------------------------------------------------------
   12. Disable WOW.js Animations on Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .wow {
    visibility: visible !important;
    animation-name: none !important;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
  }
}

/* --------------------------------------------------------------------------
   13. FAQ Accordion Active State
   -------------------------------------------------------------------------- */
.accordion-style-one .accordion-item {
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  border-radius: 8px;
  margin-bottom: 8px;
}
.accordion-style-one .accordion-item:has(.accordion-collapse.show) {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border-color: #cfff45;
}
.accordion-style-one .accordion-button:not(.collapsed) {
  color: #19352d;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   14. Form Input Focus States
   -------------------------------------------------------------------------- */
input:focus,
textarea:focus,
select:focus {
  border-color: #21b16c !important;
  box-shadow: 0 0 0 3px rgba(33, 177, 108, 0.15) !important;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* --------------------------------------------------------------------------
   15. Form Validation Styling
   -------------------------------------------------------------------------- */
.help-block.with-errors {
  color: #dc3545;
  font-size: 14px;
  margin-top: 4px;
}
input.error,
textarea.error,
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
}
.has-error input,
.has-error textarea {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* --------------------------------------------------------------------------
   16. 404 Page Improvements
   -------------------------------------------------------------------------- */
.error-page h1 {
  font-size: 120px;
  line-height: 1;
  color: #19352d;
  margin-bottom: 16px;
}
.error-page h2 {
  margin-bottom: 12px;
}
.error-page .error-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}
.error-page .error-links a {
  color: #19352d;
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.2s ease;
}
.error-page .error-links a:hover {
  color: #21b16c;
}
