/* Base & Typography */
html {
  scroll-behavior: smooth;
}

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

::selection {
  background: #b82d4a;
  color: #fff;
}

/* Scroll reveal — progressive enhancement, visible by default */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

  .scroll-reveal:not(.revealed) {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* Navbar transitions */
.nav-text {
  transition: color 0.3s ease;
}

/* Mobile menu link hover */
.mobile-link {
  transition: all 0.2s ease;
}

/* Button focus styles */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid #b82d4a;
  outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf8f6;
}
::-webkit-scrollbar-thumb {
  background: #d4cfc9;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b0a89e;
}

/* Fade-in animation for hero elements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animated {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-animated:nth-child(2) { animation-delay: 0.15s; }
.hero-animated:nth-child(3) { animation-delay: 0.3s; }
.hero-animated:nth-child(4) { animation-delay: 0.45s; }
.hero-animated:nth-child(5) { animation-delay: 0.6s; }

/* Smooth section transitions */
section {
  position: relative;
}

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