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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #f9cfd9;
  color: #5c1e2b;
}

/* ─── Scroll Reveal ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

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

  .reveal.revealed {
    transition-delay: 0ms;
  }
}

/* ─── Navbar ─── */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

#navbar.scrolled .nav-text {
  color: #7B2D3B;
}

#navbar.scrolled .nav-link {
  color: #6b7280;
}

/* ─── Mobile Menu ─── */
#mobileMenu.open {
  transform: translateX(0);
}

#mobileMenu.closed {
  transform: translateX(100%);
}

/* ─── Service Cards ─── */
.service-card {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
  transform: translateY(-4px);
}

/* ─── Form Focus States ─── */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(123, 45, 59, 0.15);
}

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

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

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

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

/* ─── Mobile Menu Lines Animation ─── */
.menu-line {
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
  width: 24px;
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}

#menuBtn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
  width: 24px;
}

/* ─── Testimonial Card Hover ─── */
.testimonial-card {
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── Smooth Image Loading ─── */
img {
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* ─── Process Step Hover ─── */
.relative .w-24.h-24 {
  transition: all 0.4s ease;
}

/* ─── Anchor Offset ─── */
section[id] {
  scroll-margin-top: 80px;
}

/* ─── Print Styles ─── */
@media print {
  #navbar,
  #mobileMenu,
  .reveal {
    display: none !important;
  }

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

  section {
    page-break-inside: avoid;
  }
}
