/* Mirage Diner — site styles
   Tailwind CDN handles utilities. This file holds:
   - Brand variables
   - Font setup
   - Components Tailwind doesn't cover well (sticky bar, gallery, lightbox, scroll behavior)
*/

:root {
  --brand-red: #94221f;
  --brand-red-dark: #7a1c19;
  --brand-cream: #FBF7F2;
  --brand-cream-tan: #E8DFD3;
  --brand-charcoal: #1A1A1A;
  --brand-muted: #5C5C5C;
  --brand-gold: #C9A24A;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--brand-charcoal);
  background: var(--brand-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Fraunces', Georgia, serif;
  letter-spacing: -0.01em;
}

/* Header — sticky with scroll-shadow */
.site-header {
  transition: box-shadow .2s ease, background-color .2s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
}

/* Hero ken-burns */
@keyframes kenburns {
  0%   { transform: scale(1.02); }
  100% { transform: scale(1.10); }
}
.hero-img {
  animation: kenburns 18s ease-in-out infinite alternate;
}

/* Mobile nav overlay */
.mobile-nav {
  transform: translateY(-100%);
  transition: transform .35s cubic-bezier(.65,.05,.36,1);
}
.mobile-nav.open { transform: translateY(0); }

/* Sticky bottom bar (mobile) */
.sticky-cta {
  transform: translateY(120%);
  transition: transform .35s cubic-bezier(.65,.05,.36,1);
}
.sticky-cta.visible { transform: translateY(0); }

/* Gallery — masonry-ish CSS columns */
.gallery-grid {
  column-count: 2;
  column-gap: 1rem;
}
@media (min-width: 768px) { .gallery-grid { column-count: 3; } }
@media (min-width: 1024px) { .gallery-grid { column-count: 4; } }
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  display: block;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item.is-hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,15,15,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.5rem;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 95vw;
  max-height: 92vh;
  border-radius: 0.5rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: white;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }

/* Form polish */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--brand-cream-tan);
  border-radius: 0.5rem;
  background: white;
  font-family: inherit;
  font-size: 1rem;
  color: var(--brand-charcoal);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(148,34,31,.12);
}
.form-input::placeholder { color: #9a9a9a; }

/* Button hover lifts */
.btn-primary {
  background: var(--brand-red);
  color: white;
  font-weight: 600;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover {
  background: var(--brand-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(148,34,31,.25);
}

/* Map iframe wrapper */
.map-frame {
  position: relative;
  padding-bottom: 45%;
  height: 0;
  overflow: hidden;
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 768px) {
  .map-frame { padding-bottom: 75%; }
}

/* Hide scrollbar on horizontal carousels but keep functionality */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Print-friendly menu page */
@media print {
  .site-header, .sticky-cta, .site-footer, .utility-bar { display: none !important; }
}
