/* ==========================================================================
   BACK 40 BBQ — OPTION A: RUSTIC / TRADITIONAL
   Warm woods, hand-lettered feel, farmhouse texture.
   Fonts: Rye (display) + Bitter (body) + Caveat (accent script)
   ========================================================================== */

:root {
  --wood-dark: #33210f;
  --wood-mid: #6b4226;
  --wood-line: #86592f;
  --cream: #f4e8d0;
  --cream-2: #eaddbf;
  --parchment: #fbf3e3;
  --ink: #2a1b10;
  --flame: #c1541c;
  --flame-dark: #8f3a12;
  --forest: #4a5d3a;
  --rope: #b08d55;

  --font-display: "Rye", serif;
  --font-body: "Bitter", serif;
  --font-script: "Caveat", cursive;

  --max: 1180px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--ink);
  line-height: 1.6;
  -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 20px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.5px;
  color: var(--wood-dark);
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--flame-dark);
  display: inline-block;
  margin-bottom: 4px;
}

.script-accent {
  font-family: var(--font-script);
  color: var(--flame);
  font-size: 1.3em;
}

/* subtle wood-grain + paper grain texture, no images required */
.grain {
  background-image:
    repeating-linear-gradient(180deg, rgba(107,66,38,0.035) 0px, rgba(107,66,38,0.035) 2px, transparent 2px, transparent 5px),
    radial-gradient(rgba(51,33,15,0.05) 1px, transparent 1px);
  background-size: auto, 3px 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  padding: 14px 28px;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--flame);
  color: var(--parchment);
  box-shadow: 3px 3px 0 var(--wood-dark);
}
.btn-primary:hover { box-shadow: 5px 5px 0 var(--wood-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--wood-dark);
  color: var(--wood-dark);
}
.btn-outline:hover { background: var(--wood-dark); color: var(--cream); }

.btn-light {
  background: var(--cream);
  color: var(--wood-dark);
  box-shadow: 3px 3px 0 var(--flame-dark);
}

/* rope-style divider */
.rope-divider {
  height: 14px;
  margin: 0 auto;
  max-width: var(--max);
  background-image: repeating-linear-gradient(135deg, var(--rope) 0 6px, var(--wood-mid) 6px 12px);
  opacity: 0.55;
  border-radius: 4px;
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  background: var(--wood-dark);
  border-bottom: 6px solid var(--flame-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 1.3rem;
}
.logo .badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--flame) 0%, var(--flame-dark) 60%, var(--wood-dark) 100%);
  border: 2px solid var(--rope);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo .badge svg { width: 24px; height: 24px; }
.logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 2px;
  color: var(--rope);
  font-weight: 700;
}

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

.site-nav {
  display: none;
  width: 100%;
}
.site-nav.open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 16px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-nav a {
  display: block;
  padding: 10px 4px;
  color: var(--cream);
  font-weight: 700;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(244,232,208,0.12);
}
.site-nav a.shop-link {
  color: var(--flame);
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-header .wrap { flex-wrap: nowrap; }
  .site-nav {
    display: block;
    width: auto;
  }
  .site-nav ul {
    flex-direction: row;
    padding: 0;
    gap: 28px;
  }
  .site-nav a { border-bottom: none; padding: 6px 0; }
  .site-nav a:hover { color: var(--flame); }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background:
    linear-gradient(180deg, rgba(51,33,15,0.88), rgba(51,33,15,0.94)),
    repeating-linear-gradient(115deg, #4a2f18 0px, #4a2f18 40px, #43290f 40px, #43290f 80px);
  color: var(--cream);
  padding: 56px 0 64px;
  position: relative;
  border-bottom: 10px solid var(--rope);
}
.hero .wrap { display: grid; gap: 28px; }
.hero h1 {
  color: var(--cream);
  font-size: 2.2rem;
  margin: 6px 0 16px;
}
.hero .lede {
  font-size: 1.1rem;
  max-width: 56ch;
  color: var(--cream-2);
}
.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.hero-photo {
  border: 6px solid var(--parchment);
  box-shadow: 8px 8px 0 var(--flame-dark);
  transform: rotate(-1.5deg);
}

@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .hero h1 { font-size: 3rem; }
}

/* photo placeholder frames (no real photography yet) */
.photo-frame {
  background: linear-gradient(135deg, var(--wood-mid), var(--wood-dark));
  color: var(--cream-2);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(244,232,208,0.05) 0 10px, transparent 10px 20px);
}
.photo-frame span {
  position: relative;
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--cream);
}

/* ==========================================================================
   SECTION: STORY / MISSION
   ========================================================================== */
.section { padding: 64px 0; }
.section-cream { background: var(--cream); }
.section-parchment { background: var(--parchment); }

.section-head { max-width: 62ch; margin-bottom: 32px; }
.section-head h2 { margin: 4px 0 12px; }

.story-grid {
  display: grid;
  gap: 32px;
}
.story-grid .photo-frame { order: -1; }

@media (min-width: 860px) {
  .story-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 48px;
  }
  .story-grid .photo-frame { order: 0; }
}

.family-row {
  display: grid;
  gap: 20px;
  margin-top: 36px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .family-row { grid-template-columns: repeat(4, 1fr); }
}
.family-card {
  background: var(--parchment);
  border: 2px solid var(--wood-mid);
  border-radius: 4px;
  padding: 16px;
  text-align: center;
}
.family-card .role {
  font-family: var(--font-script);
  color: var(--flame-dark);
  font-size: 1.15rem;
  display: block;
  margin-top: 2px;
}

.pull-quote {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--wood-dark);
  border-left: 5px solid var(--flame);
  padding-left: 20px;
  margin: 28px 0;
}

/* ==========================================================================
   SECTION: COMMUNITY (needs real visual weight)
   ========================================================================== */
.community {
  background: var(--wood-dark);
  color: var(--cream);
  position: relative;
  border-top: 10px solid var(--rope);
  border-bottom: 10px solid var(--rope);
}
.community h2 { color: var(--cream); }
.community .eyebrow { color: var(--flame); }
.community .section-head { max-width: 68ch; }
.community .lede { color: var(--cream-2); font-size: 1.05rem; max-width: 68ch; }

.community-grid {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}
@media (min-width: 700px) {
  .community-grid { grid-template-columns: repeat(3, 1fr); }
}
.community-card {
  background: rgba(244,232,208,0.06);
  border: 1px solid rgba(176,141,85,0.5);
  border-radius: 4px;
  padding: 24px;
}
.community-card .icon {
  width: 40px; height: 40px; margin-bottom: 14px;
}
.community-card h3 { color: var(--cream); margin: 0 0 8px; font-size: 1.15rem; }
.community-card p { color: var(--cream-2); font-size: 0.95rem; margin: 0; }

.community-cta {
  margin-top: 36px;
  padding: 22px;
  border: 2px dashed var(--rope);
  border-radius: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.community-cta p { margin: 0; color: var(--cream-2); }

/* ==========================================================================
   SECTION: PRODUCTS
   ========================================================================== */
.product-grid {
  display: grid;
  gap: 24px;
  margin-top: 36px;
}
@media (min-width: 700px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
.product-card {
  background: var(--parchment);
  border: 3px solid var(--wood-mid);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card .photo-frame { aspect-ratio: 1 / 1; border-radius: 0; }
.product-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { margin: 0 0 8px; }
.product-card .tag {
  font-family: var(--font-script);
  color: var(--flame-dark);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 6px;
}
.product-card p { font-size: 0.92rem; flex: 1; }
.product-card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.product-card .price { font-weight: 700; color: var(--wood-dark); }

.bundle-banner {
  margin-top: 40px;
  background: var(--flame);
  color: var(--parchment);
  border-radius: 6px;
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.bundle-banner h3 { color: var(--parchment); margin: 0 0 6px; }
.bundle-banner p { margin: 0; opacity: 0.92; }

/* ==========================================================================
   TRUST STRIP
   ========================================================================== */
.trust-strip {
  background: var(--cream-2);
  border-top: 3px solid var(--wood-mid);
  border-bottom: 3px solid var(--wood-mid);
  padding: 32px 0;
}
.trust-grid {
  display: grid;
  gap: 24px;
  text-align: center;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item .num { font-family: var(--font-display); font-size: 1.5rem; color: var(--flame-dark); display: block; }
.trust-item p { font-size: 0.85rem; margin: 4px 0 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--wood-dark);
  color: var(--cream-2);
  padding: 48px 0 24px;
  border-top: 8px solid var(--flame-dark);
}
.footer-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-grid h4 {
  font-family: var(--font-display);
  color: var(--cream);
  font-weight: 400;
  margin: 0 0 14px;
  font-size: 1.1rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--flame); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(244,232,208,0.15);
  font-size: 0.8rem;
  color: var(--rope);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 34px; height: 34px;
  border: 1px solid var(--rope);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   SHOP PAGE SPECIFIC
   ========================================================================== */
.shop-hero {
  background: var(--wood-dark);
  color: var(--cream);
  padding: 48px 0 40px;
  text-align: center;
  border-bottom: 10px solid var(--rope);
}
.shop-hero h1 { color: var(--cream); }
.shop-hero p { color: var(--cream-2); max-width: 60ch; margin: 12px auto 0; }

.flavor-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 28px 0 8px;
}
.flavor-filter button {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 20px;
  border: 2px solid var(--wood-mid);
  background: transparent;
  color: var(--wood-dark);
  cursor: pointer;
}
.flavor-filter button.active { background: var(--wood-dark); color: var(--cream); }

.add-cart-btn {
  width: 100%;
  justify-content: center;
  background: var(--wood-dark);
  color: var(--cream);
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-weight: 700;
  cursor: not-allowed;
  opacity: 0.92;
}

.catering-banner {
  background: var(--forest);
  color: var(--cream);
  border-radius: 6px;
  padding: 32px;
  margin-top: 48px;
  display: grid;
  gap: 20px;
}
.catering-banner h3 { color: var(--cream); }
@media (min-width: 860px) {
  .catering-banner { grid-template-columns: 1fr auto; align-items: center; }
}

/* ==========================================================================
   ABOUT PAGE SPECIFIC
   ========================================================================== */
.name-meaning {
  background: var(--cream-2);
  border: 3px double var(--wood-mid);
  border-radius: 6px;
  padding: 32px;
  margin-top: 40px;
}
.name-meaning h3 { margin-top: 0; }

.timeline {
  margin-top: 40px;
  border-left: 3px solid var(--rope);
  padding-left: 24px;
  display: grid;
  gap: 28px;
}
.timeline .step .when {
  font-family: var(--font-script);
  color: var(--flame-dark);
  font-size: 1.2rem;
}
