/* =========================================================
   Esposito Meat Market — Redesign
   Palette: red #c41e2b · green #1c5c3e · cream #f7f2e9
            ink #2b2420 · brass #8a7a5c · white #ffffff
   Type: Fraunces (display) · Petit Formal Script (accent)
         Inter (body/utility)
   ========================================================= */

:root {
  --red: #c41e2b;
  --red-dark: #9c1620;
  --green: #1c5c3e;
  --green-dark: #123d29;
  --cream: #f7f2e9;
  --cream-deep: #efe7d6;
  --ink: #2b2420;
  --brass: #8a7a5c;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-script: "Petit Formal Script", "Brush Script MT", cursive;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-width: 1200px;
  --radius: 6px;
  --shadow-card: 0 2px 10px rgba(43, 36, 32, 0.12);
  --shadow-card-hover: 0 8px 24px rgba(43, 36, 32, 0.18);
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: var(--white);
  padding: 12px 20px;
  z-index: 200;
  font-weight: 600;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--red);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(196, 30, 43, 0.35);
}
.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn--ghost:hover {
  background: rgba(43, 36, 32, 0.06);
}

/* ---------- Eyebrow / section titles ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 0.6em;
}
.eyebrow--light { color: #e8c9a8; }

.section-title {
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  color: var(--ink);
  margin-bottom: 0.5em;
}
.section-title--sm { font-size: clamp(1.5rem, 3vw, 2rem); }
.section-title--light { color: var(--white); }

.section-intro {
  max-width: 60ch;
  color: var(--brass);
  font-size: 1.05rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.info-bar {
  background: var(--red);
  color: var(--white);
}
.info-bar__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.info-bar__item { white-space: nowrap; }
.info-bar__phone {
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.5);
}
.info-bar__phone:hover { border-color: var(--white); }

.nav-bar {
  background: var(--cream);
  border-bottom: 1px solid rgba(43,36,32,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  max-width: var(--container-width);
  margin: 0 auto;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 0.95rem;
}
.primary-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.primary-nav a:hover {
  color: var(--green);
  border-color: var(--green);
}
.primary-nav__cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 999px;
  border-bottom: none !important;
}
.primary-nav__cta:hover {
  background: var(--green-dark);
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(43,36,32,0.1);
    transition: max-height 0.25s ease;
  }
  .primary-nav.is-open { max-height: 420px; }
  .primary-nav a {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(43,36,32,0.08);
    border-radius: 0;
  }
  .primary-nav__cta {
    margin: 12px 24px;
    text-align: center;
  }
  .info-bar__inner {
    font-size: 0.72rem;
    padding: 8px 16px;
  }
}

/* No-JS fallback: nav is a normal flowing list, always visible */
.no-js .primary-nav,
.primary-nav {
  /* base desktop rules above already show it; mobile collapse only applies via JS class toggle */
}
@media (max-width: 760px) {
  html:not(.js) .primary-nav {
    position: static;
    max-height: none;
    overflow: visible;
  }
  html:not(.js) .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,22,18,0.15) 0%, rgba(24,18,14,0.55) 65%, rgba(18,13,10,0.82) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 760px;
  padding: 48px 24px 64px;
  margin: 0 auto;
  width: 100%;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in 0.6s ease-out 0.1s forwards;
}
@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__content { opacity: 1; transform: none; animation: none; }
}

.hero__headline {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.05;
  margin-bottom: 0.4em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero__lede {
  font-size: 1.1rem;
  max-width: 58ch;
  color: rgba(255,255,255,0.92);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.6em;
}
.hero__actions .btn--ghost {
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.hero__actions .btn--ghost:hover {
  background: rgba(255,255,255,0.12);
}

@media (max-width: 600px) {
  .hero { min-height: 92vh; }
  .hero__content { padding: 32px 20px 48px; }
}

/* ---------- Catalog ---------- */
.catalog {
  padding: 88px 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 980px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .catalog-grid { grid-template-columns: 1fr; }
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(12px);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.category-card.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.2s ease;
}
@media (prefers-reduced-motion: reduce) {
  .category-card { opacity: 1; transform: none; }
}
.category-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.category-card summary {
  cursor: pointer;
  list-style: none;
  position: relative;
}
.category-card summary::-webkit-details-marker { display: none; }

.category-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover;
  transition: filter 0.2s ease;
}
.category-card:hover .category-card__img {
  filter: brightness(1.06) saturate(1.05);
}

.category-card__label {
  display: block;
  padding: 16px 20px 18px;
  position: relative;
}
.category-card__label::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 16px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--brass);
  transition: transform 0.2s ease;
  line-height: 1;
}
.category-card[open] .category-card__label::after {
  content: "\2212";
}
.category-card__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}
.category-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  padding-right: 24px;
}

.category-card__list {
  padding: 4px 20px 22px;
  border-top: 1px solid var(--cream-deep);
  font-size: 0.94rem;
  color: var(--ink);
}
.category-card__list p { margin: 0.55em 0; }
.category-card__subhead {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--green);
  margin-top: 1.1em !important;
}

/* ---------- Strips (custom orders / delivery) ---------- */
.strip {
  padding: 72px 0;
  background: var(--white);
}
.strip--reverse { background: var(--cream-deep); }

.strip__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.strip--reverse .strip__inner {
  grid-template-columns: 1.1fr 0.9fr;
}
.strip--reverse .strip__media { order: 2; }
.strip--reverse .strip__text { order: 1; }

.strip__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  width: 100%;
}
.strip--reverse .strip__media img {
  max-width: 340px;
  margin: 0 auto;
}

.strip__text p { color: var(--ink); }
.strip__text .btn { margin-top: 12px; }

@media (max-width: 760px) {
  .strip__inner,
  .strip--reverse .strip__inner {
    grid-template-columns: 1fr;
  }
  .strip--reverse .strip__media,
  .strip--reverse .strip__text {
    order: initial;
  }
  .strip { padding: 56px 0; }
}

/* ---------- Story ---------- */
.story {
  padding: 88px 0;
  background: var(--green);
  color: var(--white);
}
.story .eyebrow { color: #bfe0cf; }
.story .section-title { color: var(--white); }

.story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}
.story__photo {
  margin: 0;
}
.story__photo img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4/3.4;
  object-fit: cover;
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}
.story__photo figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #bfe0cf;
  font-style: italic;
}

.story__text {
  max-width: 72ch;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.94);
}

.story__portrait {
  margin: 40px 0 0;
  display: flex;
  align-items: center;
  gap: 20px;
}
.story__portrait img {
  width: 120px;
  height: 158px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.story__portrait figcaption {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: #e8c9a8;
}

@media (max-width: 700px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__portrait { flex-direction: column; align-items: flex-start; }
}

/* ---------- Press ---------- */
.press {
  padding: 72px 0;
  background: var(--cream);
  text-align: center;
}
.press .section-intro,
.press__note {
  margin: 0 auto 32px;
  max-width: 62ch;
  font-size: 0.92rem;
  color: var(--brass);
  font-style: italic;
}
.press__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.press__item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.press__item img { max-height: 56px; width: auto; }
.press__item p {
  font-size: 0.86rem;
  color: var(--ink);
  margin: 0;
}
@media (max-width: 900px) {
  .press__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .press__list { grid-template-columns: 1fr; }
}

/* ---------- Visit / Contact ---------- */
.visit {
  padding: 88px 0;
  background: var(--ink);
  color: var(--white);
}
.visit__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.visit__lede { font-size: 1.15rem; }
.visit__lede a {
  color: #e8c9a8;
  text-decoration: underline;
}
.visit p { color: rgba(255,255,255,0.85); }

.visit__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.visit__facts dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #e8c9a8;
  margin-bottom: 6px;
}
.visit__facts dd {
  margin: 0;
  font-weight: 600;
  color: var(--white);
}
.visit__facts a { color: var(--white); text-decoration: underline; }

.visit__social {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}
.visit__social img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.visit__social a:hover img { opacity: 1; }

.visit__map-wrap {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.visit__staff-photo {
  width: 100%;
  aspect-ratio: 334/220;
  object-fit: cover;
  object-position: center 20%;
}
.visit__map {
  display: block;
  border: none;
}

@media (max-width: 860px) {
  .visit__grid { grid-template-columns: 1fr; }
  .visit__facts { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.85);
  padding: 40px 0 20px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-footer__logo {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.site-footer__facts p {
  margin: 0 0 4px;
  font-size: 0.9rem;
}
.site-footer__facts a { text-decoration: underline; color: var(--white); }
.site-footer__social {
  display: flex;
  gap: 14px;
}
.site-footer__social img {
  filter: brightness(0) invert(1);
  opacity: 0.75;
}
.site-footer__social a:hover img { opacity: 1; }
.site-footer__copyright {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin: 28px 0 0;
}

@media (max-width: 600px) {
  .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
