/* Kates Hero & Booking — front end
   Colours/font come from CSS variables printed by the plugin (:root). */

.khb,
.khb *,
.khb *::before,
.khb *::after,
.khb-btn { box-sizing: border-box; }

.khb {
	font-family: var(--khb-font, inherit);
	color: var(--khb-ink, #20251d);
	line-height: 1.4;
}

.khb button,
.khb input,
.khb select { font-family: inherit; letter-spacing: normal; text-transform: none; }

/* ------------------------------------------------------------------ buttons */

.khb-btn {
	display: inline-block;
	border: 1px solid transparent;
	border-radius: 0;
	padding: 16px 32px;
	font-family: var(--khb-font, inherit);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, border-color .2s, color .2s;
	box-shadow: none;
}
.khb-btn.khb-btn-gold { background: var(--khb-accent, #b8935a); color: #fff; }
.khb-btn.khb-btn-gold:hover,
.khb-btn.khb-btn-gold:focus-visible { background: var(--khb-accent-dark, #a17e48); color: #fff; }
.khb-btn.khb-btn-green { background: var(--khb-primary, #4a5640); color: #fff; }
.khb-btn.khb-btn-green:hover,
.khb-btn.khb-btn-green:focus-visible { background: var(--khb-primary-dark, #3a4433); color: #fff; }
.khb-btn.khb-btn-dark { background: var(--khb-ink, #20251d); color: #fff; }
.khb-btn.khb-btn-dark:hover { background: #000; color: #fff; }
.khb-btn.khb-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.khb-btn.khb-btn-ghost:hover,
.khb-btn.khb-btn-ghost:focus-visible { background: rgba(255, 255, 255, .08); border-color: #fff; color: #fff; }
.khb-btn:focus-visible,
.khb-submit:focus-visible,
.khb-m-submit:focus-visible { outline: 2px solid var(--khb-accent, #b8935a); outline-offset: 2px; }

/* --------------------------------------------------------------------- hero */

.khb.khb-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: var(--khb-h, 760px);
	margin-bottom: 56px; /* room for the filter bar that overlaps the bottom edge */
	background: #2e3529 center / cover no-repeat;
	color: #fff;
}
.khb.khb-hero.khb-nofilter { margin-bottom: 0; }
.khb.khb-hero.khb-full {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
.khb-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(22, 27, 19, .62) 0%, rgba(22, 27, 19, .25) 30%, rgba(22, 27, 19, .38) 60%, rgba(22, 27, 19, .82) 100%);
}
.khb-content {
	position: relative;
	z-index: 2;
	flex: 1;
	display: flex;
	align-items: center;
	padding: var(--khb-top, 100px) clamp(20px, 5vw, 72px) 70px;
}
.khb-copy { max-width: 680px; color: #fff; }
.khb-hero-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 22px;
	font-size: 11px;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: #e3cfa8;
}
.khb-hero-eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--khb-accent, #b8935a); }
.khb .khb-copy .khb-title {
	margin: 0 0 20px;
	padding: 0;
	font-family: var(--khb-font, inherit);
	font-size: clamp(34px, 4.4vw, 58px);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -.025em;
	text-transform: none;
	color: #fff;
	text-wrap: balance;
}
.khb .khb-copy .khb-title em { font-style: normal; color: #e3cfa8; }
.khb .khb-copy .khb-lead {
	max-width: 520px;
	margin: 0 0 32px;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.65;
	color: rgba(255, 255, 255, .88);
}
.khb-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ------------------------------------------------------------------- filter */

.khb-filter-wrap {
	position: relative;
	z-index: 4;
	margin-bottom: -56px;
	padding: 0 clamp(16px, 5vw, 72px);
}
.khb-filter-wrap--solo { margin-bottom: 0; padding: 0; }

.khb .khb-filter {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0;
	background: #fff;
	box-shadow: 0 30px 60px -20px rgba(25, 30, 20, .35);
}
.khb .khb-field {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 170px;
	min-width: 0;
	margin: 0;
	padding: 18px 22px;
	border-right: 1px solid #ece6da;
	cursor: pointer;
	color: var(--khb-ink, #20251d);
}
.khb .khb-field--guests { border-right: 0; }
.khb .khb-field > span {
	font-size: 10px;
	font-weight: 400;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #8a8577;
}
.khb .khb-field input,
.khb .khb-field select,
.khb .khb-guest-val {
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--khb-ink, #20251d);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.khb .khb-field select {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%234a5640' stroke-width='1.6'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") right center / 10px no-repeat;
	padding-right: 18px;
}
.khb .khb-field:focus-within { box-shadow: inset 0 -2px 0 var(--khb-primary, #4a5640); }
.khb .khb-guest-val {
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-align: left;
	white-space: nowrap;
}
.khb .khb-guest-val em { font-style: normal; }
.khb .khb-guest-val i { font-style: normal; font-size: 16px; color: var(--khb-primary, #4a5640); }

.khb .khb-submit {
	flex: 1 1 200px;
	min-height: 72px;
	margin: 0;
	padding: 22px 28px;
	border: 0;
	border-radius: 0;
	background: var(--khb-primary, #4a5640);
	box-shadow: none;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #fff;
	cursor: pointer;
	transition: background .2s;
}
.khb .khb-submit:hover { background: var(--khb-primary-dark, #3a4433); color: #fff; }

.khb .khb-pop {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 6;
	display: none;
	width: 300px;
	max-width: calc(100vw - 32px);
	padding: 8px 22px;
	background: #fff;
	box-shadow: 0 24px 50px -16px rgba(25, 30, 20, .4);
	cursor: default;
}
.khb .khb-pop.is-open { display: block; animation: khb-fade .18s ease; }

.khb .khb-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.khb .khb-row + .khb-row { border-top: 1px solid #ece6da; }
.khb .khb-row b { display: block; font-size: 15px; font-weight: 500; color: var(--khb-ink, #20251d); }
.khb .khb-row small { display: block; font-size: 12px; color: #8a8577; }
.khb .khb-step { display: flex; align-items: center; gap: 14px; }
.khb .khb-step button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 1px solid #d9d1c1;
	border-radius: 50%;
	background: #fff;
	box-shadow: none;
	font-size: 16px;
	line-height: 1;
	color: var(--khb-primary, #4a5640);
	cursor: pointer;
	transition: border-color .15s, opacity .15s;
}
.khb .khb-step button:hover:not(:disabled) { border-color: var(--khb-primary, #4a5640); background: #fff; color: var(--khb-primary, #4a5640); }
.khb .khb-step button:disabled { opacity: .35; cursor: not-allowed; }
.khb .khb-step output { min-width: 16px; text-align: center; font-size: 15px; }

.khb .khb-error {
	flex: 1 0 100%;
	margin: 0;
	padding: 10px 22px;
	background: #fbeceb;
	font-size: 13px;
	color: #b3261e;
}
.khb .khb-error[hidden] { display: none; }

.khb input[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }

@media (max-width: 640px) {
	.khb .khb-field { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid #ece6da; padding: 14px 18px; }
	.khb .khb-field--guests { border-bottom: 0; }
	.khb .khb-pop { left: 0; right: 0; width: auto; }
	.khb .khb-submit { flex-basis: 100%; min-height: 60px; }
	.khb-actions .khb-btn { flex: 1 1 100%; text-align: center; }
}

/* ------------------------------------------------------------------- inline link */

.khb-link { cursor: pointer; }

/* -------------------------------------------------------------------- popup */

body.khb-lock { overflow: hidden; }

.khb.khb-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	overflow-y: auto;
	background: rgba(20, 24, 17, .62);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.khb.khb-overlay.is-open { display: flex; animation: khb-fade .25s ease; }

.khb .khb-modal {
	position: relative;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	width: 100%;
	max-width: 940px;
	max-height: calc(100vh - 40px);
	margin: auto;
	overflow-y: auto;
	background: #fff;
	box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .5);
	animation: khb-rise .35s cubic-bezier(.2, .8, .2, 1);
	outline: 0;
}
.khb .khb-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 1px solid #e3ddd0;
	border-radius: 50%;
	background: #fff;
	box-shadow: none;
	font-size: 20px;
	line-height: 1;
	color: var(--khb-ink, #20251d);
	cursor: pointer;
}
.khb .khb-close:hover { background: #f6f3ec; color: var(--khb-ink, #20251d); }

.khb .khb-side {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 300px;
	background: #2e3529 center / cover no-repeat;
	color: #fff;
}
.khb .khb-side::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(22, 27, 19, .1) 30%, rgba(22, 27, 19, .88) 100%);
}
.khb .khb-side-in { position: relative; padding: 34px; }
.khb .khb-m-eyebrow {
	margin-bottom: 10px;
	font-size: 11px;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: #e3cfa8;
}
.khb .khb-m-eyebrow--gold { color: var(--khb-accent, #b8935a); }
.khb .khb-side h4 {
	margin: 0 0 16px;
	padding: 0;
	font-family: var(--khb-font, inherit);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -.02em;
	text-transform: none;
	color: #fff;
}
.khb .khb-side p { margin: 0 0 8px; font-size: 14px; font-weight: 300; color: rgba(255, 255, 255, .88); }
.khb .khb-side hr { height: 1px; margin: 22px 0 16px; border: 0; background: rgba(255, 255, 255, .2); }
.khb .khb-side ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: rgba(255, 255, 255, .8); }
.khb .khb-side li { margin: 0; padding: 0; list-style: none; }

.khb .khb-m-main { padding: 44px 38px 38px; }
.khb .khb-m-main h3 {
	margin: 0 0 6px;
	padding: 0;
	font-family: var(--khb-font, inherit);
	font-size: 26px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -.02em;
	text-transform: none;
	color: var(--khb-ink, #20251d);
}
.khb .khb-m-sub { margin: 0 0 28px; font-size: 14px; font-weight: 300; color: #6d695e; }
.khb .khb-m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.khb .khb-m-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid #e3ddd0;
	cursor: pointer;
}
.khb .khb-m-field:focus-within { border-color: var(--khb-primary, #4a5640); }
.khb .khb-m-label { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #8a8577; }
.khb .khb-m-field input,
.khb .khb-m-field select {
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	font-size: 15px;
	line-height: 1.4;
	color: var(--khb-ink, #20251d);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.khb .khb-m-field select {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%234a5640' stroke-width='1.6'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") right center / 10px no-repeat;
	padding-right: 18px;
}
.khb .khb-m-guests { margin: 14px 0 26px; padding: 4px 16px; border: 1px solid #e3ddd0; }
.khb .khb-m-guests .khb-row { padding: 12px 0; }
.khb .khb-m-guests .khb-row + .khb-row { border-top-color: #f0ebe1; }
.khb .khb-m-guests .khb-row b { font-size: 10px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: #8a8577; }
.khb .khb-m-guests .khb-row small { color: #a19c8f; }
.khb .khb-error--m { margin: 0 0 14px; padding: 10px 14px; }

.khb .khb-m-submit,
.khb .khb-m-btn {
	display: block;
	width: 100%;
	margin: 0;
	padding: 18px;
	border: 1px solid var(--khb-primary, #4a5640);
	border-radius: 0;
	background: var(--khb-primary, #4a5640);
	box-shadow: none;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	color: #fff;
	cursor: pointer;
	transition: background .2s, border-color .2s;
}
.khb .khb-m-submit:hover,
.khb .khb-m-btn:hover { background: var(--khb-primary-dark, #3a4433); border-color: var(--khb-primary-dark, #3a4433); color: #fff; }
.khb .khb-m-btn { width: auto; padding: 16px 28px; }
.khb .khb-m-btn.khb-m-btn--outline { background: transparent; border-color: #d9d1c1; color: var(--khb-ink, #20251d); }
.khb .khb-m-btn.khb-m-btn--outline:hover { background: transparent; border-color: var(--khb-ink, #20251d); color: var(--khb-ink, #20251d); }
.khb .khb-m-note { margin: 14px 0 0; font-size: 12px; text-align: center; color: #8a8577; }

.khb .khb-m-done { display: none; flex-direction: column; justify-content: center; gap: 14px; min-height: 420px; }
.khb .khb-m-done p { margin: 0; font-size: 15px; font-weight: 300; line-height: 1.6; color: #6d695e; }
.khb .khb-m-check {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #eef0e9;
	font-size: 24px;
	color: var(--khb-primary, #4a5640);
}
.khb .khb-m-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.khb .khb-m-main.is-done .khb-m-form { display: none; }
.khb .khb-m-main.is-done .khb-m-done { display: flex; }

@media (max-width: 640px) {
	.khb .khb-m-main { padding: 56px 22px 26px; }
	.khb .khb-side { min-height: 220px; }
	.khb .khb-side-in { padding: 24px 22px; }
	.khb .khb-m-grid { grid-template-columns: 1fr; }
}

@keyframes khb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes khb-rise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.khb *, .khb.khb-overlay { animation: none !important; transition: none !important; }
}
