/* ============================================
   UK DELI AND GROCERY — Custom Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ---- Scrollbar (subtle) ---- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a1628;
}
::-webkit-scrollbar-thumb {
  background: #1e3a72;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2d4d91;
}

/* ---- Navigation ---- */
.nav-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s ease;
}
.nav-link:hover {
  color: #c9a84c;
}

.nav-color-primary {
  color: #ffffff;
}
.nav-color-secondary {
  color: rgba(255, 255, 255, 0.5);
}
.nav-btn {
  color: rgba(255, 255, 255, 0.8);
}

/* Scrolled state */
.header-scrolled .nav-color-primary {
  color: #0a1628;
}
.header-scrolled .nav-color-secondary {
  color: rgba(10, 22, 40, 0.5);
}
.header-scrolled .nav-link {
  color: rgba(10, 22, 40, 0.65);
}
.header-scrolled .nav-link:hover {
  color: #c9a84c;
}
.header-scrolled .nav-btn {
  color: #0a1628;
}
.header-scrolled .menu-line {
  background: #0a1628;
}

/* ---- Mobile menu ---- */
.mobile-nav-link {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.mobile-nav-link:hover {
  color: #c9a84c;
  padding-left: 0.5rem;
}

/* ---- Reveal animations ---- */
.reveal-left,
.reveal-right,
.reveal-card {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-left {
    transform: translateX(-30px);
  }
  .reveal-right {
    transform: translateX(30px);
  }
  .reveal-card {
    transform: translateY(25px);
  }

  .reveal-left.revealed,
  .reveal-right.revealed,
  .reveal-card.revealed {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

/* ---- Staggered card delays ---- */
.reveal-card:nth-child(2) {
  transition-delay: 0.12s;
}
.reveal-card:nth-child(3) {
  transition-delay: 0.24s;
}

/* ---- Gold accent shimmer on hover ---- */
.bg-gold-500 {
  position: relative;
  overflow: hidden;
}
.bg-gold-500::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.bg-gold-500:hover::after {
  transform: translateX(100%);
}

/* ---- Print ---- */
@media print {
  #site-header, .bg-gold-500::after {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
