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

body {
  overflow-x: hidden;
}

::selection {
  background: color-mix(in srgb, #a855a0 30%, transparent);
  color: #4a2242;
}

/* ─── Nav ─── */
#nav {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#nav.scrolled {
  background: rgba(250, 245, 251, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(123, 45, 142, 0.08), 0 4px 20px rgba(123, 45, 142, 0.06);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #a855a0, #f5a623);
  border-radius: 1px;
  transition: width 0.25s ease;
}

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

/* ─── Floating Cards ─── */
.floating-card {
  animation: float 4s ease-in-out infinite;
}

.floating-card:nth-child(2) {
  animation-delay: -1.3s;
  animation-duration: 4.5s;
}

.floating-card:nth-child(3) {
  animation-delay: -2.6s;
  animation-duration: 3.8s;
}

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

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Reduced motion: keep everything visible */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .floating-card {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ─── Mobile Menu ─── */
.mobile-link {
  display: block;
  transition: color 0.2s ease;
}

/* ─── Button hover glow ─── */
a[href="tel:+17182668822"] {
  position: relative;
}

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

/* ─── Custom scrollbar ─── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf5fb;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #dbaed2, #ffd670);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #c47fb8, #f5a623);
}

/* ─── Smooth image loading ─── */
img {
  background-color: color-mix(in srgb, currentColor 5%, transparent);
}
