/* TheBookPatch — Custom Styles */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background-color: rgba(107, 27, 42, 0.15);
  color: #6B1B2A;
}

/* Base transitions */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
#navbar.scrolled {
  background-color: rgba(253, 251, 249, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(107, 27, 42, 0.06);
}

/* Nav link underline animation */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #6B1B2A;
  transition: width 0.3s ease;
}

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

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

/* Service card hover lift */
.service-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(107, 27, 42, 0.08);
}

/* Scroll reveal base — content is always visible */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Scroll reveal hidden state — applied via JS for progressive enhancement */
.reveal-hidden {
  opacity: 0;
  transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal.reveal-animate {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f8c5ce' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 2rem;
}

/* Focus visible styles */
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* Subtle pattern overlay for hero */
#top::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at 70% 40%, rgba(107, 27, 42, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Image hover zoom */
.service-card img,
section img {
  transition: transform 0.6s ease;
}

/* Button ripple-like glow on hover */
button[type="submit"]:hover {
  box-shadow: 0 8px 30px rgba(107, 27, 42, 0.2);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: #f8c5ce;
  border-radius: 3px;
}

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