/* =========================================================
   THE DELI DEPOT — STYLES
   Mobile-first, dark slate + warm gold, cream text
   ========================================================= */

:root {
  --bg:            #1a1a1a;
  --bg-deeper:     #121212;
  --bg-raised:    #222020;
  --line:          #2d2a26;
  --gold:          #c9a961;
  --gold-bright:   #d4af37;
  --gold-soft:     rgba(201, 169, 97, 0.15);
  --cream:         #f5f1e8;
  --cream-muted:   #d8d2c4;
  --muted:         #a8a39a;
  --danger:        #d97757;

  --serif: 'Great Vibes', 'Brush Script MT', cursive;
  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 6px 24px rgba(201, 169, 97, 0.18);
  --container: 1200px;
  --pad: clamp(1rem, 4vw, 2rem);
  --section-pad: clamp(4rem, 9vw, 7rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover, a:focus-visible { color: var(--gold-bright); }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--bg);
  padding: 0.75rem 1rem;
  font-weight: 600;
  z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* ============ TYPOGRAPHY ============ */
.h2 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--cream);
  margin: 0.3rem 0 1.2rem;
}

.h4 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.small { font-size: 0.85rem; color: var(--muted); }

/* ============ BRAND LOCKUP ============ */
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.brand__deli {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.38em;
  color: var(--cream);
  text-transform: uppercase;
}
.brand__depot {
  font-family: var(--serif);
  color: var(--gold);
  font-weight: 400;
  margin-top: -0.1em;
}
.brand--hero .brand__deli { font-size: clamp(1.2rem, 3vw, 2rem); }
.brand--hero .brand__depot { font-size: clamp(4rem, 14vw, 8.5rem); }

.brand--small .brand__deli { font-size: 0.7rem; letter-spacing: 0.4em; }
.brand--small .brand__depot { font-size: 2rem; margin-top: -0.2em; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover, .btn:focus-visible {
  background: var(--gold-bright);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn--outline {
  background: transparent;
  color: var(--gold);
}
.btn--outline:hover, .btn--outline:focus-visible {
  background: var(--gold);
  color: var(--bg);
}
.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.75rem; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(18, 18, 18, 0.95);
}
.nav__inner {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}
.nav__brand { color: var(--cream); }
.nav__brand:hover { color: var(--cream); }

.nav__links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
}
.nav__links a {
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
}
.nav__links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav__links a:not(.btn):hover::after,
.nav__links a:not(.btn):focus-visible::after { width: 100%; }
.nav__links a.btn { color: var(--bg); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--cream);
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg-deeper);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    padding: 1rem 0;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a {
    width: 100%;
    padding: 1rem 2rem;
    text-align: left;
  }
  .nav__links a.btn { margin: 0.5rem 2rem; width: auto; text-align: center; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201, 169, 97, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(201, 169, 97, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
  z-index: -2;
}
.hero__overlay {
  position: absolute; inset: 0;
  /* Optional hero texture image. File was missing (caused a 404), so the
     overlay is disabled. To use one, drop a photo at
     assets/images/hero-bg.jpg and restore the background line below. */
  /* background: url("../assets/images/hero-bg.jpg") center/cover no-repeat; */
  opacity: 0.18;
  z-index: -1;
  filter: grayscale(0.3) contrast(1.1);
}
.hero__content { position: relative; max-width: 800px; }
.hero__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.1s ease forwards;
}
.brand--hero {
  opacity: 0;
  animation: fadeUp 0.9s 0.25s ease forwards;
}
.hero__tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--cream-muted);
  margin: 1.5rem auto 2.5rem;
  max-width: 600px;
  opacity: 0;
  animation: fadeUp 0.9s 0.45s ease forwards;
}
.hero__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.65s ease forwards;
}
.hero__scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  width: 30px; height: 50px;
  border: 1px solid var(--gold);
  border-radius: 15px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
  opacity: 0.7;
}
.hero__scroll span {
  width: 3px; height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(14px); opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ SECTIONS ============ */
.section { padding: var(--section-pad) 0; }
.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.section__lead {
  color: var(--cream-muted);
  font-size: 1.05rem;
  margin: 1rem 0 0;
}

/* ============ ABOUT ============ */
.about__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .about__grid { grid-template-columns: 1fr 1fr; }
}
.about__copy p {
  color: var(--cream-muted);
  margin: 0 0 1rem;
  font-size: 1.02rem;
}
.about__image .image-placeholder { aspect-ratio: 4 / 5; }

/* ============ IMAGE PLACEHOLDERS ============ */
.image-placeholder {
  background:
    linear-gradient(135deg, rgba(201, 169, 97, 0.08) 0%, rgba(201, 169, 97, 0.02) 100%),
    var(--bg-raised);
  border: 1px dashed rgba(201, 169, 97, 0.25);
  border-radius: var(--radius-lg);
  min-height: 240px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, transparent 48%, rgba(201, 169, 97, 0.05) 49%, rgba(201, 169, 97, 0.05) 51%, transparent 52%);
  background-size: 14px 14px;
  opacity: 0.6;
}
.image-placeholder::after {
  content: attr(data-note);
  position: relative;
  font-size: 0.78rem;
  color: var(--gold);
  text-align: center;
  padding: 1rem 1.5rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  opacity: 0.85;
  line-height: 1.5;
}

/* ============ MENU ============ */
.menu__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.chip {
  padding: 0.55rem 1.2rem;
  background: transparent;
  color: var(--cream-muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip:hover, .chip:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}
.chip.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

.menu__grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .menu__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .menu__grid { grid-template-columns: repeat(3, 1fr); } }

.menu-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
}
.menu-card--has-image {
  padding: 0;
}
.menu-card--has-image .menu-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.2rem 1.5rem 1.4rem;
  flex: 1;
}
.menu-card__image {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.menu-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.menu-card__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.menu-card__name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  margin: 0;
}
.menu-card__price {
  color: var(--gold);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
}
.menu-card__desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  flex: 1;
}
.menu-card__tag {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  margin-top: 0.3rem;
  align-self: flex-start;
}

.menu-card.is-hidden { display: none; }

.menu__allergen {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--gold);
  background: var(--bg-raised);
  color: var(--cream-muted);
  font-size: 0.9rem;
  border-radius: 6px;
}

/* ============ GALLERY ============ */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 720px) { .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1000px) { .gallery__grid { grid-template-columns: repeat(4, 1fr); } }
.gallery__item { aspect-ratio: 1 / 1; }
img.gallery__item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

/* ============ WHOLESALE ============ */
.wholesale { background: var(--bg-deeper); }
.wholesale__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .wholesale__grid { grid-template-columns: 1fr 1fr; }
  .wholesale__image { order: 2; }
}
.wholesale__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}
.wholesale__list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--cream-muted);
  margin-bottom: 0.6rem;
}
.wholesale__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.65em;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 2px;
  transform: rotate(45deg);
}
.wholesale__image .image-placeholder { aspect-ratio: 1 / 1; }

/* ============ LOYALTY ============ */
.loyalty { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deeper) 100%); }
.loyalty__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.loyalty p { color: var(--cream-muted); margin: 1rem 0 1.8rem; }

/* ============ CONTACT ============ */
.contact__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}
@media (min-width: 820px) {
  .contact__grid { grid-template-columns: 1fr 1.3fr; }
}
.info-block {
  margin-bottom: 1.8rem;
}
.info-block address,
.info-block p {
  margin: 0;
  color: var(--cream-muted);
  font-style: normal;
  line-height: 1.7;
}
.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 2rem;
  margin: 0;
  color: var(--cream-muted);
}
.hours dt { color: var(--cream); }

.contact__form {
  display: grid;
  gap: 1rem;
  background: var(--bg-raised);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.contact__form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.contact__form input,
.contact__form textarea,
.contact__form select {
  background: var(--bg-deeper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color 0.2s ease;
}
.contact__form input:focus,
.contact__form textarea:focus,
.contact__form select:focus {
  outline: none;
  border-color: var(--gold);
}
.contact__form textarea { resize: vertical; min-height: 120px; }
.contact__form .btn { justify-self: start; margin-top: 0.5rem; }
.form__status { margin: 0; font-size: 0.9rem; color: var(--gold); min-height: 1.2em; }

.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}
.contact__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) contrast(1.05); }

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-deeper);
  border-top: 1px solid var(--line);
  padding: 4rem 0 0;
  color: var(--cream-muted);
}
.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 3rem;
}
@media (min-width: 600px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; } }
.footer h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin: 0 0 1rem;
}
.footer p, .footer address {
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.7;
  margin: 0.5rem 0;
}
.footer__brand p { margin-top: 0.8rem; }

.socials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.75rem;
}
.socials a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cream);
  transition: all 0.2s ease;
}
.socials a:hover, .socials a:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}
.footer__bottom p { margin: 0; }

/* ============ UTILITIES ============ */
.is-hidden { display: none !important; }

/* Fade-in on scroll helper */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
