/* Base styles and custom utilities */
html {
  scroll-behavior: smooth;
}

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

/* Smooth focus outlines */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #d4456a;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF8F4;
}
::-webkit-scrollbar-thumb {
  background: #d4456a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9a1e3c;
}

/* Hero fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Navigation scroll state */
.nav-scrolled {
  background: rgba(253, 248, 244, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(154, 30, 60, 0.08);
}

.nav-scrolled .nav-link {
  color: #443F3A !important;
}

.nav-scrolled .nav-link:hover {
  color: #9a1e3c !important;
}

.nav-scrolled .font-display {
  color: #7a1630 !important;
}

/* Reveal animations — progressive enhancement, only when JS runs and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

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

  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
  .reveal:nth-child(5) { transition-delay: 0.4s; }
}

/* Mobile menu */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

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

.mobile-link {
  position: relative;
  padding-left: 0;
  transition: padding-left 0.2s ease;
}

.mobile-link:hover {
  padding-left: 8px;
}

/* Image loading placeholder */
img {
  background-color: #E8E6DF;
}

/* Selection color */
::selection {
  background-color: #fad0d9;
  color: #6a182d;
}

/* Subtle hover lift for cards */
.group:hover .group-hover\\:scale-110 {
  transform: scale(1.1);
}

/* Button ripple-like effect on focus */
button:focus,
a:focus {
  box-shadow: 0 0 0 3px rgba(212, 69, 106, 0.2);
}

/* Print styles */
@media print {
  #navbar,
  #mobile-menu,
  .animate-bounce {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}
