/* ============================================
   Koffee Konnection Plus — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: #C8960C;
  color: #0D1F3C;
}

/* --- Navigation --- */
#navbar {
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 20px rgba(13, 31, 60, 0.08);
  backdrop-filter: blur(12px);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #C8960C;
  transition: all 0.25s ease;
  transform: translateX(-50%);
}

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

/* --- Hero --- */
#hero {
  position: relative;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(8, 19, 36, 0.95) 0%,
    rgba(13, 31, 60, 0.88) 40%,
    rgba(26, 47, 77, 0.75) 100%
  );
  z-index: 1;
}

#hero > .absolute {
  z-index: 2;
}

#hero > div:last-child {
  z-index: 3;
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

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

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

/* --- Buttons --- */
button, a {
  cursor: pointer;
}

/* --- Mobile Menu --- */
#mobile-menu {
  animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-link {
  display: block;
  padding-left: 1rem;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  border-left-color: #C8960C;
  color: #0D1F3C;
}

/* --- Form --- */
input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 150, 12, 0.15);
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
