/* OnlyTopReviews: tokens, header, cards, newsletter, footer. */

:root {
	--otr-blue: #4285F4;
	--otr-blue-dark: #2A66D9;
	--otr-maroon: #5C2018;
	--otr-rose: #BC4639;
	--otr-dust: #D4A59A;
	--otr-blush: #F3E0DC;
	--otr-tint: #FBF3F1;
	--otr-night: #2B0F0B;
	--otr-ink: #2A1512;
	--otr-body: #5B4743;
	--otr-line: #EBD9D5;
	--otr-white: #fff;

	--otr-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--otr-head: "Plus Jakarta Sans", var(--otr-font);
	--otr-display: "Playfair Display", Georgia, "Times New Roman", serif;

	--otr-header-h: 76px;
	--otr-gutter: clamp(20px, 4vw, 72px);
	--otr-radius: 14px;
	--otr-ease: cubic-bezier(.2, .7, .2, 1);
}

html {
	scroll-padding-top: calc(var(--otr-header-h) + 16px);
}

body {
	background: var(--otr-white);
	color: var(--otr-body);
	font-family: var(--otr-font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	color: var(--otr-ink);
	font-family: var(--otr-head);
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.2;
}

.otr-container {
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: clamp(20px, 4vw, 40px);
}

.otr-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.otr-skip {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 200;
	padding: 10px 16px;
	border-radius: 8px;
	background: var(--otr-ink);
	color: var(--otr-white);
}

.otr-skip:focus {
	top: 12px;
	color: var(--otr-white);
}

.otr-icon {
	flex: none;
	width: 1.2em;
	height: 1.2em;
}

.otr-kicker {
	margin: 0 0 12px;
	color: var(--otr-rose);
	font-family: var(--otr-head);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.otr-kicker--light {
	color: var(--otr-dust);
}

/* Buttons */

.otr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-family: var(--otr-head);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--otr-ease), box-shadow .2s;
}

.otr-btn:hover {
	transform: translateY(-2px);
}

.otr-btn--primary,
.otr-btn--primary:visited {
	background: var(--otr-blue);
	color: var(--otr-white);
	box-shadow: 0 8px 22px -10px rgba(66, 133, 244, .9);
}

.otr-btn--primary:hover,
.otr-btn--primary:focus {
	background: var(--otr-blue-dark);
	color: var(--otr-white);
}

.otr-btn--ghost,
.otr-btn--ghost:visited {
	border-color: rgba(255, 255, 255, .55);
	color: var(--otr-white);
}

.otr-btn--ghost:hover,
.otr-btn--ghost:focus {
	border-color: var(--otr-white);
	background: rgba(255, 255, 255, .12);
	color: var(--otr-white);
}

.otr-btn--lg {
	padding: 15px 28px;
	font-size: 16px;
}

.otr-btn .otr-icon {
	transition: transform .2s var(--otr-ease);
}

.otr-btn:hover .otr-icon {
	transform: translateX(3px);
}

/* Header */

.otr-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--otr-header-h);
	color: var(--otr-ink);
}

/* The glass sits on a pseudo-element so the header is not a containing block for the mobile menu. */
.otr-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--otr-white);
	border-bottom: 1px solid var(--otr-line);
	transition: background-color .3s, border-color .3s, box-shadow .3s;
}

.otr-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	height: 100%;
	padding-inline: var(--otr-gutter);
}

.otr-logo,
.otr-logo:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	justify-self: start;
	color: inherit;
	font-family: var(--otr-head);
	font-size: 22px;
	font-weight: 500;
	letter-spacing: -.03em;
	text-decoration: none;
}

.otr-logo:hover,
.otr-logo:focus {
	color: inherit;
}

.otr-logo__star {
	width: 26px;
	height: 26px;
	color: var(--otr-blue);
	transition: transform .5s var(--otr-ease);
}

.otr-logo:hover .otr-logo__star {
	transform: rotate(72deg) scale(1.1);
}

.otr-logo__text span {
	color: var(--otr-rose);
}

.otr-logo__text b {
	font-weight: 800;
}

.otr-nav__list,
.otr-sub {
	margin: 0;
	padding: 0;
	list-style: none;
}

.otr-nav__list {
	display: flex;
	align-items: center;
	gap: 6px;
}

.otr-nav__list > li {
	position: relative;
	display: flex;
	align-items: center;
}

.otr-nav__list > li > a {
	position: relative;
	padding: 10px 14px;
	color: inherit;
	font-family: var(--otr-head);
	font-size: 15.5px;
	font-weight: 600;
	text-decoration: none;
}

.otr-nav__list > li > a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 4px;
	height: 2px;
	border-radius: 2px;
	background: var(--otr-blue);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s var(--otr-ease);
}

.otr-nav__list > li > a:hover::after,
.otr-nav__list > li > a[aria-current]::after {
	transform: scaleX(1);
}

.otr-nav__caret {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin-left: -10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: inherit;
	cursor: pointer;
}

.otr-nav__caret:hover,
.otr-nav__caret:focus {
	background: none;
	color: inherit;
}

.otr-nav__caret .otr-icon {
	width: 16px;
	height: 16px;
	transition: transform .25s var(--otr-ease);
}

.otr-sub {
	position: absolute;
	top: calc(100% + 10px);
	left: 50%;
	min-width: 230px;
	padding: 8px;
	border: 1px solid var(--otr-line);
	border-radius: var(--otr-radius);
	background: var(--otr-white);
	box-shadow: 0 24px 50px -22px rgba(43, 15, 11, .45);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 8px);
	transition: opacity .2s, transform .25s var(--otr-ease), visibility .2s;
}

/* Bridges the gap between the link and the menu so hover is not lost. */
.otr-sub::before {
	content: "";
	position: absolute;
	inset: -12px 0 100%;
}

.otr-sub a,
.otr-sub a:visited {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 9px;
	color: var(--otr-ink);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color .15s, color .15s;
}

.otr-sub .otr-icon {
	color: var(--otr-rose);
}

.otr-sub a:hover,
.otr-sub a:focus {
	background: var(--otr-tint);
	color: var(--otr-maroon);
}

.otr-header__cta {
	justify-self: end;
}

.otr-nav__cta,
.otr-burger {
	display: none;
}

.otr-burger {
	justify-self: end;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: none;
	color: inherit;
	cursor: pointer;
}

.otr-burger:hover,
.otr-burger:focus {
	background: none;
	color: inherit;
}

.otr-burger span {
	display: block;
	width: 22px;
	height: 2px;
	margin: 5px auto;
	border-radius: 2px;
	background: currentColor;
	transition: transform .25s var(--otr-ease), opacity .2s;
}

.otr-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.otr-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.otr-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Homepage: clear over the hero, white glass once scrolled. Needs JS, so it is opt-in via html.js. */

.js .otr-home .otr-header:not(.is-scrolled):not(.is-open) {
	color: var(--otr-white);
}

.js .otr-home .otr-header:not(.is-scrolled):not(.is-open)::before {
	background: transparent;
	border-color: transparent;
}

.js .otr-home .otr-header:not(.is-scrolled):not(.is-open) .otr-logo__text span {
	color: var(--otr-dust);
}

.otr-home .otr-header.is-scrolled:not(.is-open)::before {
	background: rgba(255, 255, 255, .78);
	border-color: rgba(235, 217, 213, .7);
	box-shadow: 0 10px 30px -22px rgba(43, 15, 11, .6);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
}

@media (min-width: 961px) {
	.otr-nav__item.has-sub:hover .otr-sub,
	.otr-nav__item.has-sub:focus-within .otr-sub,
	.otr-nav__item.is-open .otr-sub {
		opacity: 1;
		visibility: visible;
		transform: translate(-50%, 0);
	}

	.otr-nav__item.has-sub:hover .otr-nav__caret .otr-icon,
	.otr-nav__item.is-open .otr-nav__caret .otr-icon {
		transform: rotate(180deg);
	}
}

@media (max-width: 960px) {
	:root {
		--otr-header-h: 66px;
	}

	.otr-header__inner {
		grid-template-columns: 1fr auto;
	}

	.otr-header__cta {
		display: none;
	}

	.otr-burger {
		display: block;
	}

	.otr-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		max-height: calc(100vh - var(--otr-header-h));
		padding: 12px var(--otr-gutter) 24px;
		overflow-y: auto;
		border-bottom: 1px solid var(--otr-line);
		background: var(--otr-white);
		color: var(--otr-ink);
		box-shadow: 0 30px 40px -30px rgba(43, 15, 11, .5);
	}

	.otr-header.is-open .otr-nav {
		display: block;
		animation: otr-drop .25s var(--otr-ease);
	}

	.otr-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.otr-nav__list > li {
		flex-wrap: wrap;
		border-bottom: 1px solid var(--otr-line);
	}

	.otr-nav__list > li > a {
		flex: 1;
		padding: 16px 0;
		font-size: 17px;
	}

	.otr-nav__list > li > a::after {
		display: none;
	}

	.otr-nav__caret {
		width: 44px;
		height: 44px;
		margin: 0;
	}

	.otr-nav__caret .otr-icon {
		width: 20px;
		height: 20px;
	}

	.otr-nav__item.is-open .otr-nav__caret .otr-icon {
		transform: rotate(180deg);
	}

	.otr-sub {
		position: static;
		display: none;
		flex-basis: 100%;
		min-width: 0;
		padding: 0 0 12px;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.otr-sub::before {
		display: none;
	}

	.otr-nav__item.is-open .otr-sub {
		display: block;
	}

	.otr-nav__cta {
		display: flex;
		margin-top: 20px;
	}
}

/* Without JavaScript the menu button cannot open anything, so the menu is simply shown. */
@media (max-width: 960px) {
	html:not(.js) .otr-header {
		height: auto;
	}

	html:not(.js) .otr-header__inner {
		grid-template-columns: 1fr;
		padding-block: 14px 6px;
	}

	html:not(.js) .otr-burger {
		display: none;
	}

	html:not(.js) .otr-nav {
		position: static;
		display: block;
		max-height: none;
		padding: 0;
		border: 0;
		box-shadow: none;
	}

	html:not(.js) .otr-nav__caret {
		display: none;
	}

	html:not(.js) .otr-sub {
		display: block;
	}

	html:not(.js) .otr-header {
		position: static;
	}
}

@keyframes otr-drop {
	from { opacity: 0; transform: translateY(-8px); }
}

/* "All reviews" pill link */

.otr-more,
.otr-more:visited {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1.5px solid var(--otr-dust);
	border-radius: 999px;
	color: var(--otr-maroon);
	font-family: var(--otr-head);
	font-size: 14.5px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .2s, border-color .2s, color .2s;
}

.otr-more:hover,
.otr-more:focus {
	border-color: var(--otr-maroon);
	background: var(--otr-maroon);
	color: var(--otr-white);
}

.otr-more .otr-icon {
	transition: transform .2s var(--otr-ease);
}

.otr-more:hover .otr-icon {
	transform: translateX(4px);
}

/* Scroll reveal. Content stays visible without JS. */

.js [data-reveal] {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .7s var(--otr-ease), transform .7s var(--otr-ease);
	transition-delay: calc(var(--d, 0) * 90ms);
}

.js [data-reveal].is-in {
	opacity: 1;
	transform: none;
}

/* Review cards */

.otr-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.otr-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--otr-line);
	border-radius: var(--otr-radius);
	background: var(--otr-white);
	transition: transform .35s var(--otr-ease), box-shadow .35s, border-color .35s;
}

.otr-card:hover {
	border-color: var(--otr-dust);
	box-shadow: 0 26px 44px -28px rgba(92, 32, 24, .55);
}

/* .is-done is set once the reveal has finished, so hover is not held back by the stagger delay. */
.js .otr-card.is-done {
	transition: transform .35s var(--otr-ease), box-shadow .35s, border-color .35s;
}

.otr-card:hover {
	transform: translateY(-6px);
}

.otr-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--otr-blush);
}

.otr-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s var(--otr-ease);
}

.otr-card:hover .otr-card__media img,
.otr-card:hover .otr-card__ph .otr-icon {
	transform: scale(1.06);
}

.otr-card__ph {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--otr-blush), var(--otr-dust));
	color: var(--otr-maroon);
}

.otr-card__ph .otr-icon {
	width: 46px;
	height: 46px;
	opacity: .55;
	transition: transform .6s var(--otr-ease);
}

.otr-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px 20px 18px;
}

.otr-card__tag {
	align-self: flex-start;
	margin-bottom: 10px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--otr-tint);
	color: var(--otr-rose);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.otr-card__title {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.35;
}

.otr-card__title a,
.otr-card__title a:visited {
	color: var(--otr-ink);
	text-decoration: none;
	transition: color .2s;
}

.otr-card:hover .otr-card__title a,
.otr-card__title a:focus {
	color: var(--otr-rose);
}

.otr-card__excerpt {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.55;
}

.otr-card__meta {
	display: flex;
	gap: 6px;
	margin: auto 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--otr-line);
	color: #8A716C;
	font-size: 13px;
}

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

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

/* Newsletter */

.otr-news {
	position: relative;
	overflow: hidden;
	padding: clamp(56px, 8vw, 96px) 0;
	background: var(--otr-maroon);
	color: var(--otr-blush);
}

.otr-news::before,
.otr-news::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.otr-news::before {
	top: -180px;
	right: -120px;
	width: 460px;
	height: 460px;
	background: radial-gradient(closest-side, rgba(188, 70, 57, .55), transparent);
}

.otr-news::after {
	bottom: -220px;
	left: -140px;
	width: 480px;
	height: 480px;
	background: radial-gradient(closest-side, rgba(66, 133, 244, .22), transparent);
}

.otr-news__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr minmax(0, 480px);
	align-items: center;
	gap: 40px 64px;
}

.otr-news h2 {
	margin: 0 0 10px;
	color: var(--otr-white);
	font-size: clamp(28px, 3.4vw, 40px);
}

.otr-news__text p:last-child {
	margin: 0;
}

.otr-news__form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 8px;
	border: 1px solid rgba(243, 224, 220, .25);
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
}

.otr-news__form input[type="email"] {
	flex: 1;
	min-width: 0;
	padding: 12px 18px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--otr-white);
	font-size: 16px;
}

.otr-news__form input[type="email"]::placeholder {
	color: rgba(243, 224, 220, .65);
}

.otr-news__form input[type="email"]:focus {
	outline: 2px solid var(--otr-blue);
	outline-offset: 2px;
	background: transparent;
	color: var(--otr-white);
}

.otr-news__msg {
	flex-basis: 100%;
	margin: 0;
	padding: 0 18px;
	font-size: 14px;
}

.otr-news__msg:empty {
	display: none;
}

@media (max-width: 860px) {
	.otr-news__inner {
		grid-template-columns: 1fr;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.otr-news__form {
		border-radius: 22px;
	}

	.otr-news__form .otr-btn {
		flex-basis: 100%;
	}
}

/* Footer */

.otr-footer {
	background: var(--otr-night);
	color: #C9AEA8;
	font-size: 15.5px;
}

.otr-footer__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 48px clamp(40px, 6vw, 88px);
	padding-block: clamp(56px, 7vw, 84px) 52px;
}

.otr-footer__brand {
	flex: 1 1 280px;
	max-width: 380px;
	margin-right: auto;
}

.otr-footer .otr-logo {
	color: var(--otr-white);
}

.otr-footer .otr-logo__text span {
	color: var(--otr-dust);
}

.otr-footer__brand p {
	margin: 18px 0 0;
	line-height: 1.7;
}

.otr-footer__col h2 {
	margin: 4px 0 18px;
	color: var(--otr-white);
	font-size: 14px;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.otr-footer__col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.otr-footer__col li + li {
	margin-top: 10px;
}

.otr-footer__col a,
.otr-footer__col a:visited {
	color: #C9AEA8;
	text-decoration: none;
	background: linear-gradient(var(--otr-blue), var(--otr-blue)) 0 100% / 0 1.5px no-repeat;
	transition: color .2s, background-size .3s var(--otr-ease);
}

.otr-footer__col a:hover,
.otr-footer__col a:focus {
	color: var(--otr-white);
	background-size: 100% 1.5px;
}

.otr-footer__bar {
	border-top: 1px solid rgba(243, 224, 220, .12);
	padding-block: 20px;
	font-size: 14px;
}

.otr-footer__bar p {
	margin: 0;
}

@media (max-width: 720px) {
	.otr-footer__grid {
		gap: 36px 32px;
	}

	.otr-footer__brand {
		flex-basis: 100%;
		max-width: none;
	}

	.otr-footer__col {
		flex: 1 1 140px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.js [data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.otr-btn,
	.otr-card,
	.otr-card__media img {
		transition: none;
	}
}
