/* ==========================================================================
   BACK 40 BBQ — OPTION B: MODERN, RUSTIC ACCENTS ONLY
   Clean grid, contemporary type. Rustic shows up only in color + one texture.
   Fonts: Space Grotesk (display) + Inter (body)
   ========================================================================== */

:root {
  --paper: #faf8f4;
  --paper-2: #f2eee6;
  --ink: #191714;
  --ink-soft: #423d35;
  --stone: #776f61;
  --rust: #b8502c;
  --rust-dark: #93401f;
  --line: #e2dcd0;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  --max: 1200px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 16px;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--rust);
  display: inline-block;
  margin-bottom: 14px;
}

/* thin wood-texture accent bar — the one rustic material reference */
.wood-bar {
  height: 6px;
  background-image: repeating-linear-gradient(100deg, #a8672f 0 3px, #8a4e22 3px 7px);
  opacity: 0.9;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 14px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary { background: var(--rust); color: var(--paper); }
.btn-primary:hover { background: var(--rust-dark); }

.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.logo .badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo .badge svg { width: 18px; height: 18px; }
.logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--stone);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); }

.site-nav { display: none; width: 100%; }
.site-nav.open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 18px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-nav a {
  display: block;
  padding: 12px 2px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.site-nav a.shop-link { color: var(--rust); font-weight: 600; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; }
  .site-nav ul { flex-direction: row; padding: 0; gap: 36px; }
  .site-nav a { border-bottom: none; padding: 4px 0; position: relative; }
  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%; bottom: -4px;
    height: 2px;
    background: var(--rust);
    transition: right 0.2s ease;
  }
  .site-nav a:hover::after { right: 0; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; gap: 36px; }
.hero h1 { font-size: 2.4rem; max-width: 16ch; }
.hero .lede { font-size: 1.05rem; max-width: 52ch; color: var(--ink-soft); }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
  .hero h1 { font-size: 3.2rem; }
}

.photo-frame {
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--stone);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-size: 0.82rem;
}
.photo-frame span { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.3px; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 72px 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 60ch; margin-bottom: 40px; }

.story-grid { display: grid; gap: 36px; }
@media (min-width: 900px) {
  .story-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
}

.family-row {
  display: grid;
  gap: 1px;
  margin-top: 44px;
  background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .family-row { grid-template-columns: repeat(4, 1fr); } }
.family-card { background: var(--paper); padding: 24px 20px; }
.family-card .role { display: block; font-size: 0.82rem; color: var(--rust); font-weight: 600; margin-top: 4px; }
.family-card p { font-size: 0.85rem; margin: 10px 0 0; }

.pull-quote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  border-left: 3px solid var(--rust);
  padding-left: 22px;
  margin: 28px 0;
}

/* ==========================================================================
   COMMUNITY
   ========================================================================== */
.community { background: var(--ink); color: var(--paper); }
.community h2 { color: var(--paper); }
.community .eyebrow { color: #d98f6f; }
.community .lede { color: #c9c3b8; max-width: 68ch; }

.community-grid { display: grid; gap: 1px; margin-top: 44px; background: rgba(250,248,244,0.12); }
@media (min-width: 700px) { .community-grid { grid-template-columns: repeat(3, 1fr); } }
.community-card { background: var(--ink); padding: 28px; }
.community-card h3 { color: var(--paper); font-size: 1.05rem; }
.community-card p { color: #b9b2a5; font-size: 0.92rem; margin: 0; }

.community-cta {
  margin-top: 44px;
  padding: 26px 28px;
  border: 1px solid rgba(250,248,244,0.2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.community-cta p { margin: 0; color: #d8d3c8; }
.community-cta strong { color: var(--paper); }

/* ==========================================================================
   PRODUCTS
   ========================================================================== */
.product-grid { display: grid; gap: 20px; margin-top: 44px; }
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
.product-card { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; }
.product-card .photo-frame { aspect-ratio: 1/1; border: none; border-bottom: 1px solid var(--line); }
.product-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-card .tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--rust); margin-bottom: 8px; }
.product-card h3 { margin: 0 0 10px; }
.product-card p { font-size: 0.92rem; flex: 1; }
.product-card .price-row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.product-card .price { font-weight: 700; font-family: var(--font-display); }

.bundle-banner {
  margin-top: 20px;
  background: var(--rust);
  color: var(--paper);
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.bundle-banner h3 { color: var(--paper); margin: 0 0 6px; }
.bundle-banner p { margin: 0; color: #f7e2d6; }

/* ==========================================================================
   TRUST STRIP
   ========================================================================== */
.trust-strip { padding: 0; }
.trust-grid { display: grid; text-align: center; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { padding: 36px 16px; border-top: 1px solid var(--line); }
@media (min-width: 700px) {
  .trust-item { border-top: none; border-left: 1px solid var(--line); }
  .trust-item:first-child { border-left: none; }
}
.trust-item .num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--rust); display: block; }
.trust-item p { font-size: 0.85rem; margin: 6px 0 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--paper); padding: 56px 0 28px; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 32px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h4 { font-family: var(--font-display); font-size: 0.95rem; margin: 0 0 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--rust); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--stone);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}
.social-row { display: flex; gap: 10px; }
.social-row a { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; }

/* ==========================================================================
   SHOP PAGE
   ========================================================================== */
.shop-hero { padding: 56px 0 40px; text-align: left; border-bottom: 1px solid var(--line); }
.shop-hero p { max-width: 60ch; }

.flavor-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0 4px; }
.flavor-filter button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 9px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.flavor-filter button.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.add-cart-btn {
  width: 100%;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 13px;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.9;
}

.catering-banner {
  border: 1px solid var(--line);
  padding: 36px;
  margin-top: 56px;
  display: grid;
  gap: 20px;
}
@media (min-width: 860px) { .catering-banner { grid-template-columns: 1fr auto; align-items: center; } }

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */
.name-meaning { background: var(--paper-2); padding: 36px; margin-top: 48px; }
.name-meaning h3 { margin-top: 0; }

.timeline { margin-top: 48px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.timeline .step { background: var(--paper); padding: 24px; }
.timeline .when { font-family: var(--font-display); font-weight: 700; color: var(--rust); display: block; margin-bottom: 8px; }
.timeline p { font-size: 0.9rem; margin: 0; }
