/* ================================================
   MADIUN NASI BOX - Responsive Styles
   Mobile-First Breakpoints
   ================================================ */

/* ================================================
   LARGE MOBILE (480px and up)
   ================================================ */
@media (min-width: 480px) {
  /* Adjust container padding */
  :root {
    --container-padding: 2rem;
  }

  /* Hero section adjustments */
  .hero-content {
    max-width: 500px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  /* Grid adjustments */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Team grid */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================================================
   TABLET (768px and up)
   ================================================ */
@media (min-width: 768px) {
  /* Typography */
  :root {
    --text-6xl: 3.5rem;
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
  }

  /* Container */
  :root {
    --container-padding: 2.5rem;
  }

  /* Hero */
  .hero {
    min-height: 90vh;
  }

  .hero-content {
    max-width: 550px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

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

  /* Navigation - Desktop style */
  .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .mobile-overlay {
    display: none !important;
  }

  /* Grid layouts */
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .footer-grid > div:first-child {
    grid-column: span 2;
  }

  /* About story */
  .about-story {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }

  /* Mission Vision */
  .mv-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  /* Team */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Contact */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  /* Map */
  .map-container {
    margin-top: var(--space-2xl);
  }
}

/* ================================================
   DESKTOP (1024px and up)
   ================================================ */
@media (min-width: 1024px) {
  /* Typography */
  :root {
    --text-6xl: 4rem;
    --text-5xl: 3rem;
    --text-4xl: 2.5rem;
  }

  /* Container */
  :root {
    --container-max: 1200px;
    --container-padding: 2rem;
  }

  /* Hero */
  .hero h1 {
    font-size: 4rem;
  }

  .hero p {
    font-size: var(--text-xl);
  }

  /* Section spacing */
  .section {
    padding: var(--space-4xl) 0;
  }

  /* Grid layouts */
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  /* Menu card image */
  .menu-card-image {
    height: 220px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }

  /* About story */
  .about-story {
    gap: var(--space-4xl);
  }

  /* Mission Vision */
  .mv-grid {
    gap: var(--space-2xl);
  }

  /* Team */
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }

  /* WhatsApp float */
  .whatsapp-float {
    bottom: var(--space-2xl);
    right: var(--space-2xl);
  }

  .whatsapp-float a {
    width: 64px;
    height: 64px;
  }
}

/* ================================================
   LARGE DESKTOP (1280px and up)
   ================================================ */
@media (min-width: 1280px) {
  :root {
    --container-max: 1280px;
  }

  /* Hero adjustments */
  .hero-content {
    max-width: 600px;
  }

  .hero h1 {
    font-size: 4.5rem;
  }

  /* Menu card */
  .menu-card-image {
    height: 240px;
  }

  /* Section headers */
  .section-header h2 {
    font-size: var(--text-5xl);
  }
}

/* ================================================
   EXTRA LARGE DESKTOP (1536px and up)
   ================================================ */
@media (min-width: 1536px) {
  :root {
    --container-max: 1400px;
    --text-6xl: 4.5rem;
  }

  .hero h1 {
    font-size: 5rem;
  }
}

/* ================================================
   MOBILE ONLY (max-width: 767px)
   Styles for mobile devices only
   ================================================ */
@media (max-width: 767px) {
  /* Header */
  .header {
    padding: var(--space-sm) 0;
  }

  .logo {
    font-size: var(--text-lg);
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  /* Hide desktop nav, show mobile toggle */
  .nav-links,
  .header-cta .btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .mobile-overlay {
    display: block;
  }

  /* Hero */
  .hero {
    min-height: 100vh;
    padding-top: 80px;
  }

  .hero-bg {
    width: 100%;
    height: 40%;
    bottom: 0;
    top: auto;
    clip-path: polygon(0 30%, 100% 0, 100% 100%, 0% 100%);
  }

  .hero-bg::after {
    background: linear-gradient(0deg, var(--color-cream) 0%, transparent 50%);
  }

  .hero-content {
    text-align: center;
    padding: var(--space-2xl) 0;
    margin-top: auto;
  }

  .hero-badge {
    margin-bottom: var(--space-md);
  }

  .hero h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-md);
  }

  .hero p {
    font-size: var(--text-base);
    margin-bottom: var(--space-lg);
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-buttons .btn {
    flex: 1;
    max-width: 200px;
  }

  .scroll-indicator {
    display: none;
  }

  /* Sections */
  .section {
    padding: var(--space-3xl) 0;
  }

  .section-header {
    margin-bottom: var(--space-2xl);
  }

  .section-header h2 {
    font-size: var(--text-3xl);
  }

  .section-header p {
    font-size: var(--text-base);
  }

  /* Grids */
  .grid {
    gap: var(--space-lg);
  }

  /* Menu Cards */
  .menu-card-image {
    height: 180px;
  }

  .menu-card-content {
    padding: var(--space-md);
  }

  .menu-card-title {
    font-size: var(--text-lg);
  }

  .menu-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .menu-card-footer .btn {
    width: 100%;
  }

  /* Feature Cards */
  .feature-card {
    padding: var(--space-xl);
  }

  .feature-icon {
    width: 64px;
    height: 64px;
    font-size: var(--text-2xl);
  }

  /* Testimonial */
  .testimonial-card {
    padding: var(--space-xl);
  }

  .testimonial-card::before {
    font-size: 4rem;
    left: var(--space-md);
  }

  .testimonial-text {
    font-size: var(--text-base);
    padding-top: var(--space-xl);
  }

  /* CTA Banner */
  .cta-banner {
    padding: var(--space-3xl) 0;
  }

  .cta-banner h2 {
    font-size: var(--text-3xl);
  }

  .cta-banner p {
    font-size: var(--text-base);
  }

  /* Footer */
  .footer {
    padding: var(--space-3xl) 0 var(--space-xl);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .footer-brand .logo {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-contact li {
    justify-content: center;
  }

  /* Page Header */
  .page-header {
    padding: var(--space-3xl) 0 var(--space-2xl);
  }

  .page-header h1 {
    font-size: var(--text-4xl);
  }

  /* Filter Tabs */
  .filter-tabs {
    gap: var(--space-xs);
    margin-bottom: var(--space-2xl);
  }

  .filter-tab {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
  }

  /* About Page */
  .about-story {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-story-image {
    order: -1;
  }

  .about-story-content {
    text-align: center;
  }

  .mv-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .mv-card {
    padding: var(--space-xl);
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .team-card-image {
    height: 240px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  /* Contact */
  .contact-form {
    padding: var(--space-lg);
  }

  .contact-card {
    padding: var(--space-lg);
  }

  .contact-card-icon {
    width: 50px;
    height: 50px;
    font-size: var(--text-xl);
  }

  /* Map */
  .map-container {
    margin-top: var(--space-2xl);
    border-radius: var(--radius-md);
  }

  .map-container iframe {
    height: 300px;
  }

  /* WhatsApp Float */
  .whatsapp-float {
    bottom: var(--space-lg);
    right: var(--space-lg);
  }

  .whatsapp-float a {
    width: 56px;
    height: 56px;
    font-size: var(--text-2xl);
  }
}

/* ================================================
   SMALL MOBILE (max-width: 374px)
   Extra small devices
   ================================================ */
@media (max-width: 374px) {
  :root {
    --container-padding: 1rem;
  }

  .hero h1 {
    font-size: var(--text-3xl);
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: var(--text-sm);
  }

  .section-header h2 {
    font-size: var(--text-2xl);
  }
}

/* ================================================
   LANDSCAPE MOBILE
   ================================================ */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: var(--space-3xl) 0;
  }

  .hero-bg {
    height: 100%;
  }

  .hero-content {
    margin-top: 0;
  }
}

/* ================================================
   TOUCH DEVICE OPTIMIZATIONS
   ================================================ */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .menu-card:hover {
    transform: none;
  }

  .feature-card:hover {
    transform: none;
  }

  .team-card:hover {
    transform: none;
  }

  /* Add active states instead */
  .menu-card:active,
  .feature-card:active,
  .team-card:active {
    transform: scale(0.98);
  }

  /* Larger touch targets */
  .btn {
    min-height: 48px;
  }

  .filter-tab {
    min-height: 44px;
  }

  /* Disable smooth scroll on touch */
  html {
    scroll-behavior: auto;
  }
}

/* ================================================
   HIGH DPI DISPLAYS
   ================================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Use higher quality images if available */
  .hero-bg {
    /* Assuming higher res version exists */
  }
}

/* ================================================
   DARK MODE SUPPORT (Optional)
   ================================================ */
@media (prefers-color-scheme: dark) {
  /*
  Uncomment below to enable dark mode

  :root {
    --color-rice-white: #1a1a1a;
    --color-cream: #252525;
    --color-white: #2d2d2d;
    --color-text: #e0e0e0;
    --color-text-light: #a0a0a0;
    --color-brown: #d4a574;
    --color-brown-light: #a08060;
  }
  */
}

/* ================================================
   PRINT STYLES
   ================================================ */
@media print {
  .header,
  .footer,
  .whatsapp-float,
  .scroll-indicator,
  .cta-banner,
  .testimonial-slider,
  .filter-tabs {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .hero-bg {
    display: none;
  }

  .section {
    padding: 1rem 0;
  }

  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }

  .menu-card,
  .feature-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
