/* ============================================
   Dr. Steven M. Lorei — Custom Styles
   Classic & Elegant | Terracotta + Sand
   ============================================ */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
  background: #8B5E3C;
  color: #fefdfb;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf5ee;
}
::-webkit-scrollbar-thumb {
  background: #cfa56e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8B5E3C;
}

/* ============================================
   Reveal Animations
   ============================================ */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger children */
.reveal-up[data-delay="100ms"] { transition-delay: 100ms; }
.reveal-up[data-delay="200ms"] { transition-delay: 200ms; }
.reveal-up[data-delay="300ms"] { transition-delay: 300ms; }

/* ============================================
   Navigation
   ============================================ */
#navbar {
  background: rgba(254, 253, 251, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  border-bottom-color: #e8d3b0;
  box-shadow: 0 1px 20px rgba(44, 24, 16, 0.06);
}

.nav-link {
  position: relative;
}

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

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

.nav-link:hover {
  color: #8B5E3C !important;
}

/* Mobile menu */
#mobile-menu {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-link {
  position: relative;
}

.mobile-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #8B5E3C;
  transition: width 0.3s ease;
}

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

/* Hamburger animation */
.menu-line {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#menu-btn.active .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#menu-btn.active .menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 24px;
}

/* ============================================
   Hero
   ============================================ */
#top {
  position: relative;
}

#top::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, #f9ddd3 0%, #f3e8d5 100%);
  opacity: 0.4;
  z-index: -1;
}

@media (max-width: 1023px) {
  #top::before {
    display: none;
  }
}

/* ============================================
   Buttons
   ============================================ */
button, a[class*="inline-flex"] {
  -webkit-tap-highlight-color: transparent;
}

button:hover, a[class*="inline-flex"]:hover {
  transform: translateY(-1px);
}

button:active, a[class*="inline-flex"]:active {
  transform: translateY(0);
}

/* ============================================
   Form Styles
   ============================================ */
input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.1);
}

input::placeholder, textarea::placeholder {
  color: rgba(44, 24, 16, 0.15);
}

/* ============================================
   Image hover effects
   ============================================ */
.group img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover img {
  transform: scale(1.03);
}

/* ============================================
   Floating accent card
   ============================================ */
.absolute.bottom-0.left-0 {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================
   Print styles
   ============================================ */
@media print {
  #navbar, #mobile-menu, button, .reveal-up, .reveal-right {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
}
