/**
 * Header / footer chrome — matches design Layout.tsx + Footer.tsx
 * Loaded after kpa-design.css (Tailwind bundle).
 */

.kpa-site {
	min-height: 100vh;
	font-family: Inter, system-ui, sans-serif;
}

/* Top bar */
.top-bar-mobile {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #ffed4d;
	font-family: Montserrat, sans-serif;
	font-weight: 700;
	font-size: 13px;
	color: #1a1a1a;
	letter-spacing: 0.01em;
}

.top-bar-mobile .text-center {
	text-align: center;
}

/* Main nav */
.kpa-main-nav {
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-left: 3rem;
	padding-right: 3rem;
	background-color: #283c88;
	max-width: 100%;
}

.kpa-main-nav__logo img {
	height: 100px;
	width: auto;
	display: block;
}

.nav-links-mobile {
	display: flex;
	align-items: center;
	gap: 2rem;
	font-family: Montserrat, sans-serif;
	font-weight: 700;
}

.nav-links-mobile a {
	position: relative;
	font-size: 15px;
	color: #fff;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.nav-links-mobile a:hover {
	opacity: 0.8;
}

.nav-links-mobile a.is-active::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: #ffed4d;
}

.nav-whatsapp-mobile {
	display: flex;
	align-items: center;
	background-color: #25d366;
	color: #fff;
	font-family: Montserrat, sans-serif;
	font-weight: 600;
	font-size: 15px;
	border-radius: 8px;
	padding: 10px 24px;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.nav-whatsapp-mobile:hover {
	background-color: #1daa56;
}

.hamburger-mobile {
	display: none;
	flex-direction: column;
	gap: 4px;
	cursor: pointer;
	background: none;
	border: none;
	padding: 8px;
}

.hamburger-mobile span {
	width: 24px;
	height: 2px;
	background-color: #fff;
	display: block;
}

/* Mobile menu */
.mobile-menu-overlay {
	position: fixed;
	top: 0;
	right: -100%;
	width: 100%;
	height: 100vh;
	background-color: #1b2a6b;
	z-index: 300;
	transition: right 0.3s ease;
	overflow-y: auto;
}

.mobile-menu-overlay.open {
	right: 0;
}

.mobile-menu-overlay__inner {
	padding: 20px;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.mobile-menu-overlay__close {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	padding: 8px;
	line-height: 1;
	align-self: flex-end;
	margin-bottom: 40px;
}

.mobile-menu-overlay__nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
}

.mobile-menu-overlay__nav a {
	font-family: Montserrat, sans-serif;
	font-weight: 600;
	font-size: 24px;
	color: #fff;
	text-decoration: none;
	padding: 16px 0;
	width: 100%;
	text-align: center;
}

.mobile-menu-overlay__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 56px;
	background-color: #25d366;
	color: #fff;
	font-family: Montserrat, sans-serif;
	font-weight: 700;
	font-size: 18px;
	border-radius: 8px;
	text-decoration: none;
	margin-top: auto;
}

.kpa-mobile-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 299;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.kpa-mobile-backdrop.active {
	opacity: 1;
	visibility: visible;
}

/* Footer */
.kpa-site-footer {
	background-color: #0f1923;
	color: #fff;
}

.footer-main-content {
	padding: 64px clamp(1rem, 5vw, 120px);
	max-width: 1440px;
	margin: 0 auto;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 48px;
}

.footer-bottom-bar {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 24px clamp(1rem, 5vw, 120px);
	max-width: 1440px;
	margin: 0 auto;
}

.footer-bottom-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: Inter, sans-serif;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.5);
	flex-wrap: wrap;
	gap: 12px;
}

.footer-bottom-inner a {
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
}

.footer-bottom-inner a:hover {
	opacity: 0.8;
}

.footer-legal-links {
	display: flex;
	gap: 24px;
}

/* WP main content */
#kpa-main-content {
	width: 100%;
	max-width: none;
	overflow: visible;
}

@media (max-width: 768px) {
	.top-bar-mobile {
		height: 36px;
	}

	.top-bar-address,
	.top-bar-hours {
		display: none;
	}

	.kpa-main-nav {
		padding-left: 20px;
		padding-right: 20px;
	}

	.nav-links-mobile,
	.nav-whatsapp-mobile {
		display: none;
	}

	.hamburger-mobile {
		display: flex;
	}

	.footer-main-content,
	.footer-bottom-bar {
		padding: 40px 20px;
	}

	.footer-grid {
		display: flex;
		flex-direction: column;
		gap: 24px;
	}

	.footer-map-mobile {
		display: none;
	}
}

@media (min-width: 769px) {
	.mobile-menu-overlay,
	.kpa-mobile-backdrop {
		display: none !important;
	}
}

/* Blog category pills — used on index/archive/page-blogs */
.kpa-blog-pills-bar {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: #fff;
	border-bottom: 1px solid rgb(226, 232, 240);
	width: 100%;
}

.kpa-blog-pills {
	max-width: 1440px;
	margin: 0 auto;
	padding: 16px clamp(1rem, 5vw, 40px);
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
	box-sizing: border-box;
}

.kpa-blog-pills::-webkit-scrollbar {
	display: none;
}

.kpa-blog-archive-title {
	font-family: 'Alfa Slab One', serif;
	font-size: clamp(28px, 6vw, 52px);
	line-height: 1.15;
	color: #fff;
	margin: 0 auto 20px;
	max-width: 900px;
	font-weight: 400;
}
