/* ==========================================================
   CAFE BEANS — RESPONSIVE & MOBILE STYLESHEET
   Mobile Breakpoints: 320px, 375px, 425px, 768px, 1024px
   Features: Sticky Bottom Action Bar & Mobile Drawer Navigation
   ========================================================== */

/* Mobile Bottom Sticky Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: rgba(14, 12, 10, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-border);
  padding: 0.6rem 1rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}

.mobile-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}

.mobile-bottom-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0.45rem 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-cream-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
}

.mobile-bottom-btn svg {
  width: 20px;
  height: 20px;
}

.mobile-bottom-btn:hover,
.mobile-bottom-btn.active {
  color: var(--color-gold);
}

.mobile-bottom-btn.btn-book-cta {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: #0d0b09;
  flex: 1.4;
  padding: 0.55rem 0.5rem;
  box-shadow: 0 2px 10px rgba(201, 155, 83, 0.35);
}

.mobile-bottom-btn.btn-book-cta:hover {
  background: var(--color-gold-light);
  color: #000;
}

/* Mobile Drawer Menu */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 360px;
  height: 100vh;
  background-color: var(--bg-surface-elevated);
  border-left: 1px solid var(--color-border);
  z-index: 1200;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.mobile-drawer-close {
  background: none;
  border: none;
  color: var(--color-cream);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.2rem;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.mobile-drawer-link {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-cream);
  display: block;
  padding: 0.4rem 0;
}

.mobile-drawer-link:hover,
.mobile-drawer-link.active {
  color: var(--color-gold);
}

.mobile-drawer-contact {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Tablet & Smaller Screens (<= 1024px) */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

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

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

  .about-badge-floating {
    right: 15px;
    bottom: -15px;
  }

  .signature-grid,
  .menu-items-grid,
  .offers-grid,
  .gallery-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  body {
    padding-bottom: 68px; /* Offset for sticky bottom action bar */
  }

  .mobile-bottom-bar {
    display: block;
  }

  .header-actions .btn-primary {
    display: none; /* Accessible in bottom bar */
  }

  .hero-section {
    min-height: 84vh;
    padding-top: 6rem;
  }

  .highlights-section {
    margin-top: -2rem;
    padding-bottom: 3.5rem;
  }

  .highlights-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

  .highlight-card {
    padding: 1.25rem 1rem;
  }

  .signature-grid,
  .menu-items-grid,
  .offers-grid,
  .gallery-grid,
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

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

  .about-image-main img {
    height: 340px;
  }

  .reservation-step-box {
    padding: 1.75rem 1.25rem;
  }

  .confirmation-card {
    margin: 1.5rem auto;
  }

  .confirmation-details-table th,
  .confirmation-details-table td {
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
  }
}

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

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

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

  .about-features {
    grid-template-columns: 1fr;
  }

  .menu-search-bar {
    border-radius: var(--radius-sm);
  }

  .tables-selection-grid {
    grid-template-columns: 1fr;
  }
}

/* Print Stylesheet for Reservation Voucher */
@media print {
  .site-header,
  .site-footer,
  .mobile-bottom-bar,
  .confirmation-actions,
  .btn,
  .nav-toggle,
  .toast-container {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    padding: 0 !important;
  }

  .confirmation-card {
    border: 2px solid #333 !important;
    box-shadow: none !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .confirmation-header {
    background: #f5f5f5 !important;
    color: #000 !important;
  }

  .confirmation-booking-id {
    color: #000 !important;
  }

  .confirmation-details-table th {
    color: #444 !important;
  }

  .confirmation-details-table td {
    color: #000 !important;
  }
}
