/* ==========================================================================
   7 SEC Pressing — responsive.css (simple, reliable)
   ========================================================================== */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .quicklinks-grid { grid-template-columns: repeat(2, 1fr); }
  .split-section { grid-template-columns: 1fr; gap: 2rem; }
  .sitemap-box { position: static; margin-top: 2rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .segments-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-main-grid { grid-template-columns: 1fr; }
  .map-frame { min-height: 320px; }
  .about-grid { grid-template-columns: 1fr; }
  .mvv-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  .container { padding-inline: 1.2rem; }
  section { padding-block: 4rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .section-head { margin-bottom: 2rem; }

  /* Topbar */
  .topbar-inner {
    flex-wrap: wrap; justify-content: center; text-align: center;
    gap: 0.8rem; padding-block: 0.8rem;
  }
  .topbar-address { font-size: 0.75rem; gap: 0.4rem; }

  /* ---------- Navigation: hidden by default ---------- */
  .nav-links {
    display: none;                   /* completely hidden */
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    background: rgba(11, 11, 11, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 6rem 2rem;
    z-index: 1000;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
  }
  .nav-links.open {
    display: flex;                   /* visible only when .open is added */
  }

  /* Show the hamburger button */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    z-index: 1100;
    background: transparent;
    border: none;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: 0.3s;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Hero slider */
  .hero-slider { height: 60vh; min-height: 400px; }
  .hero-content { padding-inline: 1.2rem; }
  .hero-content h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; gap: 1rem; }
  .hero-arrow { width: 38px; height: 38px; }
  .hero-arrow.prev { left: 0.8rem; }
  .hero-arrow.next { right: 0.8rem; }

  /* Quicklinks */
  .quicklinks-grid { grid-template-columns: 1fr; }
  .tag-card .photo { height: 220px; }

  /* Testimonials */
  .testimonial-card { flex-direction: column; }
  .avatar { margin: 0 auto 1rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col li { justify-content: center; }
  .social-icons { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 0.6rem; }

  /* Floating buttons */
  .back-to-top,
  .map-pin-btn { right: 1rem; width: 42px; height: 42px; font-size: 1rem; }
  .map-pin-btn { bottom: 5.5rem; }

  /* ===== Inner pages ===== */
  .about-grid { grid-template-columns: 1fr; }
  .founder-card { grid-template-columns: 1fr; text-align: center; padding: 2rem 1.5rem; }
  .founder-portrait { margin: 0 auto; }
  .mvv-grid { grid-template-columns: 1fr; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 2rem 1.5rem; }

  .pricing-cards { grid-template-columns: 1fr; margin-top: -1.5rem; }
  .price-card { padding: 1.5rem; }
  .price-card__name { font-size: 1.1rem; }
  .price-item .amount { font-size: 1.3rem; }
  .search-box-tarifs { min-width: 100%; }
  .filter-wrapper { flex-direction: column; align-items: stretch; }
  .category-filters { justify-content: flex-start; }

  .segments-grid { grid-template-columns: 1fr; }

  .contact-cards-grid { grid-template-columns: 1fr; }
  .contact-info-card { padding: 1.5rem; }
  .map-frame, .map-frame iframe { min-height: 300px; height: 300px; }
  .contact-form-box { padding: 2rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; margin-bottom: 0; }
}

/* Small phones (≤480px) */
@media (max-width: 480px) {
  .hero-slider { height: 55vh; min-height: 350px; }
  .hero-content h1 { font-size: 1.7rem; }
  .btn { padding: 0.8rem 1.6rem; font-size: 0.9rem; }
  .category-pill { padding: 0.5rem 1rem; font-size: 0.8rem; }
  .search-box-tarifs { padding: 0.7rem 1rem; }
  .price-card__details { flex-direction: column; gap: 0.8rem; }
  .price-item { text-align: left; }
  .tarifs-hero { padding: 2rem 0 4rem; }
  .tag-card .photo { height: 180px; }
}