/* ============================================
   HURRICANE EDDIE'S — Custom Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --emerald-700: #0D6E3F;
  --emerald-800: #166534;
  --emerald-950: #052e16;
  --cream-50: #fefdf8;
}

/* --- Base Reset & Typography --- */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
}

/* --- Navigation --- */
.nav {
  background: rgba(254, 253, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 110, 63, 0.08);
}

.nav.scrolled {
  background: rgba(254, 253, 248, 0.95);
  box-shadow: 0 4px 20px rgba(13, 110, 63, 0.08);
}

.nav-link {
  position: relative;
}

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

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

/* Mobile Menu */
.mobile-menu {
  animation: slideDown 0.3s ease;
}

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

.mobile-menu-link {
  display: block;
}

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

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

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

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

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  will-change: transform;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(5, 46, 22, 0.88) 0%,
    rgba(13, 110, 63, 0.75) 50%,
    rgba(22, 101, 52, 0.65) 100%
  );
}

.hero-shapes {
  perspective: 1000px;
}

.shape-square {
  animation: floatRotate 8s ease-in-out infinite;
}

@keyframes floatRotate {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(50deg) translate(10px, -10px); }
}

.hero-content {
  animation: heroFadeIn 1s ease forwards;
}

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

.hero-headline {
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero-badge {
  animation: heroFadeIn 1s ease 0.2s forwards;
  opacity: 0;
}

.hero-subtitle {
  animation: heroFadeIn 1s ease 0.4s forwards;
  opacity: 0;
}

.hero-buttons {
  animation: heroFadeIn 1s ease 0.6s forwards;
  opacity: 0;
}

/* Scroll Indicator */
.scroll-indicator {
  animation: bounce 2s ease-in-out infinite;
}

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

.scroll-dot {
  animation: scrollDotMove 2s ease-in-out infinite;
}

@keyframes scrollDotMove {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* --- Highlights Bar --- */
.highlights {
  position: relative;
  overflow: hidden;
}

.highlights::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

/* --- Section Styles --- */
.section-tag {
  letter-spacing: 0.05em;
}

.section-title {
  letter-spacing: -0.02em;
}

.section-desc {
  line-height: 1.7;
}

/* --- Menu Cards --- */
.menu-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.menu-item {
  transition: transform 0.2s ease;
}

.menu-item:hover {
  transform: translateX(4px);
}

.menu-card-img-inner {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- About Section --- */
.about-img {
  position: relative;
}

.about-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px rgba(13, 110, 63, 0.1);
  pointer-events: none;
}

.about-img-inner {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-img:hover .about-img-inner {
  transform: scale(1.05);
}

.about-badge {
  z-index: 20;
  box-shadow: 0 20px 40px rgba(13, 110, 63, 0.3);
}

/* --- Event Cards --- */
.event-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.event-card-img-inner {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Gallery --- */
.gallery-img {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item {
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
  box-shadow: 0 20px 40px rgba(13, 110, 63, 0.15);
}

/* --- CTA Section --- */
.cta-bg-img {
  will-change: transform;
}

.cta-overlay {
  background: linear-gradient(
    135deg,
    rgba(5, 46, 22, 0.92) 0%,
    rgba(13, 110, 63, 0.88) 50%,
    rgba(22, 101, 52, 0.85) 100%
  );
}

/* --- Contact Form --- */
.form-input {
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.form-input:focus {
  box-shadow: 0 0 0 3px rgba(13, 110, 63, 0.1);
}

.form-input::placeholder {
  color: #a7c4a8;
}

.form-submit {
  position: relative;
  overflow: hidden;
}

.form-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.form-submit:hover::before {
  left: 100%;
}

/* --- Footer --- */
.footer-social {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-social:hover {
  transform: translateY(-3px);
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(13, 110, 63, 0.4);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 3rem;
  }

  .hero-headline br {
    display: none;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .about-image-grid {
    gap: 1rem;
  }

  .about-img-stack {
    gap: 1rem;
  }

  .about-badge {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 1rem auto;
    display: inline-block;
  }
}

@media (max-width: 640px) {
  .hero-headline {
    font-size: 2.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;
  }
}
