/* ===== CUSTOM PROPERTIES ===== */
:root {
  --color-cream: #faf8f5;
  --color-cream-dark: #f0ece4;
  --color-forest-dark: #1a2e2a;
  --color-emerald-700: #047857;
  --color-emerald-600: #059669;
  --color-emerald-100: #d1fae5;
  --color-amber-400: #fbbf24;
  --color-amber-300: #fcd34d;
  --color-brown: #92400e;
}

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

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

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background-color: var(--color-cream);
  color: var(--color-forest-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ===== NAVIGATION ===== */
#site-header {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#site-header.scrolled {
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-emerald-700);
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: var(--color-emerald-700) !important;
}

/* Mobile menu */
#mobile-menu {
  transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

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

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

.mobile-nav-link {
  transition: color 0.2s ease;
}

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

#mobile-menu-btn.active .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 1.25rem;
}

/* ===== HERO ===== */
.hero-gradient {
  background: linear-gradient(135deg, #022c22 0%, #047857 40%, #059669 70%, #34d399 100%);
}

.hero-shape {
  animation: float 6s ease-in-out infinite;
}

.shape-circle-1 {
  animation-delay: 0s;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, transparent 70%);
}

.shape-circle-2 {
  animation-delay: -2s;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.4) 0%, transparent 70%);
}

.shape-circle-3 {
  animation-delay: -4s;
}

.shape-square {
  animation: spin-slow 20s linear infinite;
  background: var(--color-amber-400);
}

.shape-diamond {
  animation: float 8s ease-in-out infinite reverse;
  background: #10b981;
}

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

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

/* Hero animations */
.hero-badge {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-title {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero-subtitle {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero-buttons {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

.hero-image-wrapper {
  animation: fadeUpRight 1s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

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

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

/* Scroll indicator */
.scroll-dot {
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.3; }
}

/* ===== SECTION PATTERNS ===== */
.menu-pattern {
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ===== MENU CARDS ===== */
.menu-card {
  transform: translateY(0);
}

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

/* ===== SPECIALS ===== */
.special-card {
  transform: translateY(0);
}

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

/* ===== GALLERY ===== */
.gallery-item {
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* ===== BACK TO TOP ===== */
#back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

#back-to-top:hover {
  box-shadow: 0 8px 25px rgba(4, 120, 87, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.75rem;
  }

  .hero-image-wrapper {
    position: relative;
    width: 80%;
    margin: 0 auto;
    margin-top: 2rem;
  }

  .about-shape-1,
  .about-shape-2,
  .menu-shape-1,
  .menu-shape-2,
  .specials-shape,
  .location-shape,
  .contact-shape-1,
  .contact-shape-2,
  .gallery-shape-1,
  .gallery-shape-2,
  .footer-shape {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .hero-image-wrapper {
    width: 35%;
  }
}

/* ===== FOCUS STYLES ===== */
*:focus-visible {
  outline: 2px solid var(--color-emerald-700);
  outline-offset: 2px;
}

/* ===== SELECTION ===== */
::selection {
  background: var(--color-emerald-700);
  color: #fff;
}
