/* ── Custom Styles ─────────────────────────────────────────── */

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

/* Selection color */
::selection {
  background: #d44a1e;
  color: #ffffff;
}

/* Navbar glass effect */
#navbar.scrolled {
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* Nav links underline animation */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #d44a1e;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu transitions */
.mobile-nav-link {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}
#mobile-menu.open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}
#mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.2s; }

/* Scroll reveal base — content always visible by default */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.visible {
    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; }
}

/* Image hover zoom for gallery */
.group img {
  will-change: transform;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf5e8;
}
::-webkit-scrollbar-thumb {
  background: #d4b064;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c49a4e;
}

/* Playfair Display italic accent */
.font-serif em {
  font-style: italic;
}

/* Button ripple-like lift */
button, a[href^="tel:"], a[href^="mailto:"] {
  -webkit-tap-highlight-color: transparent;
}

/* Hero asymmetric layout fix */
@media (min-width: 1024px) {
  .lg\:col-span-7 {
    padding-right: 2rem;
  }
}

/* Counter animation */
.counter {
  display: inline-block;
}
</style>
