/* =========================================================
   Hızır Çilingir – responsive.css
   Mobil ve tablet breakpoint stilleri
   ========================================================= */

/* ── Tablet & Mobile Navbar Drawer: max-width 991px ── */
@media (max-width: 991.98px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: var(--color-white);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  }

  .navbar {
    position: relative;
  }

  .navbar-toggler {
    padding: 0.45rem 0.75rem;
    font-size: 1.25rem;
    border-radius: var(--radius-md);
    background: #f0f9ff;
    border: 1px solid var(--color-border) !important;
    color: var(--color-navy);
  }

  .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: -12px;
    right: -12px;
    background: var(--color-white);
    padding: 1.25rem 1.5rem 1.75rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
    border-bottom: 4px solid var(--color-gold);
    border-radius: 0 0 24px 24px;
    z-index: 1050;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .navbar-nav {
    margin-bottom: 1rem !important;
  }

  .navbar-nav .nav-item {
    margin-bottom: 0.25rem;
  }

  .navbar-nav .nav-link {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    padding: 0.8rem 1rem !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #f1f5f9;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    color: var(--color-navy) !important;
    background: #f0f9ff !important;
  }

  .navbar-collapse .nav-cta {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.85rem 1.5rem !important;
    font-size: 1rem !important;
    margin-top: 0.75rem !important;
    box-shadow: var(--shadow-orange) !important;
  }

  .hero-swiper,
  .hero-slide {
    height: 460px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .about-intro-img img {
    height: 340px;
  }

  .about-badge-overlay {
    bottom: 10px;
    right: 10px;
  }

  /* Process steps — stack on tablet */
  .process-connector {
    display: none;
  }

  /* Footer columns */
  .footer-col {
    margin-bottom: 2rem;
  }

  /* Sticky header offset for sticky positioned elements */
  .site-header {
    position: sticky;
    top: 0;
  }
}

/* ── Mobile: max-width 767px ── */
@media (max-width: 767.98px) {
  :root {
    --topbar-height: 36px;
  }

  body {
    padding-bottom: 70px; /* space for mobile CTA bar */
  }

  /* Topbar — hide address on small screens */
  .topbar-address {
    display: none !important;
  }

  /* Hero */
  .hero-swiper,
  .hero-slide {
    height: 520px;
  }

  .hero-content {
    padding: 0 var(--space-3);
  }

  .hero-badge {
    font-size: 10px;
    padding: 0.3rem 0.7rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
  }

  .hero-actions {
    gap: 0.5rem;
  }

  .hero-actions .btn {
    font-size: 0.875rem;
    padding: 0.7rem 1.1rem;
  }

  /* Mobile CTA Bar — show */
  .mobile-cta-bar {
    display: block;
  }

  /* WhatsApp float — hide on mobile (mobile bar handles it) */
  .whatsapp-float {
    display: none;
  }

  /* Scroll top — lower position on mobile */
  .scroll-top {
    bottom: 84px;
    right: 16px;
  }

  /* Sections */
  .section {
    padding: 3rem 0;
  }

  .section-lg {
    padding: 3.5rem 0;
  }

  .section-sm {
    padding: 2rem 0;
  }

  /* Quick service cards — 2 columns on mobile */
  .quick-services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Feature grid */
  .feature-item {
    padding: var(--space-4);
  }

  /* Service cards */
  .service-card-icon-wrap {
    height: 90px;
    font-size: 28px;
  }

  /* About */
  .about-intro-img img {
    height: 260px;
  }

  .about-badge-overlay {
    bottom: 12px;
    right: 12px;
    padding: 0.75rem 1rem;
  }

  .about-badge-number {
    font-size: 1.75rem;
  }

  /* Stats */
  .stat-item {
    padding: var(--space-4);
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Emergency phone */
  .emergency-phone {
    font-size: 2rem;
  }

  /* Map */
  .map-container iframe {
    height: 300px;
  }

  /* Page hero */
  .page-hero {
    padding: 2.5rem 0;
  }

  /* Blog */
  .blog-card-img {
    height: 180px;
  }

  /* Footer */
  .site-footer {
    padding-top: 3rem;
  }

  /* Navbar mobile menu cleanup */
  .navbar-collapse {
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 1rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-height) - var(--topbar-height));
    overflow-y: auto;
  }

  .nav-link {
    padding: 0.65rem 0.75rem !important;
    font-size: var(--font-size-base) !important;
    border-radius: var(--radius-md) !important;
  }

  .nav-cta {
    display: flex !important;
    justify-content: center;
    margin-top: 0.5rem;
  }

  /* Contact form */
  .contact-info-card {
    padding: var(--space-5);
  }
}

/* ── Small Mobile: max-width 480px ── */
@media (max-width: 479.98px) {
  .hero-title {
    font-size: 1.3rem;
  }

  .hero-subtitle {
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-actions .btn {
    font-size: 0.8125rem;
    padding: 0.6rem 0.9rem;
  }

  .quick-service-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .quick-service-title {
    font-size: var(--font-size-sm);
  }

  .mobile-cta-btn {
    font-size: 10px;
  }

  .mobile-cta-btn i {
    font-size: 16px;
  }
}

/* ── Desktop only styles ── */
@media (min-width: 992px) {
  .hero-swiper,
  .hero-slide {
    height: 620px;
  }

  /* Hover image zoom on desktop only */
  .service-card:hover .service-card-img {
    transform: scale(1.04);
  }

  .service-card-img {
    transition: transform 0.4s ease;
  }

  /* Topbar height compensated */
  .topbar + .site-header {
    top: 0;
  }
}

/* ── Large Desktop: min-width 1400px ── */
@media (min-width: 1400px) {
  .hero-swiper,
  .hero-slide {
    height: 680px;
  }

  .hero-title {
    font-size: 3rem;
  }
}

/* ── Print Styles ── */
@media print {
  .topbar,
  .site-header,
  .hero-swiper,
  .whatsapp-float,
  .mobile-cta-bar,
  .scroll-top,
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    padding-bottom: 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .site-footer {
    background: #fff;
    color: #000;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .swiper-slide-active .hero-slide-bg {
    transform: none;
  }
}
