/* =========================================================================
   Sabeny — Homepage component styles.
   Loaded sitewide; only renders where the corresponding shortcode is used.
   Reuses --sbn-* CSS variables defined in custom.css.
   ========================================================================= */

/* ========== 1. Announcement bar =========================================
   Single-row rotating ticker. Always shows ONE message; never stacks. */
.sbn-announce {
	background: var(--sbn-teal, #0E6B6B);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.01em;
	overflow: hidden;
}
.sbn-announce__viewport {
	position: relative;
	height: 36px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sbn-announce__msg {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .35s ease, transform .35s ease;
	pointer-events: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 0 12px;
}
.sbn-announce__msg.is-active {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
.sbn-announce__icon { font-size: 15px; flex-shrink: 0; }
.sbn-announce__text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

@media (max-width: 480px) {
	.sbn-announce { font-size: 12px; }
	.sbn-announce__viewport { height: 32px; padding: 0 8px; }
}

/* ========== 2. Weekly offers grid =======================================
   Four tonal tiles in a 4-up grid. Stack 2-up on tablet, 1-up on phone. */
.sbn-offers {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.sbn-offers__tile {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 24px;
	border-radius: 16px;
	text-decoration: none;
	min-height: 200px;
	transition: transform .2s ease, box-shadow .2s ease;
	color: inherit;
}
.sbn-offers__tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(15,23,42,0.12);
}
.sbn-offers__kicker {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.75;
}
.sbn-offers__title {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	margin: 4px 0 8px;
}
.sbn-offers__copy {
	font-size: 13px;
	opacity: 0.85;
	line-height: 1.45;
	flex-grow: 1;
}
.sbn-offers__cta {
	font-size: 13px;
	font-weight: 600;
	margin-top: 12px;
}

.sbn-offers__tile--teal   { background: var(--sbn-teal, #0E6B6B); color: #fff; }
.sbn-offers__tile--cream  { background: #FFF5E0; color: var(--sbn-ink, #0F172A); border: 1px solid #F4E5C0; }
.sbn-offers__tile--amber  { background: var(--sbn-orange, #F59E0B); color: #fff; }
.sbn-offers__tile--ink    { background: var(--sbn-ink, #0F172A); color: #fff; }

@media (max-width: 1024px) { .sbn-offers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .sbn-offers { grid-template-columns: 1fr; gap: 12px; } }

/* ========== 3. Promo cards (3-card "Bakery / Gifts / Events") =========== */
.sbn-promo {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.sbn-promo__card {
	display: block;
	position: relative;
	min-height: 280px;
	border-radius: 18px;
	overflow: hidden;
	background: var(--sbn-teal, #0E6B6B);
	background-size: cover;
	background-position: center;
	color: #fff;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}
.sbn-promo__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 40px rgba(15,23,42,0.15);
}
.sbn-promo__card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,0.55) 100%);
}
.sbn-promo__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	min-height: 280px;
	padding: 28px;
}
.sbn-promo__title {
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 6px;
	color: #fff;
}
.sbn-promo__copy {
	font-size: 14px;
	opacity: 0.95;
	margin: 0 0 14px;
}
.sbn-promo__cta {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	background: #fff;
	color: var(--sbn-teal, #0E6B6B);
	padding: 10px 18px;
	border-radius: 999px;
	align-self: flex-start;
}

@media (max-width: 1024px) { .sbn-promo { grid-template-columns: 1fr; gap: 16px; } }

/* ========== 4. FAQs ===================================================== */
.sbn-faqs { max-width: 880px; margin: 0 auto; }
.sbn-faqs__head {
	text-align: center;
	margin-bottom: 32px;
}
.sbn-faqs__title {
	font-size: 32px;
	color: var(--sbn-teal, #0E6B6B);
	margin: 0 0 8px;
}
.sbn-faqs__intro {
	color: var(--sbn-mute, #6B7280);
	font-size: 15px;
	margin: 0;
}
.sbn-faqs__list {
	display: flex;
	flex-direction: column;
	gap: 0;
	border-top: 1px solid var(--sbn-line, #E5E7EB);
}
.sbn-faqs__item {
	border-bottom: 1px solid var(--sbn-line, #E5E7EB);
}
.sbn-faqs__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 4px;
	font-size: 16px;
	font-weight: 600;
	color: var(--sbn-ink, #0F172A);
	cursor: pointer;
	list-style: none;
	transition: color .15s ease;
}
.sbn-faqs__q::-webkit-details-marker { display: none; }
.sbn-faqs__q:hover { color: var(--sbn-teal, #0E6B6B); }
.sbn-faqs__icon {
	font-size: 22px;
	font-weight: 300;
	color: var(--sbn-teal, #0E6B6B);
	transition: transform .2s ease;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.sbn-faqs__item[open] .sbn-faqs__icon {
	transform: rotate(45deg);
}
.sbn-faqs__a {
	padding: 0 4px 20px;
	color: var(--sbn-mute, #6B7280);
	font-size: 14px;
	line-height: 1.65;
}
.sbn-faqs__a p:last-child { margin-bottom: 0; }

/* ========== 5. Customer reviews ========================================= */
.sbn-reviews { max-width: 1200px; margin: 0 auto; }
.sbn-reviews__head {
	text-align: center;
	margin-bottom: 36px;
}
.sbn-reviews__title {
	font-size: 32px;
	color: var(--sbn-teal, #0E6B6B);
	margin: 0 0 12px;
}
.sbn-reviews__subtitle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--sbn-mute, #6B7280);
	font-size: 14px;
	margin: 0;
}
.sbn-reviews__stars {
	color: #F59E0B;
	font-size: 16px;
	letter-spacing: 1px;
}
.sbn-reviews__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.sbn-reviews__card {
	background: #fff;
	border: 1px solid var(--sbn-line, #E5E7EB);
	border-radius: 14px;
	padding: 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.sbn-reviews__rating {
	color: #F59E0B;
	font-size: 16px;
	letter-spacing: 1px;
}
.sbn-reviews__text {
	color: var(--sbn-ink, #0F172A);
	font-size: 14px;
	line-height: 1.55;
	margin: 0;
	flex-grow: 1;
}
.sbn-reviews__byline {
	font-size: 13px;
	color: var(--sbn-mute, #6B7280);
	display: flex;
	align-items: center;
	gap: 6px;
}
.sbn-reviews__name { font-weight: 600; color: var(--sbn-ink, #0F172A); }
.sbn-reviews__sep  { opacity: 0.5; }

@media (max-width: 1024px) { .sbn-reviews__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .sbn-reviews__grid { grid-template-columns: 1fr; } }

/* ========== 6. Latest articles ========================================== */
.sbn-articles { max-width: 1200px; margin: 0 auto; }
.sbn-articles__head {
	text-align: center;
	margin-bottom: 36px;
}
.sbn-articles__title {
	font-size: 32px;
	color: var(--sbn-teal, #0E6B6B);
	margin: 0 0 12px;
}
.sbn-articles__intro {
	color: var(--sbn-mute, #6B7280);
	font-size: 15px;
	max-width: 680px;
	margin: 0 auto;
	line-height: 1.55;
}
.sbn-articles__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.sbn-articles__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--sbn-line, #E5E7EB);
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform .2s ease, box-shadow .2s ease;
}
.sbn-articles__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(15,23,42,0.10);
}
.sbn-articles__media {
	aspect-ratio: 16 / 10;
	background: var(--sbn-soft, #F3F4F6);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.sbn-articles__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.sbn-articles__card--placeholder .sbn-articles__media {
	background: linear-gradient(135deg, #FFF5E0 0%, #F4E5C0 100%);
}
.sbn-articles__body { padding: 22px 24px 24px; flex-grow: 1; display: flex; flex-direction: column; }
.sbn-articles__heading {
	font-size: 18px;
	font-weight: 700;
	color: var(--sbn-ink, #0F172A);
	margin: 0 0 8px;
	line-height: 1.35;
}
.sbn-articles__excerpt {
	font-size: 14px;
	color: var(--sbn-mute, #6B7280);
	line-height: 1.55;
	margin: 0 0 16px;
	flex-grow: 1;
}
.sbn-articles__more {
	color: var(--sbn-teal, #0E6B6B);
	font-size: 14px;
	font-weight: 600;
	margin-top: auto;
}

@media (max-width: 1024px) { .sbn-articles__grid { grid-template-columns: 1fr; } }

/* ========== 7. USP grid ================================================= */
.sbn-usp {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 0;
}
.sbn-usp__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
	padding: 16px;
}
.sbn-usp__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--sbn-soft, #F3F4F6);
	color: var(--sbn-teal, #0E6B6B);
}
.sbn-usp__icon svg { width: 24px; height: 24px; }
.sbn-usp__label {
	font-size: 14px;
	font-weight: 600;
	color: var(--sbn-ink, #0F172A);
	line-height: 1.4;
}

@media (max-width: 768px) { .sbn-usp { grid-template-columns: repeat(2, 1fr); } }

/* ========== 8. SEO block ================================================ */
.sbn-seo {
	max-width: 880px;
	margin: 0 auto;
	text-align: center;
	padding: 48px 24px;
}
.sbn-seo__title {
	font-size: 30px;
	color: var(--sbn-teal, #0E6B6B);
	margin: 0 0 16px;
	line-height: 1.25;
}
.sbn-seo__lede {
	font-size: 17px;
	color: var(--sbn-ink, #0F172A);
	font-weight: 500;
	margin: 0 0 16px;
	line-height: 1.5;
}
.sbn-seo__body {
	font-size: 14px;
	color: var(--sbn-mute, #6B7280);
	line-height: 1.7;
	margin: 0;
}
