/* ============================================
   PAIGE CITY LIFE — Custom Styles
   Classic & Elegant · Burgundy + Blush
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: #a11f38;
  color: #fefcfb;
}

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

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

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

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

/* ---------- Navbar Transition ---------- */
#navbar.scrolled {
  background-color: rgba(254, 252, 251, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(111, 31, 50, 0.08), 0 4px 20px rgba(111, 31, 50, 0.04);
}

#navbar.scrolled .font-serif {
  color: #6f1f32 !important;
}

#navbar.scrolled .text-burgundy-600 {
  color: #a11f38 !important;
}

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

#mobile-menu.open .mobile-link {
  animation: fadeSlideDown 0.4s ease forwards;
  opacity: 0;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

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

/* ---------- Hamburger Animation ---------- */
#menu-toggle[aria-expanded="true"] #bar1 {
  transform: rotate(45deg) translate(4px, 4px);
}

#menu-toggle[aria-expanded="true"] #bar2 {
  opacity: 0;
}

#menu-toggle[aria-expanded="true"] #bar3 {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 1.5rem;
}

/* ---------- Service Cards ---------- */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #a11f38, #db4466);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* ---------- Testimonial Cards ---------- */
.testimonial-card {
  position: relative;
}

.testimonial-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #a11f38;
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card:hover::after {
  width: 60%;
}

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

  .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; }
}

/* ---------- Form Focus Styles ---------- */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(161, 31, 56, 0.08);
}

/* ---------- Print Styles ---------- */
@media print {
  #navbar, #mobile-menu, .reveal { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
