/* CSS Document */

/* =========================================================
   BYEN STAVANGER
========================================================= */

.byen-section {
	position: relative;
	padding: 85px 0 105px;
}

.byen-container {
	width: 100%;
	max-width: 1540px;

	margin: 0 auto;
	padding: 0 24px;
}


/* =========================================================
   OVERSKRIFT
========================================================= */

.byen-heading {
	max-width: 880px;

	margin: 0 auto 48px;

	text-align: center;
}

.byen-heading-label {
	display: block;

	margin-bottom: 9px;

	color: #FF2D75;

	font-size: 11px;
	font-weight: 750;
	text-transform: uppercase;
	letter-spacing: .13em;
}

.byen-heading h2 {
	margin: 0;

	color: #FFFFFF;

	font-family: "Outfit", sans-serif;
	font-size: clamp(42px, 5vw, 66px);
	font-weight: 850;
	line-height: 1.04;
	letter-spacing: -.04em;

	text-wrap: balance;
}

.byen-heading .pinkline {
	margin-right: auto;
	margin-left: auto;
}

.byen-heading p {
	max-width: 700px;

	margin: 24px auto 0;

	color: rgba(255, 255, 255, .60);

	font-size: 16px;
	line-height: 1.68;
}


/* =========================================================
   HURTIGNAVIGASJON
========================================================= */

.byen-navigation {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 9px;

	max-width: 900px;

	margin: 0 auto 70px;
	padding: 13px 16px;

	border: 1px solid rgba(255, 255, 255, .09);
	border-radius: 18px;

	background: rgba(255, 255, 255, .033);

	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.byen-navigation a {
	display: inline-flex;
	align-items: center;
	gap: 8px;

	padding: 9px 13px;

	border: 1px solid rgba(255, 255, 255, .09);
	border-radius: 999px;

	background: rgba(255, 255, 255, .035);
	color: rgba(255, 255, 255, .72);

	font-size: 11px;
	font-weight: 650;
	text-decoration: none;

	transition:
		transform .2s ease,
		border-color .2s ease,
		background .2s ease,
		color .2s ease;
}

.byen-navigation a i {
	color: #FF2D75;
}

.byen-navigation a:hover {
	transform: translateY(-2px);

	border-color: rgba(255, 45, 117, .36);
	background: rgba(255, 45, 117, .09);
	color: #FFFFFF;
}


/* =========================================================
   LISTE
========================================================= */

.byen-list {
	display: grid;
	gap: 35px;
}


/* =========================================================
   OPPLEVELSESKORT
========================================================= */

.byen-card {
	display: grid;
	grid-template-columns:
		minmax(0, 1.08fr)
		minmax(400px, .92fr);

	min-height: 610px;
	overflow: hidden;

	border: 1px solid rgba(255, 255, 255, .10);
	border-radius: 27px;

	background:
		linear-gradient(
			145deg,
			rgba(255, 45, 117, .025),
			rgba(122, 58, 255, .025),
			rgba(0, 229, 255, .015)
		),
		rgba(255, 255, 255, .04);

	box-shadow:
		0 30px 80px rgba(0, 0, 0, .23),
		inset 0 1px 0 rgba(255, 255, 255, .035);

	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);

	scroll-margin-top: 110px;

	transition:
		transform .28s ease,
		border-color .28s ease,
		box-shadow .28s ease;
}

.byen-card:hover {
	transform: translateY(-4px);

	border-color: rgba(255, 45, 117, .27);

	box-shadow:
		0 37px 90px rgba(0, 0, 0, .28),
		0 0 33px rgba(255, 45, 117, .045);
}

.byen-card-reverse {
	grid-template-columns:
		minmax(400px, .92fr)
		minmax(0, 1.08fr);
}

.byen-card-reverse .byen-card-image {
	order: 2;
}

.byen-card-reverse .byen-card-content {
	order: 1;
}


/* =========================================================
   BILDE
========================================================= */

.byen-card-image {
	position: relative;
	overflow: hidden;

	min-height: 610px;

	background: #101526;
}

.byen-card-image img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;

	transition:
		transform .65s ease,
		filter .65s ease;
}

.byen-card:hover .byen-card-image img {
	transform: scale(1.025);
	filter: brightness(1.045);
}

.byen-card-image-overlay {
	position: absolute;
	inset: 0;

	background:
		linear-gradient(
			to top,
			rgba(8, 13, 26, .66) 0%,
			transparent 48%
		),
		linear-gradient(
			to right,
			rgba(8, 13, 26, .13),
			transparent 35%
		);

	pointer-events: none;
}

.byen-card-reverse .byen-card-image-overlay {
	background:
		linear-gradient(
			to top,
			rgba(8, 13, 26, .66) 0%,
			transparent 48%
		),
		linear-gradient(
			to left,
			rgba(8, 13, 26, .13),
			transparent 35%
		);
}


/* =========================================================
   BILDENUMMER OG KATEGORI
========================================================= */

.byen-card-number {
	position: absolute;
	top: 21px;
	right: 21px;
	z-index: 2;

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

	width: 48px;
	height: 48px;

	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 14px;

	background: rgba(14, 19, 36, .65);
	color: rgba(255, 255, 255, .80);

	font-size: 12px;
	font-weight: 800;

	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.byen-card-image-title {
	position: absolute;
	left: 22px;
	bottom: 21px;
	z-index: 2;

	display: inline-flex;
	align-items: center;
	gap: 9px;

	padding: 10px 13px;

	border: 1px solid rgba(255, 45, 117, .27);
	border-radius: 999px;

	background: rgba(14, 19, 36, .72);
	color: #FF5A93;

	font-size: 10px;
	font-weight: 750;
	text-transform: uppercase;
	letter-spacing: .075em;

	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}


/* =========================================================
   INNHOLD
========================================================= */

.byen-card-content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;

	padding: clamp(34px, 5vw, 62px);
}

.byen-card-label {
	display: block;

	margin-bottom: 10px;

	color: #FF2D75;

	font-size: 10px;
	font-weight: 750;
	text-transform: uppercase;
	letter-spacing: .12em;
}

.byen-card-content h3 {
	max-width: 620px;

	margin: 0;

	color: #FFFFFF;

	font-family: "Outfit", sans-serif;
	font-size: clamp(34px, 4vw, 53px);
	font-weight: 830;
	line-height: 1.05;
	letter-spacing: -.038em;

	text-wrap: balance;
}

.byen-card-accent {
	width: 76px;
	height: 5px;

	margin: 24px 0 25px;

	border-radius: 999px;

	background:
		linear-gradient(
			to right,
			#FF2D75,
			#FF5A93
		);

	box-shadow:
		0 0 19px rgba(255, 45, 117, .38);
}

.byen-card-text {
	color: rgba(255, 255, 255, .61);

	font-size: 15px;
	line-height: 1.68;
}


/* =========================================================
   KORTBUNN
========================================================= */

.byen-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;

	margin-top: 32px;
	padding-top: 21px;

	border-top: 1px solid rgba(255, 255, 255, .08);
}

.byen-photo-credit {
	display: inline-flex;
	align-items: center;
	gap: 7px;

	color: rgba(255, 255, 255, .35);

	font-size: 10px;
	line-height: 1.4;
}

.byen-photo-credit i {
	color: rgba(255, 255, 255, .45);
}


/* =========================================================
   LENKEKNAPP
========================================================= */

.byen-card-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;

	padding: 11px 16px;

	border: 1px solid rgba(255, 45, 117, .27);
	border-radius: 999px;

	background: rgba(255, 45, 117, .075);
	color: #FFFFFF;

	font-size: 10px;
	font-weight: 750;
	text-transform: uppercase;
	letter-spacing: .05em;
	text-decoration: none;

	transition:
		transform .2s ease,
		border-color .2s ease,
		background .2s ease;
}

.byen-card-button i {
	color: #FF2D75;

	transition:
		transform .2s ease,
		color .2s ease;
}

.byen-card-button:hover {
	transform: translateY(-2px);

	border-color: #FF2D75;
	background: #FF2D75;
	color: #FFFFFF;
}

.byen-card-button:hover i {
	transform: translateX(3px);
	color: #FFFFFF;
}


/* =========================================================
   AVSLUTNINGSBOKS
========================================================= */

.byen-outro {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 19px;

	max-width: 1000px;

	margin: 75px auto 0;
	padding: 25px 27px;

	border: 1px solid rgba(0, 229, 255, .18);
	border-radius: 20px;

	background:
		linear-gradient(
			135deg,
			rgba(0, 229, 255, .055),
			rgba(122, 58, 255, .035),
			rgba(255, 45, 117, .025)
		),
		rgba(255, 255, 255, .032);

	box-shadow:
		0 23px 60px rgba(0, 0, 0, .18);
}

.byen-outro-icon {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 55px;
	height: 55px;

	border-radius: 16px;

	background: rgba(0, 229, 255, .11);
	color: #00E5FF;

	font-size: 21px;
}

.byen-outro span {
	display: block;

	margin-bottom: 4px;

	color: #00E5FF;

	font-size: 9px;
	font-weight: 750;
	text-transform: uppercase;
	letter-spacing: .11em;
}

.byen-outro h3 {
	margin: 0 0 5px;

	color: #FFFFFF;

	font-size: 22px;
	font-weight: 780;
	letter-spacing: -.02em;
}

.byen-outro p {
	margin: 0;

	color: rgba(255, 255, 255, .53);

	font-size: 13px;
	line-height: 1.55;
}


/* =========================================================
   MINDRE DESKTOP
========================================================= */

@media (max-width: 1199px) {

	.byen-card,
	.byen-card-reverse {
		grid-template-columns:
			minmax(0, 1fr)
			minmax(360px, .88fr);
	}

}


/* =========================================================
   NETTBRETT
========================================================= */

@media (max-width: 991px) {

	.byen-card,
	.byen-card-reverse {
		grid-template-columns: 1fr;

		min-height: 0;
	}

	.byen-card-reverse .byen-card-image,
	.byen-card-reverse .byen-card-content {
		order: initial;
	}

	.byen-card-image {
		min-height: 450px;
	}

}


/* =========================================================
   MOBIL
========================================================= */

@media (max-width: 767px) {

	.byen-section {
		padding: 58px 0 78px;
	}

	.byen-container {
		padding-right: 16px;
		padding-left: 16px;
	}

	.byen-heading {
		margin-bottom: 36px;

		text-align: left;
	}

	.byen-heading .pinkline {
		margin-right: 0;
		margin-left: 0;
	}

	.byen-heading p {
		margin-right: 0;
		margin-left: 0;
	}

	.byen-navigation {
		justify-content: flex-start;

		margin-bottom: 50px;
	}

	.byen-list {
		gap: 24px;
	}

	.byen-card {
		border-radius: 21px;
	}

	.byen-card-image {
		min-height: 330px;
	}

	.byen-card-content {
		padding: 27px 21px 23px;
	}

	.byen-card-content h3 {
		font-size: 33px;
	}

	.byen-card-text {
		font-size: 14px;
		line-height: 1.64;
	}

	.byen-card-footer {
		align-items: flex-start;
		flex-direction: column;
	}

	.byen-card-button {
		width: 100%;
	}

	.byen-outro {
		grid-template-columns: 1fr;

		margin-top: 55px;
		padding: 22px;
	}

}


/* =========================================================
   LITEN MOBIL
========================================================= */

@media (max-width: 420px) {

	.byen-card-image {
		min-height: 285px;
	}

	.byen-card-number {
		top: 13px;
		right: 13px;

		width: 42px;
		height: 42px;
	}

	.byen-card-image-title {
		left: 13px;
		bottom: 13px;
	}

}