/* ==========================================================================
   Kam Man Food — Chinatown
   Tokens
   ========================================================================== */
:root {
  --red-900: #A61B24;
  --red-700: #C8202E;
  --red-800: #971822;
  --gold-500: #D9A441;
  --gold-300: #EACB86;
  --cream-50: #FBF6EC;
  --cream-100: #F4ECDA;
  --ink-900: #241611;
  --ink-700: #4A362E;
  --jade-600: #2F6D5C;

  --display: "Archivo Black", "Arial Black", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 10px;
  --shadow-soft: 0 8px 24px rgba(36, 22, 17, 0.12);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body, h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }

body {
  font-family: var(--body);
  background: var(--cream-50);
  color: var(--ink-900);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold-500);
  color: var(--ink-900);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

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

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  min-height: 44px;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--red-700);
  color: #fff;
  border-color: var(--red-700);
}
.btn-primary:hover { background: var(--red-800); border-color: var(--red-800); }

.btn-outline {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-900);
}
.btn-outline:hover { background: var(--ink-900); color: var(--cream-50); }

.hero .btn-outline,
.visit .btn-outline {
  border-color: var(--cream-50);
  color: var(--cream-50);
}
.hero .btn-outline:hover,
.visit .btn-outline:hover {
  background: var(--cream-50);
  color: var(--red-900);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream-50);
  border-bottom: 3px solid var(--red-700);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; }
.brand-mark { height: 44px; width: auto; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid var(--ink-900);
  border-radius: 6px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink-900);
}

.primary-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream-50);
  border-bottom: 3px solid var(--red-700);
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1.25rem 1.25rem;
  gap: 0.25rem;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.primary-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.primary-nav a {
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid var(--cream-100);
}
.primary-nav a:last-child { border-bottom: none; }

.nav-phone {
  color: var(--red-700) !important;
  font-weight: 800;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--red-900);
  color: var(--cream-50);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-300);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 11vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

.hero-sub {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream-100);
  margin-bottom: 1.25rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.pill {
  display: inline-block;
  background: rgba(251, 246, 236, 0.12);
  border: 1px solid rgba(251, 246, 236, 0.4);
  color: var(--cream-50);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-est {
  display: inline-block;
  background: var(--gold-500);
  color: var(--ink-900);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--gold-500);
  box-shadow: var(--shadow-soft);
}
.hero-media img {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Story strip (stat)
   ========================================================================== */
.story-strip {
  background: var(--gold-500);
  color: var(--ink-900);
  text-align: center;
  padding: 0.75rem 1rem;
}
.story-strip p {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.story-strip span {
  font-family: var(--display);
  font-size: 1.05rem;
  margin-right: 0.5rem;
}

/* ==========================================================================
   Story
   ========================================================================== */
.story {
  padding: 3rem 1.25rem;
}
.story-inner {
  max-width: 720px;
  margin: 0 auto;
}
.story h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  color: var(--red-900);
  margin-bottom: 1.25rem;
}
.story p {
  font-size: 1.05rem;
  color: var(--ink-700);
}

/* ==========================================================================
   Departments — the signature section
   ========================================================================== */
.departments {
  background: var(--cream-100);
  padding: 3rem 0 3.5rem;
}
.departments-head {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  text-align: center;
}
.departments-head h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  color: var(--red-900);
  margin-bottom: 0.5rem;
}
.departments-head p {
  color: var(--ink-700);
  font-size: 1.05rem;
}

.dept-band {
  max-width: var(--container);
  margin: 0 auto 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  border: 3px solid var(--gold-500);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.dept-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.dept-copy {
  padding: 1.5rem 1.25rem;
  color: #fff;
}
.dept-copy h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.dept-copy p {
  font-size: 0.95rem;
  opacity: 0.92;
}

.dept-bakery .dept-copy   { background: #8A5A17; }
.dept-dairy .dept-copy    { background: var(--jade-600); }
.dept-meat .dept-copy     { background: var(--red-800); }
.dept-produce .dept-copy  { background: #3E7A3A; }
.dept-seafood .dept-copy  { background: #1F6E8C; }

.dept-footnote {
  max-width: var(--container);
  margin: 1.5rem auto 0;
  padding: 0 1.25rem;
  text-align: center;
  color: var(--ink-700);
  font-size: 0.95rem;
  font-style: italic;
}

/* ==========================================================================
   Visit
   ========================================================================== */
.visit {
  background: var(--red-900);
  color: var(--cream-50);
  padding: 3rem 1.25rem;
}
.visit-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.visit h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  margin-bottom: 1.5rem;
  color: var(--gold-300);
}

.visit-list { margin-bottom: 1.75rem; }
.visit-row {
  display: flex;
  flex-direction: column;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(251, 246, 236, 0.2);
}
.visit-row:last-child { border-bottom: none; }
.visit-row dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-300);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.visit-row dd {
  font-size: 1.05rem;
  font-weight: 600;
}
.visit-row a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.visit-map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--gold-500);
  min-height: 280px;
  background: var(--red-800);
}
.visit-map iframe {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  display: block;
  background: transparent;
}
.visit-map iframe.is-loaded {
  z-index: 2;
}

.visit-map-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  padding: 1.5rem;
  text-decoration: none;
  background:
    radial-gradient(circle at 30% 30%, rgba(217, 164, 65, 0.18), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(217, 164, 65, 0.12), transparent 55%),
    var(--red-800);
}
.visit-map-fallback-label {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--cream-50);
  max-width: 22ch;
}
.visit-map-fallback-cta {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-900);
  background: var(--gold-500);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink-900);
  color: var(--cream-100);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.footer-logo {
  height: 48px;
  width: auto;
}
.footer-info p {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.footer-store {
  font-weight: 800;
  font-size: 1.05rem !important;
  color: #fff;
}
.footer-info a { text-decoration: underline; text-underline-offset: 3px; }

.footer-heading {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-300);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.footer-locations ul li {
  font-size: 0.9rem;
  padding: 0.15rem 0;
  color: var(--cream-100);
  opacity: 0.85;
}

.footer-bottom {
  border-top: 1px solid rgba(251, 246, 236, 0.12);
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 1;
  transform: none;
}
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 640px) {
  .hero-actions { flex-wrap: nowrap; }
}

@media (min-width: 768px) {
  .header-inner { padding: 0.75rem 2rem; }
  .brand-mark { height: 52px; }

  .nav-toggle { display: none; }

  .primary-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
    gap: 2rem;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .primary-nav a {
    border-bottom: none;
    padding: 0.5rem 0;
    position: relative;
  }
  .primary-nav a:not(.nav-phone)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--red-700);
    transform: scaleX(0);
    transition: transform 0.2s ease;
  }
  .primary-nav a:not(.nav-phone):hover::after,
  .primary-nav a:not(.nav-phone):focus-visible::after {
    transform: scaleX(1);
  }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    padding: 4rem 2rem;
  }
  .hero-copy { flex: 1 1 50%; }
  .hero-media { flex: 1 1 50%; }

  .dept-band {
    grid-template-columns: 280px 1fr;
  }
  .dept-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
  }

  .visit-inner {
    flex-direction: row;
    align-items: stretch;
  }
  .visit-card { flex: 1 1 44%; }
  .visit-map { flex: 1 1 56%; min-height: 360px; }
  .visit-map iframe { min-height: 360px; }

  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding: 3rem 2rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .story { padding: 5rem 1.25rem; }
  .departments { padding: 5rem 0; }
  .dept-band { grid-template-columns: 320px 1fr; }
  .hero-title { font-size: clamp(3.5rem, 6.5vw, 5.5rem); }
}

@media (min-width: 1280px) {
  .header-inner, .hero-inner, .departments-head, .dept-band, .dept-footnote, .visit-inner, .footer-inner {
    padding-left: 0;
    padding-right: 0;
  }
}
