/* Responsive Stylesheet - Halki */

/* 1200px and up (Large Screen) */
@media (min-width: 1201px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Under 1024px (Laptops / Large Tablets) */
@media (max-width: 1024px) {
  .story-layout {
    gap: 40px;
  }
  .story-image img {
    height: 400px;
  }
  .contact-layout {
    gap: 40px;
  }
}

/* Under 768px (Tablets) */
@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }

  /* Header & Mobile Nav Toggle */
  .hamburger {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-secondary);
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    z-index: 999;
    padding: 100px 40px 40px;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  }

  nav.open {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
  }

  nav a {
    font-size: 1.1rem;
  }

  /* Story Layout Collapsing */
  .story-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .story-image {
    order: -1; /* Image on top */
  }

  .story-image img {
    height: 350px;
  }

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

  /* Contact Layout Collapsing */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  /* Modal Layout */
  .modal-content {
    grid-template-columns: 1fr;
    max-height: 85vh;
  }

  .modal-img-area {
    min-height: 250px;
    height: 250px;
  }

  .modal-details {
    padding: 25px;
  }
  
  .modal-title {
    font-size: 2rem;
  }
}

/* Under 480px (Mobile Phones) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.6rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .story-title {
    font-size: 2.2rem;
  }

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

  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card {
    max-width: 100%;
  }

  .contact-info-title {
    font-size: 2.4rem;
  }

  /* Fullscreen modal on mobile */
  .modal-content {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .modal-details {
    padding: 20px;
    max-height: calc(100vh - 250px);
  }
  
  .modal-close-btn {
    top: 15px;
    right: 15px;
  }
  
  .modal-nav-btn {
    width: 40px;
    height: 40px;
    top: 125px; /* position overlay over the image area */
    transform: none;
  }
  
  .modal-prev-btn {
    left: 10px;
  }
  
  .modal-next-btn {
    right: 10px;
  }
}
