/*
 * Public homepage. Logical properties so Arabic mirrors with the document direction.
 */

.site-main--home {
	background: var(--bs-white);
}

#home-next {
	scroll-margin-top: var(--bs-header-h);
}

.admin-bar #home-next {
	scroll-margin-top: calc(var(--bs-header-h) + 32px);
}

@media (max-width: 782px) {
	.admin-bar #home-next {
		scroll-margin-top: calc(var(--bs-header-h) + 46px);
	}
}

.home-hero {
	position: relative;
	display: flex;
	min-block-size: calc(100svh - var(--bs-header-h));
	color: var(--bs-white);
	background: #000;
	isolation: isolate;
}

.home-hero--fallback {
	background: var(--bs-teal-dark);
}

.home-hero__media,
.home-hero__fallback {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.home-hero__video,
.home-hero__poster {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.home-hero__video {
	z-index: 1;
}

.home-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45));
}

.home-hero--fallback .home-hero__media::after {
	background: linear-gradient(to bottom, rgba(5, 42, 58, 0.2), rgba(5, 42, 58, 0.45));
}

.home-hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	inline-size: 100%;
	padding-block: 48px 28px;
	padding-inline: var(--bs-gutter);
	text-align: center;
}

.home-hero__eyebrow {
	margin: 0 0 14px;
	color: #f6eddc;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 4px;
	line-height: 1.5;
	text-transform: uppercase;
}

.home-hero__title {
	margin: 0;
	max-inline-size: 100%;
	color: #fff;
	font-family: var(--bs-font-serif);
	font-size: 96px;
	font-weight: 400;
	letter-spacing: 3px;
	line-height: 1.1;
	white-space: pre-line;
}

.home-hero__quote {
	margin: 28px 0 0;
}

.home-hero__quote p {
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
	font-family: var(--bs-font-serif);
	font-size: 22px;
	font-style: italic;
	font-weight: 300;
	line-height: 1.5;
}

.home-hero__citation {
	margin: 6px 0 0;
	color: #f6eddc;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 3px;
	line-height: 1.5;
	text-transform: uppercase;
}

.home-hero__unesco {
	display: inline-flex;
	margin-block: 22px 8px;
	color: var(--bs-white);
	text-decoration: none;
}

.home-hero__unesco img {
	inline-size: auto;
	block-size: 160px;
	transform: translateX(-35px);
}

[dir="rtl"] .home-hero__unesco img {
	transform: translateX(35px);
}

.home-hero__unesco-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-inline-size: 88px;
	min-block-size: 88px;
	padding: 8px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.home-hero__tiles {
	display: grid;
	grid-template-columns: repeat(4, 165px);
	justify-content: center;
	gap: 18px;
	inline-size: 100%;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.home-hero__tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	inline-size: 165px;
	block-size: 110px;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, 0.92);
	background: rgba(255, 255, 255, 0.08);
	color: var(--bs-white);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0.02em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

.home-hero__tile:hover,
.home-hero__tile:focus-visible {
	color: var(--bs-white);
	background: rgba(255, 255, 255, 0.18);
}

.home-hero__down {
	display: inline-flex;
	margin-block-start: 18px;
	color: var(--bs-white);
}

.home-hero__down:hover {
	color: var(--bs-gold);
}

.home-carousel {
	position: relative;
	block-size: 300px;
	background: #534b49;
}

.home-carousel__viewport {
	overflow-x: auto;
	block-size: 100%;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.home-carousel__viewport::-webkit-scrollbar {
	display: none;
}

.home-carousel__track {
	display: flex;
	gap: 9px;
	block-size: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-carousel__slide {
	flex: 0 0 auto;
	block-size: 100%;
	scroll-snap-align: start;
}

.home-carousel__slide figure {
	position: relative;
	block-size: 100%;
	inline-size: calc(300px * var(--home-slide-ratio, 1.333));
	margin: 0;
}

.home-carousel__slide img {
	display: block;
	inline-size: 100%;
	block-size: 300px;
	object-fit: contain;
	background: transparent;
}

.home-carousel__slide figcaption {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	margin: 0;
	padding: 28px 16px 12px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
	color: var(--bs-white);
	font-size: 15px;
	opacity: 0;
	transition: opacity 0.2s;
}

.home-carousel__slide:hover figcaption,
.home-carousel__slide:focus-within figcaption {
	opacity: 1;
}

.home-carousel__control {
	position: absolute;
	inset-block-start: 50%;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 42px;
	block-size: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.88);
	color: var(--bs-teal);
	transform: translateY(-50%);
	cursor: pointer;
}

.home-carousel__control--prev {
	inset-inline-start: 12px;
}

.home-carousel__control--next {
	inset-inline-end: 12px;
}

[dir="rtl"] .home-carousel__control svg {
	transform: scaleX(-1);
}

.home-carousel__dots {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 10px;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.home-carousel__dots button {
	inline-size: 9px;
	block-size: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
}

.home-carousel__dots button[aria-current="true"] {
	background: var(--bs-white);
}

.home-historic {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	min-block-size: 320px;
	background: var(--bs-teal-dark);
	color: var(--bs-white);
}

.home-historic__media img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	min-block-size: 280px;
	object-fit: cover;
}

.home-historic__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	padding: 48px clamp(24px, 5vw, 72px);
}

.home-historic__eyebrow,
.home-tour__eyebrow {
	margin: 0;
	color: var(--bs-gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.home-tour__eyebrow {
	font-size: 28px;
	font-weight: 600;
	letter-spacing: 3px;
}

.home-historic__title,
.home-recog__title,
.home-tour__title {
	margin: 0;
	font-family: var(--bs-font-serif);
	font-weight: 400;
	line-height: 1.25;
}

.home-historic__title {
	color: var(--bs-white);
	font-size: clamp(28px, 4vw, 40px);
}

.home-historic__quote {
	margin: 0;
}

.home-historic__quote p {
	margin: 0;
	font-family: var(--bs-font-serif);
	font-style: italic;
	line-height: 1.6;
}

.home-historic__cta,
.home-recog__cta,
.home-tour__cta {
	align-self: flex-start;
	color: var(--bs-gold);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-decoration: none;
	text-transform: uppercase;
}

.home-historic .tour-link {
	align-self: flex-start;
}

.home-recog,
.home-tour {
	padding-block: 90px 100px;
	background-color: #f4f1ea;
	background-position: center;
	background-size: cover;
	color: #083b50;
}

.home-recog--plain,
.home-tour--plain {
	background-image: none;
}

.home-recog__inner,
.home-tour__inner,
.home-columns__inner {
	max-inline-size: var(--bs-max);
	margin-inline: auto;
	padding-inline: var(--bs-gutter);
}

.home-recog__title,
.home-tour__title {
	color: #083b50;
	text-align: center;
}

.home-recog {
	padding-block: 90px;
}

.home-recog__inner {
	max-inline-size: 1670px;
	padding-inline: 80px;
}

.home-recog__title {
	font-size: 36px;
	line-height: 1.4;
	margin-block-end: 30px;
}

.home-tour__title {
	margin-block-start: 8px;
	font-size: 42px;
	line-height: 1.4;
}

.home-recog__cards {
	display: flex;
	align-items: stretch;
	margin: 0 -15px;
	padding: 0;
	list-style: none;
}

.home-recog__cards > li {
	display: flex;
	flex: 1 1 0;
	min-inline-size: 0;
	padding: 30px 15px 0;
}

.home-recog__card {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
	inline-size: 100%;
	min-block-size: 160px;
	padding: 30px 30px 54px;
	background: var(--bs-white);
	color: #083b50;
	text-decoration: none;
}

.home-recog__card::after {
	content: "";
	position: absolute;
	inset-inline-start: 30px;
	inset-block-end: 30px;
	inline-size: 48px;
	block-size: 4px;
	background: #a58d67;
}

a.home-recog__card:hover,
a.home-recog__card:focus-visible {
	color: var(--bs-teal);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.home-recog__card h3 {
	margin: 0;
	color: #083b50;
	font-family: var(--bs-font-serif);
	font-size: 24px;
	font-weight: 400;
	line-height: 32px;
	white-space: pre-line;
}

.home-recog__card p {
	margin: 5px 0 0;
	color: #6e6e6e;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
}

.home-recog__cta {
	display: table;
	margin-block: 38px 0;
	margin-inline: auto;
	padding-block-end: 1px;
	color: #083b50;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 2px;
	text-decoration: none;
	text-transform: uppercase;
	border-block-end: 1px solid #083b50;
}

.home-recog__cta:hover,
.home-recog__cta:focus-visible {
	color: #083b50;
}

.home-tour__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	inline-size: fit-content;
	block-size: 56px;
	margin-block: 40px 0;
	margin-inline: auto;
	padding-inline: 40px;
	border: 1px solid #083b50;
	background: transparent;
	color: #083b50;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1.6px;
	line-height: 54px;
	text-decoration: none;
	text-transform: uppercase;
}

.home-tour__cta:hover,
.home-tour__cta:focus-visible {
	color: #083b50;
	background: rgba(8, 59, 80, 0.06);
}

.home-tour__eyebrow,
.home-tour__title {
	text-align: center;
}

.home-tour__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.home-tour__card {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-block-size: 240px;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.28);
	color: var(--bs-white);
	text-decoration: none;
}

.home-tour__card img {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.home-tour__card span {
	position: relative;
	z-index: 1;
	inline-size: 100%;
	padding: 48px 24px 20px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
	font-family: var(--bs-font-serif);
	font-size: 20px;
	font-weight: 400;
	line-height: 28px;
}

.home-tour__card--empty {
	background: rgba(255, 255, 255, 0.08);
}

.home-tour__card:hover,
.home-tour__card:focus-visible {
	color: var(--bs-white);
}

.home-columns {
	padding-block: 72px 80px;
	background: var(--bs-white);
	color: var(--bs-dark);
}

.home-columns__inner {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-columns__col {
	padding-block: 8px;
	padding-inline: 36px 72px;
}

.home-columns__col:first-child {
	padding-inline-start: 8px;
	padding-inline-end: 64px;
}

.home-columns__col + .home-columns__col {
	border-inline-start: 1px solid #bdad93;
}

.home-columns__col h2 {
	margin: 0 0 5px;
	color: #083b50;
	font-family: var(--bs-font-serif);
	font-size: 30px;
	font-weight: 400;
}

.home-columns__col p,
.home-columns__times {
	margin: 0;
	padding-block-start: 15px;
	color: #6e6e6e;
	font-size: 16px;
	font-weight: 400;
	line-height: 26px;
}

.home-columns__times strong {
	font-weight: 700;
}

.home-columns .tour-link {
	margin-block-start: 35px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1.4px;
}

.home-columns__times p {
	margin: 0 0 8px;
}

@media (max-width: 1024px) {
	.home-hero__title {
		font-size: 72px;
	}
}

@media (max-width: 980px) {
	.home-tour__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-tour__title {
		font-size: 34px;
	}

	.home-tour__eyebrow {
		font-size: 20px;
	}
}

@media (max-width: 768px) {
	.home-hero__title {
		font-size: 44px;
		letter-spacing: 1px;
	}

	.home-hero__quote p {
		font-size: 18px;
	}

	.home-hero__unesco img {
		block-size: 110px;
		transform: translateX(-24px);
	}

	[dir="rtl"] .home-hero__unesco img {
		transform: translateX(24px);
	}

	.home-hero__tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		inline-size: min(100%, 340px);
		margin-inline: auto;
	}

	.home-hero__tile {
		inline-size: 100%;
		block-size: 110px;
	}

	.home-historic {
		grid-template-columns: 1fr;
	}

	.home-columns__inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.home-columns__col,
	.home-columns__col:first-child {
		padding-inline: 0;
	}

	.home-columns__col + .home-columns__col {
		border-inline-start: 0;
		padding-block-start: 8px;
	}

	.home-carousel {
		block-size: 240px;
	}

	.home-carousel__slide figure,
	.home-carousel__slide img {
		block-size: 240px;
	}

	.home-carousel__slide figure {
		inline-size: min(100%, calc(240px * var(--home-slide-ratio, 1.333)));
	}

	.home-recog {
		padding-block: 52px;
	}

	.home-recog__inner {
		padding-inline: 40px;
	}

	.home-recog__cards {
		flex-direction: column;
		margin: 0;
	}

	.home-recog__cards > li {
		flex: none;
		padding: 10px 0 0;
	}

	.home-recog__card h3 {
		font-size: 18px;
		line-height: 26px;
	}
}

@media (max-width: 560px) {
	.home-tour__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.home-hero__title {
		font-size: 32px;
		letter-spacing: 0;
	}

	.home-recog {
		padding-block: 40px;
	}

	.home-recog__inner {
		padding-inline: 20px;
	}

	.home-recog__card h3 {
		font-size: 16px;
		line-height: 24px;
	}
}

body.lang-ar .home-hero__tile,
body.lang-ar .home-tour__eyebrow,
body.lang-ar .home-tour__cta,
body.lang-ar .home-recog__cta {
	letter-spacing: 0;
	text-transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.home-carousel__viewport {
		scroll-behavior: auto;
	}

	.home-hero__video {
		display: none;
	}

	.home-hero:not(:has(.home-hero__poster)) {
		background: var(--bs-teal-dark);
	}
}
