/*
 * Kampanjsidor. Laddas bara på en enskild kampanj.
 *
 * Bygger på samma språk som övriga sajten: hero.sub, vita kort med
 * skugga och rundning, sektioner på 90 % / 1180–1410 och bilkorten
 * från .vehicle-archive.
 */

.kampanj_kicker {
	margin: 0 0 0.55em;
	color: #0060a8;
	font-family: "Host Grotesk", sans-serif;
	font-weight: 600;
	font-size: 0.95em;
	line-height: 1.3;
}

.kampanj_buttons {display: flex; flex-wrap: wrap; gap: 0.75em; margin-top: 1.5em;}
.kampanj_buttons .btn {display: inline-block;}

/* Hero med bild. Samma placering som företagssidorna. */

section.section.hero.kampanj_hero {margin: 3em auto 0;}
section.section.hero.kampanj_hero .wrapper .content {bottom: 3em;}
section.section.hero.kampanj_hero .wrapper .content h1 {margin: 0 0 0.45em;}
section.section.hero.kampanj_hero .wrapper .content .kampanj_kicker {color: #fff;}
section.section.hero.kampanj_hero .kampanj_ingress p {margin: 0;}
section.section.hero.kampanj_hero .wrapper .hero_overlay {background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 65%);}
section.section.hero.kampanj_hero .kampanj_buttons {margin-top: 1.25em;}

/* Sidhuvud utan bild */

.kampanj_intro > .wrapper {width: 90%; max-width: 1180px; margin: 0 auto; padding: 3em 0 0;}
.kampanj_intro:last-child > .wrapper {padding-bottom: 5em;}
.kampanj_intro h1 {margin: 0 0 0.45em;}
.kampanj_intro .kampanj_ingress {max-width: 740px;}
.kampanj_intro .kampanj_ingress p {margin: 0;}

/* Erbjudande och brödtext */

.kampanj_panel > .wrapper {width: 90%; max-width: 1180px; margin: 0 auto; padding: 4em 0 5em;}
.kampanj_hero + .kampanj_panel > .wrapper {padding-top: 4em;}
.kampanj_intro + .kampanj_panel > .wrapper {padding-top: 2.5em;}

.kampanj_panel_grid--split {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 4em;
	align-items: start;
}
.kampanj_panel_grid--split .kampanj_text {padding-top: 2.5em;}
.kampanj_panel_grid:not(.kampanj_panel_grid--split) .kampanj_offer {max-width: 720px;}

.kampanj_offer {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 0.75em;
	box-shadow: 0 0 1em rgba(0, 0, 0, 0.05);
	padding: 2.5em;
}
.kampanj_offer h2 {margin: 0 0 0.45em; font-size: 1.75em;}
.kampanj_offer_text {max-width: 38em;}
.kampanj_panel_grid--split .kampanj_offer_text {max-width: none;}
.kampanj_offer_text p:last-child {margin-bottom: 0;}

.kampanj_until {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em 0.6em;
	align-items: baseline;
	margin: 1.5em 0 0;
	padding-top: 1.25em;
	border-top: 1px solid #ececec;
	font-family: "Host Grotesk", sans-serif;
	font-weight: 600;
}
.kampanj_until span {color: #666; font-weight: 500;}

.kampanj_panel_grid:not(.kampanj_panel_grid--split) .kampanj_text {max-width: 740px;}
.kampanj_text > *:first-child {margin-top: 0;}
.kampanj_text > *:last-child {margin-bottom: 0;}
.kampanj_text a {color: #0060a8;}
.kampanj_text a:hover {color: #0171c6;}
.kampanj_text ul {list-style: none; margin: 0 0 1em; padding: 0; display: flex; flex-direction: column; gap: 0.45em;}
.kampanj_text ul li {position: relative; padding: 0 0 0 1.75em;}
.kampanj_text ul li:before {content: ''; position: absolute; left: 0; top: 0.35em; width: 17px; height: 17px; background: url('../img/icons/blue_check.svg') no-repeat center; background-size: 17px;}

/* Bilar */

.kampanj_vehicles {background: #f9f9f9;}
.kampanj_hero + .kampanj_vehicles,
.kampanj_intro + .kampanj_vehicles {margin-top: 3em;}
.kampanj_vehicles > .wrapper {width: 90%; max-width: 1410px; margin: 0 auto; padding: 4em 0 5em;}
.kampanj_panel + .kampanj_vehicles > .wrapper {padding-top: 4em;}
.kampanj_vehicles_head {display: flex; justify-content: space-between; align-items: center; gap: 1em; margin: 0 0 2em;}
.kampanj_vehicles_head h2 {margin: 0;}

.kampanj .vehicle-archive {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 3em 2em;
	float: none;
	width: 100%;
}
.kampanj .vehicle-archive .vehicle a.image {position: relative;}
.kampanj_pill {
	position: absolute;
	z-index: 2;
	top: 0.75em;
	left: 0.75em;
	max-width: calc(100% - 1.5em);
	padding: 0.35em 0.7em;
	border-radius: 999px;
	background: #0060a8;
	color: #fff;
	font-family: "Host Grotesk", sans-serif;
	font-weight: 600;
	font-size: 0.8em;
	line-height: 1.2;
}
.kampanj .vehicle-archive .vehicle ul {display: flex; flex-wrap: wrap; gap: 0.35em; min-height: 0;}
.kampanj .vehicle-archive .vehicle ul li {margin: 0;}

@media screen and (max-width: 1040px) {
	.kampanj .vehicle-archive {grid-template-columns: repeat(2, 1fr); gap: 2em 1em;}
	.kampanj_panel_grid--split {gap: 2.5em;}
}

@media screen and (max-width: 991px) {
	.kampanj_panel_grid--split {grid-template-columns: 1fr; gap: 2.5em;}
	.kampanj_panel_grid--split .kampanj_text {padding-top: 0;}
}

@media screen and (max-width: 768px) {
	section.section.hero.kampanj_hero {margin: 1em auto 0;}
	section.section.hero.kampanj_hero .wrapper .content .kampanj_kicker {color: #0060a8;}
	section.section.hero.kampanj_hero .kampanj_buttons .btn.primary {background: #0060a8; color: #fff;}

	.kampanj_intro > .wrapper {padding-top: 2em;}
	.kampanj_panel > .wrapper,
	.kampanj_hero + .kampanj_panel > .wrapper {padding-top: 2.5em; padding-bottom: 3em;}
	.kampanj_offer {padding: 1.5em;}
	.kampanj_vehicles > .wrapper,
	.kampanj_panel + .kampanj_vehicles > .wrapper {padding: 2.5em 0 3em;}
	.kampanj_vehicles_head {margin-bottom: 1.5em;}
}

@media screen and (max-width: 560px) {
	.kampanj .vehicle-archive {grid-template-columns: 1fr;}
	section.section.hero.kampanj_hero .wrapper .content {left: 1.25em; right: 1.25em; width: auto;}
}
