/*!
 * Yes!
**/

@font-face {
	font-family: 'Oswald';
	src: url('fonts/Oswald-Medium.woff2') format('woff2');
	font-weight: normal;
	font-display: swap;
}

:root {
	color-scheme: light dark;
	--color-primary: oklch(43.278% 0.16918 23.278);
	--color-secondary: oklch(from var(--color-primary) 80% c 100);
	--color-light-10: rgb(255 255 255 / 0.1);
	--color-light-25: rgb(255 255 255 / 0.25);
	--color-light-50: rgb(255 255 255 / 0.5);
	--color-light-75: rgb(255 255 255 / 0.75);
	--color-light-95: rgb(255 255 255 / 0.95);
	--color-dark-25: rgb(0 0 0 / 0.25);
	--color-dark-50: rgb(0 0 0 / 0.5);
	--color-dark-75: rgb(0 0 0 / 0.75);
	--color-dark-95: rgb(0 0 0 / 0.95);
	--color-dark-100: rgb(10 10 10 / 1);
	--color-gray-10: rgb(170 170 170 / 0.1);
	--font-family-body: system-ui,
		-apple-system,
		"Segoe UI",
		Roboto,
		"Helvetica Neue",
		"Noto Sans",
		"Liberation Sans",
		sans-serif;
	--font-family-head: "Oswald", "Helvetica Neue", Helvetica, sans-serif;
	--font-size-h1: clamp(1.375rem, 1.375rem + 1.5vw, 2.25rem);
	--font-size-h2: clamp(1.325rem, 1.325rem + 0.9vw, 2rem);
	--font-size-h3: clamp(1.3rem, 1.3rem + 0.6vw, 1.75rem);
	--font-size-h4: clamp(1.275rem, 1.275rem + 0.3vw, 1.5rem);
	--font-size-h5: 1.25rem;
	--font-size-h6: 1rem;
	--title-font-weight: 500;
	--header-height: 3rem;
	--header-height-minus: -3rem;
	--max-body-width: 1320px;
	--body-bg: var(--color-dark-95);
	--body-color: var(--color-light-75);
	--color-btn: var(--color-primary);

	@media (prefers-color-scheme: dark) {
		--body-bg: var(--color-light-95);
		--body-color: var(--color-dark-75);
		--color-secondary: oklch(43.278% 0.16918 23.278);
		--color-secondary-brighter: oklch(from var(--color-secondary) 55% 0.25 h);
		--color-primary: oklch(from var(--color-secondary) 80% c 100);
		--color-btn: var(--color-secondary);
	}

	@media (prefers-reduced-motion: no-preference) {
		scroll-behavior: smooth;
	}
}

@view-transition {
	navigation: auto;
}

html {
	height: 100%;
}

body {
	font-family: var(--font-family-body);
	overflow-wrap: break-word;
	hyphens: auto;

	position: relative;
	height: 100%;
	min-block-size: 100dvh;
	margin-inline: auto;
	background: var(--body-bg);
	color: var(--body-color);
	transition: all ease .5s;
}

.no-hyphens {
	overflow-wrap: normal;
	hyphens: none;
}

h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4,
.btn,
.nav-item {
	font-family: var(--font-family-head);
	font-weight: var(--title-font-weight);
}

h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4 {
	text-transform: uppercase;
}

h1,
.h1 {
	font-size: var(--font-size-h1);
}

h2,
.h2 {
	font-size: var(--font-size-h2);
}

h3,
.h3 {
	font-size: var(--font-size-h3);
}

h4,
.h4 {
	font-size: var(--font-size-h4);
}

h5,
.h5 {
	font-family: var(--font-family-head);
	font-size: var(--font-size-h6);
	font-weight: 700;
	text-transform: uppercase;
}

h6,
.h6 {
	font-size: var(--font-size-h6);
}

figure {
	width: 100%;
	margin: 0 0 1rem;
	padding: .5rem;
	background-color: var(--color-gray-10);
	border-radius: .25rem;
}

img {
	border-radius: .25rem;
	transition: all .15s ease;
}

figure img {
	border-radius: .15rem;
}

b,
strong {
	font-weight: normal;
}

a {
	position: relative;
	text-decoration: none;
	color: var(--color-primary);
	hyphens: none;
	z-index: 1;
	transition: all ease .25s;

	&::before {
		content: '';
		background-color: currentColor;
		position: absolute;
		inset: auto 0 -1px;
		width: 90%;
		margin-inline: 5%;
		height: 1px;
		z-index: -1;
		opacity: .5;

		transition: all .25s ease;
	}

	&:where(:hover, :focus-visible, :active) {
		color: var(--color-secondary);

		@media (prefers-color-scheme: dark) {
			color: var(--color-secondary-brighter);
		}

		&::before {
			background-color: var(--color-secondary);
			bottom: .25rem;
			bottom: -0.25rem;
			width: 100%;
			height: .25rem;
			margin-inline: 0;
			opacity: 1;
		}
	}

	&[href^="tel"] {
		font-variant-numeric: oldstyle-nums;
	}

	&:has(img):where(:hover, :active, :focus, :focus-within) img:not(.nav-icon) {
		outline: .5rem solid var(--color-secondary);
	}

	h3 &::before,
	&:has(img)::before,
	&:is(.nav-link, .flex, .btn, [href*="facebook"], .top)::before {
		display: none;
	}
}

:focus {
	outline: none;
	color: var(--color-secondary);
	transition: all .15s ease;
}

.btn,
button[popovertarget^="popover"] {
	width: fit-content;
	margin: 1rem auto;
	padding: .75rem 4ch;
	text-transform: uppercase;
	font-family: var(--font-family-head);
	color: var(--color-light-95);
	background-color: var(--color-btn);
	border-radius: var(--header-height);
	box-shadow: inset 0.5rem 0.25rem .5rem var(--color-light-50), inset -0.25rem -0.5rem .5rem var(--color-dark-25);
	transition: all ease .25s;

	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1ch;

	@media (prefers-color-scheme: dark) {
		background-color: var(--color-secondary);
	}

	&:where(:hover, :focus, :focus-within, :active) {
		color: var(--color-dark-95);
		background-color: var(--color-secondary);
		box-shadow: none;

		@media (prefers-color-scheme: dark) {
			background-color: var(--color-primary);
		}
	}

	&:active {
		box-shadow: inset 0.25rem 0.25rem .5rem var(--color-dark-25), inset -0.25rem -0.25rem .25rem var(--color-light-25);
	}

	& svg {
		scale: 150%;
	}

	& span {
		@media (width < 576px) {
			display: none;
		}
	}
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	inset: 0 auto 0 0;
	background-color: var(--color-primary);
	color: var(--color-light-75);
	transform: translateY(-100%);
	transition: all ease .25s;

	&:where(:focus, :focus-within, :focus-visible) {
		z-index: 10100;
		box-sizing: border-box;
		display: block;
		width: fit-content;
		height: 2rem;
		padding: .25rem 2ch 0;
		margin: 0;
		clip-path: none;
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		border-radius: 0 0 .25rem 0;
	}

	&:hover {
		background-color: var(--color-secondary);
		color: var(--color-dark-95);
	}
}

.flex {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1rem;
	row-gap: 3rem;
}

.intro {
	text-align: center;
	min-height: 100dvh;
	color: var(--color-light-95);

	display: flex;
	align-items: center;
	justify-content: center;

	transition: all 1s ease;

	& .intro-text {
		width: 90%;
		max-width: 50ch;
		height: auto;
		max-height: 100%;
		aspect-ratio: 1 / 1;
		margin-block-start: var(--header-height-minus);
		margin-inline: auto;

		& h1 {
			margin: 0;
			padding: 0;
			line-height: 1;
		}

		& p {
			padding-inline: 3rem;
		}

		& img {
			/* width: 100%; */
			height: auto;
			/* max-height: 90dvh; */
			aspect-ratio: 1 / 1;
			background-color: var(--color-dark-75);
			border-radius: 100%;
			box-shadow: 0 .5rem 1rem var(--color-dark-50);

			@supports (backdrop-filter: blur(1rem)) {
				backdrop-filter: blur(1rem);
				background-color: var(--color-dark-50);
			}

			@media (width <=576px) {
				box-shadow: none;
			}
		}
	}
}

.navbar {
	position: fixed;
	z-index: 10020;
	inset: auto auto 1rem 0;
	width: fit-content;
	background-color: var(--color-primary);
	color: var(--color-light-95);
	line-height: 1;
	border-radius: 0 var(--header-height) var(--header-height) 0;
	box-shadow: inset 0.25rem 0.25rem .5rem var(--color-light-25), inset -0.25rem -0.5rem .5rem var(--color-dark-25), .15rem 0 .5rem var(--color-dark-50);
	transform: translate3d(0, 0, 0);

	@media (prefers-reduced-motion: no-preference) {
		transition: all .5s ease;
	}

	@media (width > 720px) {
		inset: auto 0 1rem;
		margin-inline: auto;
		border-radius: var(--header-height);
	}

	@media (prefers-color-scheme: dark) {
		background-color: var(--color-secondary);
	}

	&>.flex {
		max-width: var(--max-body-width);
		margin-inline: auto;
		padding-inline: 0;
	}

	& ul {
		list-style: none;
		margin: 0;
		padding-inline: 0;
		align-items: stretch;
		gap: 0;

		@media (width > 576px) {
			gap: 0;

			& .nav-item.nav-button {
				display: none;
				width: 0;
				visibility: hidden;
				opacity: 0;
			}
		}
	}

	& .nav-link {
		display: block;
		padding: calc(var(--header-height) / 2.5 - (0.75rem / 2)) 1ch;
		text-transform: uppercase;
		font-size: 1rem;
		line-height: 1;
		color: var(--color-light-95);
		border: none;
		border-radius: .1rem;

		background: -webkit-linear-gradient(var(--color-light-95), var(--color-light-50));
		-webkit-background-clip: text;
		-webkit-text-fill-color: transparent;

		transition: all ease .25s;

		@media (width > 576px) {
			padding: calc(var(--header-height) / 2 - (1rem / 2)) 1ch;
		}

		@media (width < 400px) {
			padding-inline: .5ch;
		}

		& .nav-icon {
			width: calc(var(--header-height) / 2);
			height: auto;
			aspect-ratio: 1 / 1;
			fill: var(--color-light-95);
			transition: all ease .25s;

			&.a2 {
				scale: 200%;
			}

			@media (width > 720px) {
				display: none;
			}
		}

		& span {
			@media (width <=720px) {
				display: none;
			}
		}

		&:where(:hover, :focus, :focus-within, :active) {
			background: none;
			color: var(--color-dark-95);
			-webkit-background-clip: inherit;
			-webkit-text-fill-color: var(--color-dark-95);
			background-color: var(--color-secondary);
			cursor: pointer;

			@media (prefers-color-scheme: dark) {
				background-color: var(--color-primary);
			}

			& .nav-icon {
				fill: var(--color-dark-75);
			}
		}
	}

	& .nav-item:first-of-type .nav-link {
		padding-inline-start: 2ch;

		@media (width > 720px) {
			border-radius: var(--header-height) .1rem .1rem var(--header-height);
		}
	}

	& .nav-item.nav-button {
		display: none;

		@media (width <=720px) {

			.scrolled & {
				display: block;

				& .nav-link {
					padding-inline-end: 2ch;
					border-radius: .1rem var(--header-height) var(--header-height) .1rem;
				}
			}
		}
	}

	& .nav-item:nth-last-of-type(2) .nav-link {
		padding-inline-end: 2ch;
		border-radius: .1rem var(--header-height) var(--header-height) .1rem;

		@media (width <=720px) {

			.scrolled & {
				padding-inline-end: 1ch;
				border-radius: .1rem;
			}
		}
	}

	@media (width <=720px) {

		&.scrolled {
			transform: translateX(calc(-100% + 3rem));
		}

		&:has(input:checked) {
			transform: translateX(0);
		}

		&:has(input:checked) .hamburger {
			& .ham-top {
				transform: rotate(45deg) translate(0.35rem, -0.25rem)
			}

			& .ham-bottom {
				transform: rotate(-45deg) translate(-1.65rem, -.55rem);
			}

			& .ham-middle {
				opacity: 0;
			}
		}
	}
}

main {
	background-color: var(--body-color);
	color: var(--body-bg);

	& *:target {
		scroll-margin-top: -1rem;
	}
}

section,
.section {
	padding: 3rem 1rem;
	container: section / inline-size;

	background-color: var(--color-light-75);

	@media (prefers-color-scheme: dark) {
		background-color: var(--color-dark-50);
	}

	@container section (width > 720px) {
		padding: 5rem 1rem;
		text-align: center;
	}

	@media (width < 576px) {
		padding-block: 1.5rem;
	}

	&:nth-child(odd):not(footer) {
		background-color: var(--color-light-95);

		@media (prefers-color-scheme: dark) {
			background-color: var(--color-dark-75);
		}
	}

	& .section-heading,
	& .section-content {
		max-width: 65ch;
		margin: 1rem 0;

		@media (width > 720px) {
			text-align: center;
			text-wrap: balance;
			margin: 1rem auto;
		}
	}

	& .section-content p:last-of-type,
	& .section-content p:only-of-type {
		margin-block-end: 3rem;
	}

	& .section-content button {
		margin-inline: auto !important;
	}

	& .section-icon {
		scale: 175%;
	}
}

.cards {
	align-items: stretch;
	row-gap: 1rem;
	container: cards / inline-size;
	max-width: var(--max-body-width);
	margin: 1rem auto 3rem;

	&.cards-3 {
		max-width: calc(var(--max-body-width) / 1.25);
	}

	&.cards-free {
		align-items: center;

		& figure {
			margin: 0;

			& img {
				width: 100%;
				height: auto;
				aspect-ratio: 4 / 3;
				object-fit: cover;
				object-position: 50% 0;
			}
		}
	}

	& .card {
		letter-spacing: -0.02rem;
		text-align: left;
		text-wrap: balance;

		.cards-free & {
			width: calc(50% - 1rem);
		}

		@media (width >=576px) {

			.artists & {
				width: calc(50% - 1rem);
			}
		}

		@media (width > 720px) {
			width: calc(50% - 1rem);
			max-width: 720px;

			.cards-1 & {
				width: 100%;
			}

			.cards-free & {
				width: clamp(240px, 20% - 1rem, 100% - 1rem);
			}
		}

		@media (width > 720px) {

			.cards-3 &,
			.cards-5 & {
				width: calc(33% - 1rem);
			}

			.cards-free & {
				width: clamp(240px, 20% - 1rem, 100% - 1rem);
			}
		}

		@media (width > 1200px) {
			width: calc(25% - 1rem);

			.cards-2 & {
				width: calc(50% - 1rem);
			}

			.cards-5 & {
				width: calc(20% - 1rem);
			}

			.cards-free & {
				width: clamp(240px, 20% - 1rem, 100% - 1rem);
			}
		}

		.artists & {
			text-align: center;
		}

		& .flex {
			justify-content: start;
			gap: 1.5ch;
			row-gap: 0;
		}

		& h3 {
			margin-block: 1rem;
			hyphens: none;
		}

		& p {
			margin-block: 0 1rem;
			text-align: left;

			.artists & {
				line-height: 1.4;
				text-align: center;
			}
		}

		& button {
			margin-inline: auto;
			text-align: center;

			&[popovertarget="popover"] {
				margin-inline: 0;
				text-align: left;
			}
		}

		.artists & figure,
		.artists & img {
			position: relative;
			aspect-ratio: 1 / 1;
			object-fit: cover;
			object-position: 50% 0;
			border-radius: 100%;

			& svg {
				scale: 175%;
			}
		}
	}
}

footer.section {
	padding-block-end: 12rem;
	scroll-margin-top: 0;
	background: var(--color-dark-100) url('/img/map-fin.png') no-repeat 50% 0;
	background-size: contain;
	color: var(--color-light-75);
	align-items: center;
	justify-content: center;
	gap: 0;
	row-gap: 0;

	&>* {
		width: 100%;
		max-width: 300px;
		margin-inline: auto;
		text-align: center;

		@media (width > 576px) {
			width: 50%;
			margin-inline: 0;
			text-align: left;
		}
	}

	& a {
		color: var(--color-secondary);

		@media (prefers-color-scheme: dark) {
			color: var(--color-primary);
		}

		&:where(:hover, :active, :focus-within) {
			color: var(--color-light-95);
		}
	}

	& ul {
		list-style: none;
		margin: 0;
		padding: 0;

		& li {
			margin-block-end: .25rem;
		}
	}

	& .email {
		unicode-bidi: bidi-override;
		direction: rtl;
	}

	& .service-icon {
		scale: 150%;
		margin-block: .5rem;
		transform: translateX(.15rem);
	}
}

.background-img {
	display: block;
	position: fixed;
	inset: 0;
	z-index: -1;
	width: 100dvw;
	height: 110dvh;
	object-fit: cover;
	object-position: 50% 0;
	transition: all 1s ease;
}

.bottom {
	position: fixed;
	right: 0;
	bottom: 1rem;
	width: var(--header-height);
	height: auto;
	aspect-ratio: 1/1;
	z-index: 10010;
	display: flex;
	justify-content: center;
	align-items: center;
	visibility: hidden;
	transform: translateX(100%);
	transition: all ease .5s;

	.no-js &,
	&.bottom-visible {
		visibility: visible;
		transform: translate(0);
	}
}

.top {
	display: block;
	width: 100%;
	height: 100%;
	font-size: var(--font-size-h5);
	font-weight: 500;
	line-height: 2.2;
	text-align: center;
	background-color: var(--color-primary);
	color: var(--color-light-75);
	border-radius: var(--header-height) 0 0 var(--header-height);
	/* box-shadow: 0 .5rem 2rem var(--color-dark-75); */
	box-shadow: inset 0.25rem 0.25rem .5rem var(--color-light-25), inset -0.25rem -0.5rem .5rem var(--color-dark-25), .15rem 0 .5rem var(--color-dark-25);

	@media (hover:hover) {
		&:where(:hover, :focus-within, :active) {
			background-color: var(--color-secondary);
			color: var(--color-dark-75);
			box-shadow: none;
		}
	}

	&:active {
		box-shadow: inset 0.25rem 0.25rem .5rem var(--color-dark-25), inset -0.25rem -0.25rem .25rem var(--color-light-25);
	}
}

[popovertarget^="popover"] {
	margin: 0;
	padding: .5rem 2ch;
	font-size: .875rem;
	border: none;
	box-shadow: inset 0.25rem 0.15rem .25rem var(--color-light-50), inset -0.15rem -0.15rem .15rem var(--color-dark-25);
	cursor: pointer;

	&:where(:hover, :focus-within) {
		box-shadow: none;
	}

	& svg {
		scale: 125% !important;
	}

	& span {
		display: inline-block;
	}
}

h3 [popovertarget^="popover"] {
	padding: 0;
	font-size: var(--font-size-h4);
	text-align: left;
	text-transform: uppercase;
	background-color: transparent;
	color: var(--color-primary);
	border: none;
	box-shadow: none !important;

	&:where(:hover, :active, :focus-within) {
		color: var(--color-secondary);
		box-shadow: none !important;
	}
}

.popover {
	opacity: 0;
	translate: 0 2rem;

	&::backdrop {
		background-color: hsl(0 0 0 / 0);
	}

	&:popover-open {
		opacity: 1;
		translate: 0 0;
		transition: opacity 0.25s, translate 0.5s, display 0.25s allow-discrete;
	}

	&:popover-open::backdrop {
		background-color: var(--color-dark-25);
		backdrop-filter: blur(.5rem);
		transition: display 0.25s allow-discrete, background-color 0.5s;
	}
}

body:has(.popover:popover-open) {
	overflow: hidden;
}


@starting-style {
	.popover {
		&:popover-open {
			opacity: 0;
			translate: 0 2rem;
		}

		&::backdrop {
			background-color: hsl(0 0 0 / 0);
		}
	}
}

:popover-open {
	width: 90vw;
	height: auto;
	max-height: 90dvh;
	max-width: 65ch;
	padding: 1.5rem;
	border: .5rem solid var(--color-gray-10);
	background-color: var(--color-light-95);
	color: var(--color-dark-95);
	border-radius: .25rem;

	& button[popovertarget^="popover"] {
		position: absolute;
		inset: 1rem 1rem auto auto;
		margin: 0;
		padding: 0 1rem;
		font-size: 2rem;
	}

	& h4 {
		margin-block-end: 1rem;
	}

	& img {
		width: 100%;
	}
}

/** LIGHTBOX MARKUP **/
.cards-free .card {
	display: block;
	scroll-margin-top: 5rem;
}

.lightbox {
	/* Default to hidden */
	display: none;

	/* Overlay entire screen */
	position: fixed;
	z-index: 99999;
	inset: 0;

	/* A bit of padding around image */
	padding: 2vw;

	/* Translucent background */
	background: var(--color-dark-50);
	backdrop-filter: blur(1rem);

	/* Full width and height */
	width: 100%;
	height: 100%;

	& img {
		max-height: 90dvh;
		width: auto;
		margin: auto;
		border: .5rem solid var(--color-light-25);
	}

	&:where(:hover, :focus),
	&:where(:hover, :focus) img {
		outline: none !important;
	}

	& p {
		position: absolute;
		inset: auto 0 5rem;
		margin: 0 auto;
		display: flex;
		align-items: center;
		justify-content: center;
		color: var(--color-light-95);

		& span {
			width: fit-content;
			padding: .5rem 2ch;
			text-align: center;
			background-color: var(--color-dark-50);
			border-radius: .25rem;
		}
	}
}

/* Unhide the lightbox when it's the target */
.lightbox:target {
	display: block;
}