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

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

body {
  background-color: #FEF9C3;
  color: #1B4332;
  overflow-x: hidden;
}

::selection {
  background-color: #1B4332;
  color: #FEFCE8;
}

/* ===== NAVIGATION ===== */
#site-header {
  background: rgba(254, 252, 232, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(27, 67, 50, 0.08);
}

#site-header.scrolled {
  background: rgba(254, 252, 232, 0.95);
  box-shadow: 0 4px 30px rgba(27, 67, 50, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #1B4332;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 1px;
}

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

/* ===== GEOMETRIC SHAPES ===== */
.geo-shape {
  position: absolute;
  pointer-events: none;
  will-change: transform;
}

.geo-circle-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(165, 214, 167, 0.35) 0%, rgba(165, 214, 167, 0) 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  animation: float-slow 8s ease-in-out infinite;
}

.geo-circle-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0) 70%);
  bottom: 10%;
  left: 5%;
  border-radius: 50%;
  animation: float-slow 10s ease-in-out infinite reverse;
}

.geo-circle-3 {
  width: 150px;
  height: 150px;
  border: 3px solid rgba(27, 67, 50, 0.1);
  top: 30%;
  right: 15%;
  border-radius: 50%;
  animation: spin-slow 20s linear infinite;
}

.geo-square-1 {
  width: 80px;
  height: 80px;
  background: rgba(27, 67, 50, 0.06);
  top: 20%;
  left: 8%;
  border-radius: 16px;
  animation: rotate-slow 15s linear infinite;
  transform-origin: center center;
}

.geo-triangle {
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid rgba(149, 173, 46, 0.15);
  top: 45%;
  right: 5%;
  animation: float-slow 6s ease-in-out infinite;
}

.geo-ring {
  width: 100px;
  height: 100px;
  border: 4px solid rgba(165, 214, 167, 0.4);
  border-radius: 50%;
  bottom: 15%;
  left: 12%;
  animation: spin-slow 12s linear infinite reverse;
}

.geo-circle-4 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(165, 214, 167, 0.3) 0%, rgba(165, 214, 167, 0) 70%);
  top: -150px;
  left: -100px;
  border-radius: 50%;
  animation: float-slow 9s ease-in-out infinite;
}

.geo-square-2 {
  width: 60px;
  height: 60px;
  background: rgba(27, 67, 50, 0.05);
  bottom: 10%;
  right: 10%;
  border-radius: 12px;
  animation: rotate-slow 12s linear infinite;
  transform-origin: center center;
}

/* ===== ANIMATIONS ===== */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

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

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

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

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

@keyframes scroll-line {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.animate-fade-up {
  animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-marquee {
  animation: marquee 25s linear infinite;
}

.animate-scroll-line {
  animation: scroll-line 2s ease-in-out infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(254, 252, 232, 0.8);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.marquee-dot {
  display: inline-flex;
  align-items: center;
  color: rgba(254, 252, 232, 0.3);
  font-size: 0.5rem;
  padding: 0 0.5rem;
}

/* ===== MENU CARDS ===== */
.menu-card {
  border-radius: 2rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* ===== MOBILE MENU ===== */
.mobile-link {
  border-radius: 0.75rem;
}

/* ===== SMOOTH TRANSITIONS ===== */
a, button {
  transition: all 0.2s ease;
}

/* ===== FORM STYLES ===== */
input, textarea {
  border-radius: 0.75rem;
  border: 2px solid #E0D5C0;
  background: #FEFCE8;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: #1B4332;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus {
  border-color: #1B4332;
  box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

input::placeholder, textarea::placeholder {
  color: #A89888;
}

/* ===== SUCCESS MESSAGE ===== */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success.show {
  display: block;
  animation: fade-up 0.5s ease both;
}

.form-success svg {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
}

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

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

  .geo-square-1 {
    width: 50px;
    height: 50px;
  }

  .geo-triangle {
    border-left-width: 25px;
    border-right-width: 25px;
    border-bottom-width: 45px;
  }

  .geo-ring {
    width: 60px;
    height: 60px;
  }
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 3px solid #1B4332;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

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