/* ==========================================================================
   BC Before & After Gallery
   Colors are set as CSS variables at the top — adjust these two lines
   to match your site's exact brand palette if needed.
   ========================================================================== */

.bc-ba-section {
	--bc-ba-bg: #f2ede2;         /* cream background */
	--bc-ba-heading: #143b3b;    /* dark teal heading */
	--bc-ba-accent: #1c5b52;     /* teal accent / active tab */
	--bc-ba-text: #3f4a49;       /* body copy grey */
	--bc-ba-border: #ddd6c6;

	background: var(--bc-ba-bg);
	padding: 60px 24px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.bc-ba-inner {
	max-width: 1180px;
	margin: 0 auto;
}

.bc-ba-eyebrow {
	font-family: 'Droid Sans', sans-serif;
	font-style: italic;
	color: #666666;
	font-size: 15px;
	margin: 0 0 6px;
}

.bc-ba-heading {
	font-family: 'Droid Sans', sans-serif;
	font-weight: 700;
	color: #7cb1cb;
	font-size: 40px;
	line-height: 1.15;
	margin: 0 0 16px;
}

.bc-ba-intro {
	color: #666666;
	font-size: 15px;
	line-height: 1.6;
	max-width: 640px;
	margin: 0 0 28px;
}

/* Tabs -------------------------------------------------------------- */

.bc-ba-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-bottom: 24px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--bc-ba-border);
}

.bc-ba-tab {
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--bc-ba-accent);
	background: #fff;
	border: 1px solid var(--bc-ba-accent);
	border-radius: 999px;
	padding: 10px 20px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.bc-ba-tab:hover {
	background: rgba(28, 91, 82, 0.08);
}

.bc-ba-tab.is-active {
	background: #7cb1cb;
	color: #fff;
	border-color: #7cb1cb;
}

/* Panels -------------------------------------------------------------- */

.bc-ba-panel { display: none; }
.bc-ba-panel.is-active { display: block; }

.bc-ba-panel-head {
	margin-bottom: 18px;
}

.bc-ba-panel-head h3 {
	font-family: 'Droid Sans', sans-serif;
	color: #7cb1cb;
	font-size: 22px;
	margin: 0 0 4px;
}

.bc-ba-count {
	font-size: 13px;
	color: var(--bc-ba-text);
	opacity: 0.75;
}

/* Columns / Sliders -------------------------------------------------- */

.bc-ba-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

@media (max-width: 780px) {
	.bc-ba-columns { grid-template-columns: 1fr; }
}

.bc-ba-col-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--bc-ba-text);
	margin: 0 0 8px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.bc-ba-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
}
.bc-ba-dot--before { background: #b7ab8f; }
.bc-ba-dot--after { background: var(--bc-ba-accent); }

.bc-ba-slider {
	position: relative;
	background: #e2ddd0;
	border-radius: 6px;
	overflow: hidden;
}

.bc-ba-track {
	position: relative;
	aspect-ratio: 4 / 3;
	width: 100%;
}

.bc-ba-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease;
}

.bc-ba-slide.is-active {
	opacity: 1;
	visibility: visible;
}

.bc-ba-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bc-ba-caption {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(255, 255, 255, 0.85);
	color: var(--bc-ba-heading);
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 4px;
}

.bc-ba-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	color: var(--bc-ba-heading);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.bc-ba-arrow--prev { left: 12px; }
.bc-ba-arrow--next { right: 12px; }
.bc-ba-arrow:hover { background: #fff; }

.bc-ba-dots {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
	z-index: 2;
}

.bc-ba-dotnav {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.6);
	cursor: pointer;
}

.bc-ba-dotnav.is-active {
	background: var(--bc-ba-accent);
	width: 16px;
	border-radius: 3px;
}
