/* ── Base & Utilities ── */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

::selection {
  background: #B85446;
  color: #FDF8F3;
}

/* ── Floating Cards ── */
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes float-medium {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes float-fast {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-float-slow    { animation: float-slow 4.5s ease-in-out infinite; }
.animate-float-medium { animation: float-medium 3.5s ease-in-out infinite; }
.animate-float-fast   { animation: float-fast 2.8s ease-in-out infinite; }

/* ── Nav ── */
#nav {
  background: rgba(253, 248, 243, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 45, 61, 0.06);
  transition: box-shadow 0.3s ease;
}
#nav.scrolled {
  box-shadow: 0 1px 20px rgba(30, 45, 61, 0.08);
}

.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #B85446;
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

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

/* ── Mobile Menu ── */
.mobile-link {
  position: relative;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(30, 45, 61, 0.06);
}
.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover { color: #B85446; }

/* ── Menu Section ── */
#menu ul li {
  border-bottom: 1px solid rgba(30, 45, 61, 0.05);
  padding-bottom: 1rem;
}
#menu ul li:last-child { border-bottom: none; }

/* ── Form ── */
input:focus, textarea:focus {
  outline: none;
  border-color: #B85446;
  box-shadow: 0 0 0 3px rgba(184, 84, 70, 0.12);
}

/* ── Transition helpers ── */
.transition-default { transition: all 0.3s ease; }
