/*
Theme Name:   Katunguru Health Centre III
Description:  Child theme of Twenty Twenty-Five for Katunguru Health Centre III, Kasese District. Blue, red and black, photo slider hero, sliding gallery, patient form and page designs for Home, About Us, Services, Gallery and Contact Us.
Author:       Allan
Template:     twentytwentyfive
Version:      1.0.0
Requires at least: 6.7
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  katunguru-child
*/

/* ==========================================================================
   Base
   ========================================================================== */
:root {
	--kh-gutter: clamp(1rem, 4vw, 2.25rem);
	--kh-section: clamp(3.25rem, 7vw, 6rem);
	--kh-radius: 14px;
	--kh-blue: var(--wp--preset--color--accent-1);
	--kh-red: var(--wp--preset--color--red);
	--kh-navy: var(--wp--preset--color--navy);
	--kh-ink: var(--wp--preset--color--contrast);
	--kh-shadow: 0 1px 2px rgba(16, 20, 26, .05), 0 16px 40px -24px rgba(8, 47, 99, .35);
}
body { -webkit-font-smoothing: antialiased; }
::selection { background: var(--kh-blue); color: #fff; }
a:focus-visible,
.wp-block-button__link:focus-visible,
button:focus-visible { outline: 3px solid var(--kh-red); outline-offset: 3px; border-radius: 6px; }
main.wp-block-group { margin-top: 0 !important; }
.wp-block-post-content > .alignfull:first-child { margin-top: 0; }
.wp-block-post-content > * + .alignfull,
.wp-block-post-content > .alignfull + * { margin-block-start: 0; }
.kh-muted { color: var(--wp--preset--color--accent-4); }

.kh-eyebrow {
	display: flex;
	align-items: center;
	gap: .55rem;
	margin-top: 0 !important;
	margin-bottom: .7rem !important;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--kh-red);
}
.kh-eyebrow::before { content: ""; width: 1.6rem; height: 3px; border-radius: 3px; background: var(--kh-red); }

/* Buttons */
.wp-block-button__link { transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--kh-blue);
	border: 2px solid currentColor;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--kh-blue); border-color: var(--kh-blue); color: #fff; }
.wp-block-button.kh-btn-light > .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .7); }
.wp-block-button.kh-btn-light > .wp-block-button__link:hover { background: #fff; color: var(--kh-navy); border-color: #fff; }

/* ==========================================================================
   Top strip and header
   ========================================================================== */
.kh-topbar { padding: 0 var(--kh-gutter); font-size: .85rem; }
.kh-topbar-inner { padding: .45rem 0; gap: .3rem 1.5rem; }
.kh-topbar p { margin: 0; }
.kh-topbar-note { opacity: .85; }
.kh-topbar-links { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; }
.kh-topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.kh-topbar a:hover { text-decoration: underline; color: #fff; }
@media (max-width: 781px) {
	.kh-topbar-note { display: none; }
	.kh-topbar-links { justify-content: center; width: 100%; font-size: .8rem; }
	.kh-topbar-links a:last-child { display: none; }
}

/* the whole header part (contact strip + header) stays at the top while scrolling */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }
/* no gaps between the header, the page and the footer */
.wp-site-blocks > * { margin-block-start: 0 !important; }
.wp-site-blocks > main, main.wp-block-group { padding-bottom: 0 !important; margin-bottom: 0 !important; }
.kh-header {
	position: relative;
	background: #fff;
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
	box-shadow: 0 6px 20px -16px rgba(8, 47, 99, .45);
	padding: 0 var(--kh-gutter);
}
.kh-header-inner { padding: .65rem 0; gap: 1.25rem; }
.kh-header-actions { gap: 1.4rem; flex: 0 0 auto; position: relative; z-index: 2; }

.kh-header-inner > .kh-brand { min-width: 0; flex: 1 1 auto; }
.kh-brand { gap: 0; position: relative; padding-left: 3.6rem; min-height: 3rem; justify-content: center; }
.kh-brand::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 3rem;
	height: 3rem;
	transform: translateY(-50%);
	background: url(assets/images/brand/icon.svg) center / contain no-repeat;
}
.kh-brand-name { margin: 0; font-family: var(--wp--preset--font-family--bricolage); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.05; white-space: nowrap; }
.kh-brand-name a { color: var(--kh-ink); text-decoration: none; }
.kh-brand-sub { margin: .2rem 0 0; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--kh-red); line-height: 1.1; }

.kh-nav { font-weight: 600; font-size: .96rem; }
.kh-nav .wp-block-navigation__container { gap: 1.5rem; }
.kh-nav .wp-block-navigation-item { white-space: nowrap; }
.kh-nav .wp-block-navigation-item__content { color: var(--kh-ink); text-decoration: none; padding: .3rem 0; position: relative; }
.kh-nav .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; border-radius: 3px; background: var(--kh-red); transform: scaleX(0); transition: transform .2s ease; }
.kh-nav .wp-block-navigation-item__content:hover { color: var(--kh-blue); }
.kh-nav .wp-block-navigation-item__content:hover::after,
.kh-nav .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.kh-header-cta .wp-block-button__link { padding: .65rem 1.1rem; font-size: .92rem; white-space: nowrap; }

/* Badge slot (shows once badge.png is in the Media Library) */
.kh-header-actions .wp-block-shortcode,
.kh-header-actions > p { margin: 0; display: contents; }
.kh-badge { display: inline-flex; align-items: center; flex: none; }
.kh-badge img { display: block; width: 52px; height: 52px; object-fit: contain; }

/* menu button below 1100px so the links never squeeze */
@media (min-width: 600px) and (max-width: 1100px) {
	.kh-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.kh-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 600px) {
	.kh-header .kh-header-cta { display: none !important; }
	.kh-header-actions { gap: .8rem; }
	.kh-brand { padding-left: 3rem; }
	.kh-brand::before { width: 2.5rem; height: 2.5rem; }
	.kh-brand-name { white-space: normal; font-size: 1.1rem; }
	.kh-brand-sub { font-size: .6rem; }
	.kh-badge img { width: 40px; height: 40px; }
}

/* Mobile menu: a compact panel from the top right */
.kh-nav .wp-block-navigation__responsive-container.is-menu-open {
	position: fixed;
	inset: calc(var(--wp-admin--admin-bar--height, 0px) + 10px) 10px auto auto !important;
	width: min(310px, calc(100vw - 20px));
	max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - 20px);
	padding: 0 !important;
	overflow-y: auto;
	border-radius: 16px;
	background: var(--kh-navy) !important;
	color: #fff !important;
	box-shadow: 0 0 0 100vmax rgba(8, 18, 34, .5), 0 24px 60px -12px rgba(0, 0, 0, .5);
}
.kh-nav .is-menu-open,
.kh-nav .is-menu-open * { box-sizing: border-box; }
.kh-nav .is-menu-open .wp-block-navigation__responsive-close { max-width: none; width: 100%; }
.kh-nav .is-menu-open .wp-block-navigation__responsive-dialog { margin: 0 !important; padding: 0 !important; }
.kh-nav .is-menu-open .wp-block-navigation__responsive-container-close {
	top: 14px !important;
	right: 14px !important;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--kh-red);
	color: #fff;
}
.kh-nav .is-menu-open .wp-block-navigation__responsive-container-close svg { width: 18px; height: 18px; fill: currentColor; }
.kh-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding: 3.4rem 1.3rem 1.2rem !important; align-items: stretch !important; gap: 0 !important; }
.kh-nav .is-menu-open .wp-block-navigation__container { width: 100%; align-items: stretch !important; gap: 0 !important; }
.kh-nav .is-menu-open .wp-block-navigation-item { width: 100%; }
.kh-nav .is-menu-open .wp-block-navigation-item__content {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: .75rem .1rem !important;
	border-bottom: 1px solid rgba(255, 255, 255, .14);
	font-size: 1.1rem !important;
	font-weight: 700;
	color: #fff !important;
	outline: none;
}
.kh-nav .is-menu-open .wp-block-navigation-item:last-child > .wp-block-navigation-item__content { border-bottom: 0; }
.kh-nav .is-menu-open .wp-block-navigation-item__content::after {
	content: "\203A";
	position: static;
	height: auto;
	transform: none;
	background: none;
	font-size: 1.4rem;
	line-height: 1;
	color: #FF6B70;
}
.kh-nav .is-menu-open .wp-block-navigation-item__content:hover,
.kh-nav .is-menu-open .wp-block-navigation-item__content:focus-visible { color: #9CC4F5 !important; }

/* ==========================================================================
   Hero slider
   ========================================================================== */
.kh-hero {
	position: relative;
	padding: clamp(5rem, 14vh, 9rem) var(--kh-gutter) clamp(3rem, 8vh, 5.5rem);
	min-height: min(78vh, 720px);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
}
.kh-hero > .kh-slides {
	position: absolute;
	inset: 0;
	z-index: 0;
	margin: 0 !important;
	max-width: none !important;
	overflow: hidden;
	background: var(--kh-navy);
}
.kh-slides > .wp-block-image { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.kh-slides > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 7s ease-out; }
.kh-slides:not(.is-ready) > .wp-block-image:first-child,
.kh-slides > .wp-block-image.is-active { opacity: 1; }
.kh-slides > .wp-block-image.is-active img { transform: scale(1.07); }
.kh-slides::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(8, 47, 99, .92) 0%, rgba(8, 47, 99, .7) 40%, rgba(8, 47, 99, .15) 75%),
		linear-gradient(0deg, rgba(12, 17, 23, .55) 0%, rgba(12, 17, 23, 0) 45%);
}
.kh-hero > :not(.kh-slides):not(.kh-slides-nav) { position: relative; z-index: 2; }
.kh-hero > .kh-slides + * { margin-top: 0; }
.kh-hero-copy { width: 100%; }
.kh-hero-kicker {
	display: inline-block;
	margin: 0 0 1rem;
	padding: .35rem .8rem;
	border-radius: 999px;
	background: var(--kh-red);
	color: #fff;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.kh-hero-title { margin: 0; max-width: 14ch; font-size: clamp(2.6rem, 6.4vw, 5rem) !important; line-height: 1.02; text-wrap: balance; }
.kh-hero-lead { margin: 1.2rem 0 0; max-width: 52ch; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: rgba(255, 255, 255, .9); }
.kh-hero-buttons { margin-top: 1.8rem !important; gap: .8rem; }

/* Slider controls (from slider.js) */
.kh-slides-nav {
	position: absolute;
	z-index: 3;
	right: max(var(--kh-gutter), calc((100% - var(--wp--style--global--wide-size)) / 2));
	top: 1.5rem;
	display: flex;
	align-items: center;
	gap: .35rem;
	margin: 0 !important;
}
.kh-dot, .kh-slides-toggle { appearance: none; border: 0; padding: 0; background: none; cursor: pointer; }
.kh-dot { width: 34px; height: 24px; position: relative; }
.kh-dot::before { content: ""; position: absolute; left: 4px; right: 4px; top: 10px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .45); }
.kh-dot[aria-current="true"]::before { background: var(--kh-red); }
.kh-slides-toggle { width: 28px; height: 28px; margin-left: .4rem; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .6); position: relative; }
.kh-slides-toggle::before, .kh-slides-toggle::after { content: ""; position: absolute; top: 8px; width: 3px; height: 9px; background: #fff; border-radius: 1px; }
.kh-slides-toggle::before { left: 9px; }
.kh-slides-toggle::after { left: 14px; }
.kh-slides-toggle.is-paused::before { left: 10px; top: 7px; width: 0; height: 0; background: none; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent #fff; }
.kh-slides-toggle.is-paused::after { display: none; }
@media (max-width: 781px) {
	.kh-hero { min-height: 0; padding-top: 4rem; padding-bottom: 4.5rem; }
	.kh-slides::after { background: rgba(8, 47, 99, .8); }
	.kh-slides-nav { top: 1rem; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.kh-section { padding: var(--kh-section) var(--kh-gutter); }
.kh-section-head { margin-bottom: 2rem; gap: 1rem 2rem; }
.kh-section-head h2 { margin: 0; }
.kh-page-head { padding: clamp(3.5rem, 8vw, 6rem) var(--kh-gutter) clamp(3rem, 6vw, 4.5rem); background-image: var(--kh-pattern); background-size: 44px; }
.kh-page-head > * { max-width: var(--wp--style--global--wide-size) !important; }
.kh-page-head .kh-eyebrow { color: #FF8A8E; }
.kh-page-head .kh-eyebrow::before { background: #FF8A8E; }
.kh-page-head h1 { margin: 0 0 .8rem; font-size: clamp(2.3rem, 5.5vw, 4rem) !important; text-wrap: balance; }
.kh-page-head p.has-large-font-size { margin: 0; max-width: 56ch; color: rgba(255, 255, 255, .85); }

/* quick action cards overlapping the hero */
.kh-quick { padding: 0 var(--kh-gutter); }
.kh-quick-grid { gap: 1rem; margin-top: -2.5rem !important; position: relative; z-index: 3; }
.kh-quick-card { padding: 1.5rem 1.5rem 1.4rem; border-radius: var(--kh-radius); color: #fff; box-shadow: var(--kh-shadow); }
.kh-quick-card h3 { margin: 0 0 .35rem; color: #fff; font-size: 1.3rem; }
.kh-quick-card p { margin: 0 0 .8rem; color: rgba(255, 255, 255, .88); }
.kh-quick-card .kh-quick-link { margin: 0; }
.kh-quick-card .kh-quick-link a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(255, 255, 255, .5); }
.kh-quick-card .kh-quick-link a::after { content: " \2192"; }
.kh-quick-blue { background: var(--kh-blue); }
.kh-quick-red { background: var(--kh-red); }
.kh-quick-dark { background: var(--kh-ink); }
@media (max-width: 781px) {
	.kh-quick-grid.is-layout-grid { grid-template-columns: 1fr; margin-top: -1.5rem !important; }
}

/* photos */
.kh-photo { margin: 0; overflow: hidden; border-radius: var(--kh-radius); }
.kh-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--wp--preset--color--accent-2); }
.kh-photo-framed { position: relative; overflow: visible; }
.kh-photo-framed img { border-radius: var(--kh-radius); position: relative; z-index: 1; }
.kh-photo-framed::before { content: ""; position: absolute; inset: 1.1rem -1.1rem -1.1rem 1.1rem; border-radius: var(--kh-radius); background: var(--kh-red); opacity: .9; }
@media (max-width: 781px) { .kh-photo-framed::before { inset: .6rem -.6rem -.6rem .6rem; } }
.kh-intro .wp-block-columns { gap: clamp(2rem, 6vw, 5rem); }
.kh-intro h2 { margin-top: 0; }

/* service cards */
.kh-cards { gap: 1.25rem; }
.kh-card { background: #fff; border-radius: var(--kh-radius); overflow: hidden; box-shadow: var(--kh-shadow); display: flex; flex-direction: column; border-top: 4px solid var(--kh-blue); transition: transform .25s ease, box-shadow .25s ease; }
.kh-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(16, 20, 26, .05), 0 24px 50px -24px rgba(8, 47, 99, .5); }
.kh-card:nth-child(even) { border-top-color: var(--kh-red); }
.kh-card-img { margin: 0 !important; }
.kh-card-img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--wp--preset--color--accent-2); }
.kh-card h3 { margin: 1.1rem 1.25rem .35rem; font-size: 1.15rem; }
.kh-card p { margin: 0 1.25rem; color: var(--wp--preset--color--accent-4); font-size: .97rem; }
.kh-card .kh-card-link { margin: auto 1.25rem 1.2rem; padding-top: .8rem; }
.kh-card .kh-card-link a { font-weight: 700; text-decoration: none; color: var(--kh-blue); }
.kh-card .kh-card-link a::after { content: " \2192"; }
@media (max-width: 1000px) { .kh-cards.is-layout-grid, .kh-values.is-layout-grid, .kh-contact-cards.is-layout-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .kh-cards.is-layout-grid, .kh-values.is-layout-grid, .kh-contact-cards.is-layout-grid, .kh-mvv.is-layout-grid { grid-template-columns: 1fr; } }

/* values / team */
.kh-values { gap: 1.25rem; }
.kh-value { padding: 1.4rem 1.4rem 1.3rem; border-radius: var(--kh-radius); background: #fff; border: 1px solid var(--wp--preset--color--accent-6); position: relative; }
.kh-value::before { content: ""; display: block; width: 44px; height: 44px; margin-bottom: 1rem; border-radius: 12px; background: var(--wp--preset--color--accent-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230B57B0' d='M10 4h4v6h6v4h-6v6h-4v-6H4v-4h6z'/%3E%3C/svg%3E") center / 22px no-repeat; }
.kh-value:nth-child(even)::before { background-color: #FCE8E9; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23D7262E' d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 5 6.5 5c2 0 3.5 1.1 5.5 3 2-1.9 3.5-3 5.5-3C21 5 23.1 8.4 21.6 11.8 19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E"); }
.kh-value h3 { margin: 0 0 .35rem; font-size: 1.12rem; }
.kh-value p { margin: 0; color: var(--wp--preset--color--accent-4); font-size: .97rem; }

/* mission, vision, values */
.kh-mvv { gap: 1.25rem; }
.kh-mvv-card { padding: 1.6rem; border-radius: var(--kh-radius); background: #fff; box-shadow: var(--kh-shadow); border-left: 5px solid var(--kh-blue); }
.kh-mvv-card:nth-child(2) { border-left-color: var(--kh-red); }
.kh-mvv-card:nth-child(3) { border-left-color: var(--kh-ink); }
.kh-mvv-card h3 { margin-top: 0; }
@media (max-width: 900px) { .kh-mvv.is-layout-grid { grid-template-columns: 1fr; } }

/* tick list */
.kh-ticks { list-style: none; padding: 0; margin: 0; }
.kh-ticks li { position: relative; padding: .5rem 0 .5rem 1.9rem; border-bottom: 1px solid var(--wp--preset--color--accent-6); }
.kh-ticks li:last-child { border-bottom: 0; }
.kh-ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .8rem;
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 50%;
	background: var(--kh-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* services page rows */
.kh-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem !important; }
.kh-chips a { padding: .4rem .85rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); color: #fff; text-decoration: none; font-size: .9rem; font-weight: 600; }
.kh-chips a:hover { background: var(--kh-red); border-color: var(--kh-red); color: #fff; }
.kh-rows .kh-row { gap: clamp(1.5rem, 5vw, 4.5rem); margin-bottom: clamp(2.5rem, 6vw, 4.5rem); scroll-margin-top: 110px; }
.kh-rows .kh-row:nth-of-type(even) { flex-direction: row-reverse; }
.kh-rows .kh-row h2 { margin-top: 0; font-size: var(--wp--preset--font-size--x-large) !important; }
@media (max-width: 781px) { .kh-rows .kh-row:nth-of-type(even) { flex-direction: column; } }

/* call to action band */
.kh-cta { background-image: var(--kh-pattern); background-size: 44px; }
.kh-cta-inner { gap: 1.5rem 2rem; }
.kh-cta h2 { margin: 0 0 .4rem; }
.kh-cta p { margin: 0; color: rgba(255, 255, 255, .88); }
.kh-cta .wp-block-buttons { gap: .8rem; }

/* contact page */
.kh-contact-cards-band { padding-bottom: 0; }
.kh-contact-cards { gap: 1rem; }
.kh-contact-card { padding: 1.4rem 1.4rem 1.2rem 4.6rem; border-radius: var(--kh-radius); background: #fff; box-shadow: var(--kh-shadow); position: relative; min-height: 6rem; }
.kh-contact-card::before { content: ""; position: absolute; left: 1.2rem; top: 1.3rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--kh-blue) center / 52% no-repeat; }
.kh-cc-call::before { background-color: var(--kh-red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.2 11.4 11.4 0 0 0 3.6.6 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.3.2 2.5.6 3.6a1 1 0 0 1-.3 1z'/%3E%3C/svg%3E"); }
.kh-cc-wa::before { background-color: #25D366; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Z'/%3E%3C/svg%3E"); }
.kh-cc-mail::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M3 5h18v14H3zm9 7 8-5H4z'/%3E%3C/svg%3E"); }
.kh-cc-map::before { background-color: var(--kh-ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.kh-contact-card h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.kh-contact-card p { margin: 0; word-break: break-word; }
.kh-contact-card a { font-weight: 700; text-decoration: none; }
.kh-form-band { scroll-margin-top: 90px; }
.kh-form-band > .wp-block-columns { gap: clamp(1.5rem, 4vw, 3.5rem); }
.kh-form-band h2 { margin-top: 0; }
.kh-alert { padding: 1rem 1.1rem; border-radius: 10px; background: #FCE8E9; border-left: 5px solid var(--kh-red); margin: 1.4rem 0 1rem; }
.kh-alert p { margin: 0; }
.kh-map { max-width: var(--wp--style--global--wide-size); margin: 0 auto; }
.kh-map iframe { display: block; width: 100%; height: 420px; border: 0; border-radius: var(--kh-radius); }

/* photo grid on the gallery page */
.kh-grid { gap: .8rem; }
.kh-grid figure { margin: 0 !important; overflow: hidden; border-radius: 12px; }
.kh-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--wp--preset--color--accent-2); transition: transform .5s ease; }
.kh-grid figure:hover img { transform: scale(1.05); }
@media (max-width: 900px) { .kh-grid.is-layout-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .kh-grid.is-layout-grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Sliding gallery (gallery.js)
   ========================================================================== */
.kh-reel-band { overflow: hidden; }
.kh-reel-band .kh-section-head { margin-bottom: 2rem; }
.kh-page-head + .kh-reel-band { padding-top: clamp(2rem, 4vw, 3rem); }
.kh-reel {
	--kh-reel-h: clamp(260px, 34vw, 420px);
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: max(var(--kh-gutter), calc((100% - var(--wp--style--global--wide-size)) / 2));
	padding: 0 max(var(--kh-gutter), calc((100% - var(--wp--style--global--wide-size)) / 2));
	margin: 0 !important;
	max-width: none !important;
	scrollbar-width: none;
}
.kh-reel::-webkit-scrollbar { display: none; }
.kh-reel:focus-visible { outline: 2px solid var(--kh-red); outline-offset: 6px; }
.kh-reel > figure {
	position: relative;
	flex: 0 0 auto;
	height: var(--kh-reel-h);
	aspect-ratio: 4 / 5;
	margin: 0 !important;
	scroll-snap-align: start;
	overflow: hidden;
	border-radius: var(--kh-radius);
	background: rgba(255, 255, 255, .06);
}
.kh-reel > figure:nth-child(3n + 2) { aspect-ratio: 5 / 4; }
.kh-reel-item img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .8s ease; }
.kh-reel-item:hover img { transform: scale(1.05); }
.kh-reel-item img:focus-visible { outline: 3px solid var(--kh-red); outline-offset: -3px; }
.kh-reel-item figcaption { position: absolute; z-index: 1; left: 1rem; right: 1rem; bottom: .8rem; margin: 0; font-weight: 700; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.kh-reel-controls { display: flex; align-items: center; gap: 1rem; max-width: var(--wp--style--global--wide-size); margin: 1.6rem auto 0 !important; }
.kh-reel-controls button { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background .2s ease; }
.kh-reel-controls button:hover { background: var(--kh-red); }
.kh-reel-controls svg { width: 20px; height: 20px; fill: currentColor; }
.kh-reel-progress { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.kh-reel-progress span { display: block; height: 100%; background: var(--kh-red); transition: transform .3s ease; }
@media (max-width: 781px) { .kh-reel-controls { padding: 0 var(--kh-gutter); } }

/* full-screen photo viewer */
.kh-lightbox-open, .kh-lightbox-open body { overflow: hidden; }
.kh-lightbox { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 4.5rem 4.5rem 3rem; background: rgba(8, 14, 24, .94); }
.kh-lightbox[hidden] { display: none; }
.kh-lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; max-height: 100%; }
.kh-lightbox img { max-width: 100%; max-height: calc(100vh - 10rem); object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.kh-lightbox figcaption { font-weight: 600; color: #fff; }
.kh-lightbox button { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.kh-lightbox button:hover { background: var(--kh-red); }
.kh-lightbox svg { width: 22px; height: 22px; fill: currentColor; }
.kh-lightbox-close { top: 1rem; right: 1rem; }
.kh-lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.kh-lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
	.kh-lightbox { padding: 4rem .75rem 5.5rem; }
	.kh-lightbox-prev, .kh-lightbox-next { top: auto; bottom: 1rem; transform: none; }
	.kh-lightbox-prev { left: calc(50% - 60px); }
	.kh-lightbox-next { right: calc(50% - 60px); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.kh-footer { padding: clamp(3.5rem, 7vw, 5rem) var(--kh-gutter) 2rem; margin-top: 0; border-top: 5px solid var(--kh-red); }
.kh-footer p { color: rgba(220, 227, 236, .78); }
.kh-footer a { color: #fff; text-decoration: none; }
.kh-footer a:hover { color: #9CC4F5; }
.kh-footer-logo { margin: 0 0 1rem; }
.kh-footer-logo img { display: block; height: auto; }
.kh-footer-title { font-family: var(--wp--preset--font-family--figtree) !important; font-size: .8rem !important; letter-spacing: .16em !important; text-transform: uppercase; color: #FF6B70 !important; margin: .4rem 0 .9rem; }
.kh-footer-links { list-style: none; padding: 0; margin: 0; }
.kh-footer-links li { margin-bottom: .4rem; }
.kh-footer-bottom { margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid rgba(220, 227, 236, .14); gap: .5rem 2rem; }
.kh-footer-bottom p { margin: 0; color: rgba(220, 227, 236, .6); }

/* ==========================================================================
   Floating WhatsApp button (icon only, so it never covers content)
   ========================================================================== */
.kh-whatsapp { position: fixed; right: 18px; bottom: 18px; z-index: 999; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; text-decoration: none; box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
.kh-whatsapp:hover, .kh-whatsapp:focus { color: #fff; background: #1EBE5B; }
.kh-whatsapp svg { width: 28px; height: 28px; fill: currentColor; }
.kh-whatsapp span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
	.kh-slides > .wp-block-image, .kh-slides > .wp-block-image img { transition: none; transform: none; }
	.kh-card, .kh-card:hover { transition: none; transform: none; }
}
