/* ===== Base & Utilities ===== */
*, *::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: #52B788;
  color: #0D2818;
}

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

#navbar.scrolled {
  background: rgba(250, 240, 230, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}

.nav-link {
  position: relative;
}

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

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

/* ===== Mobile Menu ===== */
.mobile-link {
  position: relative;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(27, 67, 50, 0.08);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-link:hover {
  color: #52B788;
  padding-left: 0.5rem;
}

/* ===== Floating Cards ===== */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
  animation-delay: -2s;
}

.floating-card:nth-child(3) {
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ===== Marquee ===== */
.marquee-track {
  animation: marquee 30s linear infinite;
}

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

/* ===== Menu Cards ===== */
.menu-card {
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.menu-card:hover {
  transform: translateY(-6px);
}

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s 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; }

/* ===== Underline Animation for Headlines ===== */
.font-serif .italic {
  display: inline-block;
  transition: transform 0.3s ease;
}

.font-serif:hover .italic {
  transform: skewX(-3deg);
}

/* ===== Button Hover Effects ===== */
a[href="#menu"], a[href="#about"], a[href="#gallery"], a[href="#visit"] {
  text-decoration: none;
}

/* ===== Focus States ===== */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid #52B788;
  outline-offset: 2px;
}

/* ===== Responsive Typography ===== */
@media (max-width: 640px) {
  .font-serif {
    line-height: 1.1;
  }
}

/* ===== Print Styles ===== */
@media print {
  #navbar, .marquee-track, .floating-card {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
