/* ==========================================================================
   3K EMİR YAPI — RESPONSIVE DÜZELTMELER (27.10.2026)
   Sıralama: bu dosya modern-theme.css ve sayfa CSS'lerinden SONRA yüklenir.
   İçerik: mobil menü çekmecesi, tablet aralığı, dokunma hedefleri, tipografi.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1) MOBİL MENÜ ÇEKMECESİ (drawer)
   -------------------------------------------------------------------------- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 10001;
  visibility: hidden;
  pointer-events: none;
}
/* JS paneli 2 kare sonra .open sınıfını ekler → tarayıcı başlangıç
   konumunu doğru hesaplayıp geçişi başlatabilsin */
.mobile-drawer.open {
  visibility: visible;
  pointer-events: auto;
}
.mobile-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 17, 22, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-drawer.open .mobile-drawer-overlay {
  opacity: 1;
  transform: translateX(0);
}
/* Panel: konum ve animasyon JS tarafından yönetilir (inline style).
   CSS'teki `transform: translateX(100%)` + transition kombinasyonu bazı
   tarayıcılarda başlangıç değerini dondurup paneli ekran dışında bırakıyordu.
   JS, paneli doğrudan `right: 0` yaparak konumlandırır. */
.mobile-drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(340px, 88vw);
  background: #FFFFFF;
  z-index: 2;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: -12px 0 40px rgba(14, 17, 22, 0.18);
}
.mobile-drawer.open .mobile-drawer-panel {
  transform: translateX(0);
}
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.mobile-drawer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mobile-drawer-logo img {
  height: 38px;
  width: auto;
  flex-shrink: 0;
}
.mobile-drawer-logo span {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.mobile-drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #FFFFFF;
  color: var(--color-primary);
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.mobile-drawer-close:active {
  transform: scale(0.94);
}
.mobile-drawer-body {
  padding: 12px 0 24px;
  flex: 1;
}
.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  min-height: 52px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border-subtle);
  transition: background 0.15s;
}
.mobile-drawer-link:hover,
.mobile-drawer-link:focus-visible {
  background: var(--color-bg-light);
  outline: none;
}
.mobile-drawer-link .nav-dropdown-icon {
  font-size: 16px;
  width: 30px;
  height: 30px;
}
.mobile-drawer-section {
  padding: 16px 20px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-light);
}
.mobile-drawer-footer {
  padding: 18px 20px 28px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.mobile-drawer-footer .btn-call,
.mobile-drawer-footer .btn-whatsapp-header {
  width: 100%;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
}
.mobile-drawer-footer .btn-whatsapp-header span {
  display: inline !important;
}
.mobile-drawer-footer a:not([class]) {
  font-size: 13.5px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}
/* Çekmece açıkken sayfa kaymasın */
body.drawer-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   2) TABLET ARALIĞI (900–1200px) — başlık taşması düzeltmesi
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .mp-header-inner {
    gap: 12px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .mp-nav-link {
    padding: 8px 10px;
    font-size: 13px;
  }
  .mp-logo-text {
    font-size: 15px;
  }
  .mp-logo-sub {
    font-size: 9.5px;
    letter-spacing: 0.08em;
  }
  .mp-logo-img {
    height: 44px;
  }
  .btn-call {
    padding: 9px 14px;
    font-size: 12.5px;
  }
  .btn-whatsapp-header {
    padding: 9px 14px;
    font-size: 12.5px;
  }
  .mp-header-actions {
    gap: 8px;
  }
}

@media (max-width: 1080px) {
  /* Nav sığmıyor — hamburger'a geç */
  .mp-nav {
    display: none;
  }
  #mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
  }
  .btn-whatsapp-header span {
    display: none !important;
  }
  .btn-whatsapp-header {
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .btn-whatsapp-header svg {
    width: 19px;
    height: 19px;
    margin: 0 !important;
    display: block;
  }
}

/* --------------------------------------------------------------------------
   3) DOKUNMA HEDEFLERİ — 44px kuralı
   -------------------------------------------------------------------------- */
.hero-dot {
  position: relative;
  width: 10px;
  height: 10px;
}
.hero-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.hero-dot.active {
  width: 34px;
}
.slider-dot,
.slider-nav-dot {
  position: relative;
  width: 10px;
  height: 10px;
}
.slider-dot::after,
.slider-nav-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
}
.slider-dot.active,
.slider-nav-dot.active {
  width: 24px;
}
.slider-dots-bar,
.slider-dots {
  padding: 6px 10px;
  gap: 8px;
}
.slider-arrow-btn {
  width: 48px;
  height: 48px;
  font-size: 26px;
}
.link-detail {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
}
.btn-card-wa {
  min-height: 44px;
  padding: 10px 16px;
}
.project-card-footer {
  flex-wrap: wrap;
  gap: 10px;
}
.project-card-footer .btn-card-wa {
  flex: 1 1 auto;
  justify-content: center;
}
.card-actions-row {
  flex-wrap: wrap;
}
.card-actions-row .link-detail {
  flex: 1 1 140px;
}

/* --------------------------------------------------------------------------
   4) MOBİLDE İÇERİK & TİPOGRAFİ AYARLARI
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .mp-hero {
    height: auto;
    min-height: 460px;
    max-height: 620px;
  }
  .mp-hero-title {
    font-size: clamp(28px, 8vw, 40px);
  }
  .mp-hero-desc {
    font-size: 14px;
    margin-top: 14px;
  }
  .mp-hero-btns {
    gap: 10px;
    margin-top: 22px;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 12px 24px;
    font-size: 13.5px;
    min-height: 48px;
  }
  .mp-badge-installment {
    margin-top: 18px;
    padding: 7px 16px 7px 10px;
  }
  .section-wrap {
    padding: 56px 0;
  }
  .section-header-wrap {
    margin-bottom: 32px;
  }
  .section-title {
    font-size: clamp(24px, 6.5vw, 30px);
  }
  .section-desc {
    font-size: 14px;
  }
  .container,
  .mp-header-inner,
  .mp-topbar-inner,
  .mp-stats-grid,
  .footer-top {
    padding-left: 18px;
    padding-right: 18px;
  }
  .footer-top {
    padding-bottom: 44px;
    gap: 32px;
  }
  .process-section {
    padding: 60px 0;
  }
  .process-grid {
    margin-top: 36px;
  }
  .project-slider-wrap {
    height: 220px;
  }
  .project-card-body {
    padding: 16px;
  }
  .cat-tile-content {
    padding: 18px;
    margin-left: 14px;
    margin-right: 14px;
    margin-bottom: 14px;
  }
  .mp-logo-img {
    height: 42px;
  }
  .mp-logo-text {
    font-size: 14px;
  }
  .mp-logo-sub {
    font-size: 9.5px;
    letter-spacing: 0.08em;
  }
  .mp-stats-bar {
    padding: 32px 0;
  }
  .mp-stats-grid {
    row-gap: 20px;
  }
  .stat-number {
    font-size: clamp(26px, 8vw, 32px);
  }
  .why-grid {
    gap: 28px;
  }
  .why-card {
    padding: 18px;
  }
  .cat-tile-img {
    height: 190px;
  }
  .card-thumb-wrap {
    height: 200px;
  }
}

@media (max-width: 560px) {
  .mp-hero {
    min-height: 420px;
  }
  .mp-hero-tag {
    font-size: 10px;
    letter-spacing: 0.24em;
    margin-bottom: 12px;
  }
  .mp-hero-btns {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
  .card-actions-row {
    flex-direction: column;
    align-items: stretch;
  }
  .card-actions-row .btn-card-wa {
    width: 100%;
    justify-content: center;
  }
  .project-card-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .project-card-footer .btn-card-wa {
    width: 100%;
  }
  .spec-pill {
    font-size: 11px;
    padding: 6px 8px;
  }
  .floating-mobile-bar {
    bottom: 16px;
    right: 14px;
  }
}

/* --------------------------------------------------------------------------
   5) ERİŞİLEBİLİRLİK — azaltılmış hareket tercihi
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .mp-hero-bg {
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   6) GRID GÜVENLİĞİ — grid item'lar min-content ile şişmesin
   -------------------------------------------------------------------------- */
.detail-grid > *,
.why-grid > *,
.mp-stats-grid > *,
.footer-top > *,
.stats-grid > * {
  min-width: 0;
}
.detail-grid img,
.detail-grid .gallery-thumbs {
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   7) KALAN DOKUNMA HEDEFLERİ & TİPOGRAFİ
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  /* Filtre sekmeleri — 34px yerine 44px */
  .proj-filter-btn,
  .filter-btn,
  .cat-filter-btn,
  .gallery-filter-btn {
    min-height: 44px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Breadcrumb / üst navigasyon linkleri */
  .detail-breadcrumb a,
  .breadcrumb a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  /* Logo alt yazısı çok küçüktü */
  .mp-logo-sub {
    font-size: 10.5px;
  }

  /* Kart aksiyon butonları */
  .card-actions button,
  .btn-add,
  .btn-secondary {
    min-height: 44px;
  }
}
