/*
 * HallowTech: Tech + Treats — homepage feature and Food Truck Fridays section.
 * See includes/hallowtech.php. Public-site palette (Homepage-Elementor-Build-Spec.md):
 * brown #3F291B, gold #C6A664, cream #FBF7EF, muted #5F5E5A, border #E7E1D5.
 * Static by design: no animation, and the only transitions are switched off under
 * prefers-reduced-motion. Breakpoint 767px matches Elementor's mobile breakpoint.
 */

.bbn-ht {
  --bbn-ht-brown: #3F291B;
  --bbn-ht-gold: #C6A664;
  --bbn-ht-cream: #FBF7EF;
  --bbn-ht-muted: #5F5E5A;
  --bbn-ht-border: #E7E1D5;
  --bbn-ht-navy: #221C4E;   /* sampled from the approved graphics' background */
  --bbn-ht-max: 1160px;
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--bbn-ht-max) + 48px);
  margin: 20px auto;
  padding: 0 24px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--bbn-ht-brown);
}
.bbn-ht *, .bbn-ht *::before, .bbn-ht *::after { box-sizing: border-box; }
.bbn-ht--ftf { --bbn-ht-max: 1200px; margin: 32px auto; }

.bbn-ht-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- banner ---- */
.bbn-ht-banner {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bbn-ht-navy);   /* shows only while the image loads */
  line-height: 0;
}
.bbn-ht-pic { display: block; }
.bbn-ht-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: contain;   /* never crop logos or event text */
}
.bbn-ht--ftf .bbn-ht-img { aspect-ratio: 16 / 9; }
@media (max-width: 767px) {
  .bbn-ht .bbn-ht-img { aspect-ratio: 4 / 5; }
}
a.bbn-ht-banner:focus-visible {
  outline: 3px solid var(--bbn-ht-gold);
  outline-offset: 3px;
}

/* ---- homepage text bar under the banner ---- */
.bbn-ht-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: 12px;
  padding: 0 4px;
}
.bbn-ht-bar-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--bbn-ht-muted); }
.bbn-ht-bar-text strong { color: var(--bbn-ht-brown); font-weight: 700; margin-right: 6px; }
.bbn-ht-bar-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }

.bbn-ht a.bbn-ht-link,
.bbn-ht a.bbn-ht-link:visited {
  color: var(--bbn-ht-brown);
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bbn-ht a.bbn-ht-link:hover { color: #000; }

/* ---- buttons ----
 * Selectors are .bbn-ht a.<class> on purpose: the Elementor kit styles every link with
 * `.elementor-kit-8 a { color: gold }`, which outranks a single class and would turn the button
 * label gold-on-gold. */
.bbn-ht a.bbn-ht-btn,
.bbn-ht a.bbn-ht-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--bbn-ht-gold);
  color: var(--bbn-ht-brown);
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease;
}
.bbn-ht a.bbn-ht-btn:hover { background: #B8954F; color: var(--bbn-ht-brown); }
.bbn-ht a.bbn-ht-btn:focus-visible, .bbn-ht a.bbn-ht-link:focus-visible {
  outline: 3px solid var(--bbn-ht-brown);
  outline-offset: 3px;
}
.bbn-ht a.bbn-ht-btn--lg { min-height: 56px; padding: 16px 34px; font-size: 18px; }
.bbn-ht a.bbn-ht-btn--ghost, .bbn-ht a.bbn-ht-btn--ghost:visited { background: #fff; border: 2px solid var(--bbn-ht-brown); color: var(--bbn-ht-brown); }
.bbn-ht a.bbn-ht-btn--ghost:hover { background: var(--bbn-ht-brown); color: #fff; }
.bbn-ht a.bbn-ht-btn--sm { min-height: 44px; padding: 10px 20px; font-size: 14px; }

/* ---- FTF event card ---- */
.bbn-ht-card {
  margin-top: 20px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--bbn-ht-border);
  border-radius: 20px;
}
.bbn-ht-eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7A5A1E;   /* darkened gold: 6.35:1 on white, 5.94:1 on cream */
}
.bbn-ht-title {
  margin: 0 0 20px;
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--bbn-ht-brown);
}
.bbn-ht-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}
.bbn-ht-facts > div {
  padding: 14px 16px;
  background: var(--bbn-ht-cream);
  border-radius: 12px;
}
.bbn-ht-facts dt {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bbn-ht-muted);
}
.bbn-ht-facts dd { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--bbn-ht-brown); }

.bbn-ht-copy p { margin: 0 0 12px; font-size: 17px; line-height: 1.65; color: #4A4945; max-width: 72ch; }
.bbn-ht-cta { margin-top: 20px; }
.bbn-ht-pending {
  display: inline-block;
  margin: 0;
  padding: 12px 16px;
  border: 1px dashed var(--bbn-ht-border);
  border-radius: 12px;
  font-size: 15px;
  color: var(--bbn-ht-muted);
}

/* ---- activities ---- */
.bbn-ht-subtitle {
  margin: 32px 0 14px;
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--bbn-ht-brown);
}
.bbn-ht-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bbn-ht-feature {
  margin: 0;
  padding: 22px;
  background: var(--bbn-ht-cream);
  border: 1px solid var(--bbn-ht-border);
  border-radius: 16px;
}
.bbn-ht-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--bbn-ht-navy);
  color: #F5C518;   /* HallowTech gold on navy: 9.58:1 */
}
.bbn-ht-ico { display: block; width: 24px; height: 24px; }
.bbn-ht-feature-title {
  margin: 0 0 6px;
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bbn-ht-brown);
}
.bbn-ht-feature p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--bbn-ht-muted); }

/* ---- sponsor tiers as text ---- */
.bbn-ht-sponsors dl { margin: 0; display: grid; gap: 8px; }
.bbn-ht-sponsors dl > div { display: grid; grid-template-columns: 220px 1fr; gap: 12px; }
.bbn-ht-sponsors dt {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7A5A1E;
  padding-top: 2px;
}
.bbn-ht-sponsors dd { margin: 0; font-size: 15px; line-height: 1.55; color: #4A4945; }
.bbn-ht-also { margin: 10px 0 0; font-size: 14px; color: var(--bbn-ht-muted); }

/* ---- HallowTech page: extra sections ---- */
.bbn-ht-h3 { margin: 4px 0 8px; font-family: Poppins, Inter, system-ui, sans-serif; font-size: 20px; font-weight: 700; color: var(--bbn-ht-brown); }
.bbn-ht-note { margin: -6px 0 6px; font-size: 14px; color: var(--bbn-ht-muted); }
.bbn-ht-group { margin: 22px 0 10px; font-family: Poppins, Inter, system-ui, sans-serif; font-size: 17px; font-weight: 600; color: var(--bbn-ht-brown); }
.bbn-ht-cta--end { margin: 28px 0 0; text-align: center; }
.bbn-ht-cta--top { margin: 0 0 22px; }
.bbn-ht-eyebrow--light { color: #F5C518; }

.bbn-ht-badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; white-space: nowrap;
}
.bbn-ht-badge--soon { background: #F5C518; color: #221C4E; }

.bbn-ht-studio {
  margin-top: 32px; padding: 32px; border-radius: 20px;
  background: var(--bbn-ht-navy); color: #fff;
}
.bbn-ht-studio .bbn-ht-subtitle { margin-top: 0; color: #fff; }
.bbn-ht-studio-lede { margin: 0 0 18px; max-width: 70ch; font-size: 16px; line-height: 1.6; color: #E4E1F5; }
.bbn-ht-studio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.bbn-ht-studio-tile { margin: 0; padding: 20px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.bbn-ht-studio-tile h3 { margin: 12px 0 6px; font-family: Poppins, Inter, system-ui, sans-serif; font-size: 19px; color: #fff; }
.bbn-ht-studio-tile p { margin: 0; font-size: 15px; line-height: 1.55; color: #E4E1F5; }
.bbn-ht .bbn-ht-studio-tile a { display: inline-block; margin-top: 10px; color: #F5C518; font-weight: 600; }

/* Provider strip: scrolls by itself, pauses on hover / focus; static for reduced motion */
.bbn-ht-car { margin-top: 32px; }
.bbn-ht-marquee {
  --bbn-ht-speed: 70s;
  display: flex; gap: 16px; overflow: hidden; padding: 4px 0 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.bbn-ht-car-track {
  position: relative; display: flex; flex: none; gap: 16px; margin: 0; padding: 0; list-style: none;
  animation: bbn-ht-scroll var(--bbn-ht-speed) linear infinite;
}
.bbn-ht-marquee:hover .bbn-ht-car-track,
.bbn-ht-marquee:focus-within .bbn-ht-car-track { animation-play-state: paused; }
@keyframes bbn-ht-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-100% - 16px)); } }
.bbn-ht-prov {
  position: relative; flex: 0 0 280px;
  display: flex; flex-direction: column; margin: 0; padding: 18px 20px;
  background: #fff; border: 1px solid var(--bbn-ht-border); border-radius: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.bbn-ht-prov:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20,19,15,.10); }
.bbn-ht-prov-logo { display: flex; align-items: center; height: 64px; margin-bottom: 12px; }
.bbn-ht-logo { max-height: 64px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.bbn-ht-prov-aud { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #7A5A1E; }
.bbn-ht-prov h3 { margin: 0; font-family: Poppins, Inter, system-ui, sans-serif; font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--bbn-ht-brown); }
.bbn-ht-prov p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: #4A4945; }
.bbn-ht-prov .bbn-ht-prov-aud { margin: 0 0 4px; font-size: 12px; color: #7A5A1E; }
.bbn-ht-prov .bbn-ht-hours { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--bbn-ht-brown); }
.bbn-ht-car .bbn-ht-note { margin: 4px 0 0; }

/* Scroll reveal (added by hallowtech.js only; content is visible without JS) */
.bbn-ht-will { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.bbn-ht-will.is-in { opacity: 1; transform: none; }

.bbn-ht-meals { margin-top: 32px; padding: 28px; border-radius: 20px; background: var(--bbn-ht-cream); border: 1px solid var(--bbn-ht-border); }
.bbn-ht-meals-head { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.bbn-ht-meals-head img { width: 132px; max-height: 90px; height: auto; object-fit: contain; flex: none; }
.bbn-ht-meals-head .bbn-ht-subtitle { margin: 0 0 4px; }
.bbn-ht-meals-head p { margin: 0; color: #4A4945; }
.bbn-ht-meals-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.bbn-ht-meals-grid li { display: flex; align-items: center; gap: 14px; margin: 0; padding: 16px 18px; background: #fff; border-radius: 14px; border: 1px solid var(--bbn-ht-border); }
.bbn-ht-meal-logo { flex: none; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; color: var(--bbn-ht-brown); }
.bbn-ht-meal-logo .bbn-ht-logo { max-height: 72px; max-width: 72px; }
.bbn-ht-meal-logo .bbn-ht-ico { width: 36px; height: 36px; }
.bbn-ht-meals-grid h3 { margin: 0 0 4px; font-family: Poppins, Inter, system-ui, sans-serif; font-size: 18px; color: var(--bbn-ht-brown); }
.bbn-ht-meals-grid p { margin: 0; font-size: 15px; color: var(--bbn-ht-muted); }

.bbn-ht-draw { margin-top: 32px; padding: 24px 28px; border-radius: 20px; background: #fff; border: 2px solid var(--bbn-ht-gold); }
.bbn-ht-draw .bbn-ht-subtitle { margin-top: 0; }
.bbn-ht-draw p { margin: 0; font-size: 16px; line-height: 1.6; color: #4A4945; }

/* ---- Featured Activations cards / hub ---- */
.bbn-act-title { margin: 0 0 18px; text-align: center; font-family: Poppins, Inter, system-ui, sans-serif; font-size: clamp(24px, 3vw, 32px); font-weight: 700; color: var(--bbn-ht-brown); }
.bbn-act-lede { margin: -6px auto 20px; max-width: 72ch; text-align: center; font-size: 17px; line-height: 1.6; color: #4A4945; }
.bbn-act-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.bbn-act-card { display: flex; flex-direction: column; margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--bbn-ht-border); border-radius: 18px; }
.bbn-act-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: var(--bbn-ht-navy); }
.bbn-act-img--plain { display: flex; align-items: center; justify-content: center; background: var(--bbn-ht-brown); }
.bbn-act-img--plain span { font: 700 clamp(20px, 2.6vw, 30px)/1.2 Poppins, Inter, system-ui, sans-serif; color: var(--bbn-ht-gold); text-transform: uppercase; letter-spacing: .08em; }
.bbn-act-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.bbn-act-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #7A5A1E; }
.bbn-act-name { margin: 0 0 6px; font-family: Poppins, Inter, system-ui, sans-serif; font-size: 22px; font-weight: 700; line-height: 1.25; color: var(--bbn-ht-brown); }
.bbn-act-when { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--bbn-ht-brown); }
.bbn-act-blurb { margin: 0 0 18px; font-size: 16px; line-height: 1.55; color: #4A4945; }
.bbn-act-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: auto; }
.bbn-act-soon { display: inline-block; padding: 10px 16px; border: 1px dashed var(--bbn-ht-border); border-radius: 999px; font-size: 14px; color: var(--bbn-ht-muted); }
.bbn-act-all { margin: 14px 0 0; text-align: center; }
.bbn-act-img--plain b { display: block; font: 700 clamp(34px, 4vw, 52px)/1 Poppins, Inter, system-ui, sans-serif; color: #FBF7EF; }
.bbn-act-img--plain { flex-direction: column; gap: 4px; }

/* Compact cards (Food Truck Fridays page): one short row each */
.bbn-act--compact .bbn-act-title { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 14px; }
.bbn-act--compact .bbn-act-grid { gap: 14px; }
.bbn-act--compact .bbn-act-card { flex-direction: row; align-items: stretch; }
.bbn-act--compact .bbn-act-img { flex: 0 0 38%; width: 38%; aspect-ratio: 16 / 9; height: auto; align-self: center; }
.bbn-act--compact .bbn-act-img--plain { aspect-ratio: auto; align-self: stretch; }
.bbn-act--compact .bbn-act-img--plain span { font-size: 16px; }
.bbn-act--compact .bbn-act-body { padding: 14px 18px; justify-content: center; }
.bbn-act--compact .bbn-act-kicker { margin-bottom: 2px; font-size: 11px; }
.bbn-act--compact .bbn-act-name { font-size: 18px; margin-bottom: 2px; }
.bbn-act--compact .bbn-act-when { margin-bottom: 10px; font-size: 14px; }
.bbn-act--compact .bbn-act-actions { gap: 8px 14px; margin-top: 0; }
.bbn-act--compact .bbn-act-soon { padding: 8px 14px; font-size: 13px; }

/* ---- tablet ---- */
@media (max-width: 1024px) {
  .bbn-ht-studio-grid, .bbn-ht-meals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bbn-act--compact .bbn-act-grid { grid-template-columns: 1fr; }
  .bbn-ht-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bbn-ht-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- mobile ---- */
@media (max-width: 767px) {
  .bbn-ht { padding: 0 16px; margin: 14px auto; }
  .bbn-ht-banner { border-radius: 14px; }
  .bbn-ht-bar { flex-direction: column; align-items: flex-start; }
  .bbn-ht-card { padding: 22px 18px; }
  .bbn-ht-facts { grid-template-columns: 1fr; gap: 8px; }
  .bbn-ht-grid, .bbn-ht-studio-grid, .bbn-ht-meals-grid, .bbn-act-grid { grid-template-columns: 1fr; }
  .bbn-ht-prov { flex-basis: 250px; }
  .bbn-act--compact .bbn-act-img { flex-basis: 34%; width: 34%; }
  .bbn-act--compact .bbn-act-body { padding: 12px 14px; }
  .bbn-act--compact .bbn-act-name { font-size: 16px; }
  .bbn-act--compact a.bbn-ht-btn { display: inline-flex; width: auto; }
  .bbn-ht-studio, .bbn-ht-meals, .bbn-ht-draw { padding: 22px 18px; }
  .bbn-ht-meals-head { flex-direction: column; align-items: flex-start; }
  .bbn-ht a.bbn-ht-btn { display: flex; width: 100%; }
  .bbn-ht-sponsors dl > div { grid-template-columns: 1fr; gap: 2px; }
  .bbn-ht-copy p { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .bbn-ht a.bbn-ht-btn, .bbn-ht-prov { transition: none; }
  .bbn-ht-prov:hover { transform: none; }
  .bbn-ht-car-track { animation: none; flex-wrap: wrap; flex: 1 1 100%; }
  .bbn-ht-car-track[aria-hidden="true"] { display: none; }
  .bbn-ht-marquee { -webkit-mask-image: none; mask-image: none; }
}
