/* ==========================================================================
   SIMIT & CAFE THEME — RESPONSIVE CSS (Mobile-First Overrides)
   v10 — Clean rewrite: only rules NOT already in main.css or page CSS
   ========================================================================== */

/* ========================================================================
   BASE / MOBILE (< 768px) — Additions only, no duplicates of main.css
   ======================================================================== */

/* Hero CTA buttons stack on mobile */
.hero-cta {
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-cta .btn-primary,
.hero-cta .btn-ghost {
  width: 100%;
  max-width: 280px;
  text-align: center;
}

/* Ensure ghost button is visible on dark backgrounds */
.hero-cta .btn-ghost {
  border-color: var(--gold-200);
  color: var(--gold-200);
}

.reservation-band .btn-ghost {
  border-color: var(--gold-200);
  color: var(--gold-200);
}

/* Reservation actions stack on mobile */
.reservation-actions {
  flex-direction: column;
  align-items: center;
}

.reservation-actions .btn-primary,
.reservation-actions .btn-ghost {
  width: 100%;
  max-width: 280px;
  text-align: center;
}

/* Footer stacks on mobile (already grid 1fr in main.css) */
.footer-bottom {
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.footer-bottom span {
  display: block;
}

/* Prevent iOS zoom on inputs */
.form-input,
.form-textarea {
  font-size: 16px;
}

/* Menu sidebar horizontal scroll on mobile */
.menu-sidebar {
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.menu-sidebar::-webkit-scrollbar {
  display: none;
}

/* Gallery grid single column mobile */
.galerie-grid {
  column-count: 1;
}

/* Contact form compact padding mobile */
.contact-form {
  padding: 24px 16px;
}

/* ========================================================================
   SMALL PHONES (max-width: 374px)
   ======================================================================== */

@media (max-width: 374px) {
  .container {
    padding: 0 12px;
  }

  .hero-content {
    padding: 24px 12px;
  }

  h1 {
    font-size: clamp(1.6rem, 8vw, 2rem);
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-ghost {
    max-width: 100%;
    padding: 12px 20px;
    font-size: 10px;
  }

  .stats-grid {
    gap: 8px;
  }

  .stat-num {
    font-size: 1.4rem;
  }

  .cat-btn {
    font-size: 10px;
    padding: 8px 12px;
  }

  .footer-grid {
    gap: 24px;
  }
}

/* ========================================================================
   TABLET (min-width: 768px)
   ======================================================================== */

@media (min-width: 768px) {
  /* Hero CTA horizontal on tablet+ */
  .hero-cta {
    flex-direction: row;
    align-items: center;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-ghost {
    width: auto;
    max-width: none;
  }

  /* Footer bottom horizontal */
  .footer-bottom {
    flex-direction: row;
    gap: 0;
    text-align: left;
  }

  .footer-bottom span {
    display: inline;
  }

  /* Reservation actions horizontal */
  .reservation-actions {
    flex-direction: row;
    justify-content: center;
  }

  .reservation-actions .btn-primary,
  .reservation-actions .btn-ghost {
    width: auto;
    max-width: none;
  }

  /* Gallery 2 columns */
  .galerie-grid {
    column-count: 2;
  }

  /* Contact form padding */
  .contact-form {
    padding: 32px;
  }
}

/* ========================================================================
   DESKTOP (min-width: 1024px)
   ======================================================================== */

@media (min-width: 1024px) {
  /* Gallery 3 columns */
  .galerie-grid {
    column-count: 3;
  }

  /* Hero CTA never wrap */
  .hero-cta {
    flex-wrap: nowrap;
  }
}

/* ========================================================================
   WIDE SCREENS (min-width: 1200px)
   ======================================================================== */

@media (min-width: 1200px) {
  .nav-container {
    padding: 0 32px;
  }

  .footer-grid {
    padding-left: 32px;
    padding-right: 32px;
  }

  .footer-bottom {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* ========================================================================
   PRINT STYLES
   ======================================================================== */

@media print {
  .nav-bar,
  .site-footer,
  .no-print,
  .qr-actions,
  .page-hero,
  .hamburger,
  .nav-drawer,
  .nav-drawer-overlay,
  .btn-reserve-nav {
    display: none !important;
  }

  body {
    background-color: var(--white, #fff);
    color: #000;
    font-size: 12pt;
  }

  .qr-page-bg {
    background-color: var(--white, #fff);
    min-height: auto;
    padding: 0;
  }

  .qr-card {
    border: 2px solid var(--gold-400, #C9973A);
    box-shadow: none;
    max-width: none;
  }

  a {
    color: inherit;
  }

  a:after {
    content: '';
  }

  .section {
    page-break-inside: avoid;
  }

  .container {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  @page {
    margin: 1cm;
  }

  h1, h2, h3, h4 {
    page-break-after: avoid;
  }

  p {
    page-break-inside: avoid;
  }

  img {
    page-break-inside: avoid;
    max-width: 100%;
  }
}

/* ========================================================================
   HIGH DPI / RETINA
   ======================================================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-img,
  img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* ========================================================================
   REDUCED MOTION
   ======================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================================================
   LANDSCAPE (short viewport)
   ======================================================================== */

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 60px 20px;
  }

  .hero-content {
    padding: 20px;
  }

  .page-hero {
    padding: clamp(24px, 4vw, 40px) 20px;
  }
}

/* ========================================================================
   TOUCH DEVICES
   ======================================================================== */

@media (hover: none) and (pointer: coarse) {
  .btn-primary,
  .btn-ghost {
    padding: 16px 30px;
  }

  .nav-link {
    padding: 6px 0;
  }

  .form-input,
  .form-textarea {
    padding: 14px 16px;
    font-size: 16px;
  }

  .filter-btn {
    padding: 8px 18px;
  }

  .cat-btn {
    padding: 12px 16px;
  }

  .dish-item {
    padding: 16px 0;
  }

  /* Disable hover effects on touch */
  .dish-card:hover {
    transform: none;
    box-shadow: none;
  }

  .gallery-preview-item:hover img,
  .gallery-item:hover img {
    transform: none;
  }
}
