/* Custom styles — overrides and enhancements beyond Tailwind */

:root {
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(254, 252, 246, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* Menu tabs */
.menu-tab {
  color: #78716c;
  background: transparent;
}
.menu-tab:hover {
  color: #d4604a;
}
.menu-tab.active {
  background: #d4604a;
  color: #fff;
  box-shadow: 0 2px 8px rgba(212, 96, 74, 0.3);
}

/* Subtle hover lift on cards */
.group:hover {
  transform: translateY(-2px);
}

/* Hero floating cards — subtle float animation */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(var(--rotate, 0deg)); }
  50% { transform: translateY(-10px) rotate(var(--rotate, 0deg)); }
}

@media (prefers-reduced-motion: no-preference) {
  .absolute.top-0.right-0 { animation: float 6s ease-in-out infinite; --rotate: 2deg; }
  .absolute.top-40.right-24 { animation: float 7s ease-in-out infinite 0.5s; --rotate: -1deg; }
  .absolute.top-72.right-8 { animation: float 5.5s ease-in-out infinite 1s; --rotate: 1deg; }
  .absolute.top-\[28rem\].right-56 { animation: float 6.5s ease-in-out infinite 1.5s; --rotate: -2deg; }
}

/* Selection color */
::selection {
  background: rgba(212, 96, 74, 0.2);
  color: #78716c;
}

/* Focus visible for keyboard users */
:focus-visible {
  outline: 2px solid #d4604a;
  outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fefcf6;
}
::-webkit-scrollbar-thumb {
  background: #d6d3d1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a8a29e;
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Back to top button */
#back-to-top.visible {
  opacity: 1 !important;
  pointer-events: auto !important;
}
</style>
