/* ==========================================================================
   Cars theme — main stylesheet
   ========================================================================== */

:root {
	--navy: #122645;
	--navy-deep: #0b1a31;
	--navy-footer: #14294a;
	--green: #7cc093;
	--green-dark: #5fa877;
	--muted: #6c798c;
	--line: #e3e7ec;
	--grey: #f3f5f7;
	--white: #ffffff;

	--font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--font-head: "Helvetica Neue", Helvetica, Arial, sans-serif;

	--container: 1280px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 72px; /* sticky part of the header (main bar) */
	--radius: 14px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* Reset & base ------------------------------------------------------------ */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--navy);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img,
svg {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
}

button,
input,
select {
	font: inherit;
	color: inherit;
}

h1,
h2,
h3 {
	margin: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

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

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--navy);
	color: var(--white);
	border-radius: 999px;
	text-decoration: none;
	transition: top .2s;
}

.skip-link:focus {
	top: 12px;
}

:focus-visible {
	outline: 2px solid var(--green);
	outline-offset: 3px;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

/* Typography --------------------------------------------------------------- */

.h-section {
	font-family: var(--font-head);
	font-weight: 900;
	font-size: clamp(26px, 3.2vw, 40px);
	line-height: 1;
	letter-spacing: -.01em;
	text-transform: uppercase;
}

.section {
	padding: clamp(72px, 9vw, 128px) 0;
}

.section__head {
	max-width: 720px;
	margin: 0 auto clamp(40px, 5vw, 64px);
	text-align: center;
}

.section__head--left {
	margin-left: 0;
	text-align: left;
}

.section__intro {
	margin: 14px 0 0;
	color: var(--muted);
	font-size: 17px;
}

.section__head .btn {
	margin-top: 28px;
}

/* Buttons ------------------------------------------------------------------ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 0 28px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}

.btn:active {
	transform: scale(.98);
}

.btn--sm {
	min-height: 40px;
	padding: 0 20px;
	font-size: 14px;
}

.btn--green {
	background: var(--green);
	color: var(--white);
}

.btn--green:hover {
	background: var(--green-dark);
}

.btn--navy {
	background: var(--navy);
	color: var(--white);
}

.btn--navy:hover {
	background: var(--navy-deep);
}

.btn--outline {
	border-color: var(--navy);
	color: var(--navy);
	background: transparent;
}

.btn--outline:hover {
	background: var(--navy);
	color: var(--white);
}

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

.btn:hover .icon--arrow-right {
	transform: translateX(4px);
}

/* Header ------------------------------------------------------------------- */

/* The sticky offset equals the topbar height, so the topbar scrolls away and the main bar stays. */
.site-header {
	position: sticky;
	top: -37px;
	z-index: 100;
	background: var(--white);
	transition: box-shadow .3s var(--ease);
}

.admin-bar .site-header {
	top: -5px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header.is-scrolled {
	box-shadow: 0 6px 24px rgba(18, 38, 69, .08);
}

.topbar {
	font-size: 13px;
	color: var(--muted);
	border-bottom: 1px solid var(--line);
}

.topbar__inner {
	display: flex;
	justify-content: flex-end;
	height: 36px;
	align-items: center;
}

.topbar__menu {
	display: flex;
	gap: 28px;
}

.topbar__menu a {
	text-decoration: none;
	transition: color .2s;
}

.topbar__menu a:hover {
	color: var(--navy);
}

.mainbar__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	height: 72px;
}

.mainbar__logo {
	flex: none;
}

.mainbar__logo img {
	max-height: 40px;
	width: auto;
}

.logo {
	display: block;
	color: var(--navy);
}

.logo svg {
	display: block;
	width: auto;
	height: 22px;
	fill: currentColor;
}

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

.logo--light svg {
	height: 26px;
}

.wordmark {
	display: inline-flex;
	align-items: flex-start;
	gap: 4px;
	font-family: var(--font-head);
	font-weight: 900;
	font-size: 26px;
	line-height: 1;
	letter-spacing: -.02em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--navy);
}

.wordmark i {
	width: 9px;
	height: 9px;
	margin-top: 1px;
	border-radius: 50%;
	background: var(--green);
}

.wordmark--light {
	color: var(--white);
	font-size: 32px;
}

.mainnav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.mainnav__menu {
	display: flex;
	gap: 6px;
}

.mainnav__menu > li {
	position: relative;
}

.mainnav__menu > li > a {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 72px;
	padding: 0 12px;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: color .2s;
}

.mainnav__menu > .menu-item-has-children > a::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-top: -3px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform .25s var(--ease);
}

.mainnav__menu > li:hover > a,
.mainnav__menu > li:focus-within > a {
	color: var(--green-dark);
}

.mainnav__menu > li:hover > a::after,
.mainnav__menu > li:focus-within > a::after {
	transform: rotate(-135deg) translate(-2px, -2px);
}

.mainnav .sub-menu {
	position: absolute;
	top: calc(100% - 8px);
	left: 0;
	min-width: 220px;
	padding: 10px;
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: 0 18px 40px rgba(18, 38, 69, .14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}

.mainnav li:hover > .sub-menu,
.mainnav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.mainnav .sub-menu a {
	display: block;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 15px;
	text-decoration: none;
	transition: background-color .2s;
}

.mainnav .sub-menu a:hover {
	background: var(--grey);
}

.mainnav__mobile-extra {
	display: none;
}

.mainbar__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.burger {
	display: none;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: var(--grey);
	cursor: pointer;
}

.burger .icon--close {
	display: none;
}

/* Hero --------------------------------------------------------------------- */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: calc(100vh - var(--header-h) - 37px);
	min-height: calc(100svh - var(--header-h) - 37px);
	padding: 80px 0 120px;
	overflow: hidden;
	color: var(--white);
	background: var(--navy-deep);
	isolation: isolate;
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.hero__media img,
.hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__video {
	opacity: 0;
	transition: opacity 1.2s var(--ease);
}

.hero__video.is-playing {
	opacity: 1;
}

.hero--photo .hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(8, 18, 34, .25) 0%, rgba(8, 18, 34, .5) 100%);
}

.hero__glow {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(60% 55% at 50% 38%, rgba(77, 112, 168, .55) 0%, rgba(20, 41, 74, 0) 70%),
		radial-gradient(40% 30% at 85% 15%, rgba(124, 192, 147, .18) 0%, rgba(124, 192, 147, 0) 70%),
		linear-gradient(180deg, #13284a 0%, #0a1629 100%);
}

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

.hero__title {
	font-family: var(--font-head);
	font-weight: 900;
	font-size: clamp(54px, 9vw, 128px);
	line-height: .92;
	letter-spacing: -.02em;
	text-transform: uppercase;
	text-shadow: 0 8px 40px rgba(0, 0, 0, .25);
}

.hero__line {
	display: block;
	overflow: hidden;
	padding-bottom: .04em;
}

.hero__line > span {
	display: block;
}

.hero__reviews {
	position: absolute;
	left: var(--gutter);
	bottom: 28px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	backdrop-filter: blur(8px);
	font-size: 13px;
}

.hero__reviews .icon {
	color: #f5c84b;
	fill: currentColor;
}

.hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 28px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-left: -22px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 50%;
	color: var(--white);
	animation: cars-bob 2.4s var(--ease) infinite;
}

@keyframes cars-bob {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(6px);
	}
}

/* Search bar */

.search {
	display: flex;
	align-items: stretch;
	width: min(820px, 100%);
	margin-top: clamp(36px, 5vw, 56px);
	padding: 8px;
	border-radius: 999px;
	background: var(--white);
	color: var(--navy);
	box-shadow: 0 24px 60px rgba(4, 12, 24, .35);
	text-align: left;
}

.search__field {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 6px 40px 6px 24px;
	cursor: pointer;
}

.search__field + .search__field::before {
	content: "";
	position: absolute;
	left: 0;
	top: 12px;
	bottom: 12px;
	width: 1px;
	background: var(--line);
}

.search__label {
	font-size: 12px;
	color: var(--muted);
	line-height: 1.2;
}

.search__field select {
	appearance: none;
	width: 100%;
	padding: 2px 0 0;
	border: 0;
	background: transparent;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.search__field select:focus {
	outline: none;
}

.search__field:focus-within {
	border-radius: 999px;
	box-shadow: inset 0 0 0 2px var(--green);
}

.search__field .icon {
	position: absolute;
	right: 16px;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	color: var(--muted);
	pointer-events: none;
}

.search__submit {
	min-height: 56px;
	padding: 0 32px;
}

/* Brands ------------------------------------------------------------------- */

.brands__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	max-width: 980px;
	margin: 0 auto;
}

.brand-tile {
	display: grid;
	place-items: center;
	height: 150px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	text-decoration: none;
	transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}

.brand-tile:hover {
	border-color: transparent;
	box-shadow: 0 18px 40px rgba(18, 38, 69, .1);
	transform: translateY(-4px);
}

.brand-tile img {
	max-height: 48px;
	width: auto;
	object-fit: contain;
}

.brand-tile__word {
	font-size: 22px;
	font-weight: 400;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--navy);
}

/* Models ------------------------------------------------------------------- */

.models {
	padding-bottom: 0;
	background: var(--grey);
}

.models__stage {
	position: relative;
	padding: 40px 0 96px;
}

.models__slide {
	position: relative;
	display: grid;
	place-items: center;
	align-content: center;
	min-height: 70vh;
	padding: 40px var(--gutter);
	overflow: hidden;
}

/* Centered with inset + flex, not a transform: GSAP scales it. */
.models__ghost {
	position: absolute;
	inset: 0 0 38%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-head);
	font-weight: 900;
	font-size: clamp(160px, 30vw, 460px);
	line-height: 1;
	letter-spacing: -.04em;
	color: transparent;
	-webkit-text-stroke: 2px rgba(18, 38, 69, .16);
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
}

.models__car {
	position: relative;
	width: min(920px, 92vw);
	will-change: transform;
}

.models__car img {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 24px 30px rgba(18, 38, 69, .18));
}

.models__caption {
	position: relative;
	margin-top: 8px;
	text-align: center;
}

.models__name {
	font-family: var(--font-head);
	font-weight: 900;
	font-size: clamp(22px, 2.4vw, 30px);
	text-transform: uppercase;
	letter-spacing: -.01em;
}

.models__tagline {
	margin: 6px 0 0;
	color: var(--muted);
}

.models__dots {
	display: none;
}

/* Pinned variant, switched on by JS. */
.has-motion .models__stage {
	height: 100vh;
	padding: 0;
}

.has-motion .models__slide {
	position: absolute;
	inset: 0;
	min-height: 0;
}

.has-motion .models__dots {
	position: absolute;
	left: 50%;
	bottom: 40px;
	display: flex;
	gap: 10px;
	transform: translateX(-50%);
}

.has-motion .models__dots li {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: rgba(18, 38, 69, .2);
	transition: width .35s var(--ease), background-color .35s var(--ease);
}

.has-motion .models__dots li.is-active {
	width: 28px;
	background: var(--navy);
}

/* Occasions ---------------------------------------------------------------- */

.occasions__stack {
	display: grid;
	gap: 32px;
}

.occasion {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	display: block;
	overflow: hidden;
	border-radius: calc(var(--radius) + 6px);
	background: var(--white);
	box-shadow: 0 -10px 40px rgba(18, 38, 69, .06), 0 20px 50px rgba(18, 38, 69, .08);
	text-decoration: none;
	transform-origin: center top;
}

.admin-bar .occasion {
	top: calc(var(--header-h) + 56px);
}

.occasion__media {
	position: relative;
	aspect-ratio: 16 / 7;
	overflow: hidden;
	background: #e9ecf0;
}

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

.occasion:hover .occasion__media img {
	transform: scale(1.03);
}

.occasion__segment {
	position: absolute;
	left: 20px;
	top: 20px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--navy);
}

/* Archive grid variant */
.occasion-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.occasion--grid {
	position: relative;
	top: auto;
	box-shadow: 0 10px 30px rgba(18, 38, 69, .07);
	transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}

.occasion--grid:hover {
	box-shadow: 0 20px 50px rgba(18, 38, 69, .14);
	transform: translateY(-4px);
}

.occasion--grid .occasion__media {
	aspect-ratio: 959 / 577;
}

.occasion--grid .occasion__meta {
	flex-wrap: wrap;
	gap: 4px 14px;
	padding: 18px 20px 20px;
	font-size: 14px;
}

.occasion--grid .occasion__title {
	width: 100%;
	font-size: 16px;
}

.occasion--grid .occasion__price {
	margin-left: 0;
	width: 100%;
	margin-top: 8px;
	font-size: 18px;
}

.btn__count {
	display: inline-grid;
	place-items: center;
	min-width: 26px;
	height: 26px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--green);
	color: var(--white);
	font-size: 12px;
}

.occasion__meta {
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 22px 32px;
	font-size: 15px;
	color: var(--muted);
}

.occasion__title {
	font-size: 17px;
	font-weight: 700;
	color: var(--navy);
}

.occasion__price {
	margin-left: auto;
	font-size: 20px;
	font-weight: 700;
	color: var(--navy);
}

.occasions__more {
	display: flex;
	justify-content: center;
	margin-top: 56px;
}

/* Steps -------------------------------------------------------------------- */

.steps {
	background: var(--navy);
	color: var(--white);
}

.steps__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(32px, 4vw, 64px);
	counter-reset: step;
}

.step {
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, .18);
}

.step__number {
	display: block;
	font-family: var(--font-head);
	font-weight: 900;
	font-size: clamp(64px, 7vw, 96px);
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--green);
}

.step__title {
	margin-top: 24px;
	font-family: var(--font-head);
	font-weight: 900;
	font-size: 22px;
	text-transform: uppercase;
}

.step__text {
	margin: 12px 0 0;
	color: rgba(255, 255, 255, .72);
}

/* Services ----------------------------------------------------------------- */

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

.service-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 36px 32px;
	border-radius: var(--radius);
	background: var(--grey);
	scroll-margin-top: calc(var(--header-h) + 24px);
	transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}

.service-card:hover {
	background: var(--white);
	box-shadow: 0 20px 50px rgba(18, 38, 69, .1);
}

.service-card__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--white);
	color: var(--green-dark);
}

.service-card:hover .service-card__icon {
	background: var(--grey);
}

.service-card__title {
	margin-top: 24px;
	font-family: var(--font-head);
	font-weight: 900;
	font-size: 22px;
	text-transform: uppercase;
}

.service-card__text {
	flex: 1;
	margin: 12px 0 28px;
	color: var(--muted);
}

/* Footer ------------------------------------------------------------------- */

/* Bottom padding leaves room for a docked chat button at the bottom center. */
.site-footer {
	padding: clamp(64px, 8vw, 96px) 0 112px;
	background: var(--navy-footer);
	color: var(--white);
}

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

.site-footer__title {
	margin-bottom: 18px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .55);
}

.branches li {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	max-width: 300px;
	padding: 4px 0;
}

.branches a,
.site-footer__menu a {
	text-decoration: none;
	transition: color .2s;
}

.branches a:hover,
.site-footer__menu a:hover {
	color: var(--green);
}

.site-footer__menu li {
	padding: 4px 0;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 32px;
	margin-top: 64px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .14);
	font-size: 13px;
	color: rgba(255, 255, 255, .55);
}

.site-footer__bottom a {
	margin-left: auto;
	text-decoration: none;
}

/* WhatsApp ------------------------------------------------------------------ */

.whatsapp {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: var(--white);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
	transition: transform .25s var(--ease);
}

.whatsapp:hover {
	transform: scale(1.06);
}

.whatsapp .icon {
	width: 28px;
	height: 28px;
}

/* Occasion detail page ------------------------------------------------------ */

.product {
	padding: 24px 0 clamp(64px, 8vw, 112px);
}

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
	font-size: 13px;
	color: var(--muted);
}

.breadcrumb a {
	text-decoration: none;
}

.breadcrumb a:hover {
	color: var(--navy);
}

.breadcrumb [aria-current] {
	color: var(--navy);
}

.product__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
	gap: clamp(24px, 3vw, 48px);
	align-items: start;
}

.gallery__stage {
	position: relative;
	overflow: hidden;
	border-radius: calc(var(--radius) + 6px);
	background: #e9ecf0;
	aspect-ratio: 959 / 577;
	touch-action: pan-y;
}

.gallery__main {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .25s var(--ease);
}

.gallery__main.is-loading {
	opacity: .35;
}

.gallery__nav {
	position: absolute;
	top: 50%;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--navy);
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(18, 38, 69, .15);
	transition: transform .2s var(--ease), background-color .2s var(--ease);
}

.gallery__nav:hover {
	background: var(--white);
	transform: scale(1.06);
}

.gallery__nav--prev {
	left: 16px;
}

.gallery__nav--prev .icon {
	transform: rotate(180deg);
}

.gallery__nav--next {
	right: 16px;
}

.gallery__count {
	position: absolute;
	right: 16px;
	bottom: 16px;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(18, 38, 69, .72);
	color: var(--white);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.gallery__thumbs {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 7 * 10px) / 8);
	gap: 10px;
	margin-top: 12px;
	overflow-x: auto;
	scrollbar-width: none;
}

.gallery__thumbs::-webkit-scrollbar {
	display: none;
}

.gallery__thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 10px;
	overflow: hidden;
	background: #e9ecf0;
	aspect-ratio: 4 / 3;
	cursor: pointer;
	opacity: .65;
	transition: opacity .2s var(--ease), border-color .2s var(--ease);
}

.gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gallery__thumb:hover,
.gallery__thumb.is-active {
	opacity: 1;
}

.gallery__thumb.is-active {
	border-color: var(--green);
}

.product__panel {
	position: sticky;
	top: calc(var(--header-h) + 24px);
}

.admin-bar .product__panel {
	top: calc(var(--header-h) + 56px);
}

.product__card {
	padding: clamp(24px, 3vw, 36px);
	border-radius: calc(var(--radius) + 6px);
	background: var(--white);
	box-shadow: 0 20px 50px rgba(18, 38, 69, .1);
}

.product__title {
	font-family: var(--font-head);
	font-weight: 900;
	font-size: clamp(24px, 2.4vw, 32px);
	line-height: 1.05;
	letter-spacing: -.01em;
	text-transform: uppercase;
}

.product__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.product__chips li {
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--grey);
	font-size: 13px;
	font-weight: 500;
}

.product__price {
	margin: 24px 0 0;
	font-size: clamp(30px, 3vw, 40px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.01em;
}

.product__note {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--muted);
}

.product__actions {
	display: grid;
	gap: 10px;
	margin-top: 24px;
}

.product__actions .btn {
	width: 100%;
}

.product__benefits {
	display: grid;
	gap: 10px;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	font-size: 14px;
}

.product__benefits li {
	position: relative;
	padding-left: 28px;
}

.product__benefits li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 4px;
	width: 14px;
	height: 8px;
	border-left: 2px solid var(--green-dark);
	border-bottom: 2px solid var(--green-dark);
	transform: rotate(-45deg);
}

.product__specs {
	margin-top: clamp(56px, 7vw, 96px);
}

.specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 48px;
	margin: 28px 0 0;
}

.specs__row {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
}

.specs dt {
	color: var(--muted);
}

.specs dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
}

.product__content {
	margin-top: 32px;
	max-width: 760px;
}

.product__related {
	margin-top: clamp(56px, 7vw, 96px);
}

.product__related-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}

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

	.product__panel {
		position: static;
	}

	.gallery__thumbs {
		grid-auto-columns: 22%;
	}

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

@media (max-width: 600px) {
	.gallery__nav {
		width: 40px;
		height: 40px;
		margin-top: -20px;
	}

	.product__related-head .btn {
		display: none;
	}
}

/* Generic pages ------------------------------------------------------------ */

.page__inner {
	padding: clamp(56px, 8vw, 96px) var(--gutter);
	max-width: 860px;
}

.entry + .entry {
	margin-top: 40px;
}

.entry__title {
	font-size: 22px;
}

/* Reveal (JS adds .has-motion; without it everything is simply visible) ---- */

.has-motion [data-reveal] {
	opacity: 0;
	transform: translateY(32px);
}

/* Responsive ------------------------------------------------------------------ */

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

	.mainnav__menu > li > a {
		padding: 0 8px;
		font-size: 14px;
	}

	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

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

	.topbar {
		display: none;
	}

	.mainbar__inner {
		height: 64px;
	}

	.burger {
		display: inline-flex;
	}

	.mainnav {
		position: fixed;
		inset: 64px 0 0;
		z-index: 99;
		display: block;
		padding: 16px var(--gutter) 40px;
		overflow-y: auto;
		background: var(--white);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
	}

	.admin-bar .mainnav {
		top: 110px;
	}

	.nav-open .mainnav {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.nav-open .burger .icon--menu {
		display: none;
	}

	.nav-open .burger .icon--close {
		display: block;
	}

	.mainnav__menu {
		flex-direction: column;
		gap: 0;
	}

	.mainnav__menu > li > a {
		height: auto;
		padding: 16px 0;
		font-size: 20px;
		font-weight: 700;
		border-bottom: 1px solid var(--line);
	}

	.mainnav__menu > .menu-item-has-children > a::after {
		display: none;
	}

	.mainnav .sub-menu {
		position: static;
		min-width: 0;
		padding: 4px 0 12px 12px;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.mainnav__mobile-extra {
		display: block;
		margin-top: 24px;
	}

	.mainnav__secondary a {
		display: block;
		padding: 8px 0;
		color: var(--muted);
		text-decoration: none;
	}

	.search {
		flex-direction: column;
		border-radius: 24px;
		padding: 12px;
	}

	.search__field {
		padding: 12px 40px 12px 16px;
	}

	.search__field + .search__field::before {
		left: 16px;
		right: 16px;
		top: 0;
		bottom: auto;
		width: auto;
		height: 1px;
	}

	.search__field:focus-within {
		border-radius: 12px;
	}

	.search__submit {
		margin-top: 8px;
	}

	.brands__grid,
	.steps__list,
	.services__grid {
		grid-template-columns: 1fr;
	}

	.brand-tile {
		height: 110px;
	}

	.occasion__meta {
		flex-wrap: wrap;
		gap: 4px 16px;
		padding: 18px 20px;
	}

	.occasion__title {
		width: 100%;
	}

	.occasion__media {
		aspect-ratio: 16 / 10;
	}
}

@media (max-width: 600px) {
	.mainbar__actions .btn {
		display: none;
	}

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

	.logo svg {
		height: 18px;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.hero__reviews {
		display: none;
	}
}

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

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}
