/* ====================================================================
   Allensama - Responsive Layout Styles
   Mobile First & Fluid Breakpoints
   ==================================================================== */

/* Tablet & Smaller Desktops (< 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-welcome-badge {
    margin: 0 auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .cafe-board-card {
    text-align: left;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

/* Laptops & Tablets (< 1180px): Hide status pill to keep 5 nav links spacious on 1 single line */
@media (max-width: 1180px) {
  .status-badge-nav {
    display: none !important;
  }
}

/* Tablet & Mobile (< 992px) */
@media (max-width: 992px) {
  .site-header {
    padding: 0 12px;
    top: 10px;
  }

  .navbar {
    padding: 8px 16px;
  }

  .nav-menu {
    position: fixed;
    top: 75px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 3px solid var(--c-pink-base);
    padding: 24px;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 20px 50px rgba(107, 68, 35, 0.2);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 1.05rem;
  }

  .nav-toggle-btn {
    display: flex;
  }

  .status-badge-nav {
    display: none !important; /* Hidden on header, status visible in hero and queue */
  }

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

  .section {
    padding: 70px 0;
  }

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

  .contact-cafe-card {
    padding: 28px 20px;
  }

  .gallery-board-frame {
    padding: 24px 16px;
  }

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

/* Tablets (< 768px) */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* Mobile Phones (< 576px) */
@media (max-width: 576px) {
  .container {
    padding: 0 16px;
  }

  .hero-section {
    padding: 100px 0 50px 0;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.98rem;
  }

  .cafe-board-card {
    padding: 18px 16px;
  }

  .board-quote {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-cta-group .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .mascot-stage {
    max-width: 300px;
  }

  .mascot-backdrop-circle {
    width: 250px;
    height: 250px;
  }

  .mascot-illustration {
    max-width: 270px;
  }

  .mascot-bubble {
    top: -16px;
    right: -4px;
    font-size: 0.84rem;
    padding: 8px 14px;
    max-width: 175px;
  }

  .section {
    padding: 50px 0;
  }

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

  .section-desc {
    font-size: 0.88rem;
    margin-bottom: 24px;
  }

  /* Menu Section */
  .menu-cafe-container {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .menu-card-top {
    height: 200px;
  }

  /* Gallery Section */
  .gallery-board-frame {
    padding: 20px 14px;
  }

  .gallery-filter-tabs {
    gap: 6px;
    margin-bottom: 18px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 0.82rem;
  }

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

  .gallery-card-top {
    height: 200px;
  }

  .gallery-card-body {
    padding: 18px 16px;
  }

  .gallery-pagination {
    margin-top: 22px;
    padding-top: 16px;
    gap: 10px;
  }

  .pagination-controls {
    gap: 6px;
  }

  .page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 0.85rem;
  }

  .page-info {
    font-size: 0.82rem;
  }

  /* Queue Tracker Section */
  .queue-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }

  .queue-stat-card {
    padding: 12px 10px;
    gap: 10px;
  }

  .queue-stat-card .stat-icon {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  .queue-stat-card .stat-info .stat-num {
    font-size: 1.35rem;
  }

  .queue-stat-card .stat-info .stat-label {
    font-size: 0.76rem;
  }

  .queue-tickets-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cafe-receipt-ticket {
    padding: 18px 14px 14px;
  }

  .receipt-ink-stamp {
    top: 10px;
    right: 10px;
    font-size: 0.65rem;
    padding: 2px 6px;
  }

  .receipt-brand-header {
    font-size: 0.66rem;
  }

  .menu-stand-header {
    padding: 6px 12px;
    font-size: 0.74rem;
  }

  .barista-status-chip {
    font-size: 0.74rem;
    padding: 4px 12px;
    text-align: center;
  }

  .queue-control-bar {
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: 12px;
    gap: 10px;
  }

  .queue-search-box {
    width: 100%;
  }

  .queue-search-input {
    padding: 10px 14px 10px 38px;
    font-size: 0.88rem;
  }

  .queue-filter-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 100%;
  }

  .queue-filter-btn {
    width: 100%;
    justify-content: center;
    padding: 8px 6px;
    font-size: 0.78rem;
  }

  /* Loyalty Card Section */
  .loyalty-card-box {
    padding: 20px 14px;
  }

  .stamp-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }

  .stamp-slot {
    min-height: 52px;
    padding: 6px 2px;
    font-size: 0.65rem;
    border-radius: var(--radius-sm);
  }

  .stamp-slot i {
    font-size: 1.05rem !important;
  }

  .stamp-num {
    font-size: 0.62rem;
  }

  /* Contact & Brief */
  .contact-cafe-card {
    padding: 20px 14px;
  }

  .brief-generator-card {
    padding: 20px 14px;
  }

  .social-btn {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

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

  .workflow-steps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .lightbox-content-box {
    border-radius: var(--radius-md);
    max-width: 95vw;
  }

  .lightbox-meta-bar {
    padding: 12px 16px;
  }

  .lightbox-title {
    font-size: 1.1rem;
  }

  .cafe-marquee-wrap {
    padding: 6px 10px;
    margin-bottom: 16px;
  }

  .cafe-marquee-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
}

/* Extra Small Phones (< 440px) */
@media (max-width: 440px) {
  .site-header {
    padding: 0 8px;
    top: 8px;
  }

  .navbar {
    padding: 6px 12px;
  }

  .brand-link {
    gap: 8px;
  }

  .brand-mascot-icon {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .brand-sub {
    font-size: 0.68rem;
  }

  .btn-sound-toggle {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .nav-toggle-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .nav-actions {
    gap: 6px;
  }

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

  .board-quote {
    font-size: 0.92rem;
  }

  .stamp-slot {
    min-height: 48px;
  }

  .stamp-slot i {
    font-size: 0.95rem !important;
  }
}
/* Gallery artwork uses square source images. Keep the full piece visible in the wide card banner. */
#gallery > .container {
  width: min(92vw, 1440px);
  max-width: 1440px;
  padding-inline: 0;
}

#gallery .gallery-board-frame {
  padding: 24px;
}

#gallery .gallery-grid {
  gap: 20px;
}

.gallery-card-top {
  height: 210px;
  background: linear-gradient(135deg, #fff0f3 0%, #fffdf9 100%);
}

.gallery-card-img {
  object-fit: contain;
  object-position: center;
}

.gallery-card:hover .gallery-card-img {
  transform: scale(1.025);
}

@media (max-width: 768px) {
  #gallery .gallery-board-frame { padding: 20px; }
  .gallery-card-top { height: 190px; }
}

@media (max-width: 576px) {
  #gallery > .container { width: calc(100% - 24px); }
  #gallery .gallery-board-frame { padding: 16px 12px; }
  #gallery .gallery-grid { gap: 16px; }
  .gallery-card-top { height: 200px; }
}

/* Simplify queue tickets and keep the status badge in the normal card flow. */
.queue-tickets-grid { gap: 18px; }
.queue-ticket-card {
  padding: 20px;
  border: 1px solid rgba(210, 187, 170, .55);
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(68, 47, 40, .055);
}
.queue-ticket-card::before,
.queue-ticket-card::after,
.receipt-brand-header,
.receipt-ink-stamp,
.receipt-bottom-tear { display: none; }
.ticket-header {
  margin-bottom: 14px;
  padding-bottom: 12px;
}
.ticket-status-badge { white-space: nowrap; }
.ticket-client-row { margin-bottom: 12px; }
.ticket-progress-bar-wrap { height: 6px; }
.ticket-current-step {
  background: #fffaf8;
  border: 1px solid #f2e8e3;
}
.ticket-dates-row {
  flex-wrap: wrap;
  gap: 6px 14px;
  line-height: 1.5;
}

@media (max-width: 576px) {
  .queue-ticket-card { padding: 18px 16px; }
  .ticket-header { align-items: flex-start; gap: 8px; }
  .ticket-status-badge { white-space: normal; text-align: center; }
}
