/* ==========================================================================
   Voodid landing: design tokens
   ========================================================================== */
.voodid-landing {
	--voodid-color-text: #241f1c;
	--voodid-color-muted: #6f6861;
	--voodid-color-accent: #68384a;
	--voodid-color-accent-secondary: #1d344e;
	--voodid-color-border: #e6dfda;
	--voodid-color-surface: #FFFFFF;
	--voodid-color-surface-strong: #f1ebe6;
	--voodid-section-space: 96px;
	--voodid-grid-gap: 24px;
	--voodid-content-width: 1180px;
	--voodid-transition-function: linear;
	--voodid-transition-speed: .3s;

	color: var(--voodid-color-text);
	background: #fff;
}

/* ==========================================================================
   Voodid landing: fonts
   ========================================================================== */

/* Font stacks */
.voodid-landing {
	--voodid-font-heading: 'Grifo M', Helvetica, Arial, Lucida, sans-serif;
	--voodid-font-body: 'Open Sans', sans-serif;
	--voodid-font-accent: 'Cormorant', serif;
}

/* Base font usage */
.voodid-landing,
.voodid-landing p,
.voodid-landing a {
	font-family: var(--voodid-font-body);
}

.voodid-landing h2,
.voodid-landing h3 {
	font-family: var(--voodid-font-heading);
	font-weight: 400;
	letter-spacing: 0;
}

.voodid-landing p {
	font-size: 18px;
	font-weight: 300;
	line-height: 1.25;
}

/* ==========================================================================
   Voodid landing: page shell
   ========================================================================== */
.voodid-landing {
	width: 100%;
	min-height: 60vh;
	overflow-x: hidden;
}

.voodid-landing .wrapper.wide {
	width: min(calc(100% - 48px), var(--voodid-content-width));
	max-width: var(--voodid-content-width);
	margin-right: auto;
	margin-left: auto;
}

/* ==========================================================================
   Voodid landing: bed categories
   ========================================================================== */
.voodid-landing .beds-section {
	display: flex;
	flex-direction: column;
	gap: calc(var(--voodid-section-space) / 2);
}

.voodid-landing .beds-category {
	text-align: center;
}

.voodid-landing .beds-category h2 {
	max-width: 820px;
	margin: 0 auto;
	font-size: 46px;
	line-height: 1.15;
}

.voodid-landing .beds-category h2 a {
	color: inherit;
	font-family: inherit;
	text-decoration: none;
}

.voodid-landing .beds-category h2 a:hover,
.voodid-landing .beds-category h2 a:focus-visible {
	color: var(--voodid-color-accent);
}

.voodid-landing .beds-category > p {
	max-width: 720px;
	margin: 0 auto 42px;
	color: var(--voodid-color-text);
}

.voodid-landing .beds-grid {
	display: grid;
	gap: var(--voodid-grid-gap);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ==========================================================================
   Voodid landing: bed cards
   ========================================================================== */

/* Card link states */
.voodid-landing .bed-item {
	background-color: transparent;
	transition: background-color var(--voodid-transition-speed) var(--voodid-transition-function);
}

.voodid-landing a.bed-item:hover {
	background-color: rgba(0, 0, 0, 0.1);
}

.voodid-landing a.bed-item:hover .bed-item-image-overlay {
	opacity: 1;
	visibility: visible;
}

/* Image overlay */
.bed-item-image-container {
	position: relative;
}

.voodid-landing a.bed-item .bed-item-image-overlay {
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--voodid-transition-speed) var(--voodid-transition-function);
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.voodid-landing a.bed-item .bed-item-image-overlay-button {
	padding: 8px 16px;
	text-transform: uppercase;
	font-family: var(--voodid-font-body);
	font-weight: 400;
	letter-spacing: 0;
	font-size: 18px;
	background-color: rgba(255, 255, 255, 0.75);
}

/* Card structure */
.voodid-landing .bed-item {
	display: flex;
	min-width: 0;
	color: inherit;
	text-align: left;
	text-decoration: none;
	flex-direction: column;
}

.voodid-landing .bed-item img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: var(--voodid-color-surface);
}

.voodid-landing .bed-item h3 {
	margin: 24px auto 10px;
	font-size: 30px;
	line-height: 1.2;
	text-align: center;
	max-width: 280px;
}

.voodid-landing .bed-item p {
	text-align: center;
	margin: 0 36px 24px;
	color: var(--voodid-color-text);
}

.voodid-landing a.bed-item:hover h3,
.voodid-landing a.bed-item:focus-visible h3 {
	color: var(--voodid-color-accent);
}

/* ==========================================================================
   Voodid landing: video
   ========================================================================== */
.voodid-landing .video-container {
	width: 100%;
	background: var(--voodid-color-surface);
}

.voodid-landing .video-container video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 8 / 3;
	object-fit: cover;
}

/* ==========================================================================
   Voodid landing: text sections
   ========================================================================== */
.voodid-landing .content-section {
	margin-top: var(--voodid-section-space);
	margin-bottom: var(--voodid-section-space);
	display: flex;
	flex-direction: column;
	gap: var(--voodid-section-space);
}

.voodid-landing .text-section {
	display: grid;
	gap: 40px;
	grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr);
	align-items: start;
}

/* Used when alternating title/content columns between text rows. */
.voodid-landing .text-section.is-reversed {
	grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
}

.voodid-landing .text-section.is-reversed > :first-child {
	grid-column: 2;
	grid-row: 1;
}

.voodid-landing .text-section.is-reversed > :last-child {
	grid-column: 1;
	grid-row: 1;
}

.voodid-landing .text-section .text-section-title-container {
	margin: 0;
	padding: 32px;
	color: #fff;
	font-size: 34px;
	line-height: 1.15;
	background: var(--voodid-color-accent);
	align-self: stretch;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.voodid-landing .text-section.is-reversed .text-section-title-container {
	background: var(--voodid-color-accent-secondary);
}

/* .voodid-landing .text-section h3 {
} */

.voodid-landing .text-content,
.voodid-landing .full-text-section {
	font-family: var(--voodid-font-body);
	color: var(--voodid-color-text);
}

.voodid-landing .text-content p,
.voodid-landing .full-text-section p {
	margin-bottom: 1lh;
}

.voodid-landing .text-content > *:first-child,
.voodid-landing .full-text-section > *:first-child {
	margin-top: 0;
}

.voodid-landing .text-content > *:last-child,
.voodid-landing .full-text-section > *:last-child {
	margin-bottom: 0;
}

.voodid-landing .full-text-section {
	max-width: 860px;
	margin-right: auto;
	margin-left: auto;
}

/* ==========================================================================
   Voodid landing: responsive
   ========================================================================== */

/* Tablet */
@media screen and (max-width: 980px) {
	.voodid-landing {
		--voodid-section-space: 72px;
		--voodid-grid-gap: 28px;
	}

	.voodid-landing .beds-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.voodid-landing .text-section,
	.voodid-landing .text-section.is-reversed {
		grid-template-columns: 1fr;
	}

	.voodid-landing .text-section.is-reversed > :first-child,
	.voodid-landing .text-section.is-reversed > :last-child {
		grid-column: auto;
		grid-row: auto;
	}
}

/* Mobile */
@media screen and (max-width: 640px) {
	.voodid-landing {
		--voodid-section-space: 56px;
		--voodid-grid-gap: 24px;
	}

	.voodid-landing .wrapper.wide {
		width: min(calc(100% - 32px), var(--voodid-content-width));
	}

	.voodid-landing .beds-category h2 {
		font-size: 34px;
	}

	.voodid-landing .beds-grid {
		grid-template-columns: 1fr;
	}

	.voodid-landing .bed-item h3,
	.voodid-landing .text-section .text-section-title-container {
		font-size: 26px;
	}

	.voodid-landing .text-section .text-section-title-container {
		padding: 44px;
	}
	.voodid-landing .video-container video {
		display: block;
		width: 100%;
		height: auto;
		aspect-ratio: 4 / 3;
		object-fit: cover;
	}
}
