/* ========================================
   Riva Halı - Responsive Stil Dosyası
======================================== */

@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 28px 40px;
    gap: 6px;
    transition: right 0.4s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu a {
    width: 100%;
    padding: 14px 12px;
    font-size: 1.05rem;
  }

  .nav-menu a.active::after {
    display: none;
  }

  .about-grid,
  .contact-grid,
  .product-detail-grid,
  .content-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-image img {
    height: 400px;
  }

  .about-image-badge {
    left: 16px;
    bottom: 16px;
  }

  .products-grid,
  .services-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .hero-prev {
    left: 12px;
  }

  .hero-next {
    right: 12px;
  }

  .footer-grid {
    gap: 36px;
  }

  .service-detail-hero-img {
    height: 320px;
  }

  .blog-detail-image img {
    height: 340px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 70px;
  }

  .section {
    padding: 70px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-nav {
    width: 40px;
    height: 40px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .mission-vision,
  .form-row {
    grid-template-columns: 1fr;
  }

  .products-grid,
  .services-grid,
  .blog-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    white-space: nowrap;
  }

  .testimonial-card {
    padding: 28px 20px;
  }

  .contact-form,
  .quote-form {
    padding: 24px 18px;
  }

  .map-wrap {
    height: 300px;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .product-actions .btn {
    width: 100%;
  }

  .float-buttons {
    right: 14px;
    bottom: 14px;
  }

  .float-btn {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }

  .page-hero {
    padding: calc(var(--header-h) + 50px) 0 60px;
  }

  .cta-banner {
    padding: 70px 0;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .logo-text strong {
    font-size: 1.15rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .about-image img {
    height: 300px;
  }

  .service-detail-hero-img {
    height: 240px;
  }

  .blog-detail-image img {
    height: 240px;
  }
}
