/* ==========================================================================
   Hastings Theme — main stylesheet
   Based on Figma: HASTINGS - Website / Desktop – homepage
   ========================================================================== */

:root {
	--hastings-red: #a52b31;
	--hastings-burgundy: #741c1e;
	--hastings-gray: #eeedeb;
	--hastings-gray-rock: #cdcdc5;
	--hastings-white: #ffffff;
	--hastings-black: #000000;

	--font-primary: "Poppins", Arial, sans-serif;

	--container-width: 1440px;
	--container-padding: 40px;

	--text-h3: 700 28px/36px var(--font-primary);
	--text-h2: 700 36px/47px var(--font-primary);
	--text-h4: 700 22px/28px var(--font-primary);
	--text-h5: 400 20px/1.4 var(--font-primary);
	--text-body: 400 16px/24px var(--font-primary);
	--text-small: 400 12px/1.4 var(--font-primary);
	--text-button: 500 16px/1 var(--font-primary);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font: var(--text-body);
	color: var(--hastings-black);
	background: var(--hastings-white);
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

.container {
	width: min(100%, var(--container-width));
	margin-inline: auto;
	padding-inline: var(--container-padding);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 9999;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--hastings-red);
	color: var(--hastings-white);
}

.brand-bar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	min-height: 90px;
}

.brand-bar__language {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}

.site-logo img {
	width: auto;
	height: auto;
}

.site-logo--horizontal img {
	display: block;
	width: 204px;
	height: 90px;
	object-fit: contain;
}

.site-logo--hero img {
	display: block;
	width: min(
		480px,
		calc(100vw - 3rem),
		calc((100svh - 10rem) * 600 / 680)
	);
	height: auto;
	aspect-ratio: 600 / 680;
	object-fit: contain;
}

.site-logo--footer img {
	display: block;
	width: 193px;
	height: 178px;
	object-fit: contain;
}

.language-switcher {
	position: relative;
	z-index: 30;
}

.language-switcher__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 35px;
	padding: 6px 12px;
	border: 0;
	border-radius: 5px;
	background: var(--hastings-white);
	color: var(--hastings-burgundy);
	font: var(--text-button);
	cursor: pointer;
}

.language-switcher__toggle:focus-visible {
	outline: 2px solid var(--hastings-red);
	outline-offset: 2px;
}

.language-switcher__arrow {
	font-size: 10px;
	line-height: 1;
	transition: transform 0.2s ease;
}

.language-switcher.is-open .language-switcher__arrow {
	transform: rotate(180deg);
}

.language-switcher__menu {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	min-width: 100%;
	padding: 4px 0;
	border-radius: 5px;
	background: var(--hastings-white);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.language-switcher__menu[hidden] {
	display: none;
}

.language-switcher__option {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 8px 12px;
	color: var(--hastings-burgundy);
	font: var(--text-button);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease, background 0.2s ease;
}

.language-switcher__option:hover,
.language-switcher__option:focus-visible {
	color: var(--hastings-red);
	background: var(--hastings-gray);
}

.language-switcher__text {
	line-height: 1;
}

.language-switcher__flag {
	display: inline-block;
	flex-shrink: 0;
	width: 22px;
	height: 16px;
	border-radius: 2px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.language-switcher__flag--us {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 16'%3E%3Crect width='22' height='16' fill='%23b22234'/%3E%3Cpath d='M0 1.23h22M0 3.69h22M0 6.15h22M0 8.62h22M0 11.08h22M0 13.54h22' stroke='%23fff' stroke-width='1.23'/%3E%3Crect width='8.8' height='8.62' fill='%233c3b6e'/%3E%3C/svg%3E");
}

.language-switcher__flag--ca {
	background-image: url("../images/flag-ca.webp");
	background-size: cover;
}

.language-switcher__flag--fr {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 16'%3E%3Crect width='7.33' height='16' fill='%23002495'/%3E%3Crect x='7.33' width='7.34' height='16' fill='%23fff'/%3E%3Crect x='14.67' width='7.33' height='16' fill='%23ed2939'/%3E%3C/svg%3E");
}

/* Hero */
.hero {
	position: relative;
	height: 100svh;
	min-height: 520px;
	overflow: hidden;
	background: var(--hastings-red);
	--hero-food-opacity: 0.95;
	--hero-food-width: 800px;
	--hero-corner-x: max(-14vw, -180px);
	--hero-corner-x-deep: max(-16vw, -200px);
}

.hero__background {
	position: absolute;
	inset: 0;
	background: var(--hastings-red);
}

.hero__images {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.hero__image {
	position: absolute;
	width: min(var(--hero-food-width), calc(100vw - 3rem));
	height: auto;
	object-fit: cover;
	opacity: 0;
	rotate: var(--hero-rotate, 0deg);
}

.hero__image--ramen {
	top: var(--hero-enter-y-end, -32%);
	--hero-enter-y-end: -32%;
	left: var(--hero-corner-x);
	--hero-rotate: 15deg;
	--hero-enter-left-end: var(--hero-corner-x);
	animation:
		hero-enter-from-corner-tl 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards,
		hero-float 18s ease-in-out 1.95s infinite;
}

.hero__image.hero__image--cold-cuts {
	width: 1100px;
	bottom: auto;
	--hero-rotate: -19deg;
	opacity: 0;
	animation:
		hero-enter-cold-cuts 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both,
		hero-float 18s ease-in-out 2.15s infinite;
}

.hero__image--grilled-cheese {
	top: var(--hero-enter-y-end, -30%);
	--hero-enter-y-end: -30%;
	right: var(--hero-corner-x);
	--hero-rotate: -23deg;
	--hero-enter-right-end: var(--hero-corner-x);
	animation:
		hero-enter-from-corner-tr 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards,
		hero-float 18s ease-in-out 2.05s infinite;
}

.hero__image--waffle {
	bottom: var(--hero-enter-y-end, -32%);
	--hero-enter-y-end: -32%;
	right: max(-12vw, -160px);
	--hero-rotate: 7deg;
	--hero-enter-right-end: max(-12vw, -160px);
	animation:
		hero-enter-from-corner-br 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards,
		hero-float 18s ease-in-out 2.25s infinite;
}

/* Outward arc from each screen corner — no inward overshoot */
@keyframes hero-enter-from-corner-tl {
	0% {
		left: -52vw;
		top: -48%;
		opacity: 0;
	}
	50% {
		left: -38vw;
		top: -42%;
		opacity: 0.6;
	}
	100% {
		left: var(--hero-enter-left-end);
		top: var(--hero-enter-y-end);
		opacity: var(--hero-food-opacity);
	}
}

@keyframes hero-enter-from-corner-bl {
	0% {
		left: -54vw;
		bottom: -50%;
		opacity: 0;
	}
	50% {
		left: -40vw;
		bottom: -44%;
		opacity: 0.6;
	}
	100% {
		left: var(--hero-enter-left-end);
		bottom: var(--hero-enter-y-end);
		opacity: var(--hero-food-opacity);
	}
}

@keyframes hero-enter-cold-cuts {
	0% {
		left: -110vw;
		top: 90vh;
		opacity: 0;
	}
	50% {
		left: -60vw;
		top: 60vh;
		opacity: 0.6;
	}
	100% {
		left: -357px;
		top: 387px;
		opacity: var(--hero-food-opacity);
	}
}

@keyframes hero-enter-from-corner-tr {
	0% {
		right: -52vw;
		top: -48%;
		opacity: 0;
	}
	50% {
		right: -38vw;
		top: -42%;
		opacity: 0.6;
	}
	100% {
		right: var(--hero-enter-right-end);
		top: var(--hero-enter-y-end);
		opacity: var(--hero-food-opacity);
	}
}

@keyframes hero-enter-from-corner-br {
	0% {
		right: -54vw;
		bottom: -50%;
		opacity: 0;
	}
	50% {
		right: -40vw;
		bottom: -44%;
		opacity: 0.6;
	}
	100% {
		right: var(--hero-enter-right-end);
		bottom: var(--hero-enter-y-end);
		opacity: var(--hero-food-opacity);
	}
}

@keyframes hero-float {
	0%,
	100% {
		translate: 0 0;
	}
	50% {
		translate: 0 -12px;
	}
}

.hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 2rem 1.5rem;
}

.hero__logo-mark {
	opacity: 1;
	animation: hero-logo-in 1.2s ease 0.4s both;
}

.hero__scroll {
	margin-top: 2rem;
	width: 48px;
	height: 48px;
	border: 2px solid rgba(255, 255, 255, 0.8);
	border-radius: 50%;
	background: transparent;
	color: var(--hastings-white);
	cursor: pointer;
	opacity: 1;
	animation: hero-logo-in 1s ease 1s both;
}

@keyframes hero-logo-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Brand bar */
.brand-bar {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--hastings-white);
	padding: 2rem 0 1rem;
}

/* Intro */
.homepage-intro {
	padding: 2rem 0 3rem;
	background: var(--hastings-white);
}

.homepage-intro__text {
	max-width: 1200px;
	margin: 0 auto;
	font: var(--text-h5);
	text-align: center;
}

/* Products section */
.products-section {
	background: var(--hastings-gray);
	padding: 4rem 0 5rem;
}

.products-section__title {
	margin: 0 0 2rem;
	font: var(--text-h2);
	color: var(--hastings-red);
	text-align: center;
	text-transform: uppercase;
}

.products-section__search {
	max-width: 620px;
	margin: 0 auto 3rem;
	/* Temporarily hidden — remove display:none to restore product search */
	display: none;
}

.product-search {
	position: relative;
}

.product-search__icon {
	position: absolute;
	left: 1.25rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--hastings-burgundy);
	pointer-events: none;
}

.product-search__input {
	width: 100%;
	height: 56px;
	padding: 0 1.25rem 0 3rem;
	border: 1px solid rgba(116, 28, 30, 0.15);
	border-radius: 5px;
	background: var(--hastings-white);
	color: var(--hastings-burgundy);
	font: var(--text-body);
}

.product-search__input::placeholder {
	color: rgba(116, 28, 30, 0.6);
}

.products-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
}

.product-card {
	background: var(--hastings-white);
	border-radius: 5px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.product-card__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 335px;
	padding: 1rem 1rem 1.25rem;
	text-align: center;
}

.product-card__image-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 220px;
	overflow: hidden;
}

.product-card__image {
	width: auto;
	max-height: 100%;
	object-fit: contain;
}

.product-card__title {
	margin: 1rem 0 0.35rem;
	font: var(--text-h4);
	color: var(--hastings-red);
	text-transform: uppercase;
}

.product-card__model {
	margin: 0;
	font: var(--text-body);
	color: var(--hastings-black);
}

/* Footer */
.site-footer {
	background: var(--hastings-red);
	color: var(--hastings-white);
	padding: 0 0 2rem;
}

.site-footer__newsletter {
	background: var(--hastings-burgundy);
	padding: 2rem 0;
	margin-bottom: 2rem;
}

.site-footer__newsletter-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(1.5rem, 4vw, 3rem);
	flex-wrap: wrap;
}

.site-footer__newsletter-title {
	margin: 0;
	font: 700 18px/1.2 var(--font-primary);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--hastings-white);
	text-align: center;
}

.site-footer__newsletter-form {
	display: flex;
	align-items: stretch;
	flex: 0 1 auto;
	min-width: min(100%, 380px);
	max-width: 100%;
	border: 1px solid var(--hastings-white);
	border-radius: 5px;
	overflow: hidden;
	background: var(--hastings-white);
}

.site-footer__newsletter-input {
	flex: 1 1 auto;
	min-width: 0;
	width: 280px;
	height: 44px;
	padding: 0 1.25rem;
	border: 0;
	background: var(--hastings-white);
	color: var(--hastings-black);
	font: var(--text-body);
}

.site-footer__newsletter-input::placeholder {
	color: #9f9f9f;
}

.site-footer__newsletter-input:focus {
	outline: none;
}

.site-footer__newsletter-button {
	flex: 0 0 auto;
	height: 44px;
	padding: 0 1.5rem;
	border: 0;
	border-left: 1px solid var(--hastings-white);
	background: var(--hastings-red);
	color: var(--hastings-white);
	font: var(--text-button);
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s ease;
}

.site-footer__newsletter-button:hover {
	background: #8f2326;
}

.site-footer__newsletter-success {
	margin: 0;
	font: var(--text-body);
	color: var(--hastings-white);
	text-align: center;
}

.footer-di-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.site-footer__main {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 2rem;
	margin-bottom: 2rem;
	padding-top: 1.5rem;
}

.site-footer__button--contact {
	justify-self: end;
}

.site-footer__button--parts {
	justify-self: start;
}

.site-footer__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 150px;
	padding: 6px 21px;
	border: 1px solid var(--hastings-white);
	border-radius: 5px;
	color: var(--hastings-white);
	font: var(--text-button);
	transition: background 0.2s ease, color 0.2s ease;
}

.site-footer__button:hover {
	background: var(--hastings-white);
	color: var(--hastings-red);
}

.site-footer__brand {
	display: flex;
	justify-content: center;
	margin: 0;
}

.site-footer__legal {
	text-align: center;
	font: var(--text-small);
}

.site-footer__copyright {
	margin: 0 0 0.5rem;
}

.site-footer__links {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
}

.site-footer__links a:hover {
	text-decoration: underline;
}

/* Inner pages */
.page-content {
	padding: 4rem 0;
}

.page-content__title {
	margin-top: 0;
	font: var(--text-h2);
	color: var(--hastings-red);
}

.single-product {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	padding: 4rem 0;
	align-items: start;
}

/* Product page */
.product-page {
	background: var(--hastings-white);
}

.product-section-title {
	margin: 0 0 2rem;
	font: var(--text-h3);
	color: var(--hastings-red);
	text-align: center;
}

.product-gallery {
	padding: 2rem 0 3rem;
}

.product-gallery__inner {
	max-width: 1200px;
}

.product-gallery__main {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 520px;
	padding: 2rem 5rem;
	background: var(--hastings-gray);
	border-radius: 10px;
	overflow: hidden;
}

.product-gallery__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.product-gallery__main-image {
	width: auto;
	max-width: 100%;
	max-height: 460px;
	object-fit: contain;
	transform: scale(1);
	transition: transform 0.45s ease;
	will-change: transform;
}

.product-gallery__stage:hover .product-gallery__main-image {
	transform: scale(1.3);
}

.product-gallery__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transform: translateY(-50%);
}

.product-gallery__prev {
	left: 1.5rem;
}

.product-gallery__next {
	right: 1.5rem;
}

.product-gallery__nav-icon {
	display: block;
	width: 54px;
	height: 27px;
	object-fit: contain;
}

.product-gallery__nav-icon--prev,
.product-gallery__nav-icon--next {
	transform: none;
}

.product-gallery__thumbs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px;
	margin-top: 1.25rem;
}

.product-gallery__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 118px;
	width: 118px;
	min-height: 110px;
	padding: 0.75rem;
	border: 2px solid transparent;
	border-radius: 5px;
	background: var(--hastings-gray);
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.product-gallery__thumb.is-active,
.product-gallery__thumb:hover {
	border-color: #cbcaca;
}

.product-gallery__thumb img {
	width: 100%;
	max-height: 90px;
	object-fit: contain;
}

.product-intro {
	padding: 1rem 0 3rem;
}

.product-intro__inner {
	max-width: 880px;
	text-align: center;
}

.product-intro__title {
	margin: 0;
	font: 800 48px/58px var(--font-primary);
	color: var(--hastings-red);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.product-intro__model {
	margin: 0.25rem 0 1.5rem;
	font: 300 24px/32px var(--font-primary);
	color: var(--hastings-black);
}

.product-intro__text {
	font: var(--text-h5);
	color: var(--hastings-black);
}

.product-intro__text p {
	margin: 0;
}

.product-features {
	padding: 2rem 0 3.5rem;
	/* Temporarily hidden — remove display:none to restore Features section */
	display: none;
}

.product-features__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.product-features__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.product-features__icon {
	width: 80px;
	height: 80px;
	margin-bottom: 1rem;
	object-fit: contain;
}

.product-features__label {
	margin: 0;
	font: var(--text-body);
	color: var(--hastings-red);
}

.product-specifications {
	padding: 0 0 3.5rem;
}

.product-specifications__inner {
	max-width: 808px;
}

.product-specifications__content {
	font: var(--text-body);
	color: var(--hastings-black);
	text-align: center;
}

.product-specifications__content p {
	margin: 0;
	line-height: 1.8;
}

.product-info-grid {
	padding: 0 0 4rem;
}

.product-info-grid__inner {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
	align-items: start;
	max-width: 900px;
}

.product-info-grid__title {
	margin: 0 0 1.5rem;
	font: var(--text-h3);
	color: var(--hastings-red);
	text-align: center;
}

.product-info-grid__item {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.product-info-grid__warranty {
	width: auto;
	max-width: 90px;
	height: auto;
}

.product-info-grid__certs {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.product-info-grid__certs img {
	width: auto;
	max-height: 56px;
}

.product-info-grid__plug {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.product-info-grid__plug-label {
	font: var(--text-body);
	color: var(--hastings-black);
}

.product-documents {
	padding: 0 0 5rem;
}

.product-documents__inner {
	max-width: 900px;
}

.product-documents__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.product-documents__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	text-align: center;
	color: var(--hastings-red);
	transition: opacity 0.2s ease;
}

.product-documents__link:hover {
	opacity: 0.75;
}

.product-documents__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
}

.product-documents__label {
	font: var(--text-body);
}

.single-product__title {
	margin: 0 0 0.5rem;
	font: var(--text-h2);
	color: var(--hastings-red);
	text-transform: uppercase;
}

.single-product__model {
	margin: 0 0 1.5rem;
	font: var(--text-body);
}

.single-product__image {
	width: 100%;
	border-radius: 5px;
	background: var(--hastings-gray);
}

.single-product__cta {
	display: inline-flex;
	background: transparent;
}

.products-section--archive,
.products-section--search {
	padding-top: 5rem;
}

/* Contact page */
.contact-page {
	background: var(--hastings-white);
}

.contact-hero {
	padding: 0 0 2rem;
	width: 100%;
}

.contact-hero__image-wrap {
	width: 100%;
}

.contact-hero__image {
	display: block;
	width: 100%;
	height: 240px;
	object-fit: cover;
	object-position: center;
}

.contact-page__intro {
	padding: 0 0 2rem;
}

.contact-page__intro-inner {
	max-width: 880px;
	text-align: center;
}

.contact-page__title {
	margin: 0 0 1rem;
	font: var(--text-h2);
	color: var(--hastings-red);
}

.contact-page__lead {
	margin: 0;
	font: 400 18px/27px var(--font-primary);
	color: var(--hastings-black);
}

.contact-coordinates {
	padding: 0 0 2.5rem;
}

.contact-coordinates__inner {
	max-width: 880px;
	text-align: center;
}

.contact-coordinates__title {
	margin: 0 0 1rem;
	font: var(--text-h4);
	color: var(--hastings-red);
}

.contact-coordinates__phone {
	margin: 0 0 1.25rem;
	font: var(--text-body);
	color: var(--hastings-black);
}

.contact-coordinates__hours-label {
	margin: 0 0 0.25rem;
	font: 700 16px/24px var(--font-primary);
	color: var(--hastings-black);
}

.contact-coordinates__hours-value {
	margin: 0;
	font: var(--text-body);
	color: var(--hastings-black);
}

.contact-form-section {
	background: var(--hastings-gray);
	padding: 3rem 0 4.5rem;
}

.contact-form-section__inner {
	max-width: 650px;
}

.container.contact-form-section__inner {
	padding-top: 50px;
}

.contact-form__notice {
	margin-bottom: 1.5rem;
	padding: 0.875rem 1rem;
	border-radius: 5px;
	background: var(--hastings-white);
	border: 1px solid var(--hastings-gray-rock);
	font: var(--text-body);
	text-align: center;
}

.contact-form__field {
	margin-bottom: 1.35rem;
}

.contact-form__label {
	display: block;
	margin-bottom: 0.35rem;
	font: var(--text-body);
	color: var(--hastings-black);
}

.contact-form__required {
	color: var(--hastings-red);
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
	width: 100%;
	border: 1px solid var(--hastings-gray-rock);
	border-radius: 5px;
	background: var(--hastings-white);
	color: var(--hastings-black);
	font: var(--text-body);
}

.contact-form__input,
.contact-form__select {
	height: 40px;
	padding: 0 15px;
}

.contact-form__select-wrap {
	position: relative;
}

.contact-form__select {
	appearance: none;
	cursor: pointer;
}

.contact-form__textarea {
	min-height: 133px;
	padding: 12px 15px;
	resize: vertical;
}

.contact-form__recaptcha {
	margin: 1.75rem 0 1.5rem;
}

.contact-form__recaptcha-box {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	max-width: 352px;
	margin: 0 auto;
	padding: 0.875rem 1rem;
	border: 1px solid var(--hastings-gray-rock);
	border-radius: 3px;
	background: var(--hastings-white);
}

.contact-form__recaptcha-check {
	width: 24px;
	height: 24px;
	border: 2px solid var(--hastings-gray-rock);
	border-radius: 2px;
	background: var(--hastings-white);
	flex-shrink: 0;
}

.contact-form__recaptcha-text {
	flex: 1;
	font: var(--text-body);
	color: var(--hastings-black);
}

.contact-form__recaptcha-badge {
	font: 400 10px/1.2 var(--font-primary);
	color: #666;
	text-align: right;
}

.contact-form__recaptcha-note {
	margin: 0.75rem 0 0;
	font: 400 12px/1.4 var(--font-primary);
	color: #666;
	text-align: center;
}

.contact-form__actions {
	display: flex;
	justify-content: center;
}

.contact-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 97px;
	height: 40px;
	padding: 6px 21px;
	border: 1px solid var(--hastings-red);
	border-radius: 5px;
	background: var(--hastings-gray);
	color: var(--hastings-red);
	font: 500 20px/1 var(--font-primary);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.contact-form__submit:hover {
	background: var(--hastings-red);
	color: var(--hastings-white);
}

/* Parts & Service page */
.parts-service-page {
	background: var(--hastings-white);
}

.parts-service-page__intro {
	padding: 0 0 2rem;
}

.parts-service-page__intro-inner {
	max-width: 880px;
	text-align: center;
}

.parts-service-page__title {
	margin: 0 0 1rem;
	font: var(--text-h2);
	color: var(--hastings-red);
}

.parts-service-page__lead {
	margin: 0;
	font: 400 18px/27px var(--font-primary);
	color: var(--hastings-black);
}

/* Legal pages */
.legal-page {
	background: var(--hastings-white);
}

.legal-page__body {
	padding: 3rem 0 5rem;
}

.legal-page__inner {
	max-width: 1120px;
}

.legal-page__header {
	margin-bottom: 2.5rem;
	text-align: center;
}

.legal-page__meta {
	margin: 0;
	font: var(--text-small);
	color: var(--hastings-burgundy);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-align: center;
}

.legal-page__content {
	color: var(--hastings-black);
}

.legal-page__title {
	margin: 0 0 0.75rem;
	font: var(--text-h2);
	color: var(--hastings-red);
	text-align: center;
	text-transform: uppercase;
}

.legal-page__intro {
	margin-bottom: 2.5rem;
	padding: 1.5rem 1.75rem;
	background: var(--hastings-gray);
	border-radius: 5px;
}

.legal-page__intro p {
	margin: 0 0 1rem;
	font: var(--text-body);
}

.legal-page__intro p:last-child {
	margin-bottom: 0;
}

.legal-page__content h2 {
	margin: 2.5rem 0 1rem;
	font: var(--text-h4);
	color: var(--hastings-red);
	text-transform: uppercase;
}

.legal-page__content h3 {
	margin: 1.75rem 0 0.75rem;
	font: 700 18px/26px var(--font-primary);
	color: var(--hastings-burgundy);
}

.legal-page__content p {
	margin: 0 0 1rem;
	font: var(--text-body);
}

.legal-page__content ul {
	margin: 0 0 1.25rem;
	padding-left: 1.25rem;
	font: var(--text-body);
}

.legal-page__content li {
	margin-bottom: 0.5rem;
}

.legal-page__content a {
	color: var(--hastings-red);
	text-decoration: underline;
}

.legal-page__content a:hover {
	color: var(--hastings-burgundy);
}

.legal-page__updated {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--hastings-gray-rock);
	font: var(--text-small);
	color: var(--hastings-burgundy);
}

.parts-service-form-section {
	padding-top: 0;
}

.parts-service-tabs {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 2rem;
}

.parts-service-tabs__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 120px;
	height: 40px;
	padding: 6px 21px;
	border: 1px solid var(--hastings-red);
	border-radius: 5px;
	background: var(--hastings-white);
	color: var(--hastings-red);
	font: 500 20px/1 var(--font-primary);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.parts-service-tabs__button.is-active {
	background: var(--hastings-red);
	color: var(--hastings-white);
}

.parts-service-panel {
	display: none;
}

.parts-service-panel.is-active {
	display: block;
}

.contact-form__required--orange {
	color: #d8520a;
}

.parts-service-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin: 0 0 1.25rem;
	cursor: pointer;
}

.parts-service-checkbox--inline {
	margin: 0.5rem 0 0.75rem;
}

.parts-service-checkbox input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.parts-service-checkbox__icon {
	width: 20px;
	height: 20px;
	border: 1px solid var(--hastings-gray-rock);
	border-radius: 50%;
	background: var(--hastings-white);
	flex-shrink: 0;
	margin-top: 2px;
}

.parts-service-checkbox input:checked + .parts-service-checkbox__icon {
	border-color: var(--hastings-red);
	background: var(--hastings-red);
	box-shadow: inset 0 0 0 3px var(--hastings-white);
}

.parts-service-checkbox__text {
	font: var(--text-body);
	color: var(--hastings-black);
}

.parts-service-upload {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 56px;
	padding: 0.875rem 1rem;
	border: 1px solid var(--hastings-gray-rock);
	border-radius: 5px;
	background: var(--hastings-white);
}

.parts-service-upload__icon {
	width: 20px;
	height: 20px;
}

.parts-service-upload__label {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	cursor: pointer;
}

.parts-service-upload__input {
	display: none;
}

.parts-service-upload__text {
	font: var(--text-body);
	color: var(--hastings-black);
}

.parts-service-upload__filename {
	margin: 0;
	font: 400 14px/1.4 var(--font-primary);
	color: var(--hastings-burgundy);
}

/* Responsive */
@media (min-width: 1400px) {
	.hero {
		--hero-corner-x: max(-10vw, -140px);
		--hero-corner-x-deep: max(-12vw, -160px);
	}

	.hero__image--ramen {
		--hero-enter-y-end: -26%;
	}

	.hero__image--cold-cuts {
		--hero-enter-y-end: -28%;
	}

	.hero__image--grilled-cheese {
		--hero-enter-y-end: -24%;
	}

	.hero__image--waffle {
		--hero-enter-y-end: -26%;
		right: max(-8vw, -120px);
		--hero-enter-right-end: max(-8vw, -120px);
	}
}

@media (min-width: 1800px) {
	.hero {
		--hero-corner-x: -120px;
		--hero-corner-x-deep: -140px;
	}

	.hero__image--ramen {
		--hero-enter-y-end: -22%;
	}

	.hero__image--cold-cuts {
		--hero-enter-y-end: -24%;
	}

	.hero__image--grilled-cheese {
		--hero-enter-y-end: -20%;
	}

	.hero__image--waffle {
		--hero-enter-y-end: -22%;
		right: -100px;
		--hero-enter-right-end: -100px;
	}
}

@media (min-width: 2200px) {
	.hero {
		--hero-corner-x: -80px;
		--hero-corner-x-deep: -100px;
	}

	.hero__image--ramen {
		--hero-enter-y-end: -18%;
	}

	.hero__image--cold-cuts {
		--hero-enter-y-end: -20%;
	}

	.hero__image--grilled-cheese {
		--hero-enter-y-end: -16%;
	}

	.hero__image--waffle {
		--hero-enter-y-end: -18%;
		right: -70px;
		--hero-enter-right-end: -70px;
	}
}

@media (max-width: 1200px) {
	.products-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.hero {
		--hero-food-width: min(800px, 58vw);
	}

	.hero__image--ramen {
		--hero-enter-y-end: -22%;
		left: -24vw;
		--hero-enter-left-start: -68vw;
		--hero-enter-left-end: -24vw;
	}

	.hero__image--cold-cuts {
		--hero-enter-y-end: -24%;
		left: -26vw;
		--hero-enter-left-start: -72vw;
		--hero-enter-left-end: -26vw;
	}

	.hero__image--grilled-cheese {
		--hero-enter-y-end: -20%;
		right: -24vw;
		--hero-enter-right-start: -68vw;
		--hero-enter-right-end: -24vw;
	}

	.hero__image--waffle {
		--hero-enter-y-end: -22%;
		right: -22vw;
		--hero-enter-right-start: -70vw;
		--hero-enter-right-end: -22vw;
	}

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

	.single-product {
		grid-template-columns: 1fr;
	}

	.product-features__grid,
	.product-info-grid__inner,
	.product-documents__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.product-intro__title {
		font-size: 36px;
		line-height: 44px;
	}

	.brand-bar__language {
		position: static;
		transform: none;
	}

	.brand-bar__inner {
		flex-direction: column;
		gap: 1rem;
	}
}

@media (max-width: 600px) {
	:root {
		--container-padding: 20px;
	}

	.hero {
		--hero-food-opacity: 0.75;
		--hero-food-width: min(520px, 56vw);
	}

	.hero__image {
		max-height: 32svh;
		object-fit: contain;
	}

	.hero__image--ramen {
		--hero-enter-y-end: -30%;
		left: -34vw;
		--hero-enter-left-start: -78vw;
		--hero-enter-left-end: -34vw;
	}

	.hero__image--cold-cuts {
		--hero-enter-y-end: -32%;
		left: -36vw;
		--hero-enter-left-start: -82vw;
		--hero-enter-left-end: -36vw;
	}

	.hero__image--grilled-cheese {
		--hero-enter-y-end: -28%;
		right: -34vw;
		--hero-enter-right-start: -78vw;
		--hero-enter-right-end: -34vw;
	}

	.hero__image--waffle {
		--hero-enter-y-end: -30%;
		right: -32vw;
		--hero-enter-right-start: -80vw;
		--hero-enter-right-end: -32vw;
	}

	.products-grid {
		grid-template-columns: 1fr;
	}

	.product-features__grid,
	.product-info-grid__inner,
	.product-documents__list {
		grid-template-columns: 1fr;
	}

	.product-gallery__main {
		min-height: 320px;
		padding: 1rem 3.5rem;
	}

	.contact-form-section {
		padding: 2rem 0 3rem;
	}

	.site-footer__newsletter-inner {
		flex-direction: column;
	}

	.site-footer__newsletter-form {
		width: 100%;
		min-width: 0;
	}

	.site-footer__newsletter-input {
		width: auto;
	}

	.site-footer__main {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"brand brand"
			"contact parts";
		justify-items: center;
		gap: 1.5rem 1rem;
	}

	.site-footer__brand {
		grid-area: brand;
	}

	.site-footer__button--contact {
		grid-area: contact;
		justify-self: end;
	}

	.site-footer__button--parts {
		grid-area: parts;
		justify-self: start;
	}
}

@media (max-height: 860px) {
	.hero {
		--hero-food-width: min(640px, 48vw, calc(34svh * 1.35));
	}

	.hero__image {
		max-height: 34svh;
		object-fit: contain;
	}

	.hero__image--ramen {
		--hero-enter-y-end: -40%;
		left: -24vw;
		--hero-enter-left-start: -62vw;
		--hero-enter-left-end: -24vw;
	}

	.hero__image--cold-cuts {
		--hero-enter-y-end: -42%;
		left: -26vw;
		--hero-enter-left-start: -66vw;
		--hero-enter-left-end: -26vw;
	}

	.hero__image--grilled-cheese {
		--hero-enter-y-end: -38%;
		right: -24vw;
		--hero-enter-right-start: -62vw;
		--hero-enter-right-end: -24vw;
	}

	.hero__image--waffle {
		--hero-enter-y-end: -40%;
		right: -22vw;
		--hero-enter-right-start: -64vw;
		--hero-enter-right-end: -22vw;
	}
}

@media (max-height: 700px) {
	.hero {
		--hero-food-width: min(480px, 44vw, calc(30svh * 1.3));
	}

	.hero__image {
		max-height: 30svh;
	}

	.hero__image--ramen {
		--hero-enter-y-end: -48%;
		left: -28vw;
		--hero-enter-left-end: -28vw;
	}

	.hero__image--cold-cuts {
		--hero-enter-y-end: -50%;
		left: -30vw;
		--hero-enter-left-end: -30vw;
	}

	.hero__image--grilled-cheese {
		--hero-enter-y-end: -46%;
		right: -28vw;
		--hero-enter-right-end: -28vw;
	}

	.hero__image--waffle {
		--hero-enter-y-end: -48%;
		right: -26vw;
		--hero-enter-right-end: -26vw;
	}
}

@media (max-width: 900px) and (max-height: 860px) {
	.hero {
		--hero-food-width: min(480px, 52vw, calc(32svh * 1.25));
	}

	.hero__image {
		max-height: 32svh;
	}

	.hero__image--ramen {
		--hero-enter-y-end: -36%;
		left: -30vw;
		--hero-enter-left-end: -30vw;
	}

	.hero__image--cold-cuts {
		--hero-enter-y-end: -38%;
		left: -32vw;
		--hero-enter-left-end: -32vw;
	}

	.hero__image--grilled-cheese {
		--hero-enter-y-end: -34%;
		right: -30vw;
		--hero-enter-right-end: -30vw;
	}

	.hero__image--waffle {
		--hero-enter-y-end: -36%;
		right: -28vw;
		--hero-enter-right-end: -28vw;
	}
}

@media (max-width: 600px) and (max-height: 860px) {
	.hero {
		--hero-food-width: min(380px, 54vw, calc(28svh * 1.2));
	}

	.hero__image {
		max-height: 28svh;
	}

	.hero__image--ramen {
		--hero-enter-y-end: -42%;
		left: -38vw;
		--hero-enter-left-end: -38vw;
	}

	.hero__image--cold-cuts {
		--hero-enter-y-end: -44%;
		left: -40vw;
		--hero-enter-left-end: -40vw;
	}

	.hero__image--grilled-cheese {
		--hero-enter-y-end: -40%;
		right: -38vw;
		--hero-enter-right-end: -38vw;
	}

	.hero__image--waffle {
		--hero-enter-y-end: -42%;
		right: -36vw;
		--hero-enter-right-end: -36vw;
	}
}

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

	.hero__image,
	.hero__logo-mark,
	.hero__scroll {
		animation: none;
		opacity: 1;
	}

	.hero__image--ramen {
		--hero-enter-y-end: -32%;
		left: var(--hero-corner-x);
	}

	.hero__image.hero__image--cold-cuts {
		left: -357px;
		top: 387px;
		opacity: var(--hero-food-opacity);
	}

	.hero__image--grilled-cheese {
		--hero-enter-y-end: -30%;
		right: var(--hero-corner-x);
	}

	.hero__image--waffle {
		--hero-enter-y-end: -32%;
		right: max(-12vw, -160px);
	}

	.product-gallery__main-image {
		transition: none;
	}

	.product-gallery__stage:hover .product-gallery__main-image {
		transform: none;
	}
}
