/* Custom styles for Ginger Lily — beyond Tailwind */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Navbar transition */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Nav link underline animation */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0D9488;
  border-radius: 1px;
  transition: width 0.25s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
#mobile-menu.open {
  transform: translateX(0);
}

.mobile-link {
  position: relative;
}

/* Scroll animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grid items */
.scroll-animate[style*="transition-delay: 80ms"] { transition-delay: 80ms; }
.scroll-animate[style*="transition-delay: 160ms"] { transition-delay: 160ms; }
.scroll-animate[style*="transition-delay: 240ms"] { transition-delay: 240ms; }

/* Floating animation for decorative elements */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Pulse for CTA buttons */
@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(13, 148, 136, 0); }
}

/* Custom focus styles */
input:focus, select:focus, textarea:focus {
  outline: none;
}

/* Selection color */
::selection {
  background: #ccfbf1;
  color: #134e4a;
}

/* Subtle hover lift on cards */
.scroll-animate:hover {
  transform: translateY(-2px);
}
.scroll-animate.visible:hover {
  transform: translateY(-2px);
}

/* Image hover zoom container */
.scroll-animate img {
  transition: transform 0.5s ease;
}
.scroll-animate:hover img {
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .font-serif {
    font-size: 1.75rem;
  }
  #top h1 {
    font-size: 2.75rem;
  }
}
