/**
 * Blueberry Site Builder — estilos de frontend.
 * Todas as classes são prefixadas com bbsb- para evitar conflitos.
 */

.bbsb-section {
	position: relative;
	padding: 60px 20px;
	box-sizing: border-box;
	background-size: cover;
	background-position: center;
}

.bbsb-section[style*="background-image"]::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--bbsb-overlay, transparent);
	pointer-events: none;
}

.bbsb-inner {
	position: relative;
	z-index: 1;
	max-width: 1140px;
	margin: 0 auto;
	width: 100%;
}

.bbsb-title {
	margin: 0 0 16px;
	font-size: 2rem;
	line-height: 1.2;
}

.bbsb-subtitle {
	margin: 0 0 12px;
	font-size: 1.25rem;
	font-weight: 600;
}

.bbsb-text {
	margin: 0 0 16px;
	font-size: 1rem;
	line-height: 1.6;
}

/* Botão */
.bbsb-button {
	display: inline-block;
	padding: 14px 28px;
	background-color: #3a4cf0;
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
	transition: background-color 0.2s ease, color 0.2s ease;
	border: none;
	cursor: pointer;
}

.bbsb-button:hover {
	background-color: #2a39c4;
	color: #fff;
}

/* Grid genérico */
.bbsb-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 24px;
}

/* Cards */
.bbsb-card {
	background-color: #fff;
	border-radius: 10px;
	padding: 24px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.bbsb-icon {
	display: inline-flex;
	font-size: 36px;
	color: #3a4cf0;
	margin-bottom: 12px;
}

.bbsb-icon svg {
	width: 36px;
	height: 36px;
}

/* Hero */
.bbsb-hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}

.bbsb-hero .bbsb-title {
	font-size: 2.5rem;
}

.bbsb-hero-media img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.bbsb-tpl-hero-02 .bbsb-hero-grid {
	grid-template-columns: 1fr;
	text-align: center;
}

.bbsb-tpl-hero-02 .bbsb-hero-media,
.bbsb-tpl-hero-03 .bbsb-hero-media {
	display: none;
}

/* Problema e Solução */
.bbsb-ps-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 24px;
}

.bbsb-tpl-ps-02 .bbsb-ps-grid {
	grid-template-columns: 1fr;
}

.bbsb-ps-problem {
	border-left: 4px solid #e05656;
}

.bbsb-ps-solution {
	border-left: 4px solid #3ac47d;
}

/* Etapas */
.bbsb-step {
	position: relative;
}

.bbsb-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #3a4cf0;
	color: #fff;
	font-weight: 700;
	margin-bottom: 12px;
}

.bbsb-tpl-steps-02 .bbsb-steps-list {
	grid-template-columns: 1fr;
}

.bbsb-tpl-steps-03 .bbsb-steps-list {
	grid-auto-flow: column;
	grid-template-columns: none;
	overflow-x: auto;
}

/* Depoimentos */
.bbsb-testi-author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
}

.bbsb-testi-photo {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.bbsb-testi-author span {
	display: flex;
	flex-direction: column;
}

.bbsb-tpl-testi-02 .bbsb-testi-list {
	grid-template-columns: 1fr;
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

/* FAQ */
.bbsb-faq-list {
	margin-top: 24px;
	display: grid;
	gap: 12px;
}

.bbsb-tpl-faq-02 .bbsb-faq-list {
	grid-template-columns: 1fr 1fr;
}

.bbsb-faq-item {
	padding: 0;
	overflow: hidden;
}

.bbsb-faq-question {
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	padding: 18px 20px;
	font-size: 1.1rem;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.bbsb-faq-toggle {
	font-size: 1.5rem;
	line-height: 1;
	transition: transform 0.2s ease;
}

.bbsb-faq-answer {
	max-height: 0;
	overflow: hidden;
	padding: 0 20px;
	transition: max-height 0.3s ease, padding 0.3s ease;
}

.bbsb-faq-open .bbsb-faq-answer {
	max-height: 600px;
	padding: 0 20px 18px;
}

.bbsb-faq-open .bbsb-faq-toggle {
	transform: rotate(45deg);
}

/* CTA */
.bbsb-cta-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 20px;
}

.bbsb-tpl-cta-02 .bbsb-cta-inner {
	flex-direction: row;
	justify-content: space-between;
	text-align: left;
}

.bbsb-tpl-cta-03 {
	color: #fff;
}

.bbsb-tpl-cta-03 .bbsb-title,
.bbsb-tpl-cta-03 .bbsb-text {
	color: #fff;
}

/* Localizações */
.bbsb-location-phone {
	font-weight: 600;
}

/* Conteúdo genérico */
.bbsb-tpl-generic-02 .bbsb-generic-content {
	border-left: 4px solid #3a4cf0;
	padding-left: 20px;
}

/* Link de projeto (shortcode) */
.bbsb-project-link {
	font-weight: 600;
}

/* Responsivo */
@media (max-width: 1024px) {
	.bbsb-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.bbsb-hero-grid,
	.bbsb-ps-grid,
	.bbsb-grid,
	.bbsb-faq-list,
	.bbsb-cta-inner,
	.bbsb-tpl-cta-02 .bbsb-cta-inner,
	.bbsb-tpl-faq-02 .bbsb-faq-list {
		grid-template-columns: 1fr;
		flex-direction: column;
		text-align: center;
	}

	.bbsb-hero .bbsb-title {
		font-size: 2rem;
	}

	.bbsb-section {
		padding: 40px 16px;
	}
}
