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

body {
  overflow-x: hidden;
}

::selection {
  background-color: rgba(232, 168, 56, 0.25);
  color: #3D1E33;
}

/* ── Navbar ── */
.nav-link {
  position: relative;
}

/* ── Service Cards ── */
.service-card {
  will-change: transform;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    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);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Fallback: ensure content is visible even if JS is disabled */
@media not all and (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Mobile Menu ── */
.mobile-menu-open {
  overflow: hidden;
}

#mobileMenu.menu-open {
  opacity: 1;
  pointer-events: all;
}

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

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

::-webkit-scrollbar-track {
  background: #F8F0F5;
}

::-webkit-scrollbar-thumb {
  background: #C898B8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8B4568;
}

/* ── Print ── */
@media print {
  header, footer, #contactForm button {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .service-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
