/* ===================================================================
   THE KAF — Header + Footer (ported from Navigation/Footer modules)
   =================================================================== */

/* ===== HEADER ===== */
.tk-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 1000;
	padding: 1.25rem 0;
	transition: all var(--transition-base);
}
.tk-header.is-scrolled {
	padding: 0.75rem 0;
	background: var(--bg-glass);
	backdrop-filter: blur(20px) saturate(1.8);
	-webkit-backdrop-filter: blur(20px) saturate(1.8);
	border-bottom: 1px solid var(--border);
}
.tk-header__inner {
	max-width: var(--container-wide);
	margin: 0 auto;
	padding: 0 var(--container-padding);
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.tk-header__logo { z-index: 10; display: flex; align-items: center; }
.tk-header__logo-img {
	width: 120px; height: auto; object-fit: contain;
	transition: opacity var(--transition-fast), filter var(--transition-base);
}
.tk-header__logo-text {
	font-family: var(--font-heading);
	font-size: 1.25rem; letter-spacing: 0.15em; color: var(--bg-primary);
	transition: color var(--transition-base);
}
.tk-header.is-scrolled .tk-header__logo-img,
.tk-header--darktext .tk-header__logo-img {
	filter: brightness(0) saturate(100%) invert(18%) sepia(45%) saturate(5185%) hue-rotate(338deg) brightness(81%) contrast(98%);
}
.tk-header.is-scrolled .tk-header__logo-text,
.tk-header--darktext .tk-header__logo-text { color: var(--accent-gold); }
.tk-header__logo:hover .tk-header__logo-img { opacity: 0.8; }

/* Desktop nav (WP menu) */
.tk-nav__list { display: flex; align-items: center; gap: 2.5rem; }
.tk-nav__list li { position: relative; }
.tk-nav__list a {
	position: relative;
	font-family: var(--font-body);
	font-size: 0.8125rem; font-weight: 500;
	letter-spacing: 0.15em; text-transform: uppercase;
	color: var(--bg-primary);
	padding: 0.5rem 0; display: inline-block;
	transition: color var(--transition-fast);
}
.tk-header.is-scrolled .tk-nav__list a,
.tk-header--darktext .tk-nav__list a { color: var(--text-primary); }
.tk-nav__list a:hover,
.tk-nav__list .current-menu-item > a { color: var(--accent-gold); }
.tk-header.is-scrolled .tk-nav__list a:hover,
.tk-header--darktext .tk-nav__list a:hover { color: var(--accent-gold); }
.tk-nav__list a::after {
	content: ""; position: absolute; bottom: 0; left: 50%;
	width: 0; height: 2px; background: var(--accent-gold);
	transition: width var(--transition-fast), left var(--transition-fast);
}
.tk-nav__list a:hover::after,
.tk-nav__list .current-menu-item > a::after { width: 100%; left: 0; }

/* Hamburger */
.tk-hamburger {
	display: none; flex-direction: column; gap: 5px;
	width: 30px; z-index: 10; padding: 4px 0;
}
.tk-hamburger__line {
	display: block; width: 100%; height: 1.5px;
	background: var(--bg-primary);
	transition: all 0.3s var(--ease-out); transform-origin: center;
}
.tk-header.is-scrolled .tk-hamburger__line,
.tk-header--darktext .tk-hamburger__line,
.tk-hamburger.is-open .tk-hamburger__line { background: var(--text-primary); }
.tk-hamburger.is-open .tk-hamburger__line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.tk-hamburger.is-open .tk-hamburger__line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.tk-hamburger.is-open .tk-hamburger__line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.tk-mobile-backdrop {
	position: fixed; inset: 0; z-index: 998;
	background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
	opacity: 0; transition: opacity 0.3s var(--ease-out);
}
.tk-mobile-backdrop.is-open { opacity: 1; }
.tk-mobile-nav {
	position: fixed; top: 0; right: 0; bottom: 0;
	width: min(320px, 85vw); z-index: 999;
	background: var(--bg-secondary); border-left: 1px solid var(--border);
	display: flex; flex-direction: column; justify-content: space-between;
	padding: 6rem 2.5rem 2.5rem;
	transform: translateX(100%); transition: transform 0.35s var(--ease-out);
}
.tk-mobile-nav.is-open { transform: translateX(0); }
.tk-mobile-nav__list { display: flex; flex-direction: column; gap: 0.25rem; }
.tk-mobile-nav__list a {
	font-family: var(--font-heading); font-size: 1.75rem;
	color: var(--text-secondary); padding: 0.75rem 0; display: block;
	transition: color var(--transition-fast);
}
.tk-mobile-nav__list a:hover,
.tk-mobile-nav__list .current-menu-item > a { color: var(--accent-gold); }
.tk-mobile-nav__footer { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.tk-mobile-nav__footer p { font-size: 0.8125rem; color: var(--text-tertiary); line-height: 1.8; }

@media (max-width: 768px) {
	.tk-nav { display: none; }
	.tk-hamburger { display: flex; }
}

/* ===== FOOTER ===== */
.tk-footer {
	background-color: var(--accent-gold);
	color: var(--bg-primary);
	padding: 5rem 0 2rem;
	border-top: 1px solid rgba(250,240,228,0.1);
}
.tk-footer__inner { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--container-padding); }
.tk-footer__grid {
	display: grid; grid-template-columns: 2fr 1fr 1.5fr 1fr; gap: 3rem;
	padding-bottom: 3rem; border-bottom: 1px solid rgba(250,240,228,0.15);
}
.tk-footer__logo { display: inline-block; margin-bottom: 1rem; }
.tk-footer__logo img { width: 120px; height: auto; object-fit: contain; }
.tk-footer__logo-text { font-family: var(--font-heading); font-size: 1.5rem; letter-spacing: 0.15em; color: var(--bg-primary); }
.tk-footer__tagline { color: var(--bg-primary); font-size: 0.9375rem; margin-bottom: 2rem; max-width: 250px; opacity: 0.9; }
.tk-footer__social { display: flex; gap: 1rem; }
.tk-footer__social-link {
	display: flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border-radius: 50%;
	border: 1px solid rgba(250,240,228,0.2); color: var(--bg-primary);
	transition: all var(--transition-fast); opacity: 0.8;
}
.tk-footer__social-link:hover { background: var(--bg-primary); color: var(--accent-gold); opacity: 1; }
.tk-footer__col-title { font-family: var(--font-heading); font-size: 1.125rem; margin-bottom: 1.5rem; color: var(--bg-primary); }
.tk-footer__links a { display: block; color: var(--bg-primary); margin-bottom: 0.75rem; font-size: 0.9375rem; opacity: 0.8; transition: opacity var(--transition-fast); }
.tk-footer__links a:hover { opacity: 1; }
.tk-footer__contact-item { display: flex; gap: 0.75rem; margin-bottom: 1rem; font-size: 0.875rem; color: var(--bg-primary); opacity: 0.9; line-height: 1.6; }
.tk-footer__contact-item svg { flex-shrink: 0; margin-top: 3px; opacity: 0.7; }
.tk-footer__contact-item p, .tk-footer__contact-item a { color: inherit; }
.tk-footer__hours { font-size: 0.875rem; color: var(--bg-primary); margin-bottom: 0.25rem; opacity: 0.9; }
.tk-footer__hours-time { font-family: var(--font-heading); font-size: 1.25rem; color: var(--bg-primary); }
.tk-footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; }
.tk-footer__copyright { font-size: 0.75rem; color: var(--bg-primary); opacity: 0.6; }
.tk-footer__top {
	display: flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border-radius: 50%;
	background: rgba(250,240,228,0.1); color: var(--bg-primary);
	border: 1px solid rgba(250,240,228,0.2); transition: all var(--transition-fast);
}
.tk-footer__top:hover { background: var(--bg-primary); color: var(--accent-gold); }

@media (max-width: 1024px) { .tk-footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (max-width: 640px) { .tk-footer__grid { grid-template-columns: 1fr; gap: 2rem; } }
