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

body {
  overflow-x: hidden;
}

::selection {
  background: #065f46;
  color: #fefdf8;
}

/* === Nav === */
.nav-text {
  transition: color 0.3s ease;
}

.nav-link {
  position: relative;
}

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

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

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

/* === Hero Pattern === */
.hero-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(254, 253, 248, 0.15) 1px, transparent 0);
  background-size: 40px 40px;
}

/* === Menu Pattern === */
.menu-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 32px 32px;
}

/* === Animations === */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(3deg); }
}

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

@keyframes pulse-slow {
  0%, 100% { opacity: 0.1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.18; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes bounce-slow {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

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

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

.animate-pulse-slow {
  animation: pulse-slow 6s ease-in-out infinite;
}

.animate-bounce-slow {
  animation: bounce-slow 2.5s ease-in-out infinite;
}

/* === Reveal Animations === */
.reveal {
  opacity: 1;
  transform: translateY(0);
  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);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* === Mobile Menu === */
.mobile-nav-link {
  position: relative;
}

/* === Form Focus Styles === */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* === Smooth Scroll Offset for Fixed Nav === */
section[id] {
  scroll-margin-top: 80px;
}

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

  #hero h1 {
    font-size: 2.75rem;
  }

  nav .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #about, #menu, #visit, #contact {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  #hero h1 {
    font-size: 3.5rem;
  }
}

/* === Print === */
@media print {
  nav, #contact-form, .animate-float, .animate-float-delayed, .animate-pulse-slow {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
