/*
 * Best Before · About us / "Our story" (page-templates/about.php). Tokens
 * only, from main.css. Loaded together with assets/css/pages/blog.css and
 * assets/css/pages/contact.css (read-only reuse of their .bb-blogcard and
 * .bb-branchdir/.bb-branchcard components - see inc/pages/about.php).
 */

.bb-aboutpage { display: grid; gap: var(--bb-section); }

/* ---------- Hero ---------- */
.bb-abouthero {
	position: relative; display: flex; flex-direction: column; justify-content: flex-start;
	min-height: 260px; gap: 14px; overflow: hidden;
}
.bb-abouthero__title { position: relative; color: #fff; margin: 0; }
.bb-abouthero__text { position: relative; color: #eee; font-size: 1.0625rem; max-width: 560px; margin: 0; }
.bb-abouthero__ctas { position: relative; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
/* Dark-panel ghost button: not in main.css (its only existing ghost variant,
   .bb-hero__ghost, belongs to assets/css/pages/home.css, the home area's
   own file) - this page defines its own so it never depends on home.css
   being loaded. */
.bb-abouthero__ctas .bb-btn--ghost { background: transparent; border: 2px solid rgba(255, 255, 255, .7); color: #fff; font-weight: 600; }
.bb-abouthero__ctas .bb-btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.bb-abouthero--photo { background-size: cover; background-position: center; }
.bb-abouthero--photo::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(100deg, rgba(17, 17, 17, .92) 0%, rgba(17, 17, 17, .78) 45%, rgba(17, 17, 17, .45) 100%);
}

/* ---------- Key-facts strip ---------- */
.bb-aboutfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.bb-aboutfacts__tile {
	display: flex; align-items: flex-start; gap: 12px;
	background: var(--bb-surface); border: 1px solid var(--bb-border); border-radius: var(--bb-r-tile);
	padding: 16px;
}
.bb-aboutfacts__icon {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 40px; height: 40px; border-radius: var(--bb-r-small);
	background: var(--bb-pale-yellow); color: var(--bb-ink);
}
.bb-aboutfacts__title { display: block; font-family: var(--bb-font-display); font-size: 1.0625rem; font-weight: 800; color: var(--bb-ink); }
.bb-aboutfacts__sub { display: block; font-size: .8125rem; color: var(--bb-muted); }

/* ---------- Our story ---------- */
.bb-aboutstory { max-width: 860px; }
.bb-aboutstory__body p { font-size: 1.0625rem; color: var(--bb-body); }
.bb-aboutstory__body p:last-child { margin-bottom: 0; }

/* ---------- How it works ---------- */
.bb-abouthow__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 16px; }
.bb-abouthow__step { display: flex; flex-direction: column; gap: 6px; }
.bb-abouthow__num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border-radius: 50%; margin: 0 0 6px;
	background: var(--bb-yellow); color: var(--bb-ink); font-family: var(--bb-font-display); font-weight: 800;
}
.bb-abouthow__step h3 { margin: 0; }
.bb-abouthow__step p:last-child { margin: 0; color: var(--bb-body); }

/* ---------- Why it matters ---------- */
.bb-aboutwhy__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 16px; }
.bb-aboutwhy__col { background: var(--bb-surface); border: 1px solid var(--bb-border); border-radius: var(--bb-r-panel); padding: 20px; }
.bb-aboutwhy__col h3 { font-size: 1.125rem; margin-bottom: 8px; }
.bb-aboutwhy__cite { font-size: .8125rem; color: var(--bb-muted); margin: 10px 0 0; }
.bb-aboutwhy__cite a { color: var(--bb-ink); font-weight: 700; }

/* ---------- In the news ---------- */
.bb-aboutnews__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.bb-aboutnews__head h2 { margin: 0; }
.bb-aboutnews__grid.bb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Visit us (reused branch-directory sits directly under this file's load; no extra rules needed - see contact.css) ---------- */

/* ---------- Closing CTA band ---------- */
.bb-aboutcta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bb-aboutcta__card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.bb-aboutcta__card h2 { margin: 0; }
.bb-aboutcta__card p { margin: 0; }
.bb-aboutcta__card.bb-panel--dark p { color: #ddd; }

/* ---------- Mobile (<768): single column, same shrink-trap guard as contact.css ---------- */
@media (max-width: 767px) {
	.bb-abouthow__grid,
	.bb-aboutwhy__grid,
	.bb-aboutnews__grid.bb-grid,
	.bb-aboutcta { grid-template-columns: minmax(0, 1fr); }
	.bb-abouthero { min-height: 220px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
	.bb-aboutnews__grid.bb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* How it works: number circle on the SAME line as the heading (Gary); the text
   sits under the heading, aligned with it. Steps are light cards. */
.bb-abouthow__step {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	column-gap: 14px;
	row-gap: 6px;
	align-items: center;
	align-content: start; /* keep heading + text at the top of equal-height cards */
	padding: 20px;
	border: 1px solid var(--bb-border);
	border-radius: var(--bb-r-tile);
	background: var(--bb-surface);
}
.bb-abouthow__step .bb-abouthow__num { grid-column: 1; grid-row: 1; margin: 0; }
.bb-abouthow__step h3 { grid-column: 2; grid-row: 1; line-height: 1.25; }
.bb-abouthow__step p:last-child { grid-column: 2; grid-row: 2; }
@media (max-width: 480px) {
	.bb-abouthow__step { padding: 16px; column-gap: 12px; }
	.bb-abouthow__step p:last-child { grid-column: 1 / -1; }
}
