/* Keja Fiti — header, hamburger and mobile drawer.
 * Plain CSS loaded on its own (not through the Tailwind build) so the
 * responsive header always works, whatever the compiled bundle contains. */

html.kf-lock, html.kf-lock body { overflow: hidden; }

.kf-header { position: sticky; top: 0; z-index: 40; }
.admin-bar .kf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .kf-header { top: 0; } }

.kf-header__mobile { display: none; align-items: center; gap: 8px; }
.kf-btn--sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }

.kf-burger { width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid #E6E3DA; background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.kf-burger:hover { border-color: #0B5C43; }
.kf-burger__bars { position: relative; width: 20px; height: 14px; display: block; }
.kf-burger__bars span { position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: #15201B; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.kf-burger__bars span:nth-child(1) { top: 0; }
.kf-burger__bars span:nth-child(2) { top: 6px; }
.kf-burger__bars span:nth-child(3) { top: 12px; }
.kf-burger__bars.is-open span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.kf-burger__bars.is-open span:nth-child(2) { opacity: 0; }
.kf-burger__bars.is-open span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Drawer is hidden until the button is pressed (also before scripts load). */
.kf-drawer, .kf-drawer-backdrop { display: none !important; }
@media (max-width: 900px) {
	.kf-drawer.is-open { display: flex !important; }
	.kf-drawer-backdrop.is-open { display: block !important; }
}
/* Desktop: never show the phone menu or its button. */
@media (min-width: 901px) {
	.kf-header__mobile, .kf-drawer, .kf-drawer-backdrop { display: none !important; }
}
.kf-drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(21,32,27,.45); }
.kf-drawer { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: #fff; box-shadow: -18px 0 40px rgba(21,32,27,.18); flex-direction: column; gap: 18px; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; padding: max(16px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) 20px; }
.kf-drawer.is-open { display: flex; }
.kf-drawer-backdrop.is-open { display: block; }
.kf-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.kf-drawer__search { display: flex; gap: 8px; }
.kf-drawer__search .kf-input { flex: 1; min-width: 0; font-size: 16px; }
.kf-drawer__search .kf-btn { width: 50px; padding: 0; flex: none; }
.kf-nav--drawer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.kf-nav--drawer li { margin: 0; }
.kf-nav--drawer a { display: flex; align-items: center; min-height: 52px; padding: 0 4px; font-size: 18px; font-weight: 600; color: #15201B; text-decoration: none; border-bottom: 1px solid #F0EDE5; }
.kf-nav--drawer a:hover, .kf-nav--drawer a:focus-visible { color: #0B5C43; }
.kf-drawer__actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.kf-drawer.is-open { animation: kf-drawer-in .3s cubic-bezier(.22,.8,.24,1); }
.kf-drawer-backdrop.is-open { animation: kf-fade-in .25s ease; }
@keyframes kf-drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes kf-fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.kf-drawer.is-open, .kf-drawer-backdrop.is-open { animation: none; }
	.kf-burger__bars span { transition: none; }
}

/* Phones & small tablets: hamburger instead of the full menu */
@media (max-width: 900px) {
	.kf-nav--desktop, .kf-header__actions--desktop { display: none !important; }
	.kf-header__mobile { display: flex; }
	.kf-header__row { flex-wrap: nowrap !important; padding-top: 10px; padding-bottom: 10px; }
	.kf-logo span { font-size: 20px; }
}
@media (max-width: 480px) {
	.kf-header__row { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
}
