/* United VAT — homepage mobile/tablet polish only.
   All rules live inside max-width queries so desktop (≥992px) is unchanged. */

@media screen and (max-width: 991px) {
  html,
  body {
    overflow-x: hidden;
  }

  /* ── Hero: keep a FIXED height so Webflow slider mask clips correctly.
     Never use height:auto — that stacks every .hero-one-slide inside a w-slide. */
  .hero-one-section {
    height: 760px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }

  .hero-one-section > .w-slider-mask {
    height: 100% !important;
    overflow: hidden !important;
    white-space: nowrap;
  }

  .hero-one-section .hero-one-section-wrap.w-slide {
    height: 100% !important;
    width: 100% !important;
    display: inline-block !important;
    vertical-align: top;
    overflow: hidden !important;
    position: relative;
  }

  /* Legacy markup nests a second .hero-one-slide (extra headline) inside the
     first w-slide. Desktop clips it via fixed height; keep it hidden here too. */
  .hero-one-section .hero-one-section-wrap > .hero-one-slide + .hero-one-slide:not(.two) {
    display: none !important;
  }

  .hero-one-section .hero-one-slide {
    height: 100% !important;
    width: 100%;
    position: relative;
    overflow: hidden !important;
    display: flex !important;
    align-items: center;
  }

  .hero-one-section .hero-one-slide-bg {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
  }

  .hero-one-section .hero-container {
    padding-top: 40px;
    padding-bottom: 56px;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
  }

  .hero-one-section .hero-one-content-flex {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
    min-height: 0;
    width: 100%;
    padding-bottom: 0 !important;
    white-space: normal;
  }

  .hero-one-section .hero-one-content {
    width: 100% !important;
    max-width: 100%;
  }

  .hero-one-section .hero-one-title {
    font-size: clamp(30px, 5vw, 40px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
    padding-right: 0 !important;
    max-width: 100%;
  }

  .hero-one-section .hero-one-title-wrapper,
  .hero-one-section .hero-one-title-wrap {
    max-width: 100%;
    overflow: visible;
  }

  .hero-one-section .hero-one-desc-wrap {
    max-width: 100% !important;
    margin-top: 12px !important;
  }

  .hero-one-section .hero-one-desc {
    font-size: 16px !important;
    line-height: 1.45 !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    white-space: normal;
  }

  .hero-one-section .hero-one-content-wrapper {
    width: 100% !important;
    max-width: 100%;
    margin-top: 12px !important;
    margin-left: auto;
    margin-right: auto;
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    align-self: center;
    gap: 12px;
  }

  /* Show both desktop hero cards on tablet/mobile */
  .hero-one-section .counter-style-three {
    display: block !important;
    visibility: visible !important;
    opacity: 1;
    width: calc(50% - 6px) !important;
    max-width: 200px;
    min-width: 0;
    height: auto !important;
    min-height: 210px;
    padding: 18px 14px 16px !important;
    box-sizing: border-box;
    animation: uv-hero-cta-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
  }

  .hero-one-section .counter-style-three-title {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  .hero-one-section .counter-style-three-number-wrap {
    margin-top: 28px !important;
  }

  .hero-one-section .counter-three-number,
  .hero-one-section .counter-three-icon {
    font-size: 36px !important;
    letter-spacing: -1px !important;
    line-height: 1 !important;
  }

  /* Clip height must match digit size — otherwise the next reel digit (“1”) leaks out */
  .hero-one-section .counter-three-number-wrap {
    max-height: 36px !important;
    height: 36px !important;
    overflow: hidden !important;
  }

  .hero-one-section .counter-three-number {
    height: 36px !important;
    line-height: 36px !important;
  }

  .hero-one-section .icon-style-six {
    display: block !important;
    visibility: visible !important;
    width: calc(50% - 6px) !important;
    max-width: 200px;
    min-width: 0;
    height: auto !important;
    margin-left: 0;
    margin-right: 0;
    background-color: rgba(61, 15, 17, 0.55) !important;
    animation: uv-hero-cta-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
  }

  .hero-one-section .icon-style-six-content {
    display: block !important;
  }

  .hero-one-section .icon-style-six-inner {
    display: block !important;
    padding: 8px !important;
    height: auto !important;
  }

  .hero-one-section .icon-style-six-icon-wrap {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    margin-bottom: 12px !important;
    margin-left: 6px !important;
  }

  .hero-one-section .icon-style-six-icon {
    height: 28px !important;
  }

  .hero-one-section .icon-style-six-title {
    font-size: 15px !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
  }

  .hero-one-section .icon-style-six .button-wrap.margin-top-30 {
    margin-top: 12px !important;
  }

  .hero-one-section .icon-style-six .button-link.white-bg {
    width: 100%;
    min-width: 0;
    height: 44px !important;
    padding: 8px 12px !important;
  }

  .hero-one-section .icon-style-six .button-text {
    font-size: 13px !important;
  }

  .hero-one-section > .hero-arrow-wrap.w-slider-arrow-left,
  .hero-one-section > .hero-arrow-wrap.w-slider-arrow-right {
    display: flex !important;
    bottom: 20px;
    top: auto;
    width: 44px;
    height: 44px;
  }

  /* ── About ── */
  .home-one-about1-section {
    padding-top: 48px !important;
    padding-bottom: 8px;
    overflow-x: clip;
  }

  .home-one-about1-section .home-one-about1-columns {
    flex-direction: column !important;
    width: 100%;
  }

  .home-one-about1-section .home-one-about1-left-column,
  .home-one-about1-section .home-one-about1-right-column,
  .home-one-about1-section .home-one-about1-content,
  .home-one-about1-section .home-one-about1-img-content {
    width: 100% !important;
    max-width: 100%;
    padding-right: 0 !important;
  }

  .home-one-about1-section .home-one-about1-desc {
    max-width: 100%;
  }

  .home-one-about1-section .home-one-about1-img-wrap {
    height: auto !important;
    min-height: 280px;
    width: 100%;
  }

  .home-one-about1-section .home-one-about1-img {
    height: auto !important;
    min-height: 280px;
    object-fit: cover;
  }

  .home-one-about1-section .icon-style-five-wrap {
    position: static !important;
    inset: auto !important;
    justify-content: flex-start !important;
    margin-top: 16px;
  }

  .home-one-about1-section .about-stats-wrap,
  .home-one-about1-section .about-stat-item,
  .home-one-about1-section .about-stat-number,
  .home-one-about1-section .about-stat-number-wrap {
    overflow: visible !important;
  }

  .home-one-about1-section .about-stat-number {
    min-width: 0 !important;
    flex-shrink: 0;
  }

  /* ── Services ── */
  .service-one-section {
    margin-top: 56px !important;
    margin-bottom: 40px !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    overflow-x: clip;
  }

  .service-one-section .service-one-list {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .service-one-section .service-one,
  .service-one-section .w-slider-mask,
  .service-one-section .service-one-slides {
    height: auto !important;
    overflow: visible !important;
  }

  .service-one-section .service-one-slides.w-slide {
    width: 100% !important;
  }

  .service-one-section .heading-title {
    font-size: clamp(28px, 4.5vw, 40px) !important;
    line-height: 1.2 !important;
  }

  /* ── Approach ── */
  .home1-about2-section {
    overflow-x: clip;
    padding-bottom: 40px;
  }

  .home1-about2-section .home-one-about2-columns {
    flex-direction: column !important;
    position: static !important;
  }

  .home1-about2-section .home-one-about2-left-column,
  .home1-about2-section .home-one-about2-right-column {
    width: 100% !important;
    position: static !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .home1-about2-section .home-one-about2-bg-img {
    width: 100% !important;
    height: auto !important;
    max-height: 420px;
    object-fit: cover;
  }

  .home1-about2-section .heading-title {
    font-size: clamp(28px, 4.5vw, 40px) !important;
    line-height: 1.2 !important;
  }

  /* ── Testimonials ── */
  .testimonial-one-section {
    margin-left: var(--uv-gutter, 20px) !important;
    margin-right: var(--uv-gutter, 20px) !important;
    overflow: hidden;
  }

  .testimonial-one-section .testimonial-one-wrapper {
    flex-direction: column !important;
  }

  .testimonial-one-section .testimonial-one-left-column,
  .testimonial-one-section .testimonial-one-right-column {
    width: 100% !important;
  }

  .testimonial-one-section .testimonial-one-content-wrap {
    width: 100% !important;
    padding-bottom: 80px !important;
  }

  /* ── Partnership ── */
  .partnership-contact-section {
    margin-left: var(--uv-gutter, 20px) !important;
    margin-right: var(--uv-gutter, 20px) !important;
    overflow: hidden;
  }

  .partnership-contact-section .partnership-contact-grid {
    grid-template-columns: 1fr !important;
  }

  /* ── Footer (homepage load only) ── */
  .footer .footer-column--resources {
    left: 0 !important;
  }
}

@media screen and (max-width: 767px) {
  .hero-one-section {
    height: 640px !important;
  }

  .hero-one-section .hero-container {
    padding-top: 24px;
    padding-bottom: 32px;
  }

  .hero-one-section .hero-one-title {
    font-size: clamp(24px, 6.5vw, 32px) !important;
    line-height: 1.18 !important;
  }

  .hero-one-section .hero-one-desc {
    font-size: 14px !important;
    line-height: 1.4 !important;
    -webkit-line-clamp: 3;
  }

  /* Theme hides cards on phones — restore both */
  .hero-one-section .hero-one-content-wrapper {
    display: flex !important;
    width: 100% !important;
    max-width: 100%;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
  }

  .hero-one-section .counter-style-three {
    display: block !important;
    visibility: visible !important;
    width: calc(50% - 5px) !important;
    max-width: 170px;
    min-height: 190px;
    padding: 14px 12px !important;
    animation: uv-hero-cta-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
  }

  .hero-one-section .icon-style-six {
    display: block !important;
    visibility: visible !important;
    width: calc(50% - 5px) !important;
    max-width: 170px;
    height: auto !important;
    position: static !important;
    overflow: hidden !important;
    margin-left: 0;
    margin-right: 0;
    animation: uv-hero-cta-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
  }

  .hero-one-section .icon-style-six-content {
    display: block !important;
  }

  .hero-one-section .icon-style-six-inner {
    display: block !important;
  }

  .hero-one-section .counter-style-three-title {
    font-size: 12px !important;
  }

  .hero-one-section .counter-three-number,
  .hero-one-section .counter-three-icon {
    font-size: 32px !important;
    line-height: 1 !important;
  }

  .hero-one-section .counter-style-three-number-wrap {
    margin-top: 20px !important;
  }

  .hero-one-section .counter-three-number-wrap {
    max-height: 32px !important;
    height: 32px !important;
    overflow: hidden !important;
  }

  .hero-one-section .counter-three-number {
    height: 32px !important;
    line-height: 32px !important;
  }

  .hero-one-section .icon-style-six-title {
    font-size: 14px !important;
  }

  .hero-one-section > .hero-arrow-wrap.w-slider-arrow-left,
  .hero-one-section > .hero-arrow-wrap.w-slider-arrow-right {
    display: none !important;
  }

  .home-one-about1-section {
    padding-top: 36px !important;
  }

  .home-one-about1-section h2,
  .service-one-section h2,
  .home1-about2-section h2,
  .home-one-about1-section .heading-title,
  .service-one-section .heading-title,
  .home1-about2-section .heading-title {
    font-size: clamp(26px, 7vw, 32px) !important;
    line-height: 1.2 !important;
  }

  .service-one-section {
    margin-top: 40px !important;
    margin-bottom: 28px !important;
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  .service-one-section .service-one-link {
    padding: 24px 18px 20px !important;
  }

  .service-one-section .service-heading-subtitle-left-column,
  .service-one-section .heading-subheading-center-column {
    width: 100% !important;
  }

  .service-one-section .heading-subheading-desc {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  .testimonial-one-section {
    padding-bottom: 40px !important;
  }

  .testimonial-one-section .testimonial-one-description,
  .testimonial-one-section .testimonial-one-quote {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }

  .partnership-contact-form-column,
  .partnership-contact-info-column {
    padding: 28px 20px !important;
  }

  .partnership-contact-title,
  .partnership-form-title {
    font-size: 24px !important;
    line-height: 1.25 !important;
  }

  .partnership-form-row {
    grid-template-columns: 1fr !important;
  }

  .footer .footer-columns {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer .footer-column--brand,
  .footer .footer-column:first-child {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 479px) {
  .hero-one-section {
    height: 620px !important;
    border-radius: 0 !important;
  }

  .hero-one-section .hero-container {
    padding-top: 20px;
    padding-bottom: 28px;
  }

  .hero-one-section .hero-one-title {
    font-size: 22px !important;
    line-height: 1.2 !important;
  }

  .hero-one-section .hero-one-desc {
    font-size: 13px !important;
    line-height: 1.4 !important;
    -webkit-line-clamp: 2;
  }

  .hero-one-section .hero-one-content-wrapper {
    gap: 8px;
  }

  .hero-one-section .icon-style-six,
  .hero-one-section .counter-style-three {
    width: calc(50% - 4px) !important;
    max-width: none;
    min-height: 180px;
  }

  .hero-one-section .icon-style-six .button-link.white-bg {
    min-width: 0;
    width: 100%;
    height: 40px !important;
    padding: 6px 8px !important;
  }

  .hero-one-section .icon-style-six .button-text {
    font-size: 11px !important;
  }

  .hero-one-section .icon-style-six-icon-wrap {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    margin-bottom: 8px !important;
  }

  .hero-one-section .counter-three-number,
  .hero-one-section .counter-three-icon {
    font-size: 28px !important;
    line-height: 1 !important;
  }

  .hero-one-section .counter-three-number-wrap {
    max-height: 28px !important;
    height: 28px !important;
    overflow: hidden !important;
  }

  .hero-one-section .counter-three-number {
    height: 28px !important;
    line-height: 28px !important;
  }

  .home-one-about1-section .home-one-about1-img-wrap,
  .home-one-about1-section .home-one-about1-img {
    min-height: 220px;
  }

  .service-one-section .service-one-title {
    font-size: 17px !important;
  }

  .partnership-contact-form-column,
  .partnership-contact-info-column {
    padding: 24px 16px !important;
  }

  .footer .footer-columns {
    display: flex !important;
    flex-direction: column;
    gap: 28px;
  }

  .footer .footer-column--brand,
  .footer .footer-column:first-child {
    grid-column: auto;
  }
}

/* Mobile-only CTA appear — referenced only inside max-width rules above */
@keyframes uv-hero-cta-in {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media screen and (max-width: 991px) and (prefers-reduced-motion: reduce) {
  .hero-one-section .icon-style-six,
  .hero-one-section .counter-style-three {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
