/* ==========================================================================
   Global Cadde Emlak Danışmanlığı - Responsive & Mobile Fixes
   ========================================================================== */

/* Prevent Horizontal Overflow / Kayma */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

/* Tablet Screens (<= 1024px) */
@media (max-width: 1024px) {
  .hero-heading {
    font-size: 2.6rem;
  }
  .strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .strip-item {
    border-right: none;
    padding: 10px;
  }
  .services-5col-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .process-5-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .district-grid-4col {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-5col-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  body {
    padding-top: 80px !important;
  }

  .btn-phone-pill {
    display: none !important;
  }

  .header-inner {
    height: 80px;
  }

  .logo-link img {
    height: 56px;
    max-width: 200px;
  }

  .header-nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 30px 24px;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    z-index: 999;
  }

  .header-nav.active {
    left: 0;
  }

  .header-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
  }

  .header-nav a {
    font-size: 1.1rem;
    display: block;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .mobile-toggle-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-gray);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1.3rem;
    color: var(--dark-navy);
    cursor: pointer;
  }

  .hero-section {
    min-height: 420px;
    padding: 60px 0;
    background-attachment: scroll;
  }

  .hero-heading {
    font-size: 2.1rem;
  }

  .hero-subtext {
    font-size: 0.95rem;
  }

  .btn-navy-square {
    width: 100%;
    justify-content: center;
  }

  .strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .strip-item {
    border-right: none;
    border-bottom: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px 10px;
    flex-direction: column;
    text-align: center;
  }

  .strip-icon {
    font-size: 1.5rem;
  }

  .strip-text h4 {
    font-size: 0.85rem;
  }

  .strip-text p {
    font-size: 0.72rem;
  }

  .services-5col-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .serv-5-card {
    padding: 20px 12px;
  }

  .serv-5-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .serv-5-card h3 {
    font-size: 0.88rem;
    margin-bottom: 6px;
  }

  .serv-5-card p {
    font-size: 0.75rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .process-5-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .testi-carousel-wrapper {
    flex-direction: column;
  }

  .testi-3col-grid {
    grid-template-columns: 1fr;
  }

  .blog-gundem-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .blog-horiz-grid {
    grid-template-columns: 1fr;
  }

  .blog-horiz-card {
    flex-direction: column;
  }

  .blog-horiz-img {
    width: 100%;
    height: 180px;
  }

  .district-grid-4col {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-5col-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .service-detail-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .serv-detail-icon {
    margin: 0 auto;
  }

  .serv-detail-features {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Small Phones (<= 480px) */
@media (max-width: 480px) {
  .hero-heading {
    font-size: 1.75rem;
  }

  .district-grid-4col {
    grid-template-columns: 1fr;
  }

  .whatsapp-float-btn {
    width: 50px;
    height: 50px;
    font-size: 26px;
    bottom: 18px;
    right: 18px;
  }
}
