/* ============================================
   NOWHERE CAFE — Global Stylesheet
   Dark / Editorial / Bold
   ============================================ */

/* ---------- Base & Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background-color: #1A1A1A;
  color: #F8F5EE;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', serif;
  letter-spacing: 0.02em;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #000;
}
::-webkit-scrollbar-thumb {
  background: #C9A84C;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e0ba5c;
}

/* ---------- Nav ---------- */
nav {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---------- Hero Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  animation: fadeInUp 1s ease both;
}

.hero-subtitle {
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-stars {
  animation: fadeInUp 1s ease 0.35s both;
}

.hero-cta {
  animation: fadeInUp 1s ease 0.5s both;
}

.hero-scroll {
  animation: fadeIn 1.5s ease 0.8s both;
}

/* ---------- Hero ---------- */
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.40) 50%,
    rgba(0,0,0,0.75) 100%
  );
}

.hero-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* ---------- Section Divider ---------- */
.section-rule {
  width: 60px;
  height: 2px;
  background: #C9A84C;
  margin: 0 auto 2rem;
}

.section-rule-left {
  width: 60px;
  height: 2px;
  background: #C9A84C;
  margin-bottom: 1.5rem;
}

/* ---------- Gold Button ---------- */
.btn-gold {
  display: inline-block;
  background: #C9A84C;
  color: #000;
  padding: 0.85rem 2.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-family: 'Georgia', serif;
  border: 2px solid #C9A84C;
  transition: background 0.25s, color 0.25s, transform 0.2s;
  text-decoration: none;
}

.btn-gold:hover {
  background: transparent;
  color: #C9A84C;
  transform: translateY(-2px);
}

.btn-outline-gold {
  display: inline-block;
  background: transparent;
  color: #C9A84C;
  padding: 0.85rem 2.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-family: 'Georgia', serif;
  border: 2px solid #C9A84C;
  transition: background 0.25s, color 0.25s, transform 0.2s;
  text-decoration: none;
}

.btn-outline-gold:hover {
  background: #C9A84C;
  color: #000;
  transform: translateY(-2px);
}

/* ---------- Cards ---------- */
.feature-card {
  border: 1px solid rgba(201, 168, 76, 0.2);
  transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
  border-color: #C9A84C;
  transform: translateY(-4px);
}

.value-card {
  border-left: 3px solid #C9A84C;
  transition: background 0.3s, transform 0.3s;
}

.value-card:hover {
  background: rgba(201, 168, 76, 0.08);
  transform: translateX(4px);
}

/* ---------- Gallery Grid ---------- */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background: #000;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.07);
  filter: brightness(0.55);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: rgba(0,0,0,0.3);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-icon {
  color: #C9A84C;
  width: 2.5rem;
  height: 2.5rem;
}

/* ---------- Lightbox ---------- */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.97);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#lightbox.active {
  display: flex;
}

#lightbox-img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid rgba(201, 168, 76, 0.3);
  box-shadow: 0 0 80px rgba(201, 168, 76, 0.1);
  animation: fadeIn 0.3s ease;
}

#lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: #C9A84C;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 2.25rem;
  line-height: 1;
  transition: transform 0.2s;
}

#lightbox-close:hover {
  transform: scale(1.2) rotate(90deg);
}

#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: #C9A84C;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

#lightbox-prev { left: 1.5rem; }
#lightbox-next { right: 1.5rem; }

#lightbox-prev:hover,
#lightbox-next:hover {
  background: rgba(201, 168, 76, 0.35);
  transform: translateY(-50%) scale(1.1);
}

#lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(201, 168, 76, 0.7);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: 'Georgia', serif;
}

/* ---------- Mobile Menu ---------- */
#mobileMenu {
  transition: max-height 0.35s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

#mobileMenu.open {
  max-height: 400px;
  opacity: 1;
}

/* ---------- About Section ---------- */
.about-image-wrap {
  position: relative;
}

.about-image-wrap::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  pointer-events: none;
  z-index: 0;
}

.about-image-wrap img {
  position: relative;
  z-index: 1;
}

/* ---------- Stars ---------- */
.star-icon {
  color: #C9A84C;
  font-size: 1.4rem;
  line-height: 1;
}

/* ---------- Rating Badge ---------- */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.4);
  padding: 0.5rem 1.25rem;
  border-radius: 0;
}

/* ---------- Map Embed ---------- */
.map-wrap iframe {
  width: 100%;
  height: 450px;
  border: none;
  display: block;
  filter: grayscale(30%) contrast(1.1);
}

/* ---------- Scroll Indicator ---------- */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

.scroll-indicator {
  animation: bounce 2s ease infinite;
}

/* ---------- Parallax-lite for hero photos ---------- */
.parallax-hero {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 768px) {
  .parallax-hero {
    background-attachment: scroll;
  }

  .hero-bg {
    background-attachment: scroll;
  }

  #lightbox-prev { left: 0.5rem; }
  #lightbox-next { right: 0.5rem; }
}

/* ---------- Menu Item Cards ---------- */
.menu-item {
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  transition: border-color 0.2s;
}

.menu-item:hover {
  border-color: rgba(201, 168, 76, 0.5);
}

.menu-item:last-child {
  border-bottom: none;
}

/* ---------- Instagram Link ---------- */
.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #C9A84C;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.ig-link:hover {
  opacity: 0.75;
}

/* ---------- Utility ---------- */
.text-balance {
  text-wrap: balance;
}

.gold-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: #C9A84C;
  vertical-align: middle;
  margin-right: 0.75rem;
}
