/* ============================================
   Gjeli i Pazarit — Custom Styles
   Design: Mediterranean Rustic + Modern Stats
   Palette: Burgundy, Cream, Gold, Dark Wood
   ============================================ */

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F5F0E8; }
::-webkit-scrollbar-thumb { background: #7B2D26; border-radius: 4px; }

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: #2C1810;
  background: #F5F0E8;
  overflow-x: hidden;
}

/* ---------- Fonts ---------- */
.font-heading { font-family: 'Playfair Display', serif; }
.font-script  { font-family: 'Cormorant Garamond', serif; font-style: italic; }

/* ---------- Custom Colors (supplements Tailwind config) ---------- */
.bg-burgundy   { background-color: #7B2D26; }
.bg-cream      { background-color: #F5F0E8; }
.bg-wood       { background-color: #2C1810; }
.bg-gold       { background-color: #C8A45C; }
.bg-burgundy-light { background-color: #9B3D34; }

.text-burgundy { color: #7B2D26; }
.text-cream    { color: #F5F0E8; }
.text-wood     { color: #2C1810; }
.text-gold     { color: #C8A45C; }

.border-burgundy { border-color: #7B2D26; }
.border-gold     { border-color: #C8A45C; }
.border-cream    { border-color: #F5F0E8; }

/* ---------- Navbar ---------- */
.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(245, 240, 232, 0.97) !important;
  box-shadow: 0 2px 20px rgba(44, 24, 16, 0.1);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #C8A45C;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(44, 24, 16, 0.85) 0%,
    rgba(44, 24, 16, 0.6) 50%,
    rgba(44, 24, 16, 0.3) 100%
  );
}

/* ---------- Marquee ---------- */
.marquee-track {
  display: flex;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-separator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #C8A45C;
  border-radius: 50%;
  margin: 0 1.5rem;
  vertical-align: middle;
}

/* ---------- Image Placeholders ---------- */
.img-placeholder {
  background: linear-gradient(135deg, #7B2D26 0%, #2C1810 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F5F0E8;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
  position: relative;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8A45C' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Cards ---------- */
.dish-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dish-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(44, 24, 16, 0.15);
}

/* ---------- Gallery Bento ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 12px;
}

.gallery-grid .gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid .gallery-item:nth-child(4) {
  grid-column: span 2;
}

.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

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

.gallery-item:hover img,
.gallery-item:hover .img-placeholder {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 24, 16, 0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* ---------- Review Cards ---------- */
.review-card {
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
}

/* ---------- Collage (About Preview) ---------- */
.collage-wrapper {
  position: relative;
  width: 100%;
  height: 450px;
}

.collage-img {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(44, 24, 16, 0.2);
  transition: transform 0.3s ease;
}

.collage-img:hover {
  transform: scale(1.03);
}

.collage-img:nth-child(1) {
  width: 55%;
  height: 75%;
  top: 0;
  left: 0;
  z-index: 2;
}

.collage-img:nth-child(2) {
  width: 50%;
  height: 60%;
  top: 15%;
  right: 0;
  z-index: 1;
}

.collage-img:nth-child(3) {
  width: 40%;
  height: 45%;
  bottom: 0;
  left: 10%;
  z-index: 3;
}

/* ---------- Stats ---------- */
.stat-item {
  border: 1px solid rgba(200, 164, 92, 0.3);
  backdrop-filter: blur(10px);
  background: rgba(44, 24, 16, 0.5);
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Buttons ---------- */
.btn-burgundy {
  background-color: #7B2D26;
  color: #F5F0E8;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-burgundy:hover {
  background-color: #9B3D34;
  transform: translateY(-2px);
}

.btn-gold-outline {
  border: 2px solid #C8A45C;
  color: #C8A45C;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  background: transparent;
}

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

/* ---------- Divider Ornament ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.ornament::before,
.ornament::after {
  content: '';
  width: 60px;
  height: 1px;
  background: #C8A45C;
}

/* ---------- Form ---------- */
.form-input {
  background: rgba(44, 24, 16, 0.05);
  border: 1px solid rgba(123, 45, 38, 0.2);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #2C1810;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: #7B2D26;
  box-shadow: 0 0 0 3px rgba(123, 45, 38, 0.1);
}

.form-input::placeholder {
  color: rgba(44, 24, 16, 0.4);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* ---------- Texture Overlay ---------- */
.texture-overlay {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

/* ---------- Menu Page ---------- */
.menu-hero {
  background: linear-gradient(rgba(44, 24, 16, 0.75), rgba(44, 24, 16, 0.85)), url('../images/grilled-vibes.jpg') center/cover;
}

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(123, 45, 38, 0.15);
  padding-bottom: 0;
  margin-bottom: 3rem;
}

.menu-tab {
  padding: 0.85rem 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 500;
  color: #2C1810;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.03em;
  white-space: nowrap;
  position: relative;
  margin-bottom: -1px;
}

.menu-tab:hover {
  color: #7B2D26;
}

.menu-tab.active {
  color: #7B2D26;
  border-bottom-color: #C8A45C;
}

.menu-tab .tab-count {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.7rem;
  color: #C8A45C;
  vertical-align: super;
  font-family: 'DM Sans', sans-serif;
}

.menu-panel {
  display: none;
  animation: fadePanel 0.5s ease;
}

.menu-panel.active {
  display: block;
}

@keyframes fadePanel {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

.menu-section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.menu-section-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #7B2D26;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.menu-section-title p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: #C8A45C;
  font-size: 1.15rem;
}

.menu-list {
  display: grid;
  gap: 1.75rem;
  max-width: 760px;
  margin: 0 auto;
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  align-items: baseline;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed rgba(123, 45, 38, 0.18);
}

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

.menu-item-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #2C1810;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.menu-item-name .item-num {
  display: inline-block;
  min-width: 1.6rem;
  color: #C8A45C;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
}

.menu-item-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #7B2D26;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.menu-item-desc {
  grid-column: 1 / -1;
  margin-left: 2.1rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: rgba(44, 24, 16, 0.6);
  font-size: 1rem;
  line-height: 1.4;
}

.menu-card {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 60px rgba(44, 24, 16, 0.08);
  border: 1px solid rgba(200, 164, 92, 0.2);
}

@media (max-width: 640px) {
  .menu-card { padding: 2rem 1.25rem; }
  .menu-section-title h2 { font-size: 1.75rem; }
  .menu-tab { padding: 0.7rem 1rem; font-size: 0.9rem; }
  .menu-item-name { font-size: 1rem; }
  .menu-item-desc { margin-left: 0; font-size: 0.95rem; }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 180px);
  }

  .gallery-grid .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-grid .gallery-item:nth-child(4) {
    grid-column: span 1;
  }

  .collage-wrapper {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .collage-img {
    position: relative !important;
    width: 100% !important;
    height: 250px !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
  }

  .hero-stats {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-grid .gallery-item:nth-child(1) {
    grid-column: span 1;
  }

  .gallery-grid .gallery-item {
    height: 200px;
  }
}
