/* ===== BASE & RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: #C0603A;
  color: white;
}

/* ===== NAV ===== */
#nav {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#nav.scrolled {
  background: rgba(253, 248, 240, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(61, 33, 23, 0.08);
}

.nav-link {
  color: #3D2117;
  position: relative;
  padding-bottom: 2px;
}

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

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

.nav-link:hover {
  color: #C0603A;
}

/* Mobile menu */
.menu-line {
  transition: all 0.3s ease;
}

#menuToggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#menuToggle.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuToggle.active .menu-line:nth-child(3) {
  width: 1.5rem;
  margin-left: 0;
  transform: rotate(-45deg) translate(5px, -5px);
}

#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-link {
  transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-menu-link:hover {
  color: #C0603A;
  transform: translateX(8px);
}

/* ===== HERO GEOMETRIC SHAPES ===== */
.geo-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.geo-circle--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(192, 96, 58, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.geo-circle--2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 180, 85, 0.15) 0%, transparent 70%);
  bottom: 10%;
  left: 5%;
  animation: float 10s ease-in-out infinite reverse;
}

.geo-rect {
  position: absolute;
  pointer-events: none;
}

.geo-rect--1 {
  width: 120px;
  height: 120px;
  background: rgba(192, 96, 58, 0.08);
  border-radius: 24px;
  top: 20%;
  left: 48%;
  transform: rotate(45deg);
  animation: spin-slow 20s linear infinite;
}

.geo-triangle {
  position: absolute;
  pointer-events: none;
}

.geo-triangle--1 {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(212, 180, 85, 0.1);
  top: 60%;
  right: 8%;
  animation: float 6s ease-in-out infinite;
}

.geo-dots {
  position: absolute;
  width: 120px;
  height: 120px;
  top: 15%;
  left: 44%;
  background-image: radial-gradient(circle, rgba(192, 96, 58, 0.2) 2px, transparent 2px);
  background-size: 16px 16px;
  pointer-events: none;
}

.geo-circle--3 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(253, 251, 247, 0.08) 0%, transparent 70%);
  bottom: -200px;
  left: -200px;
}

.geo-circle--4 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(253, 251, 247, 0.06) 0%, transparent 70%);
  top: -100px;
  right: 10%;
}

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

@keyframes spin-slow {
  from { transform: rotate(45deg); }
  to { transform: rotate(405deg); }
}

/* ===== FLOATING CARD ===== */
.floating-card {
  animation: float-card 4s ease-in-out infinite;
}

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

/* ===== 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;
}

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

/* ===== GALLERY ===== */
.gallery-item {
  cursor: pointer;
  position: relative;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61, 33, 23, 0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

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

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* 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;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .geo-circle--1 {
    width: 300px;
    height: 300px;
  }
  .geo-circle--2 {
    width: 200px;
    height: 200px;
  }
  .geo-rect--1 {
    width: 80px;
    height: 80px;
  }
  .floating-card {
    position: relative;
    top: auto;
    left: auto;
    margin-top: 1rem;
    max-width: 100%;
  }
}
