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

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

::selection {
  background: #fbbf24;
  color: #500724;
}

/* Navbar */
#navbar {
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background: rgba(254, 252, 243, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(80, 7, 36, 0.06);
}

.nav-logo-text {
  transition: color 0.4s ease;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fbbf24;
  transition: width 0.3s ease;
}

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

#navbar.scrolled .nav-logo-text {
  color: #500724;
}

/* Mobile Menu */
.mobile-menu-link {
  position: relative;
  padding-left: 0;
  transition: padding-left 0.2s ease, color 0.2s ease;
}

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

/* Hero */
.hero-bg {
  will-change: transform;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(80, 7, 36, 0.75) 0%,
    rgba(157, 23, 77, 0.55) 50%,
    rgba(116, 45, 16, 0.45) 100%
  );
}

.hero-title {
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1s ease forwards 0.3s;
}

.hero-badge {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1s ease forwards 0.1s;
}

.hero-subtitle {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1s ease forwards 0.5s;
}

.hero-buttons {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1s ease forwards 0.7s;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Image hover effects */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Button ripple */
button, a {
  cursor: pointer;
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

/* Form inputs */
input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

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

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

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

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

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

/* Mobile responsive tweaks */
@media (max-width: 640px) {
  .font-serif {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  #hero h1 {
    font-size: clamp(2.25rem, 10vw, 4rem);
  }
}

/* Print styles */
@media print {
  #navbar, .hero-bg img {
    display: none;
  }
}
