/**
 * Mobil premium UI — toxunma, hero, kartlar, bölmə ritmi.
 * mobile-polish.css-dən sonra yüklənir.
 */

@media (max-width: 991.98px) {
  /* ——— Ümumi ——— */
  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    overflow-x: clip;
  }

  #content > section:not(.ca-hero-split-wrap):not(.coolair-hero-wrap) {
    scroll-margin-top: 5.5rem;
  }

  /* ——— Sticky header ——— */
  header.header-s1.header-mobile:not(.menu-open) {
    position: sticky;
    top: 0;
    z-index: 10020;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  }

  header.header-s1.header-mobile #mainmenu > li > a.menu-item:active {
    background: rgba(37, 99, 235, 0.06);
    border-radius: 10px;
  }

  /* ——— Hero ——— */
  .ca-hero-split-wrap {
    padding-top: 0.5rem !important;
    padding-bottom: 1.75rem !important;
    background: linear-gradient(180deg, #f0f6ff 0%, #f8fafc 38%, #fff 100%) !important;
  }

  .ca-hero-split-bg {
    opacity: 0.85;
  }

  .ca-hero-split {
    min-height: 0 !important;
    row-gap: 1.25rem !important;
  }

  .ca-hero-split__visual {
    order: -1;
    margin-bottom: 0.15rem;
  }

  .ca-hero-visual-frame {
    border-radius: 22px !important;
    padding: 0.5rem !important;
    box-shadow:
      0 4px 6px rgba(15, 23, 42, 0.04),
      0 20px 48px rgba(30, 64, 120, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    background: linear-gradient(165deg, #fff 0%, #eef4ff 100%) !important;
  }

  .ca-hero-media-swiper {
    padding-bottom: 2.75rem !important;
    border-radius: 18px;
    overflow: hidden;
  }

  .ca-hero-slide {
    aspect-ratio: 4 / 3 !important;
    max-height: min(52vw, 320px) !important;
    min-height: 200px;
    border-radius: 14px !important;
  }

  .ca-hero-slide img {
    object-position: center 35%;
  }

  .ca-hero-slide__tag {
    font-size: 0.75rem !important;
    padding: 0.45rem 0.65rem !important;
    border-radius: 10px;
    backdrop-filter: blur(8px);
  }

  .ca-hero-swiper-ui {
    bottom: 0.15rem !important;
    gap: 0.5rem !important;
    padding: 0.35rem 0.65rem !important;
    margin: 0 auto;
    width: fit-content;
    max-width: calc(100% - 1rem);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border-radius: 999px;
    border: 1px solid rgba(30, 74, 140, 0.12);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
  }

  .ca-hero-swiper-ui .swiper-button-prev,
  .ca-hero-swiper-ui .swiper-button-next {
    width: 38px !important;
    height: 38px !important;
    border-width: 1px !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  .ca-hero-swiper-ui .ca-hero-nav-icon {
    font-size: 1.45rem !important;
  }

  .ca-hero-swiper-fraction.swiper-pagination-fraction {
    min-width: 3rem !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.8rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .ca-hero-split__text .hero__icon1,
  .ca-hero-split__text .hero__icon2,
  .ca-hero-split__text .hero__icon3 {
    display: none !important;
  }

  .ca-hero-split__content {
    padding: 0.25rem 0 0 !important;
    text-align: center;
  }

  .ca-hero-eyebrow {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.68rem;
    padding: 0.38rem 0.8rem;
  }

  .ca-hero-split__text .aslider--title {
    font-size: clamp(1.85rem, 9vw, 2.45rem) !important;
    margin-bottom: 0.85rem !important;
  }

  .ca-hero-split__text .aslider--title span {
    display: inline-block;
    margin-top: 0.15rem;
  }

  .ca-hero-split__text .aslider--subtitle {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 0.85rem;
    text-align: left;
    max-width: 22rem;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 1.15rem !important;
  }

  .ca-hero-split__text .aslider--subtitle p {
    margin: 0 !important;
    font-size: 0.8125rem !important;
    line-height: 1.35 !important;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .ca-hero-split__text .aslider--subtitle p i {
    font-size: 5px !important;
    margin-top: 0.42rem;
    flex-shrink: 0;
    color: #2563eb;
    opacity: 0.85;
  }

  .ca-hero-split__content .aslider--btn.ca-hero-cta-row,
  .ca-hero-cta-row {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem !important;
    width: 100%;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

  .ca-hero-cta-row .theme-btn {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.22);
  }

  .ca-hero-cta-row .theme-btn.black-btn {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    background: #fff !important;
  }

  /* ——— Xidmət kartları ——— */
  .ca-home-services {
    padding-top: 2.25rem !important;
  }

  .ca-home-services .ca-section-head {
    margin-bottom: 1.75rem !important;
    padding: 0 0.25rem;
  }

  .ca-home-services .ca-section-head .subtitle {
    margin-bottom: 0.65rem !important;
  }

  .ca-home-services-grid {
    --bs-gutter-y: 0.85rem;
  }

  .ca-home-services-grid > [class*='col-'] {
    padding-left: 0;
    padding-right: 0;
  }

  .ca-home-services .ca-home-service-card {
    display: grid;
    grid-template-columns: 118px 1fr;
    grid-template-rows: auto 1fr;
    align-items: stretch;
    border-radius: 18px !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07) !important;
  }

  .ca-home-services .ca-home-service-image-wrap {
    grid-row: 1 / -1;
    aspect-ratio: auto !important;
    max-height: none !important;
    min-height: 100%;
    height: 100%;
    border-radius: 18px 0 0 18px;
  }

  .ca-home-services .ca-home-service-image {
    height: 100% !important;
    min-height: 118px;
  }

  .ca-home-services .ca-home-service-text {
    padding: 0.85rem 1rem 1rem 0.75rem !important;
    min-height: 0 !important;
    border-top: none !important;
    border-left: 1px solid rgba(15, 23, 42, 0.06);
  }

  .ca-home-services .ca-home-service-badge {
    position: static !important;
    top: auto !important;
    left: auto !important;
    margin: 0 0 0.35rem;
    padding: 6px 10px 4px !important;
    border-bottom-width: 3px !important;
    box-shadow: none !important;
  }

  .ca-home-services .ca-home-service-title {
    font-size: 1rem !important;
    margin-bottom: 0.35rem !important;
  }

  .ca-home-services .ca-home-service-desc {
    font-size: 0.8125rem !important;
    -webkit-line-clamp: 2;
    margin-bottom: 0.5rem !important;
  }

  .ca-home-services-foot {
    margin-top: 1.75rem !important;
  }

  .ca-home-services-foot .theme-btn {
    width: 100%;
    max-width: 22rem;
    border-radius: 14px !important;
  }

  /* ——— Proses addımları ——— */
  .ca-process-section .ca-process-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem !important;
    margin: 0;
  }

  .ca-process-section .ca-process-grid > [class*='col-'] {
    width: 100% !important;
    max-width: 100% !important;
    flex: none;
    padding: 0 !important;
  }

  .ca-process-section .ca-process-card.de-step-s1 {
    min-height: 104px !important;
    padding: 1rem !important;
    border-radius: 16px !important;
  }

  .ca-process-section .ca-process-card h4 {
    font-size: 0.95rem !important;
  }

  .ca-process-section .ca-process-card .d-number {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.5rem !important;
  }

  /* ——— Niyə biz ——— */
  section.bg-color-3 {
    border-radius: 20px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  section.bg-color-3 .row > [class*='col-'] {
    margin-bottom: 1.25rem;
  }

  section.bg-color-3 .icon_check {
    margin-bottom: 1rem;
  }

  /* ——— CTA / Jarallax ——— */
  .padding60.rounded-1 {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
    padding: 2rem 1.25rem !important;
  }

  .padding60.rounded-1 h2 {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem) !important;
  }

  /* ——— FAQ ——— */
  .ca-faq-section .ca-faq-accordion {
    padding: 0.5rem 0.65rem;
  }

  .ca-faq-section .accordion-button {
    font-size: 0.9375rem;
    padding: 0.85rem 0.5rem;
  }

  /* ——— Rəylər ——— */
  .ca-testimonials .ca-testimonial-card blockquote {
    min-height: 0 !important;
    padding-top: 1.25rem !important;
  }

  .ca-testimonials .ca-testimonial-card p {
    min-height: 0 !important;
    font-size: 0.9375rem;
  }

  /* ——— Portfolio kartları ——— */
  .ca-portfolio-card,
  .portfolio-list-card {
    border-radius: 18px !important;
  }

  /* ——— Footer ——— */
  .ca-footer-root .ca-site-footer {
    text-align: center;
  }

  .ca-footer-root .ca-footer-col--brand {
    text-align: center;
  }

  .ca-footer-root .ca-footer-social {
    justify-content: center;
  }

  .ca-footer-root .ca-footer-widget ul {
    padding-left: 0;
  }

  .ca-footer-brands-grid {
    justify-content: center;
  }

  /* ——— FAB ——— */
  .ca-mobile-call-fab {
    animation: ca-fab-enter 0.45s var(--tt-ease, ease) both;
  }

  @keyframes ca-fab-enter {
    from {
      opacity: 0;
      transform: translateY(12px) scale(0.92);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  /* Toxunma cihazlarında hover effektlərini söndür */
  @media (hover: none) {
    .ca-home-service-card:hover,
    .ca-portfolio-card:hover,
    .ca-process-section .ca-process-card:hover {
      transform: none !important;
    }

    .ca-home-service-card:active {
      transform: scale(0.99);
      opacity: 0.96;
    }
  }
}

@media (max-width: 575.98px) {
  .ca-hero-split__text .aslider--subtitle {
    grid-template-columns: 1fr;
    max-width: 18rem;
  }

  .ca-process-section .ca-process-grid {
    grid-template-columns: 1fr !important;
  }

  .ca-home-services .ca-home-service-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .ca-home-services .ca-home-service-image-wrap {
    grid-row: auto;
    border-radius: 18px 18px 0 0;
    min-height: 140px;
    aspect-ratio: 16 / 9 !important;
  }

  .ca-home-services .ca-home-service-text {
    border-left: none !important;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    padding: 1rem 1.1rem 1.1rem !important;
  }
}

@media (max-width: 380px) {
  .ca-hero-split__text .aslider--title {
    font-size: 1.65rem !important;
  }

  .ca-hero-slide {
    min-height: 180px;
    max-height: 240px !important;
  }
}
