/* =============================================
   avukatnehirak.com – Mobil Uyumluluk Düzeltmeleri
   Dosyayı style.css sonuna ekleyin veya ayrı
   bir mobile-fixes.css olarak bağlayın:
   <link rel="stylesheet" href="css/mobile-fixes.css">
   ============================================= */

/* 1. Temel Taşma Koruması */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

/* 2. Container Responsive */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========== TABLET (max-width: 991px) ========== */
@media (max-width: 991px) {
  .banner-section h1 {
    font-size: 32px;
  }

  .services-section [class*="col-lg-3"] {
    width: 50% !important;
    margin-bottom: 20px;
  }
}

/* ========== MOBİL (max-width: 768px) ========== */
@media (max-width: 768px) {

  /* --- Tipografi --- */
  body {
    font-size: 15px;
    line-height: 1.7;
  }
  h1 { font-size: clamp(22px, 6vw, 34px); }
  h2 { font-size: clamp(18px, 5vw, 26px); }
  h3 { font-size: clamp(16px, 4vw, 20px); }

  /* --- Header / Logo --- */
  .main-header {
    padding: 10px 0;
  }
  .main-header .logo-box img.logo-desktop {
    display: none;
  }
  .main-header .logo-box img.logo-mobile {
    display: block !important;
    max-height: 50px;
    width: auto;
  }
  .header-phone {
    display: none;
  }

  /* --- Hamburger Menü --- */
  .navbar-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 9999;
  }

  .main-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #1a1a2e;
    z-index: 9998;
    overflow-y: auto;
    padding: 70px 0 30px;
    transition: left 0.3s ease;
    box-shadow: 5px 0 20px rgba(0,0,0,0.4);
  }
  .main-menu.active {
    left: 0;
  }

  .main-menu > ul {
    flex-direction: column;
  }
  .main-menu li a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 24px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  /* Dropdown alt menü */
  .main-menu .dropdown-menu,
  .main-menu ul ul {
    position: static !important;
    display: none;
    box-shadow: none;
    background: rgba(0,0,0,0.2);
    padding-left: 16px;
  }
  .main-menu li:hover > ul,
  .main-menu li.active > ul {
    display: block;
  }

  /* Menü overlay */
  .menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9997;
  }
  .menu-overlay.active {
    display: block;
  }

  /* --- Hero / Banner --- */
  .banner-section,
  .slider-wrapper {
    min-height: auto !important;
    height: auto !important;
  }
  .banner-section .content-box {
    padding: 60px 20px 40px;
    text-align: center;
  }
  .banner-section .btn-box {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  /* --- CTA Butonlar --- */
  .btn, .theme-btn, a.theme-btn {
    min-height: 48px;
    padding: 12px 24px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* --- Hizmetler / Kartlar --- */
  .services-section [class*="col-"],
  .about-section [class*="col-"],
  .features-section [class*="col-"] {
    width: 100% !important;
    padding: 0 15px;
    margin-bottom: 24px;
  }

  /* --- Welcome / Hakkımızda Bölümü --- */
  .welcome-section .image-column {
    order: -1;
    margin-bottom: 24px;
  }
  .welcome-section img {
    border-radius: 8px;
  }

  /* --- Video Bölümü --- */
  .video-section {
    margin: 0 -16px;
    border-radius: 0;
  }

  /* --- İletişim Formu --- */
  .contact-form .form-group {
    width: 100% !important;
  }
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    width: 100% !important;
    font-size: 16px; /* iOS'ta zoom'u engeller */
    padding: 12px 14px;
    border-radius: 6px;
  }
  .contact-form textarea {
    min-height: 120px;
  }

  /* --- Footer --- */
  .footer-widget-section .row,
  .footer-bottom .row {
    flex-direction: column;
    text-align: center;
  }
  .footer-widget-section [class*="col-"] {
    width: 100% !important;
    margin-bottom: 28px;
  }
  .footer-widget-section .footer-logo {
    margin: 0 auto 12px;
  }
  .footer-widget-section .list-link li {
    justify-content: center;
  }
  .footer-widget-section address {
    text-align: center;
  }
  .footer-bottom {
    text-align: center;
  }

  /* --- Faydalı Bağlantılar (Clients) --- */
  .clients-section .clients-carousel img {
    max-height: 50px;
    width: auto;
  }

  /* --- CTA Bölümü --- */
  .cta-section {
    padding: 48px 20px;
    text-align: center;
  }
  .cta-section .content-box {
    max-width: 100%;
  }
}

/* ========== KÜÇÜK MOBİL (max-width: 480px) ========== */
@media (max-width: 480px) {
  .services-section .services-block {
    padding: 20px 16px;
  }

  .banner-section h1 {
    font-size: 22px;
  }

  section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  a[href^="tel"] {
    font-size: 18px;
    font-weight: 700;
  }
}
