/*
* Contact page (template-contact.php)
*
* Sections
*   1. Shell and intro
*   2. Quick actions
*   3. Form
*   4. Details card
*   5. Map
*   6. Closing call to action
*   7. Small screens
*/

/* ---------------------------------------------------------------------------
* 1. Shell and intro
* ------------------------------------------------------------------------- */

.hkc-page {
	--hkc-accent: var(--primary-color, #c9962c);
	--hkc-green: var(--secondary-color, #53624e);
	--hkc-ink: #1a1b1a;
	--hkc-muted: #6f736a;
	--hkc-line: #e4e1da;
	--hkc-soft: #f7f6f3;
	--hkc-radius: 8px;
	--hkc-sticky-top: 92px;
}

.hkc-page .hkc-main {
	padding-bottom: 0;
}

.hkc-wrap {
	width: 100%;
	max-width: 1360px;
	margin: 0 auto;
	padding: 0 40px;
}

.hkc-top {
	padding-top: 12px;
}

/* ---------------------------------------------------------------------------
* 1b. Hero
*
* The site header overlaps the top of the document, so the band carries its
* own top padding rather than leaving the heading under the menu.
* ------------------------------------------------------------------------- */

.hkc-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 440px;
	padding: calc(var(--hk-header-h, 156px) + var(--hk-hero-gap, 72px)) 24px 74px;
	overflow: hidden;
	background-color: var(--hkc-green);
	color: #fff;
	text-align: center;
}

.hkc-hero-bg,
.hkc-hero .hkc-hero-media {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: block;
	border-radius: 0;
}

.hkc-hero-bg {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

/* Keeps the heading readable over a photograph. */
.hkc-hero-photo:after {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(180deg, rgba(14, 13, 10, 0.62) 0%, rgba(14, 13, 10, 0.42) 55%, rgba(14, 13, 10, 0.6) 100%);
	content: "";
}

/*
* The watermark sits low and to the side: centred it competed with the title,
* which is the one thing on the band that has to be read.
*/
.hkc-hero .hkc-hero-media .hkb-media-inner {
	align-items: flex-end;
	justify-content: flex-end;
	padding: 0 4% 5%;
}

.hkc-hero .hkc-hero-media .hkb-media-logo {
	height: auto;
	width: 260px;
	max-width: 38%;
	max-height: 110px;
	opacity: 0.12;
}

/* The block's decorative corner copy is half the width of the card it was
* drawn for; across a full width band it reads as stray letters. */
.hkc-hero .hkc-hero-media:after {
	display: none;
}

.hkc-hero-inner {
	position: relative;
	z-index: 2;
	max-width: 860px;
}

.hkc-hero .hkc-eyebrow {
	color: #fff;
	opacity: 0.72;
}

.hkc-title {
	margin: 0 0 18px;
	color: #fff;
	font-family: var(--heading-font, inherit);
	font-size: 58px;
	line-height: 1.1;
}

.hkc-hero-lead {
	margin: 0 auto;
	max-width: 680px;
	color: rgba(255, 255, 255, 0.86);
	font-size: 17px;
	line-height: 1.7;
}

/* The action cards step over the foot of the hero. The hero is positioned, so
* the cards need a position of their own to paint above it. */
.hkc-has-hero .hkc-top {
	padding-top: 0;
}

.hkc-has-hero .hkc-intro {
	position: relative;
	z-index: 3;
	margin-top: -44px;
	margin-bottom: 52px;
}

.hkc-intro {
	max-width: 780px;
	margin: 0 auto 44px;
	text-align: center;
}

.hkc-lead {
	margin: 0 0 26px;
	color: var(--hkc-muted);
	font-size: 17px;
	line-height: 1.7;
}

.hkc-eyebrow {
	margin: 0 0 12px;
	color: var(--hkc-accent);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2em;
	line-height: 1;
	text-transform: uppercase;
}

/* ---------------------------------------------------------------------------
* 2. Quick actions
* ------------------------------------------------------------------------- */

.hkc-quick {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	text-align: left;
}

.hkc-quick-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--hkc-line);
	border-radius: var(--hkc-radius);
	color: var(--hkc-ink);
	text-decoration: none;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.hkc-quick-item:hover {
	border-color: var(--hkc-accent);
	box-shadow: 0 10px 26px rgba(26, 27, 26, 0.08);
	-webkit-transform: translateY(-2px);
	transform: translateY(-2px);
}

.hkc-quick-icon {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--hkc-soft);
	border-radius: 50%;
	color: var(--hkc-green);
}

.hkc-quick-icon .hkh-icon {
	display: block;
	width: 17px;
	height: 17px;
}

.hkc-quick-whatsapp .hkc-quick-icon {
	background: rgba(37, 211, 102, 0.14);
	color: #1fa855;
}

.hkc-quick-body {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 3px;
}

.hkc-quick-label {
	color: var(--hkc-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1;
	text-transform: uppercase;
}

.hkc-quick-value {
	overflow: hidden;
	color: var(--hkc-ink);
	font-size: 15px;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------------------------------------------------------------------------
* 3. Form
* ------------------------------------------------------------------------- */

.hkc-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 40px;
	align-items: start;
}

.hkc-form {
	padding: 34px 34px 28px;
	background: #fff;
	border: 1px solid var(--hkc-line);
	border-radius: var(--hkc-radius);
	box-shadow: 0 18px 50px rgba(26, 27, 26, 0.06);
}

.hkc-form-head {
	margin-bottom: 22px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--hkc-line);
}

.hkc-form-title {
	margin: 0 0 10px;
	font-family: var(--heading-font, inherit);
	font-size: 30px;
	line-height: 1.2;
}

.hkc-form-text {
	margin: 0;
	max-width: 56ch;
	color: var(--hkc-muted);
	font-size: 15px;
	line-height: 1.65;
}

/* The embedded form brings its own frame; the card is the frame here. */
.hkc-form-body .cs-iframe-form-window {
	border-radius: 4px;
}

.hkc-form-note {
	margin: 16px 0 0;
	color: var(--hkc-muted);
	font-size: 13px;
	line-height: 1.6;
}

/* ---------------------------------------------------------------------------
* 4. Details card
* ------------------------------------------------------------------------- */

.hkc-details {
	position: -webkit-sticky;
	position: sticky;
	top: var(--hkc-sticky-top);
}

.hkc-card {
	padding: 30px 28px;
	background: var(--hkc-green);
	border-radius: var(--hkc-radius);
	color: #fff;
}

.hkc-card .hkc-eyebrow {
	margin-bottom: 20px;
	color: var(--hkc-accent);
}

.hkc-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hkc-list-item {
	display: flex;
	gap: 14px;
	padding: 16px 0;
	margin: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hkc-list-item:first-child {
	padding-top: 0;
	border-top: 0;
}

.hkc-list-icon {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	color: var(--hkc-accent);
}

.hkc-list-icon .hkh-icon {
	display: block;
	width: 16px;
	height: 16px;
}

.hkc-list-body {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 4px;
	padding-top: 2px;
}

.hkc-list-label {
	color: rgba(255, 255, 255, 0.6);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1;
	text-transform: uppercase;
}

.hkc-list-value {
	color: #fff;
	font-size: 15.5px;
	line-height: 1.5;
	text-decoration: none;
	transition: color 0.2s ease;
}

a.hkc-list-value:hover {
	color: var(--hkc-accent);
}

.hkc-list-value-alt {
	font-size: 14.5px;
	opacity: 0.85;
}

.hkc-list-link {
	align-self: flex-start;
	margin-top: 4px;
	color: var(--hkc-accent);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	transition: opacity 0.2s ease;
}

.hkc-list-link:hover {
	opacity: 0.75;
}

.hkc-social {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hkc-social-list {
	display: flex;
	gap: 8px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.hkc-social-list li {
	margin: 0;
}

.hkc-social-list a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	color: #fff;
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

.hkc-social-list a:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: var(--hkc-accent);
}

.hkc-social-list .hkh-icon {
	display: block;
	width: 15px;
	height: 15px;
}

/* Page content written in the editor, if there is any. */
.hkc-content {
	max-width: 780px;
	margin: 56px auto 0;
}

/* ---------------------------------------------------------------------------
* 5. Map
* ------------------------------------------------------------------------- */

.hkc-map {
	position: relative;
	margin-top: 72px;
	min-height: 420px;
	background-color: #e9e7e1;
	background-image:
		linear-gradient(115deg, rgba(83, 98, 78, 0.14) 0%, rgba(83, 98, 78, 0) 60%),
		repeating-linear-gradient(45deg, rgba(26, 27, 26, 0.045) 0 2px, rgba(26, 27, 26, 0) 2px 22px),
		repeating-linear-gradient(-45deg, rgba(26, 27, 26, 0.045) 0 2px, rgba(26, 27, 26, 0) 2px 22px);
}

.hkc-map-facade {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 420px;
	padding: 48px 24px;
}

.hkc-map-panel {
	max-width: 520px;
	padding: 30px 32px;
	background: #fff;
	border-radius: var(--hkc-radius);
	box-shadow: 0 20px 50px rgba(26, 27, 26, 0.12);
	text-align: center;
}

.hkc-map-address {
	margin: 0 0 20px;
	color: var(--hkc-ink);
	font-family: var(--heading-font, inherit);
	font-size: 20px;
	line-height: 1.45;
}

.hkc-map-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.hkc-map-load,
.hkc-map-directions {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 22px;
	border-radius: 3px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.12em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hkc-map-load {
	background: var(--hkc-green);
	border: 1px solid var(--hkc-green);
	color: #fff;
}

.hkc-map-load:hover {
	background: #46533f;
	border-color: #46533f;
}

.hkc-map-directions {
	background: transparent;
	border: 1px solid var(--hkc-line);
	color: var(--hkc-ink);
}

.hkc-map-directions:hover {
	border-color: var(--hkc-accent);
	color: var(--hkc-accent);
}

.hkc-map-note {
	margin: 16px 0 0;
	color: var(--hkc-muted);
	font-size: 12.5px;
	line-height: 1.6;
}

/* Once loaded the frame takes the whole band. */
.hkc-map.is-loaded {
	min-height: 0;
	background: none;
}

.hkc-map.is-loaded .hkc-map-facade {
	display: none;
}

.hkc-map iframe {
	display: block;
	width: 100%;
	height: 460px;
	border: 0;
}

/* ---------------------------------------------------------------------------
* 6. Closing call to action
* ------------------------------------------------------------------------- */

.hkc-cta {
	padding: 56px 40px;
	background: var(--hkc-ink);
	color: #fff;
}

.hkc-cta-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	width: 100%;
	max-width: 1360px;
	margin: 0 auto;
}

.hkc-cta-title {
	margin: 0 0 8px;
	color: #fff;
	font-family: var(--heading-font, inherit);
	font-size: 32px;
	line-height: 1.2;
}

.hkc-cta-sub {
	margin: 0;
	max-width: 60ch;
	color: rgba(255, 255, 255, 0.72);
	font-size: 15.5px;
	line-height: 1.6;
}

.hkc-cta-buttons {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 10px;
}

.hkc-cta-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 50px;
	padding: 0 24px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 3px;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

.hkc-cta-button .hkh-icon {
	display: block;
	width: 17px;
	height: 17px;
}

.hkc-cta-whatsapp {
	background: #25d366;
	border-color: #25d366;
	color: #0e0d0a;
}

.hkc-cta-whatsapp:hover {
	background: #1fbe5a;
	border-color: #1fbe5a;
	color: #0e0d0a;
}

.hkc-cta-phone:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
}

/* ---------------------------------------------------------------------------
* 7. Small screens
* ------------------------------------------------------------------------- */

@media only screen and (max-width: 1199px) {
	.hkc-wrap {
		padding: 0 28px;
	}

	.hkc-hero {
		min-height: 380px;
		padding: calc(var(--hk-header-h, 140px) + var(--hk-hero-gap, 56px)) 24px 62px;
	}

	.hkc-title {
		font-size: 44px;
	}

	.hkc-grid {
		grid-template-columns: minmax(0, 1fr) 330px;
		gap: 28px;
	}

	.hkc-form {
		padding: 28px 24px 24px;
	}

	.hkc-cta-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media only screen and (max-width: 991px) {
	.hkc-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hkc-details {
		position: static;
	}

	.hkc-quick {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media only screen and (max-width: 767px) {
	.hkc-page {
		--hkc-sticky-top: 76px;
	}

	.hkc-wrap {
		padding: 0 16px;
	}

	.hkc-intro {
		margin-bottom: 30px;
	}

	.hkc-hero {
		min-height: 0;
		padding: calc(var(--hk-header-h, 116px) + var(--hk-hero-gap, 36px)) 16px 52px;
	}

	.hkc-hero .hkc-hero-media .hkb-media-inner {
		padding: 0 5% 6%;
	}

	.hkc-hero .hkc-hero-media .hkb-media-logo {
		width: 104px;
		max-height: 64px;
		opacity: 0.08;
	}

	.hkc-title {
		font-size: 34px;
	}

	.hkc-hero-lead {
		font-size: 15.5px;
	}

	.hkc-has-hero .hkc-intro {
		margin-top: -26px;
		margin-bottom: 34px;
	}

	.hkc-lead {
		font-size: 15.5px;
	}

	.hkc-quick {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.hkc-form {
		padding: 22px 16px 18px;
		box-shadow: none;
	}

	.hkc-form-title {
		font-size: 24px;
	}

	.hkc-card {
		padding: 24px 20px;
	}

	.hkc-map {
		margin-top: 48px;
		min-height: 0;
	}

	.hkc-map-facade {
		min-height: 0;
		padding: 32px 16px;
	}

	.hkc-map-panel {
		padding: 24px 20px;
	}

	.hkc-map-buttons {
		flex-direction: column;
	}

	.hkc-map iframe {
		height: 340px;
	}

	.hkc-cta {
		padding: 40px 16px;
	}

	.hkc-cta-title {
		font-size: 24px;
	}

	.hkc-cta-buttons {
		width: 100%;
	}

	.hkc-cta-button {
		flex: 1 1 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hkc-quick-item {
		transition: none;
	}
}

/* ---------------------------------------------------------------------------
* 8. Right to left (Arabic)
* ------------------------------------------------------------------------- */

[dir="rtl"] .hkc-list-value,
[dir="rtl"] .hkc-quick-value {
	direction: ltr;
	unicode-bidi: isolate;
	text-align: right;
}

/* The address is prose, not a number: it reads right to left like the rest. */
[dir="rtl"] .hkc-list-static,
[dir="rtl"] .hkc-map-address {
	direction: rtl;
	unicode-bidi: normal;
}
