/* ================================================================
   M. NOCKELS LTD — The Quality Butcher — Scarborough Market Hall
   Palette lifted straight from the fascia sign & counter:
   enamel cream, signwriter red, butcher blue, chalk slate, ticket gold
   ================================================================ */

:root {
  --ink: #241a13;
  --muted: #6d6156;
  --cream: #f6ecd4;
  --cream-deep: #efe0bc;
  --paper: #fdf8ec;
  --red: #b5251f;
  --red-shadow: #57100d;
  --blue: #1e5d85;
  --blue-deep: #164763;
  --gold: #c89b4b;
  --slate: #22302a;
  --steel: #39454f;
  --line: rgba(36, 26, 19, 0.2);
  --hard-shadow: 8px 8px 0 rgba(36, 26, 19, 0.12);

  --display: "Rye", "Rockwell Extra Bold", Georgia, serif;
  --slab: "Arbutus Slab", Rockwell, Georgia, serif;
  --body: "Crimson Pro", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 6%, rgba(200, 155, 75, 0.14), transparent 34%),
    linear-gradient(180deg, var(--cream), #f2e4c6 60%, var(--cream));
  font-family: var(--body);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* faint butcher-paper fibre */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.14 0 0 0 0 0.1 0 0 0 0 0.07 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
h1, h2, h3, p, ul, dl { margin-top: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ================= header ================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(246, 236, 212, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 3px double var(--ink);
  box-shadow: 0 1px 0 var(--gold);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}

.brand-name {
  font-family: var(--display);
  color: var(--red);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(87, 16, 13, 0.35);
}

.brand-subtitle {
  margin-top: 5px;
  color: var(--blue);
  font-family: var(--slab);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
.brand-subtitle em { font-style: normal; color: var(--red); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  font-family: var(--slab);
}

.nav a {
  padding: 8px 12px;
  text-decoration: none;
  font-size: 0.88rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--red-shadow);
  border-color: var(--red);
  background: rgba(181, 37, 31, 0.07);
}

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

main { position: relative; overflow: hidden; }

/* ================= hero: the sign ================= */

.hero {
  padding: clamp(34px, 6vw, 70px) clamp(14px, 4vw, 60px) clamp(46px, 6vw, 80px);
  text-align: center;
}

.sign-wrap {
  max-width: 1180px;
  margin: 0 auto;
  filter: drop-shadow(0 30px 40px rgba(36, 26, 19, 0.22));
}

.fascia { width: 100%; height: auto; display: block; overflow: visible; }

.fascia .rye { font-family: var(--display); letter-spacing: 0.03em; }
.fascia .chalk { font-family: var(--hand); letter-spacing: 0.04em; }

/* load sequence: panel settles, lettering paints on, board swings */
.panel-group { animation: settle 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
.sign-name   { animation: paint 0.8s ease-out 0.45s both; }
.sign-tel    { animation: paint 0.8s ease-out 0.75s both; }
.rail-group  { animation: paint 0.8s ease-out 0.95s both; }

.hang-board {
  transform-box: fill-box;
  transform-origin: top center;
  animation: swing 5.5s ease-in-out 1.2s infinite;
}
.hook {
  transform-box: fill-box;
  transform-origin: top center;
  animation: sway 6s ease-in-out infinite;
}
.hook.h2 { animation-delay: -3s; }

@keyframes settle { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: none; } }
@keyframes paint  { from { opacity: 0; } to { opacity: 1; } }
@keyframes swing  { 0%, 100% { transform: rotate(0.9deg); } 50% { transform: rotate(-0.9deg); } }
@keyframes sway   { 0%, 100% { transform: rotate(1.4deg); } 50% { transform: rotate(-1.4deg); } }

.hero-copy { max-width: 720px; margin: clamp(30px, 4vw, 46px) auto 0; }

/* THE 'QUALITY' BUTCHER — stacked red/blue like the corner panel */
.quality-mark {
  display: inline-grid;
  justify-items: center;
  gap: 2px;
  margin: 0 0 20px;
  padding: 14px 34px 12px;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  text-transform: uppercase;
  line-height: 1;
  animation: paint 0.8s ease-out 1.15s both;
}

.q-the {
  font-family: var(--slab);
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  letter-spacing: 0.5em;
  margin-right: -0.5em;
  color: var(--red);
}

.q-word {
  font-family: var(--display);
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  color: var(--red);
  text-shadow: 2px 2px 0 rgba(87, 16, 13, 0.3);
}

.q-butcher {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  color: var(--blue);
  text-shadow: 2px 2px 0 rgba(22, 71, 99, 0.3);
}

.hero-text {
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.34rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

/* ================= buttons ================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px 11px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(36, 26, 19, 0.2);
  font-family: var(--slab);
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.button:hover, .button:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(36, 26, 19, 0.22);
}
.button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(36, 26, 19, 0.2); }

.button-primary { color: #fff; background: var(--red); border-color: var(--red-shadow); }
.button-primary:hover, .button-primary:focus-visible { background: var(--red-shadow); }
.button-secondary:hover { background: #fff; }
.button-light { color: var(--red-shadow); background: var(--paper); border-color: var(--ink); }

/* ================= trim band (counter tile pattern) ================= */

.trim {
  height: 20px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Crect width='32' height='16' fill='%23fdf8ec'/%3E%3Cpath d='M8 1 15 8 8 15 1 8Z' fill='%23b5251f'/%3E%3Cpath d='M24 1 31 8 24 15 17 8Z' fill='%231e5d85'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}

/* ================= quick strip ================= */

.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: clamp(48px, 6vw, 72px) auto 0;
  padding: 0 clamp(14px, 4vw, 60px);
}

.plaque {
  padding: clamp(22px, 3vw, 34px);
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--hard-shadow);
}

.plaque strong {
  display: block;
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(87, 16, 13, 0.22);
}

.plaque span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--slab);
  font-size: 0.92rem;
}

/* ================= shared section bits ================= */

.eyebrow {
  margin: 0 0 14px;
  color: var(--red-shadow);
  font-family: var(--slab);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
}

h2 {
  margin-bottom: 18px;
  font-family: var(--slab);
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h3 {
  margin-bottom: 8px;
  color: var(--red-shadow);
  font-family: var(--slab);
  font-size: 1.2rem;
}

.section-heading { max-width: 860px; margin-bottom: 40px; }

/* ================= about ================= */

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.95fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 116px) clamp(14px, 4vw, 60px);
}

.section-copy p:not(.eyebrow) { color: var(--muted); max-width: 620px; }

.aside-note {
  margin-top: 22px;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
  font-style: italic;
}

.counter-photo {
  margin: 0;
  padding: 14px 14px 10px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 0 24px 50px rgba(36, 26, 19, 0.2);
  transform: rotate(0.7deg);
}

.counter-photo img { border: 1px solid var(--line); aspect-ratio: 3 / 2; }

.counter-photo figcaption {
  padding: 10px 4px 4px;
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--muted);
  text-align: center;
}

/* ================= produce: glazed tile wall ================= */

.produce {
  padding: clamp(64px, 9vw, 116px) clamp(14px, 4vw, 60px);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background-color: #f9f7f0;
  background-image:
    linear-gradient(rgba(36, 26, 19, 0.1) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(36, 26, 19, 0.1) 1.5px, transparent 1.5px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(238, 233, 220, 0.4));
  background-size: 88px 88px, 88px 88px, 100% 100%;
}

.produce .section-heading { margin-left: auto; margin-right: auto; text-align: center; }

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
  max-width: 1180px;
  margin: 0 auto;
}

/* handwritten counter tickets */
.ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 18px;
  background: #fffdf6;
  border: 2px solid var(--red);
  box-shadow: 6px 8px 0 rgba(36, 26, 19, 0.12);
  transform: rotate(-0.7deg);
}

.ticket:nth-child(2n) { transform: rotate(0.6deg); }
.ticket:nth-child(3n) { transform: rotate(-0.4deg); }

/* the spike hole */
.ticket::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--cream-deep);
  box-shadow: inset 0 1px 2px rgba(36, 26, 19, 0.45);
}

.ticket h3 { margin-top: 10px; text-align: center; }
.ticket p { color: var(--muted); font-size: 1rem; text-align: center; }

.ticket-price {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--red) !important;
  font-family: var(--hand);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
}

/* ================= specials chalkboard ================= */

.specials {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 116px) clamp(14px, 4vw, 60px);
}

.board {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  color: #f0e9db;
  background:
    radial-gradient(circle at 24% 16%, rgba(255, 255, 255, 0.07), transparent 40%),
    radial-gradient(circle at 78% 84%, rgba(255, 255, 255, 0.05), transparent 44%),
    var(--slate);
  border: 12px solid #5a3c23;
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.45),
    inset 0 0 60px rgba(0, 0, 0, 0.5),
    0 24px 50px rgba(36, 26, 19, 0.25);
  transform: rotate(-1deg);
  font-family: var(--hand);
}

.board-title {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  font-weight: 600;
  text-align: center;
  text-decoration: underline wavy rgba(240, 233, 219, 0.55) 2px;
  text-underline-offset: 10px;
}

.board-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
}

.board-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
}

.board-dots {
  flex: 1;
  border-bottom: 2px dotted rgba(240, 233, 219, 0.4);
  transform: translateY(-6px);
}

.board-note { color: #ecd6a6; font-size: 0.85em; white-space: nowrap; }

.board-foot {
  margin: 22px 0 0;
  font-size: 1.2rem;
  color: rgba(240, 233, 219, 0.65);
  text-align: center;
}

.specials-copy p:not(.eyebrow) { color: var(--muted); max-width: 520px; }

/* ================= trade: van livery ================= */

.trade-band {
  margin: 0 clamp(14px, 4vw, 60px);
  padding: 6px;
  color: #fff;
  background: linear-gradient(150deg, var(--red), var(--red-shadow));
  border: 2px solid var(--red-shadow);
  box-shadow: 0 24px 50px rgba(36, 26, 19, 0.22);
}

.trade-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: clamp(30px, 5vw, 56px);
  border: 2px solid var(--gold);
  outline: 1px solid rgba(200, 155, 75, 0.45);
  outline-offset: 4px;
}

.trade-band h2 { color: #fff; max-width: 700px; }
.trade-band p { color: rgba(255, 255, 255, 0.86); max-width: 640px; margin-bottom: 0; }
.trade-band .eyebrow { color: #ecd6a6; }

/* ================= visit ================= */

.visit {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 116px) clamp(14px, 4vw, 60px);
}

.visit-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.15fr 0.9fr;
  gap: 18px;
}

.visit-card {
  padding: 28px 26px;
  border: 2px solid var(--line);
  background: var(--paper);
  box-shadow: var(--hard-shadow);
}

.visit-card p, .visit-card dd { color: var(--muted); }

.visit-card a:not(.button) {
  color: var(--red);
  font-family: var(--slab);
  font-size: 0.95rem;
}

.times { margin: 0; }

.times div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.times dt { font-family: var(--slab); font-size: 0.98rem; }
.times dd { margin: 0; text-align: right; }

.times-note { margin: 14px 0 0; font-size: 0.95rem; font-style: italic; }

.contact-card { color: #fff; background: var(--slate); border-color: var(--slate); }
.contact-card h3 { color: #ecd6a6; }
.contact-card p { color: rgba(255, 255, 255, 0.75); }

/* ================= footer ================= */

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 26px clamp(18px, 5vw, 72px);
  border-top: 3px double var(--ink);
}

.site-footer p { margin: 0; font-size: 0.95rem; }
.footer-note { color: var(--muted); font-style: italic; }

/* ================= reveals & motion ================= */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.in { opacity: 1; transform: none; }

/* keep the ticket tilt once revealed */
.ticket.reveal { transform: translateY(22px) rotate(0deg); }
.ticket.reveal.in { transform: rotate(-0.7deg); }
.ticket.reveal.in:nth-child(2n) { transform: rotate(0.6deg); }
.ticket.reveal.in:nth-child(3n) { transform: rotate(-0.4deg); }

.board.reveal { transform: translateY(22px) rotate(-1deg); }
.board.reveal.in { transform: rotate(-1deg); }

.counter-photo.reveal { transform: translateY(22px) rotate(0.7deg); }
.counter-photo.reveal.in { transform: rotate(0.7deg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}

/* ================= responsive ================= */

@media (max-width: 980px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nav { justify-content: flex-start; }

  .quick-strip { grid-template-columns: 1fr; gap: 14px; }
  .split-section, .specials { grid-template-columns: 1fr; }
  .specials .board { order: 2; }
  .specials-copy { order: 1; }
  .ticket-grid { grid-template-columns: repeat(2, 1fr); }
  .visit-grid { grid-template-columns: 1fr; }

  .trade-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 580px) {
  .site-header { position: static; }
  body { font-size: 1.05rem; }

  .hero { padding-top: 26px; }
  .ticket-grid { grid-template-columns: 1fr; }
  .quality-mark { padding: 12px 18px 10px; }

  .times div { flex-direction: column; gap: 0; align-items: flex-start; }
  .times dd { text-align: left; }

  .site-footer { flex-direction: column; }
}
