/* Hastings Motel: the original's layout, rebuilt on the theme's block classes. */
:root {
	--hm-gold: var(--wp--preset--color--accent);
	--hm-pad: 15px;
}

body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; }
:where(a, button, input, textarea, iframe):focus-visible { outline: 2px solid var(--hm-gold); outline-offset: 3px; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.hm-main > .entry-content > *, .hm-main > .wp-block-post-content > * { margin-block: 0; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
p { text-align: justify; margin: 0 0 10px; }
.has-text-align-center { text-align: center; }
:where(.hm-main) h1, :where(.hm-main) h2, :where(.hm-main) h3 { margin: 0 0 10px; }

/* bands: full-width colour, content in the original's 1140px column */
.hm-intro, .hm-room, .hm-reviews, .hm-contact, .hm-contact-page, .hm-header { padding-inline: var(--hm-pad); }

/* page loader */
.hm-loader { display: none; }
.hm-loading .hm-loader {
	display: block; position: fixed; inset: 0; z-index: 99999; background: #000;
	transition: opacity .6s ease, visibility .6s ease;
}
.hm-loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.hm-loader__balls { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -60px 0 0 -30px; }
.hm-loader__balls span {
	position: absolute; inset: 0; border-radius: 50%; background: var(--wp--preset--color--loader); opacity: 0;
	animation: hm-ball 1s linear infinite;
}
.hm-loader__balls span:nth-child(2) { animation-delay: -.4s; }
.hm-loader__balls span:nth-child(3) { animation-delay: -.2s; }
@keyframes hm-ball { 0% { transform: scale(0); opacity: 0; } 5% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

/* header */
.hm-header { background: var(--wp--preset--color--surface); border-bottom: 1px solid var(--wp--preset--color--header-rule); }
.hm-header__bar { padding-block: 15px; gap: 16px; }
.hm-logo { margin: 4px 0; }
.hm-logo img { width: 280px; max-width: 62vw; display: block; }
.hm-menu-toggle { position: relative; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; flex: none; }
.hm-menu-toggle span { position: absolute; left: 7px; width: 30px; height: 1px; background: var(--hm-gold); }
.hm-menu-toggle span:nth-child(1) { top: 14px; }
.hm-menu-toggle span:nth-child(2) { top: 21px; }
.hm-menu-toggle span:nth-child(3) { top: 29px; }

/* side panel */
.hm-side-nav {
	box-sizing: border-box; position: fixed; top: 0; right: 0; z-index: 9999; width: 300px; max-width: 100%; height: 100vh; height: 100dvh;
	background: var(--wp--preset--color--panel); padding: 80px 15px 20px; overflow-y: auto;
	transform: translateX(100%); transition: transform .3s;
}
.hm-side-nav[hidden] { display: block; visibility: hidden; }
.hm-side-nav.is-open { transform: none; visibility: visible; }
.hm-side-nav__close {
	position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; background: none;
	color: var(--wp--preset--color--surface); font: 300 22px/1 var(--wp--preset--font-family--body); cursor: pointer;
}
.hm-side-nav img { display: block; margin: 0 auto 20px; width: 203px; }
.hm-side-nav__details {
	text-align: center; color: var(--hm-gold); font: 500 18px/1.4 var(--wp--preset--font-family--heading); margin: 0;
}
.hm-side-nav__details a { color: inherit; display: inline-block; padding-block: 12px; margin-block: -12px; }

/* slider */
.hm-slider { position: relative; height: 600px; overflow: hidden; background: var(--wp--preset--color--dark); padding: 0; }
.hm-slider > .hm-slide { max-width: none; }
.hm-slide { position: absolute; inset: 0; margin: 0 !important; }
.hm-slider .hm-slide:not(:first-child) { display: none; }
.hm-js .hm-slider .hm-slide { display: block; opacity: 0; visibility: hidden; transition: opacity 1s ease-out, visibility 0s linear 1s; }
.hm-js .hm-slider .hm-slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1s ease-out; }
.hm-slide__img, .hm-slide__img img { margin: 0; width: 100%; height: 100%; }
.hm-slide__img img { object-fit: cover; transform-origin: center; }
.hm-motion .hm-slide.is-active .hm-slide__img img { animation: hm-kenburns 11s linear both; }
@keyframes hm-kenburns { from { transform: scale(1); } to { transform: scale(1.1); } }
.hm-slide::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.hm-slide__cap { position: absolute; z-index: 2; left: 0; right: 0; top: calc(50% - 205px); padding-inline: 16px; }
.hm-slide__cap p { color: var(--wp--preset--color--surface); }
.hm-slide__kick { font: 700 var(--wp--preset--font-size--slide-kick)/25px var(--wp--preset--font-family--body); margin: 0 0 90px; }
.hm-slide__line {
	font: 700 var(--wp--preset--font-size--slide-line)/60px var(--wp--preset--font-family--body); text-transform: uppercase; margin: 0;
	border-bottom: 3px solid transparent; display: inline-block;
}
.hm-slide__cap { text-align: center; }
.hm-js .hm-slide:not(.is-active) .hm-slide__cap { visibility: hidden; }
.hm-motion .hm-slide.is-active .hm-slide__kick { animation: hm-block .9s .2s cubic-bezier(.77, 0, .175, 1) both; }
.hm-motion .hm-slide.is-active .hm-slide__line { animation: hm-block .9s .4s cubic-bezier(.77, 0, .175, 1) both; }
@keyframes hm-block { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.hm-slider .hm-slider__timer { position: absolute; top: 0; left: 0; z-index: 3; height: 10px; width: 0; margin: 0; background: rgba(255, 255, 255, .25); }
.hm-slider__arrow {
	position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%;
	background: rgba(0, 0, 0, .25); color: #fff; cursor: pointer; display: grid; place-items: center;
	opacity: 0; transition: opacity .3s, background-color .3s;
}
.hm-slider__arrow svg { width: 20px; height: 20px; fill: currentColor; }
.hm-slider__arrow:hover { background: rgba(0, 0, 0, .5); }
.hm-slider:hover .hm-slider__arrow, .hm-slider__arrow:focus-visible { opacity: 1; }
.hm-slider__prev { left: 20px; }
.hm-slider__next { right: 20px; }
.hm-dots { position: absolute; z-index: 3; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; align-items: center; }
.hm-dots button, .hm-review-dots button {
	width: 24px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center;
}
.hm-dots button::before { content: ""; width: 12px; height: 12px; background: #fff; opacity: .5; border: 1px solid rgba(0,0,0,.2); }
.hm-dots button[aria-current="true"]::before { opacity: 1; }
.hm-pause::before { content: ""; width: 10px; height: 12px; border-inline: 3px solid #fff; background: none !important; border-block: 0 !important; opacity: .85 !important; }
.hm-pause[aria-pressed="true"]::before { width: 0; height: 0; border-inline: 0; border-block: 6px solid transparent !important; border-left: 10px solid #fff; }

/* intro */
.hm-intro { background: var(--wp--preset--color--dark); padding-top: 100px; padding-bottom: 40px; }
.hm-kicker { font: 300 var(--wp--preset--font-size--kicker)/1.4 var(--wp--preset--font-family--heading); letter-spacing: 2px; text-transform: uppercase; color: var(--wp--preset--color--kicker); margin: 0 0 10px; }
.hm-title {
	display: table; margin: 0 auto 30px !important; position: relative; padding-bottom: 15px;
	font: 900 var(--wp--preset--font-size--heading-1)/1.1 var(--wp--preset--font-family--heading); letter-spacing: .5px; text-transform: uppercase;
}
.hm-title::after, .hm-reviews::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 70px; height: 3px; background: var(--hm-gold); transform: translateX(-50%); }
.hm-intro .hm-title { color: var(--wp--preset--color--surface); }
.hm-box { background: var(--wp--preset--color--box); padding: 60px 25px 30px; margin: 0 auto 70px; }
.hm-box p { color: var(--wp--preset--color--box-text); }
.hm-box a { color: inherit; }
.hm-box .wp-block-spacer, .hm-copy .wp-block-spacer { margin: 0; }

/* rooms and region */
.hm-room { background: var(--wp--preset--color--paper); padding-top: 100px; padding-bottom: 40px; }
.hm-room__row { gap: 0 30px; margin: 0; align-items: flex-start !important; }
.hm-room__row > .wp-block-column { min-width: 0; }
.hm-thumb { box-shadow: 0 20px 40px rgba(0, 0, 0, .3); margin: 0 0 30px; }
.hm-thumb img { width: 100%; display: block; }
.hm-room h2 {
	position: relative; padding-bottom: 15px; margin: 0 0 30px;
	font: 700 var(--wp--preset--font-size--heading-2)/1.15 var(--wp--preset--font-family--heading); text-transform: uppercase;
}
.hm-room h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 50px; height: 3px; background: var(--hm-gold); }
.hm-room__sub { font: 500 var(--wp--preset--font-size--h-4, 18px)/1.1 var(--wp--preset--font-family--heading); margin: 0 0 10px; }
.hm-copy { margin-bottom: 50px; }
.hm-copy > * { margin-block: 0 10px; }
.hm-room ul { margin: 0 0 10px; padding-left: 40px; color: var(--wp--preset--color--list-text); font: 400 var(--wp--preset--font-size--small)/22px var(--wp--preset--font-family--body); }
.hm-room li { margin: 0 0 7px; }
.hm-contact-line { font: 700 18px/1.4 var(--wp--preset--font-family--heading); color: var(--wp--preset--color--list-text); text-align: left; margin: 0 0 6px; }
.hm-contact-line a { color: inherit; }
.hm-book { margin: 0 0 20px; width: 177px; }
.hm-book img { width: 177px; display: block; }
.wp-block-separator.hm-rule { border: 0; border-top: 1px solid var(--wp--preset--color--accent-rule); margin: 20px auto 0 !important; opacity: 1; width: 100% !important; max-width: 1140px !important; }

/* reviews */
.hm-reviews { position: relative; background: var(--wp--preset--color--slate); padding-top: 100px; padding-bottom: 100px; text-align: center; }
.hm-reviews::before { top: 100px; bottom: auto; }
.hm-reviews__track { position: relative; overflow: hidden; padding-top: 83px; }
.hm-reviews__slides { display: flex; transition: transform .7s ease; }
.hm-review { flex: 0 0 100%; margin: 0 !important; }
.hm-reviews__track > .hm-review:not(:first-child) { display: none; }
.hm-review p { color: var(--wp--preset--color--surface); font: 400 16px/24px var(--wp--preset--font-family--heading); letter-spacing: .5px; width: 60%; margin: 0 auto 20px; }
.hm-review .hm-review__by { color: var(--hm-gold); font: 700 18px/1.2 var(--wp--preset--font-family--heading); }
.hm-review .hm-stars { color: var(--wp--preset--color--star); letter-spacing: 4px; font-size: 16px; }
.hm-review-dots { display: flex; justify-content: center; align-items: center; margin-top: 10px; }
.hm-review-dots button::before { content: ""; width: 15px; height: 15px; background: var(--wp--preset--color--bullet-idle); }
.hm-review-dots button[aria-current="true"]::before { background: var(--hm-gold); }
.hm-review-dots .hm-pause::before { border-color: var(--wp--preset--color--kicker); }
.hm-review-dots .hm-pause[aria-pressed="true"]::before { border-color: transparent; border-left-color: var(--wp--preset--color--kicker); }

/* contact */
.hm-contact { background: var(--wp--preset--color--paper); padding-top: 100px; padding-bottom: 100px; }
.hm-contact .hm-title { font: 700 var(--wp--preset--font-size--contact-title)/1.1 var(--wp--preset--font-family--heading); letter-spacing: 1px; padding-bottom: 10px; margin-bottom: 40px !important; }
.hm-lead { font: 500 var(--wp--preset--font-size--heading-3)/1.1 var(--wp--preset--font-family--heading); color: var(--wp--preset--color--ink); margin: 0 0 10px; }
.hm-contact .hm-lead + .hm-lead, .hm-contact-page .hm-lead + .hm-lead { margin-bottom: 60px; }
.hm-contact__row { gap: 30px; margin: 0; }
.hm-contacts { list-style: none; margin: 0; padding: 0 0 0 10px; font: 400 var(--wp--preset--font-size--small)/22px var(--wp--preset--font-family--body); color: var(--wp--preset--color--list-text); }
.hm-contacts li { margin: 0; }
.hm-contacts a { color: var(--wp--preset--color--accent-deep); display: inline-block; padding-block: 11px; margin-block: -11px; }
.hm-contacts li[class*="ic-"]::before {
	content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .3em; vertical-align: -.12em; background: currentColor;
	-webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat;
}
.ic-home { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5 1 7.6l.9 1L3 7.7V14h4v-4h2v4h4V7.7l1.1.9.9-1z'/%3E%3C/svg%3E"); }
.ic-envelope { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 3h14v10H1zm1.4 1L8 8.3 13.6 4zM2 5.1V12h12V5.1L8 9.6z'/%3E%3C/svg%3E"); }
.ic-phone { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.3 1.2 6.4 4 5 5.6a9 9 0 0 0 5.4 5.4L12 9.6l2.8 2.1-.9 2.6c-.3.6-1 .9-1.6.7C6.9 13.6 2.4 9.1 1 3.7c-.2-.7.1-1.3.7-1.6z'/%3E%3C/svg%3E"); }
.ic-globe { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1zm4.9 6.3h-2.2a10 10 0 0 0-.8-3.9 5.6 5.6 0 0 1 3 3.9zM8 2.5c.7.8 1.3 2.6 1.4 4.8H6.6c.1-2.2.7-4 1.4-4.8zM6.1 3.4a10 10 0 0 0-.8 3.9H3.1a5.6 5.6 0 0 1 3-3.9zM3.1 8.7h2.2c.1 1.5.4 2.8.8 3.9a5.6 5.6 0 0 1-3-3.9zM8 13.5c-.7-.8-1.3-2.6-1.4-4.8h2.8c-.1 2.2-.7 4-1.4 4.8zm1.9-.9c.4-1.1.7-2.4.8-3.9h2.2a5.6 5.6 0 0 1-3 3.9z'/%3E%3C/svg%3E"); }
.hm-map { margin-top: 22px; line-height: 0; }
.hm-map iframe { display: block; width: 100%; height: 200px; border: 0; }
.hm-contact-page { padding-top: 40px; padding-bottom: 60px; }
.hm-finished { text-align: center; padding-block: 60px; }

/* contact form (markup from the hastingsmotel-contact plugin) */
.hm-form { padding-inline: 10px; }
.hm-form label { display: block; font: 700 var(--wp--preset--font-size--small)/1.4 var(--wp--preset--font-family--body); color: var(--wp--preset--color--list-text); margin: 0 0 5px 10px; }
.hm-form input, .hm-form textarea {
	box-sizing: border-box; display: block; width: 100%; margin: 0 0 20px; padding: 6px 12px; border: 1px solid var(--wp--preset--color--field-rule); border-radius: 4px;
	background: var(--wp--preset--color--surface); font: 400 16px/1.4 var(--wp--preset--font-family--body); color: var(--wp--preset--color--list-text);
}
.hm-form input { min-height: 44px; }
.hm-form textarea { min-height: 110px; resize: vertical; }
.hm-form .hm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hm-form .wp-element-button, .is-style-send .wp-block-button__link {
	min-height: 44px; padding: 0 10px; border: 1px solid var(--wp--preset--color--header-rule); border-radius: 2px;
	background: var(--wp--preset--color--paper); color: var(--wp--preset--color--list-text); font: 400 var(--wp--preset--font-size--small)/1 var(--wp--preset--font-family--body); cursor: pointer;
}
.hm-form .wp-element-button:hover, .hm-form .wp-element-button:focus-visible { background: #e6e6e6; }
.hm-form__error { color: #a00; font-weight: 700; text-align: left; }

/* footer */
.hm-footer { background: var(--wp--preset--color--surface); border-top: 1px solid var(--hm-gold); }
.hm-footer__copy { font: 400 16px/1.5 var(--wp--preset--font-family--body); color: var(--wp--preset--color--body-text); text-align: left; margin: 0; padding: 25px 40px; }
.hm-to-top {
	position: fixed; right: 0; bottom: 80px; z-index: 1000; width: 44px; height: 44px; background: var(--hm-gold); color: #fff;
	border-radius: 22px 0 0 22px; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s ease, background-color .3s ease;
}
.hm-to-top.is-shown, .hm-to-top:focus-visible { opacity: 1; pointer-events: auto; }
.hm-to-top:hover, .hm-to-top:focus { background: rgba(0, 0, 0, .9); color: #fff; }
.hm-to-top svg { width: 18px; height: 18px; fill: currentColor; }

/* scroll fade-ins, only when scripted and motion is allowed */
.hm-motion .hm-fade { transition: opacity 1.5s ease, transform 1.5s ease; }
.hm-motion .hm-fade:not(.is-in) { opacity: 0; }
.hm-motion .hm-rise:not(.is-in) { transform: translateY(40px); }
.hm-motion .hm-delay-100 { transition-delay: .1s; }
.hm-motion .hm-delay-300 { transition-delay: .3s; }
.hm-motion .hm-delay-500 { transition-delay: .5s; }

/* core stacks columns at 782px; the design stacks below 768px */
@media (min-width: 768px) and (max-width: 781px) {
	.hm-room__row, .hm-contact__row { flex-wrap: nowrap !important; }
	.hm-room__row > .wp-block-column, .hm-contact__row > .wp-block-column { flex-basis: 0 !important; flex-grow: 1; }
}
@media (max-width: 767px) {
	.hm-header__bar { padding-block: 5px; }
	.hm-intro, .hm-contact, .hm-reviews { padding-top: 50px; padding-bottom: 50px; }
	.hm-reviews::before { top: 50px; }
	.hm-room { padding-top: 50px; }
	.hm-title { font-size: 28px; }
	.hm-review p { width: 100%; }
	.hm-slide__kick { margin-bottom: 40px; line-height: 22px; }
	.hm-slide__line { line-height: 40px; }
	.hm-slide__cap { top: calc(50% - 150px); }
	.hm-box { padding: 40px 16px 20px; }
	.hm-room ul { padding-left: 22px; }
	.hm-footer__copy { padding: 12px 20px 16px; text-align: center; }
	.hm-room__row { gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.hm-side-nav, .hm-to-top, .hm-reviews__slides, .hm-js .hm-slider .hm-slide { transition: none !important; }
}
