/* ============================================================
   Plan B — Butcher · Deli · Pantry
   Stylesheet
   ============================================================ */

/* ============ FONTS ============ */
@font-face { font-family: 'Bodoni Moda'; font-weight: 400; font-style: normal; src: url('../assets/fonts/bodoni-moda-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Bodoni Moda'; font-weight: 400; font-style: italic; src: url('../assets/fonts/bodoni-moda-latin-400-italic.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Bodoni Moda'; font-weight: 500; font-style: normal; src: url('../assets/fonts/bodoni-moda-latin-500-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Caveat'; font-weight: 400; font-style: normal; src: url('../assets/fonts/caveat-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Caveat'; font-weight: 600; font-style: normal; src: url('../assets/fonts/caveat-latin-600-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Caveat'; font-weight: 700; font-style: normal; src: url('../assets/fonts/caveat-latin-700-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Work Sans'; font-weight: 300; font-style: normal; src: url('../assets/fonts/work-sans-latin-300-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Work Sans'; font-weight: 400; font-style: normal; src: url('../assets/fonts/work-sans-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Work Sans'; font-weight: 500; font-style: normal; src: url('../assets/fonts/work-sans-latin-500-normal.woff2') format('woff2'); font-display: swap; }

/* ============ TOKENS ============ */
:root {
  --yellow: #FFDE5B;
  --olive:  #707A61;
  --black:  #1A1A1A;
  --white:  #FFFFFF;
  --cream:  #FAF7F2;
  --orange: #EE905E;
  --plum:   #614D50;
  --tan:    #CA9D69;
  --muted:  #6E6A63;
  --rule:   #E8E2D6;
  --whatsapp: #25D366;

  --display: 'Bodoni Moda', Georgia, serif;
  --script:  'Caveat', cursive;
  --body:    'Work Sans', system-ui, sans-serif;

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 70px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ============ TYPE HELPERS ============ */
.eyebrow {
  font-family: var(--body); font-weight: 500;
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted);
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.04; }
.script { font-family: var(--script); font-weight: 600; }

/* ============ NAV ============ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--pad);
  background: rgba(26,26,26,0); backdrop-filter: blur(0px);
  transition: background .35s ease, backdrop-filter .35s ease, padding .35s ease;
  background:linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
}
nav.scrolled {
  background: rgba(26,26,26,0.85);
  backdrop-filter: blur(8px);
  padding: 8px var(--pad);
}
nav .nav-logo {
  display: flex; align-items: center;
  opacity: 1; transition: opacity .35s ease;
}
nav .nav-logo img { height: 42px; width: auto; display: block; }
nav.scrolled .nav-logo img { height: 50px; transition: height .35s ease; }
nav ul {
  display: flex; gap: 26px; list-style: none; align-items: center;
  margin-left: auto;
}
nav ul li.nav-cta { margin-left: 8px; }
nav ul li a {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream); font-weight: 400;
  padding: 6px 0; position: relative;
}
nav ul li a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--yellow);
  transition: width .28s ease;
}
nav ul li a:hover::after { width: 100%; }
nav ul li.nav-cta a {
  background: var(--whatsapp); color: var(--white);
  padding: 10px 20px; border-radius: 2px;
  font-weight: 500; letter-spacing: 0.1em;
}
nav ul li.nav-cta a::after { display: none; }
nav ul li.nav-cta a:hover { background: var(--white); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh; position: relative;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
/* weave runs full-bleed behind, dimmed; logo panel sits crisp on top */
.hero-weave {
  position: absolute; inset: 0;
  background-image: url('../assets/pattern.png');
  background-size: 720px auto;
  background-repeat: repeat;
  opacity: 0.65;
}
/* darkening veil so the centre panel reads */
.hero-veil {
  position: absolute; inset: 0;
  /* background: radial-gradient(ellipse 50% 56% at 50% 46%,
  rgba(26,26,26,0.86) 0%,
  rgba(26,26,26,0.42) 56%,
  rgba(26,26,26,0.08) 100%); */
}
.hero-inner {
  position: relative; z-index: 2;
  text-align: center;
  padding: 60px var(--pad);
  max-width: 640px;
}
/* the logo sits in a solid black "card" - echoes the hero print artwork */
.hero-card {
  background: var(--black);
  padding: 56px 60px 48px;
  display: inline-block;
  position: relative;
  margin-top: 25px;
}
.hero-card::before {
  content: ''; position: absolute; inset: 0;
  border: 1px solid rgba(255,222,91,0.25);
}
.hero-logo {
  width: clamp(230px, 34vw, 320px);
  height: auto; display: block; margin: 0 auto;
}
.hero .tagline {
  margin-top: 30px;
  font-family: var(--display); font-style: italic;
  font-size: clamp(20px, 3.4vw, 34px);
  color: var(--cream); line-height: 1.3;
}
.hero .hero-actions {
  margin-top: 34px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--body); font-weight: 500;
  font-size: 13px; letter-spacing: 0.13em; text-transform: uppercase;
  padding: 15px 28px; border-radius: 2px; cursor: pointer;
  border: 1px solid transparent; transition: all .25s ease;
}
.btn-primary2 { background: var(--black); color: var(--yellow); }
.btn-primary2:hover { background: var(--black); transform: translateY(-2px); }
.btn-primary { background: var(--yellow); color: var(--black); }
.btn-primary:hover { background: var(--white); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(250,247,242,0.4); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.hero .scroll-cue {
  position: absolute; bottom: -25px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(250,247,242,0.6);
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue .line { width: 1px; height: 36px; background: rgba(250,247,242,0.4); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%,100%{ transform: scaleY(0.4); opacity:.3 } 50%{ transform: scaleY(1); opacity:1 } }

/* ============ WEAVE DIVIDER BAND ============ */
.weave-band {
  height: 64px;
  background-image: url('../assets/pattern.png');
  background-size: auto 128px;
  background-repeat: repeat-x;
  background-position: center;
}
.weave-band.thin {
  height: 40px;
  background-size: auto 80px;
}

/* ============ SECTION SCAFFOLD ============ */
section { position: relative; }
.section-pad { padding: clamp(70px, 11vw, 140px) 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(36px, 6vw, 66px); }
.section-head p { margin-top: 18px; font-size: 17px; line-height: 1.6; color: #4a4744; font-weight: 300; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ COUNTERS ============ */
.counters { background: var(--cream); }
.counter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.counter {
  position: relative; min-height: 460px;
  padding: 40px 34px; cursor: default;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; transition: transform .4s ease;
}
.counter:hover { transform: translateY(-6px); }
.counter .cnum {
  position: absolute; top: 26px; right: 30px;
  font-family: var(--display); font-size: 22px; opacity: 0.5;
}
.counter .cicon {
  position: absolute; top: 30px; left: 34px;
  width: 46px; height: 46px;
}
.counter h3 { font-size: 34px; margin-bottom: 12px; }
.counter p { font-size: 14.5px; line-height: 1.6; font-weight: 300; }
.counter .ctags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.counter .ctags span {
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px; border: 1px solid currentColor; border-radius: 2px;
  opacity: 0.75;
}
.counter.butcher { background: var(--plum); color: var(--cream); }
.counter.deli    { background: var(--orange); color: var(--black); }
.counter.pantry  { background: var(--olive); color: var(--cream); }

/* ============ PRODUCTS ============ */
.products { background: var(--black); color: var(--cream); }
.products .section-head h2 { color: var(--yellow); }
.products .section-head p { color: rgba(250,247,242,0.72); }
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod {
  background: #232220; border: 1px solid #2f2d2a; border-radius: 3px;
  overflow: hidden; transition: border-color .3s ease, transform .3s ease;
}
.prod:hover { border-color: var(--yellow); transform: translateY(-5px); }
.prod .pthumb {
  aspect-ratio: 4/3; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.prod .pthumb .glyph { font-family: var(--display); font-size: 76px; opacity: 0.32; }
.prod.c-butcher .pthumb { background: var(--plum); }
.prod.c-deli    .pthumb { background: var(--orange); }
.prod.c-pantry  .pthumb { background: var(--olive); }
.prod .pbody { padding: 20px; }
.prod .pcat {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 8px;
}
.prod h3 { font-size: 21px; color: var(--cream); margin-bottom: 6px; }
.prod .pdesc { font-size: 13px; line-height: 1.55; color: rgba(250,247,242,0.62); font-weight: 300; }
.prod .pfoot {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid #2f2d2a;
  display: flex; align-items: center; justify-content: space-between;
}
.prod .pprice { font-family: var(--display); font-size: 18px; color: var(--cream); }
.prod .pprice small { font-size: 11px; color: rgba(250,247,242,0.5); }
.prod .pwa {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--yellow); display: flex; align-items: center; gap: 5px;
}
.prod .pwa:hover { color: var(--white); }
.products .prod-note {
  margin-top: 38px; text-align: center;
  font-size: 14px; color: rgba(250,247,242,0.6); font-style: italic;
  font-family: var(--display);
}

/* ============ STORY ============ */
.story { background: var(--olive); color: var(--cream); overflow: hidden; }
.story-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: center; }
.story .eyebrow { color: var(--yellow); }
.story h2 { font-size: clamp(34px, 5vw, 58px); margin: 16px 0 22px; }
.story p { font-size: 16px; line-height: 1.7; font-weight: 300; margin-bottom: 16px; color: rgba(250,247,242,0.9); }
.story .story-quote {
  font-family: var(--display); font-style: italic;
  font-size: clamp(22px, 3vw, 30px); line-height: 1.35;
  color: var(--yellow); margin: 30px 0;
}
.story-visual {
  aspect-ratio: 4/5; border-radius: 4px; overflow: hidden;
  background-image: url('../assets/pattern.png');
  background-size: cover; background-position: center;
  position: relative;
}
.story-visual .badge {
  position: absolute; inset: auto 20px 20px auto;
  background: var(--black); color: var(--yellow);
  width: 138px; height: 138px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; transform: rotate(-8deg);
}
.story-visual .badge .b-est { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; }
.story-visual .badge .b-main { font-family: var(--script); font-size: 30px; line-height: 1; margin: 3px 0; }
.story-visual .badge .b-sub { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }

/* ============ VISIT ============ */
.visit { background: var(--cream); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.visit-col { padding: clamp(34px, 5vw, 64px); }
.visit-col.dark { background: var(--black); color: var(--cream); }
.visit-col.dark .eyebrow { color: var(--yellow); }
.visit-col.dark h2 { color: var(--cream); font-size: clamp(30px,4vw,48px); margin: 14px 0 26px; }
.hours-row {
  display: flex; justify-content: space-between;
  padding: 13px 0; border-bottom: 1px solid rgba(250,247,242,0.14);
  font-size: 14.5px;
}
.hours-row:last-child { border-bottom: 0; }
.hours-row .day { color: rgba(250,247,242,0.7); letter-spacing: 0.05em; }
.hours-row .time { font-family: var(--display); }
.hours-row.today .day, .hours-row.today .time { color: var(--yellow); }
.hours-row .closed { color: var(--orange); }

.visit-col.light { background: var(--yellow); color: var(--black); display: flex; flex-direction: column; justify-content: center; }
.visit-col.light .eyebrow { color: var(--plum); }
.visit-col.light h2 { font-size: clamp(28px,3.6vw,42px); margin: 12px 0 22px; }
.contact-line { display: flex; align-items: center; gap: 14px; padding: 11px 0; font-size: 16px; }
.contact-line .ci {
  width: 38px; height: 38px; flex: none;
  background: var(--black); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.contact-line .ci svg { width: 17px; height: 17px; }
.visit-col.light .btn-primary { background: var(--black); color: var(--yellow); margin-top: 24px; align-self: flex-start; }
.visit-col.light .btn-primary:hover { background: var(--plum); color: var(--white); }

/* ============ WHATSAPP STRIP ============ */
.wa-strip {
  background: var(--plum); color: var(--cream);
  text-align: center; padding: clamp(54px,8vw,96px) var(--pad);
}
.wa-strip .eyebrow { color: var(--yellow); }
.wa-strip h2 { font-size: clamp(32px,5vw,58px); margin: 16px 0 14px; }
.wa-strip p { font-size: 16px; color: rgba(250,247,242,0.82); max-width: 540px; margin: 0 auto 30px; font-weight: 300; }
.btn-wa {
  background: #25D366; color: #0a3d1c; font-weight: 500;
  font-size: 14px;
}
.btn-wa:hover { background: var(--white); color: var(--black); transform: translateY(-2px); }

/* ============ FOOTER ============ */
footer { background: var(--black); color: rgba(250,247,242,0.6); }
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding: 70px 0 44px;
}
.footer-brand .fb-logo { height: 86px; width: auto; display: block; margin-bottom: 6px; }
.footer-brand p { margin-top: 18px; font-size: 13.5px; line-height: 1.6; max-width: 280px; font-weight: 300; }
footer h4 {
  font-family: var(--body); font-weight: 500; font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--yellow);
  margin-bottom: 16px;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 9px; font-size: 13.5px; }
footer ul li a:hover { color: var(--yellow); }
.footer-bar {
  border-top: 1px solid #2a2a2a; padding: 22px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: rgba(250,247,242,0.4);
}

/* ============ FLOATING WHATSAPP ============ */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 940px) {
  nav {
    background: rgba(26,26,26,0.96);
    backdrop-filter: blur(8px);
  }
  .counter-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .visit-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  nav ul { display: none; }
  nav ul.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: rgba(26,26,26,0.98);
    padding: 12px 0;
  }
  nav ul.open li { padding: 12px var(--pad); }
  nav ul.open li.nav-cta { padding: 16px var(--pad); }
  nav ul.open li.nav-cta a { display: inline-block; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .prod-grid { grid-template-columns: 1fr; }
  .hero { min-height: 100vh; }
  .hero-weave { background-size: 460px auto; }
  .hero-inner { padding: 100px 18px 60px; }
  .hero-card { padding: 38px 32px 32px; }
  .hero-logo { width: 200px; }
  .hero .tagline { margin-top: 24px; }
  .hero .hero-actions { margin-top: 28px; flex-direction: column; }
  .hero .hero-actions .btn { width: 100%; justify-content: center; }
  .hero .scroll-cue { display: none; }
  .weave-band { height: 44px; background-size: auto 88px; }
}
