/* Kangaroo — layout: header, footer, bottom-nav, grid/container helpers */

.kg-container {
	width: 100%;
	max-width: var(--kg-max-width);
	margin-inline: auto;
	padding-inline: var(--kg-space-margin-mobile);
}

@media (min-width: 768px) {
	.kg-container {
		padding-inline: var(--kg-space-margin-desktop);
	}
}

.kg-section {
	padding-block: calc(var(--kg-space-base) * 2);
}

.kg-grid {
	display: grid;
	gap: var(--kg-space-gutter);
	grid-template-columns: repeat(4, 1fr);
}

@media (min-width: 768px) {
	.kg-grid {
		grid-template-columns: repeat(8, 1fr);
	}
}

@media (min-width: 1024px) {
	.kg-grid {
		grid-template-columns: repeat(12, 1fr);
	}
}

/* ---------------------------------------------------------------
 * Header
 * --------------------------------------------------------------- */

.kg-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--kg-surface);
	border-bottom: 1px solid var(--kg-outline-variant);
	transition: box-shadow 0.25s ease;
}

.kg-header.is-scrolled {
	box-shadow: var(--kg-shadow-md);
}

.kg-header__inner {
	max-width: var(--kg-max-width);
	margin-inline: auto;
	padding-block: 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

@media (min-width: 768px) {
	.kg-header__inner {
		padding-inline: var(--kg-space-margin-desktop);
	}
}

.kg-header__brand img,
.kg-header__brand .custom-logo {
	height: 64px;
	width: auto;
	object-fit: contain;
}

@media (min-width: 768px) {
	.kg-header__brand img,
	.kg-header__brand .custom-logo {
		height: 96px;
	}
}

.kg-header__brand-link {
	font-family: var(--kg-font-display);
	font-weight: 700;
	font-size: 20px;
	color: var(--kg-primary);
}

.kg-nav__list {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	justify-content: center;
}

@media (min-width: 768px) {
	.kg-nav__list {
		gap: 32px;
	}
}

.kg-nav__list .kg-nav__link,
.kg-nav__list > li > a {
	font-family: var(--kg-font-body);
	font-weight: 500;
	color: var(--kg-secondary);
	transition: color 0.2s ease;
	padding-bottom: 4px;
}

.kg-nav__list > li > a:hover,
.kg-nav__list .kg-nav__link:hover {
	color: var(--kg-primary-container);
}

.kg-nav__list > li.current-menu-item > a,
.kg-nav__list > li.current_page_item > a {
	color: var(--kg-primary-container);
	font-weight: 700;
	border-bottom: 2px solid var(--kg-primary-container);
}

/* ---------------------------------------------------------------
 * Main
 * --------------------------------------------------------------- */

.kg-main {
	overflow-x: hidden;
}

/* ---------------------------------------------------------------
 * Footer
 * --------------------------------------------------------------- */

.kg-footer {
	background: var(--kg-surface-container-lowest);
	width: 100%;
	padding-block: 64px;
	margin-bottom: 64px;
}

@media (min-width: 768px) {
	.kg-footer {
		margin-bottom: 0;
	}
}

.kg-footer__inner {
	max-width: var(--kg-max-width);
	margin-inline: auto;
	padding-inline: var(--kg-space-margin-mobile);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--kg-space-gutter);
	text-align: center;
}

@media (min-width: 768px) {
	.kg-footer__inner {
		padding-inline: var(--kg-space-margin-desktop);
	}
}

.kg-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.kg-footer__brand img,
.kg-footer__brand .custom-logo {
	height: 80px;
	width: auto;
	object-fit: contain;
	margin-bottom: 8px;
}

.kg-footer__brand-link {
	font-family: var(--kg-font-display);
	font-weight: 700;
	font-size: 20px;
	color: var(--kg-primary);
}

.kg-footer__copy {
	color: var(--kg-on-surface-variant);
	text-align: center;
}

.kg-footer-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	justify-content: center;
}

.kg-footer-nav__link,
.kg-footer-nav__list > li > a {
	font-size: var(--kg-label-sm-size);
	color: var(--kg-on-surface-variant);
	transition: color 0.2s ease;
}

.kg-footer-nav__link:hover,
.kg-footer-nav__list > li > a:hover {
	color: var(--kg-primary-container);
	text-decoration: underline;
}

/* ---------------------------------------------------------------
 * Bottom Nav (mobile only)
 * --------------------------------------------------------------- */

.kg-bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 50;
	display: flex;
	justify-content: space-around;
	align-items: center;
	height: 64px;
	background: var(--kg-surface);
	border-top: 1px solid var(--kg-outline-variant);
	box-shadow: var(--kg-shadow-lg);
	border-radius: var(--kg-radius-lg) var(--kg-radius-lg) 0 0;
}

.kg-bottom-nav__list {
	display: flex;
	width: 100%;
	height: 100%;
	justify-content: space-around;
	align-items: center;
}

.kg-bottom-nav__list > li {
	flex: 1;
	height: 100%;
}

.kg-bottom-nav__list > li > a,
.kg-bottom-nav__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--kg-on-surface-variant);
	opacity: 0.7;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.kg-bottom-nav__list > li.current-menu-item > a,
.kg-bottom-nav__item--active {
	color: var(--kg-primary-container);
	opacity: 1;
	font-weight: 700;
}

.kg-bottom-nav__label {
	font-size: var(--kg-label-sm-size);
	margin-top: 4px;
}

@media (min-width: 768px) {
	.kg-bottom-nav {
		display: none;
	}
}

/* ---------------------------------------------------------------
 * WhatsApp FAB
 * --------------------------------------------------------------- */

.kg-wa-fab {
	position: fixed;
	bottom: 88px;
	right: 16px;
	width: 56px;
	height: 56px;
	background: var(--kg-whatsapp-green);
	border-radius: var(--kg-radius-full);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	box-shadow: var(--kg-shadow-lg);
	z-index: 50;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kg-wa-fab:hover {
	transform: translateY(-4px);
	box-shadow: var(--kg-shadow-lg), var(--kg-shadow-md);
}

.kg-wa-fab__icon {
	width: 28px;
	height: 28px;
}

@media (min-width: 768px) {
	.kg-wa-fab {
		bottom: 32px;
		right: 32px;
	}
}

/* ---------------------------------------------------------------
 * Generic page / index / 404
 * --------------------------------------------------------------- */

.kg-generic-page {
	padding-block: 48px var(--kg-section-gap);
}

.kg-generic-page__header {
	margin-bottom: 24px;
}

.kg-generic-page__thumb {
	margin-bottom: 24px;
	border-radius: var(--kg-radius-lg);
	overflow: hidden;
}

.kg-generic-page__content {
	color: var(--kg-on-surface-variant);
}

.kg-generic-page__content p {
	margin-bottom: 16px;
}

.kg-generic-page__loop {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.kg-404 {
	padding-block: var(--kg-section-gap);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

/* ---------------------------------------------------------------
 * Icon helper (inline SVG via kangaroo_icon())
 * --------------------------------------------------------------- */

.kg-icon-svg {
	width: 24px;
	height: 24px;
	display: inline-block;
}
