/* ── Base & Utilities ── */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Floating Animation for Hero Cards ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

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

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

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

/* ── Card Hover Effects ── */
.card-hover {
  will-change: transform;
}

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

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

/* Fallback: always visible if JS is disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Navbar scroll state ── */
.nav-scrolled {
  background: rgba(255, 251, 240, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

.nav-scrolled .nav-link {
  color: rgb(6, 78, 59) !important;
}

.nav-scrolled .logo-text {
  color: rgb(6, 78, 59) !important;
}

/* ── Mobile Menu ── */
.mobile-menu-open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.menu-open {
  overflow: hidden;
}

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

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgb(255, 251, 240);
}

::-webkit-scrollbar-thumb {
  background: rgb(110, 231, 183);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(52, 211, 153);
}

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

/* ── Selection color ── */
::selection {
  background: rgb(110, 231, 183);
  color: rgb(2, 44, 34);
}
