/* ========================================
   Sweetbakerypastrycorp — Custom Styles
   ======================================== */

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
}

/* Floating animation for hero stat cards */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

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

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 4s ease-in-out infinite;
  animation-delay: 1s;
}

/* Scroll reveal (progressive enhancement — only active when JS is available) */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
  }

  .reveal.visible[data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(15, 28, 63, 0.08);
}

.navbar-scrolled .nav-link {
  color: #1a2744 !important;
}

.navbar-scrolled .nav-link:hover {
  color: #c8a44e !important;
}

/* Smooth focus outlines */
input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: none;
}

/* Selection color */
::selection {
  background: #c8a44e;
  color: #0f1c3f;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #8fa4cc;
}
