/**
 * Katenju tour polish: colour harmony, nav, footer, optional parallax.
 * Scope: body.katenju-home (full), body.katenju-services (shared + services-only blocks).
 */
@import url("katenju-info-strip.css");
@import url("katenju-membership.css");

body.katenju-home .katenju-skip,
body.katenju-services .katenju-skip {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	z-index: 100000;
}

body.katenju-home .katenju-skip:focus,
body.katenju-services .katenju-skip:focus {
	position: fixed;
	left: 12px;
	top: 12px;
	width: auto;
	height: auto;
	padding: 10px 16px;
	background: #1b4332;
	color: #ecfdf5;
	font-weight: 700;
	font-size: 14px;
	border-radius: 8px;
	text-decoration: none;
	outline: 2px solid #52b788;
	outline-offset: 2px;
	overflow: visible;
}

/* --- Section anchors: clear sticky header --- */
body.katenju-home #book-enquiry,
body.katenju-home #katenju-services,
body.katenju-home #katenju-why {
	scroll-margin-top: 100px;
}

body.katenju-services #book-enquiry {
	scroll-margin-top: 100px;
}

/* --- Headings: replace theme navy with forest --- */
body.katenju-home .sec-title:not(.light) h2,
body.katenju-services .sec-title:not(.light) h2 {
	color: #1b4332 !important;
}

body.katenju-home .sec-title:not(.light) .text,
body.katenju-services .sec-title:not(.light) .text {
	color: #4a5f56;
}

/* --- Sticky bar: match brand, lose cool grey border --- */
body.katenju-home .sticky-header,
body.katenju-services .sticky-header {
	border-bottom: 1px solid rgba(27, 67, 50, 0.12) !important;
	box-shadow: 0 8px 28px rgba(15, 35, 26, 0.08);
}

body.katenju-home.fixed-header .sticky-header .main-menu .navigation > li > a,
body.katenju-services.fixed-header .sticky-header .main-menu .navigation > li > a {
	color: #1b4332 !important;
}

body.katenju-home.fixed-header .sticky-header .main-menu .navigation > li:hover > a,
body.katenju-home.fixed-header .sticky-header .main-menu .navigation > li.current > a,
body.katenju-services.fixed-header .sticky-header .main-menu .navigation > li:hover > a,
body.katenju-services.fixed-header .sticky-header .main-menu .navigation > li.current > a {
	color: #2d6a4f !important;
}

body.katenju-home.fixed-header .sticky-header .search-box-btn,
body.katenju-home.fixed-header .sticky-header .nav-btn.navSidebar-button,
body.katenju-services.fixed-header .sticky-header .search-box-btn,
body.katenju-services.fixed-header .sticky-header .nav-btn.navSidebar-button {
	color: #1b4332 !important;
}

/* --- E‑commerce cart hidden (tour pages) --- */
body.katenju-home .main-header .cart-box,
body.katenju-services .main-header .cart-box {
	display: none !important;
}

/* --- Dropdown polish --- */
body.katenju-home .main-menu .navigation > li > ul,
body.katenju-services .main-menu .navigation > li > ul {
	border-radius: 12px;
	border: 1px solid rgba(27, 67, 50, 0.12);
	box-shadow: 0 18px 48px rgba(15, 26, 22, 0.18);
	padding: 8px 0;
	min-width: 220px;
	overflow: hidden;
}

body.katenju-home .main-menu .navigation > li > ul > li > a,
body.katenju-services .main-menu .navigation > li > ul > li > a {
	padding: 10px 18px;
	border-radius: 0;
	transition: background 0.2s ease, color 0.2s ease;
}

body.katenju-home .main-menu .navigation > li > ul > li:hover > a,
body.katenju-services .main-menu .navigation > li > ul > li:hover > a {
	background: rgba(45, 106, 79, 0.1);
	color: #14532d !important;
}

/* --- Hero: parallax-ready background layer (home only) --- */
body.katenju-home .katenju-hero-slide {
	background-image: none !important;
}

body.katenju-home .katenju-hero-slide__bg {
	position: absolute;
	/* vertical bleed only; horizontal inset caused adjacent Owl slides to show at the right edge */
	inset: -12% 0 -10% 0;
	z-index: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	transform: translate3d(0, 0, 0) scale(1.04);
	will-change: transform;
	pointer-events: none;
}

body.katenju-home .katenju-hero-slide__bg--plain {
	background-image: linear-gradient(
		135deg,
		#0f2e22 0%,
		#1b4332 42%,
		#2d6a4f 100%
	) !important;
	transform: none;
	will-change: auto;
}

body.katenju-home .katenju-hero-slide::before {
	z-index: 1;
}

body.katenju-home .katenju-hero-slide::after {
	z-index: 1;
}

body.katenju-home .katenju-hero-slide .katenju-hero-inner {
	z-index: 2;
}

/* --- Hero carousel controls (home only) --- */
body.katenju-home .katenju-hero-slider .owl-nav button.owl-prev,
body.katenju-home .katenju-hero-slider .owl-nav button.owl-next {
	border-radius: 999px !important;
	width: 48px !important;
	height: 48px !important;
	line-height: 46px !important;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

/* --- Scenic parallax band (home + services) --- */
body.katenju-home .katenju-scenic-parallax,
body.katenju-services .katenju-scenic-parallax {
	position: relative;
	min-height: min(38vh, 360px);
	overflow: hidden;
	isolation: isolate;
}

body.katenju-home .katenju-scenic-parallax__media,
body.katenju-services .katenju-scenic-parallax__media {
	position: absolute;
	inset: -25% 0 -25% 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	transform: translate3d(0, 0, 0) scale(1.08);
	will-change: transform;
	z-index: 0;
}

body.katenju-home .katenju-scenic-parallax::after,
body.katenju-services .katenju-scenic-parallax::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(
			180deg,
			rgba(8, 26, 18, 0.72) 0%,
			rgba(8, 26, 18, 0.58) 42%,
			rgba(8, 26, 18, 0.72) 100%
		),
		radial-gradient(
			ellipse 85% 70% at 50% 50%,
			rgba(6, 20, 14, 0.35) 0%,
			rgba(6, 20, 14, 0.82) 100%
		);
	pointer-events: none;
}

body.katenju-home .katenju-scenic-parallax__caption,
body.katenju-services .katenju-scenic-parallax__caption {
	position: relative;
	z-index: 2;
	min-height: min(38vh, 360px);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 48px 20px;
}

body.katenju-home .katenju-scenic-parallax__caption p,
body.katenju-services .katenju-scenic-parallax__caption p {
	margin: 0;
	max-width: 36rem;
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	font-size: clamp(1.05rem, 2.5vw, 1.32rem);
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.82);
	text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}

/* --- Welcome strip (home only) --- */
body.katenju-home .katenju-welcome-strip {
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

/* --- Why cards (home only) --- */
body.katenju-home .katenju-why-card {
	box-shadow: 0 12px 32px rgba(15, 42, 32, 0.12);
}

body.katenju-home .katenju-why-card__body--tan {
	background: linear-gradient(180deg, #2f5d4a 0%, #285445 100%);
}

/* --- Home service tiles (home only) --- */
body.katenju-home .katenju-service-card-photo img {
	transition: transform 0.45s ease;
}

body.katenju-home .katenju-service-card:hover .katenju-service-card-photo img,
body.katenju-home .katenju-service-card:focus-visible .katenju-service-card-photo img {
	transform: scale(1.05);
}

body.katenju-home .katenju-service-card:focus-visible {
	outline: 2px solid #2d6a4f;
	outline-offset: 3px;
}

/* --- Services page: card image hover (news-block-three) --- */
body.katenju-services .services-page-section .news-block-three .inner-box .image img {
	transition: transform 0.45s ease;
}

body.katenju-services .services-page-section .news-block-three .inner-box:hover .image img,
body.katenju-services .services-page-section .news-block-three .inner-box:focus-within .image img {
	transform: scale(1.04);
}

body.katenju-services .services-page-section .news-block-three .inner-box:focus-within {
	outline: 2px solid #2d6a4f;
	outline-offset: 2px;
	border-radius: 4px;
}

/* --- Footer: deep forest instead of theme navy --- */
body.katenju-home .main-footer.style-two,
body.katenju-services .main-footer.style-two {
	background-color: #0c1f18 !important;
	background-image: linear-gradient(165deg, #102921 0%, #0b1814 55%, #081210 100%) !important;
}

body.katenju-home .main-footer.style-two .footer-bottom,
body.katenju-services .main-footer.style-two .footer-bottom {
	border-top-color: rgba(255, 255, 255, 0.08);
}

/* --- Scroll to top: align with brand --- */
body.katenju-home .scroll-to-top,
body.katenju-services .scroll-to-top {
	background-color: #2d6a4f;
}

/* Top bar (safari strip): compact logo_icon beside “Planning a safari…” */
body.katenju-home .header-top-two .katenju-topbar-photo {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

body.katenju-home .header-top-two .katenju-topbar-photo img,
body.katenju-home .header-top-two .katenju-topbar-logo {
	width: 48px;
	height: 48px;
	max-width: 48px;
	max-height: 48px;
	object-fit: contain;
	object-position: center;
	display: block;
}

/* Header: logo.png scales to max 180×60 (contain) so the bar height stays stable */
body.katenju-home .main-header.header-style-two .header-upper .logo-box .logo img,
body.katenju-home .main-header.header-style-two .sticky-header .logo img {
	max-width: min(180px, 34vw);
	max-height: 60px;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: left center;
	display: block;
}

body.katenju-home .main-header.header-style-two .sticky-header .logo img {
	max-height: 48px;
	max-width: min(160px, 40vw);
}

body.katenju-services .main-header .header-upper .logo-box .logo img,
body.katenju-services .main-header .sticky-header .logo img {
	max-width: min(180px, 34vw);
	max-height: 60px;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: left center;
	display: block;
}

body.katenju-services .main-header .sticky-header .logo img {
	max-height: 48px;
	max-width: min(160px, 40vw);
}

/* Footer: logo_icon (compact mark on dark footer) */
body.katenju-home .main-footer.style-two .footer-widget.logo-widget .logo img,
body.katenju-services .main-footer.style-two .footer-widget.logo-widget .logo img {
	max-width: min(88px, 28vw);
	max-height: 72px;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: left center;
	display: block;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
	body.katenju-home .katenju-hero-slide__bg,
	body.katenju-home .katenju-scenic-parallax__media,
	body.katenju-services .katenju-scenic-parallax__media {
		transform: none !important;
		will-change: auto;
	}

	body.katenju-home .katenju-service-card-photo img,
	body.katenju-services .services-page-section .news-block-three .inner-box .image img {
		transition: none;
	}
}

/* --- Home & Services: theme buttons (info strip: katenju-info-strip.css) --- */
body.katenju-home .theme-btn.btn-style-one:before,
body.katenju-services .theme-btn.btn-style-one:before {
	background-color: #0a1f14 !important;
}

body.katenju-home .theme-btn.btn-style-one:hover,
body.katenju-services .theme-btn.btn-style-one:hover {
	border-color: #14532d !important;
	color: #ffffff !important;
}

body.katenju-home .theme-btn.btn-style-two,
body.katenju-services .theme-btn.btn-style-two {
	background-color: #1b4332 !important;
	color: #ffffff !important;
}

body.katenju-home .theme-btn.btn-style-two:before,
body.katenju-services .theme-btn.btn-style-two:before {
	background-color: #ecfdf5 !important;
}

body.katenju-home .theme-btn.btn-style-two:hover,
body.katenju-services .theme-btn.btn-style-two:hover {
	color: #0f2918 !important;
	border-color: rgba(236, 253, 245, 0.35) !important;
}

body.katenju-home .theme-btn.btn-style-two:hover .txt,
body.katenju-services .theme-btn.btn-style-two:hover .txt {
	color: #0f2918 !important;
}
