/* ==========================================================================
   NUR-TEKNİK Mobile Responsive Stylesheet
   Breakpoints: 1200px, 992px, 768px, 576px, 375px, 320px
   ========================================================================== */

/* --------------------------------------------------------------------------
   Large Tablets & Small Desktops (<= 1024px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  :root {
    --header-height: 70px;
  }

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

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

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

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

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

  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --------------------------------------------------------------------------
   Tablets & Mobile Menus (<= 992px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 992px) {
  .top-bar {
    display: none; /* Hide micro topbar on mobile to save vertical space */
  }

  .hamburger-btn {
    display: flex !important;
  }

  /* Slide-in Mobile Drawer from Right */
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 290px;
    max-width: 85vw;
    height: calc(100vh - var(--header-height));
    background-color: #FFFFFF;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    padding: 20px 18px 30px;
    gap: 0;
    box-shadow: -6px 0 25px rgba(0, 0, 0, 0.18);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    overflow-y: auto;
    display: flex;
  }

  .nav-menu.active {
    right: 0;
  }

  .mobile-nav-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 1040;
    pointer-events: none;
  }

  .mobile-nav-backdrop.active {
    pointer-events: auto;
  }

  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 700;
    width: 100%;
    padding: 13px 10px;
    border-bottom: 1px solid #F1F5F9;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover, .nav-link.active {
    background-color: rgba(229, 9, 20, 0.06);
    color: var(--primary-red);
  }

  .nav-link i {
    font-size: 0.82rem;
    color: #94A3B8;
    transition: transform 0.2s;
  }

  .nav-link.active i {
    color: var(--primary-red);
    transform: translateX(2px);
  }

  .mobile-nav-footer {
    display: flex;
    flex-direction: column;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--border-color);
  }

  .mobile-nav-address {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
    font-weight: 500;
  }

  .nav-actions {
    margin-right: 6px;
  }

  .nav-actions .btn {
    padding: 7px 14px;
    font-size: 0.82rem;
  }

  /* Hero Reordering */
  .hero-section {
    padding: 70px 0 60px;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-badge {
    margin: 0 auto 16px;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-features {
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .contact-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
  }
}

/* --------------------------------------------------------------------------
   Mobile Phones (<= 768px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: 1.9rem;
  }

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

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card-thumb {
    height: 190px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .about-features-list {
    grid-template-columns: 1fr;
  }

  .contact-form-box {
    padding: 24px 20px;
  }

  .hero-cta-group .btn,
  .contact-form-box .btn,
  .contact-cta-banner .btn {
    width: 100%;
  }

  .gallery-filters {
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    font-size: 0.82rem;
    padding: 6px 14px;
  }

  .map-wrapper {
    height: 300px;
  }
}

/* --------------------------------------------------------------------------
   Small Mobile Screens (<= 414px & 375px & 320px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 414px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-stat-box {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-stat-number {
    font-size: 1.8rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .counter-value {
    font-size: 2.4rem;
  }

  .brand-logo img {
    height: 40px;
  }

  .nav-menu {
    width: 85%;
  }

  .contact-cta-title {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 320px) {
  html {
    font-size: 14px;
  }

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

  .section-title {
    font-size: 1.6rem;
  }
}
