/* ─── Base & Reset ─── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ─── 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; }
}

/* ─── Navbar scroll shadow ─── */
#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(107, 47, 91, 0.1);
}

/* ─── Mobile menu transitions ─── */
#mobile-menu {
  animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #D4A24E;
  transition: width 0.2s ease;
}

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

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

/* ─── Selection color ─── */
::selection {
  background: #E8C2DD;
  color: #270F26;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #C272B5;
}

/* ─── Button hover micro-interactions ─── */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* ─── Print styles ─── */
@media print {
  #navbar, #mobile-menu, #contact-form, button {
    display: none !important;
  }

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

  .no-print {
    display: none;
  }
}
