/* Houston snack & beverage category pages (snacksandbeverages/*):
   light-touch refresh to match the homepage's type, buttons and spacing.
   Scoped to body.hx-tpl-snacks so nothing else is affected. */
body.hx-tpl-snacks { color: #1f2a33; overflow-x: hidden; }

/* Hero: let it grow with its content (the old template capped it at 375px,
   so on phones the title and buttons spilled under the category tabs) */
body.hx-tpl-snacks .section2-bg { max-height: none !important; min-height: 375px; }
body.hx-tpl-snacks #about.min-vh-100 { min-height: 0 !important; }
body.hx-tpl-snacks #about .sm-header-bg { padding-bottom: 32px !important; }

/* Hero: outcome line under the title */
body.hx-tpl-snacks #about h1 {
  font-family: 'Poppins', sans-serif; font-weight: 700; line-height: 1.15;
  font-size: clamp(28px, 2.6vw, 42px); margin: 0 0 10px; color: #fff;
}
body.hx-tpl-snacks .hx-tpl-lead {
  color: #fff; font-size: 18px; line-height: 1.45; margin: 0 0 4px; max-width: 32em;
}

/* Category tabs: 44px+ tap targets, homepage colours */
body.hx-tpl-snacks .portfoliobuttonwrap {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
body.hx-tpl-snacks .portfolio-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 18px; margin: 0;
  border: 1px solid #0699d4; border-radius: 6px;
  background: #0699d4; color: #fff; font-weight: 600; font-size: 15px; line-height: 1.2;
}
body.hx-tpl-snacks .portfolio-button:hover,
body.hx-tpl-snacks .portfolio-button:focus { background: #0271b0; border-color: #0271b0; color: #fff; }
body.hx-tpl-snacks .portfolio-button:focus { outline: 3px solid #9fd7f2; outline-offset: 2px; }
body.hx-tpl-snacks .portfolio-button.selected { background: #014F81; border-color: #014F81; color: #fff; }

/* Intro copy */
body.hx-tpl-snacks .hx-tpl-intro {
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 24px; line-height: 1.35;
  color: #4a5a68 !important; margin: 0 auto 12px; max-width: 900px;
}
body.hx-tpl-snacks .hx-tpl-intro + p { color: #4a5a68; font-size: 16px; max-width: 760px; margin: 0 auto; }

/* Product grid: compact tiles with visible names */
body.hx-tpl-snacks .span3 { min-height: 0; }
body.hx-tpl-snacks .inrow { padding: 10px; overflow: visible; }
body.hx-tpl-snacks .productimgwrap {
  height: 180px; background: #fff; border: 1px solid #d5e0e8; border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06); overflow: hidden;
}
body.hx-tpl-snacks .span3 .productimg {
  position: static; display: block; width: 100%; height: 100%;
  max-width: none; max-height: none; margin: 0; padding: 12px; top: auto; bottom: auto;
  object-fit: contain;
}
body.hx-tpl-snacks .hx-tile-name {
  margin: 8px 2px 0; font-size: 14px; font-weight: 600; line-height: 1.3;
  color: #1f2a33; text-align: center;
}

/* Closing band */
body.hx-tpl-snacks .products-note {
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 26px; color: #014F81; margin: 0;
}
body.hx-tpl-snacks .hx-tpl-cta-lead { color: #4a5a68; font-size: 17px; max-width: 40em; margin: 8px auto 16px; }
body.hx-tpl-snacks #faq .btn.p-4 {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 14px 26px !important; font-size: 18px !important; font-weight: 700; white-space: normal;
  border: 0; border-radius: 6px; background: #0699d4; color: #fff;
}
body.hx-tpl-snacks #faq .btn.p-4:hover { background: #0271b0; }
body.hx-tpl-snacks #faq .btn.p-4:focus { outline: 3px solid #9fd7f2; outline-offset: 2px; box-shadow: none; }

@media (max-width: 767px) {
  body.hx-tpl-snacks .hx-tpl-lead { font-size: 16px; }
  body.hx-tpl-snacks section[style*="margin-top:80px"] { margin-top: 32px !important; margin-bottom: 24px !important; }
  body.hx-tpl-snacks .portfoliobuttonwrap { gap: 6px; }
  body.hx-tpl-snacks .portfolio-button { padding: 8px 12px; font-size: 14px; }
  body.hx-tpl-snacks .hx-tpl-intro { font-size: 18px; }
  body.hx-tpl-snacks .hx-tpl-intro + p { font-size: 14px; }
  body.hx-tpl-snacks .inrow { padding: 6px; }
  body.hx-tpl-snacks .productimgwrap { height: 120px; }
  body.hx-tpl-snacks .span3 .productimg { padding: 8px; }
  body.hx-tpl-snacks .hx-tile-name { font-size: 13px; margin-top: 6px; }
  body.hx-tpl-snacks .products-note { font-size: 22px; }
  body.hx-tpl-snacks .hx-tpl-cta-lead { font-size: 15px; }
  body.hx-tpl-snacks #faq .btn.p-4 { font-size: 16px !important; padding: 12px 20px !important; }
}
