/* Homepage (front-page.php). Everything is scoped to .ritz-home. */

@font-face {
	font-family: 'Yellowtail';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(fonts/yellowtail-latin.woff2) format('woff2');
}

.ritz-home {
	--ritz-red: #9b1c1f;
	--ritz-ink: #1c2125;
	--ritz-cream: #f6efe4;
	color: var(--ritz-ink);
	line-height: 1.45;
}

.ritz-home *,
.ritz-home *::before,
.ritz-home *::after {
	box-sizing: border-box;
}

/* Announcement bar */
.ritz-home__announce {
	background: var(--ritz-red);
	color: #fff;
	text-align: center;
	font-weight: 700;
	padding: 12px 20px;
}

/* Two doors */
.ritz-home__doors {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.ritz-home__door {
	position: relative;
	min-height: 470px;
	padding: 48px 44px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	overflow: hidden;
	color: #fff;
	text-decoration: none;
}

.ritz-home__door:hover,
.ritz-home__door:focus {
	color: #fff;
}

.ritz-home__door:focus-visible {
	outline: 4px solid #e9b44c;
	outline-offset: -4px;
}

.ritz-home__photo,
.ritz-home__door::after {
	position: absolute;
	inset: 0;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.ritz-home__photo {
	background-size: cover;
	background-position: center;
	transition: transform .6s ease;
}

.ritz-home__door:hover .ritz-home__photo {
	transform: scale(1.05);
}

.ritz-home__door::after {
	content: "";
}

.ritz-home__door--lunch::after {
	background: linear-gradient(180deg, rgba(155, 28, 31, .25), rgba(120, 15, 18, .92));
}

.ritz-home__door--catering::after {
	/* The photo has white tablecloths, so text needs a darker veil than the lunch side. */
	background: linear-gradient(180deg, rgba(20, 24, 28, .35) 0%, rgba(20, 24, 28, .78) 45%, rgba(20, 24, 28, .92) 100%);
}

.ritz-home__door > :not(.ritz-home__photo) {
	position: relative;
	z-index: 2;
}

.ritz-home__kicker {
	display: block;
	margin: 0;
	padding: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	opacity: .9;
}

.ritz-home__kicker--red {
	color: var(--ritz-red);
	opacity: 1;
}

.ritz-home__script {
	display: block;
	margin: 6px 0 10px;
	font-family: 'Yellowtail', 'Brush Script MT', cursive;
	font-size: 64px;
	font-weight: 400;
	line-height: 1;
}

.ritz-home__blurb {
	display: block;
	max-width: 360px;
	margin: 0 0 22px;
	font-size: 15px;
	opacity: .92;
}

.ritz-home__btn {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: 12px 24px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .02em;
}

.ritz-home__btn--light {
	background: #fff;
	color: var(--ritz-red);
}

.ritz-home__door--catering .ritz-home__btn--light {
	color: var(--ritz-ink);
}

/* Find us */
.ritz-home__find {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	background: var(--ritz-cream);
}

.ritz-home__find-text {
	padding: 40px 44px;
}

.ritz-home .ritz-home__find-heading {
	margin: 6px 0 0;
	padding: 0;
	font-size: 28px;
	font-weight: 900;
	line-height: 1.2;
	color: var(--ritz-ink);
}

.ritz-home__hours {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 18px 0;
}

.ritz-home__hours div {
	background: #fff;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 13px;
}

.ritz-home__hours b {
	display: block;
	font-size: 18px;
	color: var(--ritz-red);
}

.ritz-home__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.ritz-home__social a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--ritz-ink);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.ritz-home__social a:hover,
.ritz-home__social a:focus-visible {
	background: var(--ritz-red);
	color: #fff;
}

.ritz-home__social svg {
	width: 18px;
	height: 18px;
	flex: none;
}

.ritz-home__map {
	min-height: 320px;
}

.ritz-home__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 320px;
	border: 0;
}

/* Phones: lunch door first, then catering, then the text, then the map. */
@media (max-width: 767px) {
	.ritz-home__doors,
	.ritz-home__find {
		grid-template-columns: 1fr;
	}

	.ritz-home__door {
		min-height: 320px;
		padding: 32px 24px;
	}

	.ritz-home__script {
		font-size: 52px;
	}

	.ritz-home__find-text {
		padding: 32px 24px;
	}

	.ritz-home .ritz-home__find-heading {
		font-size: 24px;
	}

	.ritz-home__map,
	.ritz-home__map iframe {
		min-height: 300px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ritz-home__photo {
		transition: none;
	}

	.ritz-home__door:hover .ritz-home__photo {
		transform: none;
	}
}
