/* ==========================================================================
   Layout utilities
   ========================================================================== */
.bct-container {
	max-width: 900px;
	margin: 0 auto;
	padding: 60px 24px;
}
.bct-prose h1 { font-size: 2.2rem; }
.bct-prose h2 { font-size: 1.7rem; margin-top: 1.4em; }
.bct-prose p { color: var(--bct-ink); }
.bct-prose img { border-radius: 14px; margin: 20px 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.bct-site-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: rgba(255,255,255,0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--bct-border);
	transition: box-shadow 0.3s ease;
}
.bct-site-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(17,46,136,0.25); }

.bct-header-inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.bct-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.bct-logo__mark {
	width: 42px; height: 42px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--bct-navy), var(--bct-navy-light));
	color: #fff;
	font-family: var(--bct-font-heading);
	font-weight: 800;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.bct-logo__text { font-family: var(--bct-font-heading); font-weight: 800; font-size: 17px; color: var(--bct-navy); line-height: 1.1; }
.bct-logo img,
.bct-logo .custom-logo { height: 26px; width: auto; display: block; }
.bct-logo .custom-logo-link { display: flex; align-items: center; }

.bct-nav { flex: 1; display: flex; justify-content: center; }
.bct-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.bct-menu-item { position: relative; }
.bct-menu-item > a {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 10px 16px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14.5px;
	color: var(--bct-ink);
	transition: background-color 0.2s ease, color 0.2s ease;
}
.bct-menu-item > a:hover,
.bct-menu-item.is-open > a { background: var(--bct-peach-tint); color: var(--bct-navy); }
.bct-menu-caret { transition: transform 0.25s ease; }
.bct-menu-item.is-open .bct-menu-caret { transform: rotate(180deg); }

.bct-submenu {
	list-style: none;
	margin: 0;
	padding: 10px;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 260px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 24px 48px -16px rgba(17,46,136,0.28);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	z-index: 10;
}
.bct-menu-item.is-open .bct-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.bct-submenu .bct-menu-item > a { border-radius: 10px; padding: 10px 14px; font-weight: 500; }
.bct-submenu .bct-menu-item > a:hover { background: var(--bct-peach-tint); }

.bct-header-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.bct-header-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--bct-navy); white-space: nowrap; }
.bct-header-cta { padding: 11px 22px; font-size: 14px; }

.bct-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px; height: 40px;
	border: none;
	background: transparent;
	cursor: pointer;
	flex-shrink: 0;
}
.bct-menu-toggle span { display: block; width: 100%; height: 2px; background: var(--bct-navy); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.bct-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bct-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.bct-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.bct-nav-mobile {
	display: none;
	flex-direction: column;
	padding: 12px 24px 24px;
	border-top: 1px solid var(--bct-border);
}
.bct-nav-mobile .bct-menu { flex-direction: column; gap: 2px; }
.bct-nav-mobile .bct-submenu {
	position: static;
	opacity: 1; visibility: visible; transform: none; box-shadow: none;
	display: none;
	padding-left: 14px;
}
.bct-nav-mobile .bct-menu-item.is-open .bct-submenu { display: block; }
.bct-nav-mobile__cta { margin-top: 14px; justify-content: center; }
.bct-site-header.is-nav-open .bct-nav-mobile { display: flex; }

@media (max-width: 960px) {
	.bct-nav, .bct-header-actions { display: none; }
	.bct-menu-toggle { display: flex; }
	.bct-header-inner { padding: 10px 16px; gap: 16px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.bct-site-footer { background: var(--bct-navy-dark); color: #C7D6F5; margin-top: 60px; }
.bct-footer-top {
	max-width: 1320px;
	margin: 0 auto;
	padding: 70px 24px 50px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
}
.bct-footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.bct-footer-col p { font-size: 14px; line-height: 1.7; color: #AEC0E8; }
.bct-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bct-footer-col a { color: #C7D6F5; font-size: 14px; }
.bct-footer-col a:hover { color: var(--bct-peach); }
.bct-logo--footer .bct-logo__text { color: #fff; }
.bct-logo__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #fff;
	padding: 4px;
	flex-shrink: 0;
	overflow: hidden;
}
/* Fixed pixel sizes on every level (not percentages) -- the logo's own
   HTML width/height attributes (its real uploaded pixel dimensions) would
   otherwise win out over an ambiguous percentage chain through the
   <a class="custom-logo-link"> wrapper WordPress inserts, letting a large
   source image spill out past the small circular badge uncontained.
   ".custom-logo" is targeted explicitly (not just the bare "img" tag) to
   match the two-class specificity of ".bct-logo .custom-logo" above --
   otherwise that header-height rule silently wins the "height" property
   here even though this rule is more specific in intent and comes later. */
.bct-logo__badge .custom-logo-link,
.bct-logo__badge img,
.bct-logo__badge .custom-logo { width: 20px; height: 20px; object-fit: contain; display: block; }
.bct-footer-contact li { color: #AEC0E8; font-size: 14px; }

.bct-footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.1);
	padding: 20px 24px;
	text-align: center;
	font-size: 13px;
	color: #93A8D6;
}

/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */
.bct-whatsapp-float {
	position: fixed;
	right: 22px;
	bottom: 22px;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #25D366;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 12px 28px -8px rgba(37,211,102,0.6);
	z-index: 9000;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	animation: bct-whatsapp-pulse 2.4s ease-in-out infinite;
}
.bct-whatsapp-float:hover {
	transform: scale(1.08);
	box-shadow: 0 16px 34px -8px rgba(37,211,102,0.75);
}
@keyframes bct-whatsapp-pulse {
	0%, 100% { box-shadow: 0 12px 28px -8px rgba(37,211,102,0.6), 0 0 0 0 rgba(37,211,102,0.5); }
	50% { box-shadow: 0 12px 28px -8px rgba(37,211,102,0.6), 0 0 0 10px rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) {
	.bct-whatsapp-float { animation: none; }
}
@media (max-width: 480px) {
	.bct-whatsapp-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}

@media (max-width: 900px) {
	.bct-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.bct-footer-top { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Blog
   ========================================================================== */
.bct-post-card { margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--bct-border); }
.bct-post-card__thumb img { border-radius: 14px; }
.bct-post-card__meta { color: var(--bct-muted); font-size: 13.5px; margin: 6px 0 14px; }
.bct-pagination { display: flex; justify-content: center; gap: 10px; }

.bct-comments { margin: 40px 0; }
.bct-comment-list { list-style: none; padding: 0; }

.bct-404 { text-align: center; padding: 120px 24px; }

/* ==========================================================================
   Top bar (desktop only) -- contact strip above the main header
   ========================================================================== */
.bct-topbar {
	display: none;
	background: linear-gradient(90deg, var(--bct-navy-dark) 0%, var(--bct-navy) 100%);
	color: #DCE7F8;
	font-size: 13px;
	position: relative;
	z-index: 1000;
}
.bct-topbar::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--bct-orange) 0%, rgba(251,111,17,0) 35%);
	opacity: 0.9;
}
.bct-topbar__inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 24px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.bct-topbar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.bct-topbar__info { gap: 26px; min-width: 0; }
.bct-topbar__links { gap: 22px; flex-shrink: 0; }
.bct-topbar li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.bct-topbar li svg { color: var(--bct-peach); flex-shrink: 0; }
.bct-topbar__info span,
.bct-topbar a { color: #DCE7F8; text-decoration: none; transition: color 0.2s ease; }
.bct-topbar a:hover { color: #fff; }
.bct-topbar__info li + li::before {
	content: '';
	width: 1px;
	height: 14px;
	background: rgba(255,255,255,0.18);
	margin-right: 4px;
}
.bct-topbar__whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 14px;
	border-radius: 999px;
	background: rgba(37, 211, 102, 0.14);
	border: 1px solid rgba(37, 211, 102, 0.4);
	color: #B9F5CF !important;
	font-weight: 600;
	transition: background 0.2s ease, border-color 0.2s ease;
}
.bct-topbar__whatsapp::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #25D366;
	box-shadow: 0 0 0 0 rgba(37,211,102,0.6);
	animation: bct-topbar-pulse 2.4s ease-out infinite;
}
.bct-topbar__whatsapp:hover { background: rgba(37, 211, 102, 0.24); border-color: rgba(37, 211, 102, 0.7); }
@keyframes bct-topbar-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
	70%  { box-shadow: 0 0 0 7px rgba(37,211,102,0); }
	100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

@media (min-width: 961px) {
	.bct-topbar { display: block; }
}
@media (min-width: 961px) and (max-width: 1180px) {
	.bct-topbar__info li:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.bct-topbar__whatsapp::before { animation: none; }
}
