/* =====================================================
   Laverne café — Custom Styles
   ===================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: #2d2d2d;
  overflow-x: hidden;
}

/* =====================================================
   Typography
   ===================================================== */

.font-display {
  font-family: 'Georgia', serif;
  letter-spacing: -0.02em;
}

/* =====================================================
   Animations
   ===================================================== */

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.fade-in-up {
  animation: fadeInUp 0.7s ease both;
}

.fade-in-up-delay-1 { animation: fadeInUp 0.7s 0.15s ease both; }
.fade-in-up-delay-2 { animation: fadeInUp 0.7s 0.30s ease both; }
.fade-in-up-delay-3 { animation: fadeInUp 0.7s 0.45s ease both; }
.fade-in-up-delay-4 { animation: fadeInUp 0.7s 0.60s ease both; }

.fade-in {
  animation: fadeIn 0.6s ease both;
}

/* Intersection Observer — reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =====================================================
   Navigation
   ===================================================== */

nav {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease;
}

nav.scrolled {
  box-shadow: 0 2px 20px rgba(194, 97, 126, 0.12);
}

/* Active nav link */
.nav-active {
  color: #C2617E !important;
  font-weight: 600;
}

/* =====================================================
   Hero
   ===================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-section:hover .hero-bg {
  transform: scale(1.0);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 10, 18, 0.72) 0%,
    rgba(163, 72, 106, 0.35) 50%,
    rgba(30, 10, 18, 0.68) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
}

/* =====================================================
   Star Rating Display
   ===================================================== */

.stars-display {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 1.4rem;
  color: #F5C842;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 10px 24px;
  color: white;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.rating-badge-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #C2617E, #A3486A);
  border-radius: 50px;
  padding: 12px 28px;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(194, 97, 126, 0.4);
}

/* Achievement Banner */
.achievement-banner {
  background: linear-gradient(135deg, #C2617E 0%, #A3486A 50%, #C2617E 100%);
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
  color: white;
  padding: 20px 0;
  text-align: center;
}

/* =====================================================
   Cards & Sections
   ===================================================== */

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(194, 97, 126, 0.18);
}

.feature-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FDF5F7, #E8A0B0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  flex-shrink: 0;
}

/* Section divider */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #C2617E, #E8A0B0);
  border-radius: 2px;
  margin: 16px auto;
}

.section-divider-left {
  margin: 16px 0;
}

/* =====================================================
   Gallery & Lightbox
   ===================================================== */

.gallery-grid {
  display: grid;
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #f0e4e8;
}

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

.gallery-item:hover img {
  transform: scale(1.08);
}

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

.gallery-item:hover .gallery-overlay {
  background: rgba(163, 72, 106, 0.45);
}

.gallery-overlay-icon {
  opacity: 0;
  color: white;
  transform: scale(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay-icon {
  opacity: 1;
  transform: scale(1);
}

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

#lightbox.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

#lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0,0,0,0.6);
  animation: scaleIn 0.25s ease;
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: white;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.2s;
}

#lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}

#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  cursor: pointer;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  transition: background 0.2s, transform 0.2s;
}

#lightbox-prev { left: 20px; }
#lightbox-next { right: 20px; }

#lightbox-prev:hover,
#lightbox-next:hover {
  background: rgba(194, 97, 126, 0.6);
  transform: translateY(-50%) scale(1.08);
}

#lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* =====================================================
   Hero page banners (non-homepage)
   ===================================================== */

.page-hero {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 72px;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 10, 18, 0.7) 0%,
    rgba(163, 72, 106, 0.4) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 10;
  color: white;
  text-align: center;
}

/* =====================================================
   Menu / Services Page
   ===================================================== */

.menu-category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.menu-category-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C2617E, #A3486A);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #f0e4e8;
  gap: 12px;
}

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

.menu-item-name {
  font-weight: 600;
  color: #2d2d2d;
  margin-bottom: 3px;
}

.menu-item-desc {
  color: #888;
  font-size: 0.85rem;
  line-height: 1.4;
}

.menu-price {
  color: #C2617E;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* =====================================================
   Contact / Maps
   ===================================================== */

.map-frame-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(194, 97, 126, 0.15);
}

.map-frame-wrapper iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: none;
}

/* =====================================================
   Reviews Page
   ===================================================== */

.rating-hero-number {
  font-size: 7rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #C2617E, #E8A0B0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.review-stars-large {
  font-size: 2.5rem;
  color: #F5C842;
  letter-spacing: 4px;
}

/* =====================================================
   CTA Button Styles
   ===================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #C2617E, #A3486A);
  color: white;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(194, 97, 126, 0.35);
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(194, 97, 126, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #C2617E;
  color: #C2617E;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
  background: #C2617E;
  color: white;
}

/* =====================================================
   Utility
   ===================================================== */

.text-gradient {
  background: linear-gradient(135deg, #C2617E, #A3486A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-warm-section {
  background: linear-gradient(135deg, #FDF5F7 0%, #ffeef2 100%);
}

.border-accent {
  border-color: #E8A0B0;
}

.shadow-rose {
  box-shadow: 0 4px 24px rgba(194, 97, 126, 0.15);
}

/* =====================================================
   Mobile Menu
   ===================================================== */

#mobileMenu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* =====================================================
   Responsive
   ===================================================== */

@media (max-width: 768px) {
  .rating-hero-number {
    font-size: 5rem;
  }

  .page-hero {
    height: 280px;
  }

  #lightbox-prev { left: 8px; }
  #lightbox-next { right: 8px; }

  #lightbox img {
    max-width: 95vw;
  }
}

@media (max-width: 480px) {
  .btn-primary,
  .btn-outline {
    padding: 12px 22px;
    font-size: 0.9rem;
  }
}
