/* 1. FitText Replacement */
.banner-one__big-text {
  /* Use container queries or reasonable responsive units based on max column width */
  font-size: clamp(30px, 4vw, 55px) !important;
  line-height: 1.1 !important;
  word-break: break-word;
}

/* 2. Process Slider CSS Fallback (Mobile vs Desktop) */
@media (max-width: 767px) {
  .process-one__list {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .process-one__mobile-slider {
    display: none !important;
  }
}

.process-one__mobile-slider .process-one__count:before {
  display: none !important;
}

.process-one__mobile-slider .process-one__count {
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 15px;
  font-weight: 600;
  color: var(--tanspot-white);
  background-color: var(--tanspot-black);
  border: 3px solid rgba(var(--tanspot-white-rgb), 0.5);
  border-radius: 50%;
}

.about-one__curved-circle-svg {
  position: absolute;
  top: 0px;
  left: 0px;
  bottom: 0;
  right: 0;
  height: 180px !important;
}

/* 2.5 Sliding Text Wrapping Fix */
.sliding-text__title {
  white-space: nowrap;
}

.sliding-text__item {
  flex-shrink: 0;
}

/* 3. Google Map Height Fix */
.google-map__one,
.google-map__two {
  min-height: 500px !important;
}

/* 4. Owl Carousel Anti-CLS Fix */
.owl-carousel:not(.owl-loaded) {
  display: block !important;
  overflow: hidden !important;
}

.owl-carousel:not(.owl-loaded) .item:not(:first-child),
.owl-carousel:not(.owl-loaded) .process-one__mobile-slide:not(:first-child) {
  display: none !important;
}

/* Ensure WOW/AOS elements are visible before interaction */
.wow {
  visibility: visible !important;
}

[data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

/* 5. Equal Height Cards */
.service-one__single,
.services-one__single {
  height: 100%;
}

/* 6. Fix About Founder Image */
.about-one__img {
  aspect-ratio: 570 / 580;
}

.about-one__img picture,
.about-one__img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
  display: block;
}

/* 7. Fix GSAP Title Animation on Mobile */
@media (max-width: 991px) {

  .sec-title-animation .title-animation,
  .sec-title-animation .title-animation * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* 8. Fix Marquee Wrapper Shrinking */
.sliding-text__list.marquee_mode {
  display: block !important;
  white-space: nowrap !important;
}

.js-marquee-wrapper {
  flex-shrink: 0 !important;
}

.js-marquee {
  display: inline-block !important;
  float: none !important;
}

.sliding-text__item {
  display: inline-block !important;
  float: none !important;
  flex-shrink: 0;
}

/* 9. Fix Lighthouse Contrast False Positive for Banner Shapes */
.banner-one::before,
.banner-one::after {
  content: "";
  position: absolute;
  background-color: var(--tanspot-base);
  z-index: -1;
  width: 250px;
  transform: rotate(34deg);
}

.banner-one::before {
  top: -300px;
  bottom: -300px;
  right: -5px;
}

.banner-one::after {
  top: 310px;
  bottom: -150px;
  right: -130px;
}

/* 10. Fix Main Menu Contrast over Banner */
.main-header .main-menu__wrapper-inner {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stricky-header.stricky-fixed .main-menu__wrapper-inner {
  background-color: transparent !important;
  box-shadow: none;
}

/* 11. Mobile Fixes: Footer Alignment & Banner Button */
@media (max-width: 767px) {

  /* Fix footer menu left alignment on mobile */
  .footer-widget__usefull-link,
  .footer-widget__link-2,
  .footer-widget__right-bottom,
  .footer-widget__services,
  .footer-widget__contact-box,
  .footer-widget__about {
    margin-left: 0 !important;
    text-align: left !important;
  }

  /* Make Discover More button visible against orange background on mobile */
  .banner-one__btn-box .thm-btn {
    background-color: var(--tanspot-black) !important;
    color: var(--tanspot-white) !important;
  }

  .banner-one__btn-box .thm-btn:hover {
    color: var(--tanspot-black) !important;
  }
}

/* 13. Tablet & Mobile Fixes */
@media (max-width: 991px) {}

/* 14. Make Typed Text White Globally */
.banner-one__title .typed-effect,
.banner-one__title .typed-cursor {
  color: var(--tanspot-white) !important;
}


/* 12. Fix Get a Quote Form Width */
.why-choose-one__form .input-box {
  width: 100% !important;
  max-width: 100% !important;
}

.why-choose-one__form .col-xl-6,
.why-choose-one__form .col-lg-6,
.why-choose-one__form .col-md-6 {
  padding-left: 5px !important;
  padding-right: 5px !important;
}

.why-choose-one__form .row {
  margin-left: -5px !important;
  margin-right: -5px !important;
}

/* 15. Fix About Image on Mobile */
@media (max-width: 767px) {
  .about-one__left {
    margin-right: 0 !important;
  }

  .about-one__img {
    -webkit-mask: none !important;
    mask: none !important;
    border-radius: 20px;
  }

  /* Fix Get a Quote form container padding on mobile */
  .why-choose-one__form-box {
    padding: 40px 15px 45px !important;
  }

  /* Reduce excessive whitespace on mobile */
  .about-one {
    padding-top: 60px !important;
  }
  .sliding-text-one {
    padding-top: 50px !important;
    padding-bottom: 30px !important;
  }
  .services-one {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
}