/* ==========================================================================
   NUR-TEKNİK Responsive Stylesheet
   Breakpoints: <=1200px, <=992px (Tablet/Mobile Switch), <=768px, <=480px, <=360px
   ========================================================================== */

/* --------------------------------------------------------------------------
   Small Desktops & Large Tablets (<= 1200px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1200px) {
  .hero-title {
    font-size: 2.8rem;
  }

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

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1.1fr 1.1fr;
    gap: 30px;
  }
}

/* --------------------------------------------------------------------------
   Tablets & Mobile Header Switch (<= 992px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 992px) {
  :root {
    --header-height: 70px;
  }

  .top-bar {
    display: none; /* Hide micro topbar on mobile/tablets to save vertical space */
  }

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

  /* Hide Desktop Nav on Tablets & Mobile */
  .nav-menu {
    display: none !important;
  }

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

  /* Dedicated Independent Mobile Drawer */
  .mobile-drawer {
    display: flex !important;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background-color: #FFFFFF;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto !important;
  }

  .mobile-drawer.active {
    right: 0;
  }

  .mobile-drawer-header {
    height: 70px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background-color: #FFFFFF;
    flex-shrink: 0;
  }

  .mobile-drawer-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-drawer-body {
    padding: 20px 16px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
  }

  .mobile-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .mobile-drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 700;
    width: 100%;
    padding: 14px 14px;
    border-bottom: 1px solid #F1F5F9;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    pointer-events: auto !important;
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(229, 9, 20, 0.1);
  }

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

  .mobile-drawer-link i {
    font-size: 0.85rem;
    color: #94A3B8;
  }

  .mobile-drawer-link.active i {
    color: var(--primary-red);
  }

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

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

  /* Transparent Backdrop Overlay */
  .mobile-drawer-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: 9990;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

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

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

  /* Hero Section */
  .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;
  }

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

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

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

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

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

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

/* --------------------------------------------------------------------------
   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;
  }

  .hero-card-floating {
    padding: 20px 16px;
  }

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

  .hero-stat-item {
    padding: 16px 10px;
  }

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

  .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-flex {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .footer-developer-credit {
    font-size: 0.8rem;
    padding-top: 10px;
    margin-top: 10px;
  }

  .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 (<= 480px & <= 360px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 480px) {
  .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: 360px) {
  html {
    font-size: 14px;
  }

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

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