/* ═══════════════════════════════════════════════════════════
   Downtown Nutrition & Energy — Custom Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Base ── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #E8A838;
  color: #1B4332;
}

/* ── Navbar ── */
#navbar {
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

#navbar.scrolled {
  background: rgba(253, 252, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 24px rgba(27, 67, 50, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #E8A838;
  transition: width 0.25s ease, left 0.25s ease;
  border-radius: 1px;
}

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

/* ── Mobile menu ── */
.mobile-nav-link {
  display: block;
}

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

/* ── Category Cards ── */
.category-card {
  position: relative;
  overflow: hidden;
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .category-card img {
    transition: none;
  }

  .category-card:hover img {
    transform: none;
  }
}

/* ── Buttons ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #E8A838;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Map container ── */
iframe {
  border-radius: 0 0 24px 24px;
}

/* ── Responsive tweaks ── */
@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.75rem;
  }

  .category-card {
    aspect-ratio: 4/3;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  #hero h1 {
    font-size: 4rem;
  }
}
