/* ============================================
   BISTRO 180 — Custom Styles
   ============================================ */

/* ---- Base & Typography ---- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #FFF8F0;
  color: #2d090d;
}

.font-display {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-body {
  font-family: 'Inter', system-ui, sans-serif;
}

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

#navbar.scrolled {
  background: rgba(255, 248, 240, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(139, 26, 43, 0.08);
}

#navbar.scrolled .nav-text {
  color: #4a0e16;
}

.nav-link {
  position: relative;
}

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

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

#navbar.scrolled .nav-link {
  color: #66131f;
}

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

/* Mobile menu */
.mobile-nav-link {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ---- Hero Geometric Shapes ---- */
.hero-geo {
  position: absolute;
  opacity: 0.12;
  pointer-events: none;
}

.geo-circle-1 {
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: #ff7070;
  top: -200px;
  right: -150px;
}

.geo-circle-2 {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #ffd0d0;
  bottom: 10%;
  left: 5%;
}

.geo-circle-3 {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #ffaaaa;
  top: 30%;
  right: 35%;
}

.geo-rect-1 {
  width: 200px;
  height: 200px;
  background: #ff7070;
  bottom: -50px;
  left: 15%;
  transform: rotate(45deg);
  border-radius: 20px;
}

.geo-rect-2 {
  width: 120px;
  height: 120px;
  background: #ffd0d0;
  top: 15%;
  left: 30%;
  transform: rotate(20deg);
  border-radius: 12px;
}

.geo-triangle {
  width: 0;
  height: 0;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-bottom: 173px solid #ffaaaa;
  top: 20%;
  right: 10%;
  opacity: 0.08;
}

/* ---- Menu Section Geos ---- */
.menu-geo {
  position: absolute;
  pointer-events: none;
}

.geo-square-1 {
  width: 400px;
  height: 400px;
  background: #ff7070;
  opacity: 0.05;
  top: -100px;
  left: -100px;
  transform: rotate(30deg);
  border-radius: 40px;
}

.geo-circle-4 {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: #ffd0d0;
  opacity: 0.06;
  bottom: -50px;
  right: 5%;
}

.geo-line {
  width: 600px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff7070, transparent);
  opacity: 0.15;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
}

/* ---- Gallery Geos ---- */
.geo-gallery-1 {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: #e09191;
  opacity: 0.15;
  top: -150px;
  right: -100px;
}

.geo-gallery-2 {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #ffaaaa;
  opacity: 0.12;
  bottom: -80px;
  left: -50px;
}

/* ---- Visit Section Geos ---- */
.geo-visit-1 {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: #ff7070;
  opacity: 0.06;
  top: 10%;
  right: -80px;
}

.geo-visit-2 {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: #ffd0d0;
  opacity: 0.08;
  bottom: 5%;
  left: 5%;
}

/* ---- CTA Geos ---- */
.cta-geo-1 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: #cc5555;
  opacity: 0.15;
  top: -120px;
  left: -100px;
}

.cta-geo-2 {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: #e09191;
  opacity: 0.12;
  bottom: -60px;
  right: -50px;
}

/* ---- Scroll Reveal ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* ---- Hero Labels ---- */
.hero-label {
  animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ---- Menu Card Hover ---- */
.group:hover .group-hover\\:scale-110 {
  transform: scale(1.1);
}

/* ---- Smooth image transitions ---- */
img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Focus styles ---- */
:focus-visible {
  outline: 2px solid #8b1a2b;
  outline-offset: 2px;
}

/* ---- Button ripple effect (subtle) ---- */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* ---- Custom scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #FFF8F0;
}

::-webkit-scrollbar-thumb {
  background: #e09191;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #cc5555;
}

/* ---- Selection ---- */
::selection {
  background: #ffaaaa;
  color: #2d090d;
}

/* ---- Mobile responsive ---- */
@media (max-width: 768px) {
  .geo-circle-1 {
    width: 300px;
    height: 300px;
  }

  .geo-circle-2 {
    width: 150px;
    height: 150px;
  }

  .geo-rect-1 {
    width: 100px;
    height: 100px;
  }

  .geo-rect-2 {
    width: 60px;
    height: 60px;
  }

  .geo-triangle {
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 87px solid #ffaaaa;
  }
}
