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

body {
  overflow-x: hidden;
}

::selection {
  background: #f7c0b0;
  color: #5e2b1d;
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal.visible:nth-child(2) { transition-delay: 0.1s; }
.reveal.visible:nth-child(3) { transition-delay: 0.2s; }
.reveal.visible:nth-child(4) { transition-delay: 0.3s; }

/* ─── Nav ─── */
#nav.scrolled {
  background: rgba(254, 253, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(192, 96, 58, 0.08), 0 4px 24px rgba(0, 0, 0, 0.06);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #C0603A;
  border-radius: 1px;
  transition: all 0.25s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

/* ─── Mobile Menu ─── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* ─── Cards ─── */
article:hover .rounded-3xl img {
  transform: scale(1.05);
}

/* ─── Buttons ─── */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* ─── Form ─── */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(192, 96, 58, 0.12);
}

/* ─── Back to top ─── */
#back-to-top.show {
  opacity: 1;
  pointer-events: all;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .font-heading {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
}

/* ─── Print ─── */
@media print {
  #nav, #back-to-top, .animate-float-slow, .animate-float-mid, .animate-float-fast {
    display: none !important;
  }
}
