/* Jose Massis */

:root {
	--jm-navy: #00244b;
	--jm-navy-deep: #001a36;
	--jm-gold: #b08d57;
	--jm-gold-soft: #c4b49a;
	--jm-text: #f5f5f5;
	--jm-muted: rgba(255, 255, 255, 0.72);
	--jm-header-h: 84px;
	--jm-serif: "Merriweather", Georgia, serif;
	--jm-sans: Inter, system-ui, sans-serif;
}

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

html,
body {
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--jm-sans);
	color: var(--jm-text);
	background: var(--jm-navy);
}

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

a {
	color: inherit;
}

.jm-container {
	width: min(1180px, calc(100% - 48px));
	margin: 0 auto;
}

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

/* Header */

.jm-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	color: #2f3235;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.jm-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: var(--jm-header-h);
	max-width: 1280px;
	margin: 0 auto;
	padding: 8px 28px;
	gap: 20px;
}

.jm-logo {
	justify-self: start;
	line-height: 0;
	text-decoration: none;
}

.jm-logo .custom-logo-link,
.jm-logo .custom-logo {
	display: block;
}

.jm-logo .custom-logo,
.jm-logo__img {
	max-height: 68px;
	width: auto;
	height: 68px;
}

.jm-nav {
	justify-self: center;
}

.jm-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jm-nav a {
	display: inline-block;
	padding: 8px 0 6px;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.01em;
	text-decoration: none;
	color: #2f3235;
	border-bottom: 1px solid transparent;
}

.jm-nav a:hover {
	color: var(--jm-gold);
}

.jm-nav .is-current a {
	color: var(--jm-gold);
	border-bottom-color: var(--jm-gold);
}

.jm-header__tools {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 16px;
}

.jm-lang {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 4px 12px 4px 8px;
	border: 1px solid rgba(47, 50, 53, 0.14);
	border-radius: 999px;
	background: #f7f5f1;
	color: #2f3235;
	text-decoration: none;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.jm-lang:hover {
	border-color: var(--jm-gold);
	background: #fff;
}

.jm-lang__flag {
	font-size: 16px;
	line-height: 1;
}

.jm-lang__code {
	color: var(--jm-gold);
}

.jm-lang__hint {
	color: #8a8d91;
	font-weight: 500;
}

.jm-cart {
	display: inline-flex;
	color: #2f3235;
}

/* Hero carousel */

.jm-hero {
	position: relative;
	min-height: clamp(520px, 78vh, 720px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	color: #fff;
}

.jm-carousel {
	position: absolute;
	inset: 0;
}

.jm-carousel__viewport {
	height: 100%;
	overflow: hidden;
}

.jm-carousel__track {
	display: flex;
	height: 100%;
	transition: transform 0.8s ease;
	will-change: transform;
}

.jm-carousel__slide {
	position: relative;
	flex: 0 0 100%;
	height: 100%;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.jm-carousel__slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 18, 40, 0.55) 0%, rgba(0, 18, 40, 0.18) 55%, rgba(0, 18, 40, 0.35) 100%);
}

.jm-carousel__prev,
.jm-carousel__next {
	position: absolute;
	top: 50%;
	z-index: 3;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.28);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.jm-carousel__prev {
	left: 18px;
}

.jm-carousel__next {
	right: 18px;
}

.jm-carousel__dots {
	position: absolute;
	left: 50%;
	bottom: 22px;
	z-index: 3;
	display: flex;
	gap: 10px;
	transform: translateX(-50%);
}

.jm-carousel__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
}

.jm-carousel__dot.is-active {
	background: var(--jm-gold);
}

.jm-hero__content {
	position: relative;
	z-index: 2;
	max-width: 640px;
	padding: 0 8vw 86px;
}

.jm-hero__title {
	margin: 0 0 18px;
	font-family: var(--jm-serif);
	font-size: clamp(42px, 7vw, 70px);
	font-weight: 500;
	line-height: 1.05;
}

.jm-hero__quote {
	margin: 0;
	max-width: 34ch;
	font-size: clamp(15px, 1.6vw, 18px);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.92);
}

/* Sections */

.jm-section {
	padding: 88px 0;
}

.jm-section__title {
	margin: 0 0 42px;
	font-family: var(--jm-serif);
	font-size: clamp(34px, 4vw, 48px);
	font-weight: 500;
	text-align: center;
	color: #fff;
}

.jm-section__title--left {
	text-align: left;
}

.jm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 22px;
	border: 0;
	background: var(--jm-gold);
	color: #fff;
	font: inherit;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
}

.jm-btn--pill {
	border-radius: 999px;
	background: linear-gradient(90deg, #7ec8d8, #5aa7c7);
	padding-inline: 28px;
}

.jm-btn--light {
	background: #fff;
	color: #222;
}

/* Galleries */

.jm-galleries {
	background: var(--jm-navy);
}

.jm-galleries__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 28px 24px;
	justify-items: center;
}

.jm-gallery-card {
	grid-column: span 2;
	width: 100%;
	max-width: 280px;
	text-decoration: none;
	color: #fff;
	text-align: center;
}

.jm-gallery-card:nth-child(4),
.jm-gallery-card:nth-child(5) {
	grid-column: span 2;
}

.jm-galleries__grid:has(.jm-gallery-card:nth-child(4):last-child),
.jm-galleries__grid:has(.jm-gallery-card:nth-child(5):last-child) {
	justify-content: center;
}

.jm-gallery-card:nth-child(4):nth-last-child(2) {
	grid-column: 2 / span 2;
}

.jm-gallery-card:nth-child(5):last-child {
	grid-column: 4 / span 2;
}

.jm-gallery-card img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 18px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.jm-gallery-card:hover img {
	transform: translateY(-4px);
	box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

.jm-gallery-card span {
	display: block;
	margin-top: 14px;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* About */

.jm-about {
	background: var(--jm-navy-deep);
}

.jm-about__grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 56px;
	align-items: center;
}

.jm-about__copy p {
	margin: 0 0 28px;
	max-width: 38ch;
	font-size: 16px;
	line-height: 1.7;
	color: var(--jm-muted);
}

.jm-about__media img {
	width: 100%;
	border-radius: 4px;
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

/* Newsletter */

.jm-newsletter {
	position: relative;
	background:
		linear-gradient(90deg, rgba(0, 20, 45, 0.82), rgba(0, 20, 45, 0.55)),
		var(--jm-newsletter-image) center / cover no-repeat;
	padding: 72px 0;
}

.jm-newsletter__inner {
	max-width: 560px;
}

.jm-newsletter p {
	margin: -18px 0 24px;
	color: rgba(255, 255, 255, 0.88);
	line-height: 1.6;
}

.jm-newsletter__form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.jm-newsletter__form input[type="email"] {
	flex: 1 1 240px;
	min-height: 44px;
	padding: 0 14px;
	border: 0;
	background: #fff;
	color: #222;
	font: inherit;
}

/* Trending */

.jm-trending {
	background: var(--jm-navy);
}

.jm-trending__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 8px;
}

.jm-trending__head .jm-section__title {
	margin-bottom: 0;
}

.jm-trending__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}

.jm-product-card {
	text-align: center;
}

.jm-product-card a {
	text-decoration: none;
}

.jm-product-card img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: #fff;
	padding: 10px;
	border: 6px solid #5a4634;
	box-shadow: inset 0 0 0 8px #fff;
}

.jm-product-card h3 {
	margin: 16px 0 8px;
	font-family: var(--jm-serif);
	font-size: 22px;
	font-weight: 500;
}

.jm-product-card__price {
	margin-bottom: 14px;
	color: var(--jm-gold-soft);
}

/* Footer */

.jm-footer {
	background: #000;
	color: rgba(255, 255, 255, 0.82);
	padding: 64px 0 48px;
}

.jm-footer__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
}

.jm-footer h3 {
	margin: 0 0 16px;
	font-family: var(--jm-sans);
	font-size: 18px;
	font-weight: 600;
	color: #fff;
}

.jm-footer p {
	margin: 0 0 12px;
	line-height: 1.6;
}

.jm-footer a {
	color: #fff;
}

.jm-footer__social {
	display: flex;
	gap: 18px;
	margin-top: 22px;
}

.jm-newsletter__form--footer {
	max-width: 420px;
}

/* Responsive */

@media (max-width: 980px) {
	.jm-about__grid,
	.jm-trending__grid,
	.jm-footer__grid {
		grid-template-columns: 1fr;
	}

	.jm-galleries__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.jm-gallery-card,
	.jm-gallery-card:nth-child(4):nth-last-child(2),
	.jm-gallery-card:nth-child(5):last-child {
		grid-column: auto;
		max-width: none;
	}

	.jm-hero {
		padding-left: 28px;
		padding-right: 28px;
	}
}

@media (max-width: 860px) {
	.jm-header__inner {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"logo tools"
			"nav nav";
	}

	.jm-logo {
		grid-area: logo;
	}

	.jm-header__tools {
		grid-area: tools;
	}

	.jm-nav {
		grid-area: nav;
		justify-self: stretch;
	}

	.jm-nav ul {
		gap: 14px 18px;
		justify-content: flex-start;
	}

	.jm-logo .custom-logo,
	.jm-logo__img {
		height: 56px;
		max-height: 56px;
	}

	.jm-carousel__prev,
	.jm-carousel__next {
		display: none;
	}
}

@media (max-width: 640px) {
	.jm-galleries__grid,
	.jm-trending__grid {
		grid-template-columns: 1fr;
	}

	.jm-trending__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.jm-section {
		padding: 64px 0;
	}
}
