/* =============================================
   ARSLAN İNŞAAT — Site-wide Mobile Fixes
   ============================================= */

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  max-width: 100%;
}

img:not(.logo-img):not(.preloader-img):not(.footer-logo-img),
video,
svg {
  max-width: 100%;
}

/* Tıklanabilir öğeler — mobil dokunma */
a,
button,
input,
select,
textarea,
label,
.slider-btn,
.slider-btn--inline,
.project-btn,
.listing-btn,
.listing-btn-home,
.btn-cta,
.btn-contact,
.ref-cta-btn,
.svc-cta-btn,
.svc-why-btn,
.gal-filter-btn,
.gal-item,
.c-form-submit,
.hamburger,
.mobile-close,
.mobile-contact,
.slider-dot,
.slider-arrow,
.projects-pagination a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 46, 108, 0.12);
}

/* Görünmez katmanların tıklamayı engellemesini önle */
#preloader.hidden,
.mobile-overlay:not(.active),
.mobile-menu:not(.active),
.gal-lightbox:not(.open) {
  pointer-events: none !important;
}

#preloader:not(.hidden) {
  pointer-events: auto;
}

/* Mobilde reveal animasyonu tıklamayı geciktirmesin */
@media (max-width: 768px) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}
/* Ortak container padding */
@media (max-width: 768px) {
  .about-container,
  .projects-container,
  .listings-container,
  .listings-container-home,
  .topbar-inner,
  .nav-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .about-section,
  .listings-section,
  .listings-section-home {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .page-home .projects-section {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .page-home .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 0;
  }

  .page-home .section-intro {
    margin-bottom: 1.75rem;
  }

  .page-home .section-cta {
    margin-top: 2rem;
  }

  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .about-description,
  .slide-desc {
    font-size: 1rem;
  }
}

/* İç sayfa hero */
@media (max-width: 900px) {
  .page-hero {
    height: auto;
    min-height: 260px;
    padding: calc(var(--navbar-height, 88px) + 2rem) 0 2.5rem;
  }

  .page-hero-content {
    margin-top: 0 !important;
    padding: 0 1rem !important;
  }

  .page-title {
    font-size: clamp(1.65rem, 7vw, 2.35rem) !important;
    line-height: 1.2;
  }

  .breadcrumb {
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
}

@media (max-width: 480px) {
  .page-hero {
    min-height: 220px;
    padding-bottom: 2rem;
  }
}

/* Detay sayfaları */
@media (max-width: 768px) {
  .listing-detail-hero,
  .project-detail-hero {
    height: 45vh;
    min-height: 280px;
  }

  .listing-detail-content,
  .project-detail-content {
    margin-left: auto;
    margin-right: auto;
    padding: 1.75rem 1.25rem;
  }

  .detail-title {
    font-size: 1.65rem;
  }

  .contact-section {
    padding: 2rem 1.25rem;
  }

  .contact-buttons {
    flex-direction: column;
  }

  .btn-contact {
    width: 100%;
    justify-content: center;
  }
}

/* Butonlar — dar ekran */
@media (max-width: 480px) {
  .slider-btn,
  .slider-btn--inline {
    width: 100%;
    max-width: 300px;
    min-width: 0;
    min-height: 48px;
    height: auto;
    padding: 0.85rem 1.25rem;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  .ref-cta-btns,
  .svc-cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .ref-cta-btn,
  .svc-cta-btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .site-footer-logo img,
  .site-footer-logo .footer-logo-img {
    height: var(--site-logo-height, 56px);
  }

  .project-content,
  .listing-content,
  .listing-content-home {
    padding: 1.5rem;
  }

  .project-meta,
  .listing-features,
  .listing-features-home {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}
