/* ==========================================================================
   SPPG Kedungjajang Wonorejo 02 - Responsive Breakpoints
   ========================================================================== */

/* Large Tablets & Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .hero-image-card img {
    height: 350px;
  }

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

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(3) {
    border-top: 1px solid var(--border-subtle);
    padding-top: 1rem;
  }

  .stat-item:nth-child(4) {
    border-top: 1px solid var(--border-subtle);
    padding-top: 1rem;
    border-right: none;
  }

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

  .about-brief-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .menu-card-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

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

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

/* Medium Tablets & Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .top-bar-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .mobile-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    border-bottom: 3px solid var(--primary-bright);
    display: none;
    z-index: 999;
  }

  .main-nav.show {
    display: block;
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .nav-link {
    padding: 0.75rem 1rem;
  }

  .header-cta {
    display: none;
  }

  .hero-section {
    padding: 3rem 0 4rem;
  }

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

  .stats-grid {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1rem;
  }

  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

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

  .process-timeline {
    grid-template-columns: 1fr;
  }

  .menu-items-list {
    grid-template-columns: 1fr;
  }

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

  .survey-container {
    padding: 1.5rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

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

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

/* Small Screens (max-width: 480px) */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .brand-title {
    font-size: 1rem;
  }

  .logo-badge {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}


/* ==========================================================================
   Global Responsive Width Protection
   ========================================================================== */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

section,
main,
header,
footer {
  max-width: 100%;
}

img,
video,
iframe {
  max-width: 100%;
}