/* ============================================
   Pete's Meats — Design Tokens
   ============================================ */
:root {
  /* Colour — dark theme: black ground, gold fork, red sausage */
  --bg-900: #121110;
  --bg-800: #1C1A17;
  --bg-700: #29251F;
  --cream-100: #F6F1E4;
  --cream-200: #EDE3CB;
  --ink-900: #241E19;
  --ink-700: #4A4038;
  --brass-500: #D3A03C;
  --brass-600: #B4832A;
  --oxblood-600: #C1382B;
  --line: rgba(246, 241, 228, 0.14);
  --line-light: rgba(246, 241, 228, 0.14);
  --text-muted: rgba(246, 241, 228, 0.72);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-script: 'Caveat', cursive;
  --font-body: 'Work Sans', -apple-system, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  /* Layout */
  --container: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --shadow-md: 0 12px 30px -12px rgba(22, 40, 31, 0.35);
  --shadow-lg: 0 24px 60px -20px rgba(22, 40, 31, 0.45);
}

/* ============================================
   Reset
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-900);
  color: var(--cream-100);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, blockquote { margin: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }


.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brass-500);
  color: var(--ink-900);
  padding: 12px 20px;
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Typography helpers
   ============================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-500);
  margin-bottom: 14px;
  display: block;
}
.eyebrow--light { color: var(--brass-500); }

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.8rem);
  line-height: 1.15;
  color: var(--cream-100);
  margin-bottom: 18px;
  max-width: 18ch;
}
.section__title--light { color: var(--cream-100); }

.section__intro {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 40px;
}
.section__intro--light { color: var(--text-muted); }

.section { padding: 96px 0; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn--brass {
  background: var(--brass-500);
  color: var(--bg-900);
  box-shadow: var(--shadow-md);
}
.btn--brass:hover { background: var(--brass-600); transform: translateY(-2px); }
.btn--outline {
  border: 1.5px solid var(--line-light);
  color: var(--cream-100);
}
.btn--outline:hover { background: rgba(246, 241, 228, 0.1); transform: translateY(-2px); }
.btn--small { padding: 10px 18px; font-size: 0.86rem; }
.btn--wide { width: 100%; justify-content: center; margin-top: 28px; }

/* ============================================
   Topbar + Header
   ============================================ */
.topbar {
  background: var(--bg-900);
  border-bottom: 1px solid var(--line);
  color: rgba(246, 241, 228, 0.75);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}
.topbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 9px 24px;
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar__inner::-webkit-scrollbar { display: none; }
.topbar__item { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.topbar__phone:hover { color: var(--brass-500); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.is-scrolled {
  background: var(--bg-800);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  transition: padding 0.3s ease;
}
.site-header.is-scrolled .nav { padding: 14px 24px; }

.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--cream-100);
  margin-right: auto;
}
.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo-icon { height: 48px; width: auto; }

.nav__links { display: flex; gap: 30px; }
.nav__link {
  color: rgba(246, 241, 228, 0.85);
  font-size: 0.94rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--brass-500);
  transition: width 0.25s ease;
}
.nav__link:hover::after { width: 100%; }
.nav__link:hover { color: var(--cream-100); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav__toggle span {
  width: 22px; height: 2px;
  background: var(--cream-100);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-900);
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12,11,10,0.55) 0%, rgba(12,11,10,0.78) 55%, rgba(12,11,10,0.95) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 24px 100px;
  width: 100%;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 1.7rem + 3.2vw, 4.4rem);
  line-height: 1.08;
  color: var(--cream-100);
  max-width: 16ch;
  margin-bottom: 6px;
}
.hero__script {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem);
  color: var(--brass-500);
  margin-bottom: 22px;
}
.hero__lead {
  color: rgba(246, 241, 228, 0.82);
  font-size: 1.12rem;
  max-width: 48ch;
  margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================
   Placeholder component
   ============================================ */
.ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  background:
    repeating-linear-gradient(135deg, var(--bg-800), var(--bg-800) 12px, var(--bg-700) 12px, var(--bg-700) 24px);
  border: 1.5px dashed rgba(246, 241, 228, 0.22);
  color: var(--text-muted);
  overflow: hidden;
}
.ph__icon { color: var(--brass-500); opacity: 0.85; }
.ph__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding: 0 16px;
  max-width: 26ch;
}
.ph--wide { width: 100%; height: 100%; }
.ph--portrait { aspect-ratio: 4 / 5; border-radius: var(--radius-md); }
.ph--square { aspect-ratio: 1 / 1; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.ph--map { aspect-ratio: 4 / 3; border-radius: var(--radius-md); }

.visit__map {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
}
.visit__map iframe { width: 100%; height: 100%; display: block; }

/* ============================================
   About / Story
   ============================================ */
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.about__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.about__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.about__lead { font-size: 1.18rem; font-weight: 500; color: var(--cream-100); margin-bottom: 18px; }
.about__body p { margin-bottom: 18px; color: var(--text-muted); }
.about__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--oxblood-600);
  border-left: 3px solid var(--brass-500);
  padding-left: 20px;
  margin: 30px 0 12px;
}
.about__sign {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--cream-100);
}

/* ============================================
   Sourcing
   ============================================ */
.sourcing { background: var(--bg-800); }
.tag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.tag-card {
  background: var(--bg-700);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 22px 22px 24px;
  position: relative;
}
.tag-card::before {
  content: "";
  position: absolute;
  top: -6px; left: 24px;
  width: 12px; height: 12px;
  background: var(--brass-500);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.tag-card__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-500);
  margin-bottom: 8px;
}
.tag-card__value {
  display: block;
  color: var(--cream-100);
  font-size: 1.02rem;
  font-weight: 500;
}
.sourcing__note {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: rgba(246, 241, 228, 0.65);
  border-top: 1px dashed var(--line-light);
  padding-top: 22px;
}

/* ============================================
   Menu / Products
   ============================================ */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.filter-tab:hover { border-color: var(--brass-500); color: var(--cream-100); }
.filter-tab.is-active {
  background: var(--brass-500);
  border-color: var(--brass-500);
  color: var(--bg-900);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.product-card {
  background: var(--bg-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 16px -8px rgba(0,0,0,0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.product-card.is-hidden { display: none; }
.product-card__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-700);
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brass-600); }
.product-card__badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-500);
  padding: 14px 16px 0;
}
.product-card__name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  padding: 6px 16px 4px;
  color: var(--cream-100);
}
.product-card__meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0 16px 18px;
}
.product-card__name:last-child { padding-bottom: 18px; }

.price-list {
  background: var(--bg-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 40px clamp(24px, 4vw, 48px);
}

.market-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px clamp(24px, 4vw, 40px);
}
.market-card__details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 320px;
}
.market-card__row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.02rem;
}
.market-card__row svg { color: var(--brass-500); flex-shrink: 0; }
.market-card .btn--brass { flex-shrink: 0; }
.price-list__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  font-weight: 600;
  color: var(--cream-100);
  margin-bottom: 28px;
}
.price-list__items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 48px;
  margin-bottom: 28px;
}
.price-list__items li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.price-list__name {
  color: var(--cream-100);
  font-size: 1.18rem;
  font-weight: 500;
}
.price-list__price {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 1.08rem;
  color: var(--brass-500);
  white-space: nowrap;
}
.price-list__note {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
  max-width: 60ch;
}

/* ============================================
   Order steps
   ============================================ */
.order { background: var(--bg-800); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 20px;
}
.step { position: relative; padding-top: 8px; }
.step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--brass-500);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}
.step__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--cream-100);
}
.step__text { color: var(--text-muted); }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 12px; right: -20px;
  width: 8px; height: 8px;
  border-right: 2px solid var(--line);
  border-top: 2px solid var(--line);
  transform: rotate(45deg);
  display: none;
}
@media (min-width: 900px) {
  .step:not(:last-child)::after { display: block; }
}

/* ============================================
   Visit
   ============================================ */
.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.detail-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
}
.detail-row svg { color: var(--brass-500); flex-shrink: 0; }
.detail-row a:hover { color: var(--brass-500); }

.social-row { display: flex; gap: 12px; margin: 24px 0 4px; }
.social-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg-700);
  color: var(--cream-100);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-btn:hover { background: var(--brass-600); transform: translateY(-3px); }

/* ============================================
   Closing
   ============================================ */
.closing {
  background: var(--bg-800);
  padding: 100px 0;
  text-align: center;
  color: var(--cream-100);
}
.closing__logo {
  width: 200px; height: auto;
  margin: 0 auto 32px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
}
.closing__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  line-height: 1.3;
  margin-bottom: 18px;
}
.closing__sign {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--brass-500);
}

/* ============================================
   Footer
   ============================================ */
.site-footer { background: var(--bg-900); border-top: 1px solid var(--line); color: rgba(246,241,228,0.7); padding: 56px 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(246,241,228,0.12);
}
.footer__logo-icon { height: 84px; width: auto; }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a:hover { color: var(--cream-100); }
.footer__contact { display: flex; flex-direction: column; gap: 12px; }
.footer__contact a, .footer__contact span { display: flex; align-items: center; gap: 10px; }
.footer__contact a:hover { color: var(--cream-100); }
.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .product-card, .nav__link::after, .social-btn { transition: none; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 360px; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }
  .site-header.is-nav-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-800);
    padding: 20px 24px 28px;
    gap: 18px;
    box-shadow: var(--shadow-md);
  }
  .site-header.is-nav-open .nav__cta {
    display: inline-flex;
    margin: 0 24px 24px;
  }
  .site-header.is-nav-open { background: var(--bg-800); }

  .tag-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .visit__grid { grid-template-columns: 1fr; gap: 40px; }
  .price-list__items { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .tag-grid { grid-template-columns: 1fr; }
  .hero__inner { padding: 60px 20px 72px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .topbar__inner { gap: 18px; }
}
