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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #f9a8d4;
  color: #721c23;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Default state for reduced-motion or no-JS: always visible */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Navbar ===== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background: rgba(255, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(168, 42, 53, 0.08);
}

.nav-link {
  position: relative;
}

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

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

#navbar.scrolled .nav-link {
  color: #5f181d;
}

#navbar.scrolled .nav-link:hover {
  color: #a82a35;
}

#navbar.scrolled .font-display,
#navbar.scrolled span:first-of-type {
  color: #721c23;
}

/* ===== Hero ===== */
.hero-gradient {
  background: linear-gradient(135deg, #721c23 0%, #a82a35 25%, #c43844 50%, #d94f5d 75%, #f2a5ad 100%);
  animation: heroGradientShift 12s ease-in-out infinite alternate;
}

@keyframes heroGradientShift {
  0% {
    background: linear-gradient(135deg, #5f181d 0%, #8a212a 25%, #a82a35 50%, #c43844 75%, #e86e7a 100%);
  }
  100% {
    background: linear-gradient(135deg, #8a212a 0%, #a82a35 25%, #c43844 50%, #d94f5d 75%, #f2a5ad 100%);
  }
}

.hero-pattern {
  background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.08) 1px, transparent 1px),
                    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px, 40px 40px;
}

/* Floating shapes */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: #ffd700;
  top: 10%;
  left: -5%;
  animation-delay: 0s;
  animation-duration: 10s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: #ff69b4;
  top: 60%;
  right: -3%;
  animation-delay: -3s;
  animation-duration: 8s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: #ffb6c1;
  bottom: 15%;
  left: 15%;
  animation-delay: -5s;
  animation-duration: 11s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  background: #fff;
  top: 25%;
  right: 20%;
  animation-delay: -2s;
  animation-duration: 9s;
}

.shape-5 {
  width: 80px;
  height: 80px;
  background: #ffe4b5;
  top: 45%;
  left: 5%;
  animation-delay: -7s;
  animation-duration: 7s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(20px, -30px) rotate(5deg) scale(1.05); }
  50% { transform: translate(-10px, -50px) rotate(-3deg) scale(0.95); }
  75% { transform: translate(15px, -20px) rotate(3deg) scale(1.02); }
}

/* Hero text animations */
.hero-badge {
  animation: fadeInDown 0.8s ease forwards;
}

.hero-title {
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-subtitle {
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.hero-ctas {
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.7s;
  opacity: 0;
}

.hero-stats {
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.9s;
  opacity: 0;
}

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

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

/* Hero buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: white;
  color: #721c23;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  background: #fff5f5;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: white;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
  animation: fadeInUp 1s ease forwards;
  animation-delay: 1.2s;
  opacity: 0;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* ===== Section Labels ===== */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c43844;
  margin-bottom: 12px;
  position: relative;
  padding-left: 28px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 2px;
  background: #c43844;
  border-radius: 1px;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Light version for dark backgrounds */
.section-label-light {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f9a8d4;
  margin-bottom: 12px;
}

.section-title-light {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: white;
  line-height: 1.15;
  margin-bottom: 16px;
}

/* ===== Menu Cards ===== */
.menu-card {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(196, 56, 68, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.menu-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(168, 42, 53, 0.12);
  border-color: rgba(196, 56, 68, 0.15);
}

.menu-card-img-wrapper {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.menu-card-img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-card:hover .menu-card-img {
  transform: scale(1.08);
}

.menu-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fdf0f1;
  border-radius: 16px;
}

/* ===== About Section ===== */
.about-image-main {
  box-shadow: 0 25px 80px rgba(114, 28, 35, 0.2);
}

.about-image-float {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.about-stat {
  text-align: left;
}

/* ===== Why Cards ===== */
.why-card {
  padding: 2rem;
  border-radius: 20px;
  transition: all 0.4s ease;
  background: transparent;
}

.why-card:hover {
  background: #fdf0f1;
  transform: translateY(-4px);
}

.why-card-circle {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fdf0f1, #ffe8e8);
  border-radius: 50%;
  transition: all 0.4s ease;
}

.why-card:hover .why-card-circle {
  background: linear-gradient(135deg, #c43844, #a82a35);
  transform: scale(1.1);
}

.why-card:hover .why-card-circle svg {
  color: white;
}

/* ===== Visit Section ===== */
.visit-pattern {
  background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(255,182,193,0.15) 0%, transparent 50%);
}

.visit-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.visit-info-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  flex-shrink: 0;
}

/* ===== Gallery ===== */
.gallery-img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== Mobile Menu ===== */
.mobile-link {
  border-bottom: 1px solid #f9d3d7;
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .about-image-float {
    display: none;
  }

  .menu-card {
    padding: 1.5rem;
  }

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

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
