/* ============================================
   Sedalia Bakery — Custom Styles
   ============================================ */

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

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

body {
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #d4a820;
  color: #0a102e;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 0.5rem 0.5rem;
  font-weight: 600;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* --- Navbar --- */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(10, 16, 46, 0.08);
}

.nav-link {
  position: relative;
}

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

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

/* --- Buttons --- */
.btn-primary {
  background: linear-gradient(135deg, #d4a820 0%, #c49510 100%);
  color: #0a102e;
  border: none;
  border-radius: 50px;
  padding: 0.875rem 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(212, 168, 32, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 168, 32, 0.4);
  background: linear-gradient(135deg, #e0b830 0%, #d4a820 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 0.8125rem 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* --- Hero Animations --- */
.hero-content {
  opacity: 1;
  transform: translateY(0);
  animation: heroFadeIn 1s ease-out forwards;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

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

/* --- Scroll Reveal --- */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .reveal-up.visible,
  .reveal-left.visible,
  .reveal-right.visible {
    opacity: 1;
    transform: none;
  }
}

/* --- Card Hover --- */
.card-bakery {
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-bakery:hover {
  transform: translateY(-8px);
}

/* --- Mobile Menu --- */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #faf0d4;
}

.mobile-link:last-child {
  border-bottom: none;
}

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

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

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

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

/* --- Selection --- */
::selection {
  background: #f0d06c;
  color: #0a102e;
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible {
  outline: 3px solid #d4a820;
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .font-display {
    line-height: 1.1;
  }

  #hero h1 {
    font-size: 2.75rem;
  }

  #hero h1 br {
    display: none;
  }
}

@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.25rem;
  }
}
