/* The front page (parts/forside.php). Today's colours and shapes. */

/* ---------- All widths ---------- */
#dp-front { display: flex; flex-direction: column; font: 400 16px/1.5 "DM Sans", sans-serif; color: #555; background: #fff; }
#dp-front *, #dp-front *::before { box-sizing: border-box; }
/* The Elementor kit gives every image a border and a shadow. */
#dp-front img { display: block; max-width: 100%; height: auto; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
#dp-front h1, #dp-front h2, #dp-front h3 { margin: 0; padding: 0; color: #1F2937; font-family: "DM Sans", sans-serif; font-weight: 700; text-align: center; text-transform: none; text-wrap: balance; }
#dp-front p { margin: 0; }
#dp-front section { margin: 0; }
#dp-front a { text-decoration: none; }
#dp-front .dp-f-btn { display: table; margin: 24px auto 0; padding: 12px 24px; border: 2px solid #2F7D32; border-radius: 25px; background: #2F7D32; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.5; text-align: center; transition: background .2s, box-shadow .2s, transform .2s; }
#dp-front a.dp-f-btn:hover, #dp-front a.dp-f-btn:focus-visible { background: #27692a; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); transform: translateY(-2px); }
#dp-front a:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
#dp-front .dp-f-intro { margin: 12px auto 0; max-width: 680px; text-align: center; }
#dp-front .dp-f-green { background: #F3F8F4; }

#dp-front .dp-f-hero { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; isolation: isolate; text-align: center; }
#dp-front .dp-f-hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
#dp-front .dp-f-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(31, 95, 46, .58); }
#dp-front .dp-f-hero p { margin-top: 14px; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
#dp-front .dp-f-hero .dp-f-title { color: #fff; font-family: Poppins, "DM Sans", sans-serif; line-height: 1.2; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
#dp-front .dp-f-hero .dp-f-btn { border-color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
#dp-front .dp-f-hero .dp-f-small { margin-top: 20px; font-weight: 600; }
#dp-front .dp-f-hero .dp-f-small .dp-f-mark { display: none; }

#dp-front .dp-f-tiles { display: grid; margin: 0; padding: 0; list-style: none; }
#dp-front .dp-f-tiles a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .1); text-align: center; }
#dp-front .dp-f-tiles img { width: 100%; object-fit: cover; }
#dp-front .dp-f-tile { display: flex; flex: 1; flex-direction: column; align-items: center; }

#dp-front .dp-f-steps { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: dp-step; }

#dp-front .dp-f-trainer { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .12); color: #555; text-align: center; }
#dp-front .dp-f-trainer img { width: 100%; object-fit: cover; object-position: 50% 30%; }
#dp-front .dp-f-trainer div { display: flex; flex: 1; flex-direction: column; }
#dp-front .dp-f-trainer b { display: block; margin-top: auto; color: #2F7D32; font-size: 15px; }
#dp-front .dp-f-mark { display: inline-block; width: 13px; height: 14px; margin-right: 7px; vertical-align: -2px; fill: #2F7D32; }

#dp-front .dp-f-why { margin: 0; padding: 0; list-style: none; }
#dp-front .dp-f-why li { display: flex; flex-direction: column; align-items: center; gap: 12px; border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .08); color: #1F2937; text-align: center; }
#dp-front .dp-f-badge { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #2F7D32; color: #fff; }
#dp-front .dp-f-badge svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

#dp-front .dp-f-help > img { width: 100%; object-fit: cover; }

/* ---------- Below 768px ---------- */
@media (max-width: 767px) {
	#dp-front .dp-f-d { display: none; }
	#dp-front { width: 100vw; margin-left: calc(50% - 50vw); }
	#dp-front section { padding: 40px 20px; scroll-margin-top: 80px; }
	#dp-front h2 { font-size: 26px; line-height: 1.3; }
	#dp-front h3 { font-size: 18px; line-height: 1.35; }
	#dp-front .dp-f-btn { margin-top: 20px; }
	#dp-front .dp-f-intro { margin-top: 8px; }

	#dp-front .dp-f-hero { min-height: 480px; padding: 48px 24px; }
	#dp-front .dp-f-hero p { font-size: 17px; }
	#dp-front .dp-f-hero .dp-f-title { font-size: 34px; }
	#dp-front .dp-f-hero .dp-f-btn { margin-top: 24px; }
	#dp-front .dp-f-hero .dp-f-small { margin-top: 18px; font-size: 14px; font-weight: 400; }

	#dp-front .dp-f-tiles { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
	#dp-front .dp-f-tiles img { aspect-ratio: 1 / 1; }
	#dp-front .dp-f-tile { padding: 12px 8px 14px; }
	#dp-front .dp-f-tile h3 { font-size: 16px; }
	#dp-front .dp-f-tile small { color: #2F7D32; font-size: 14px; font-weight: 600; }

	#dp-front .dp-f-steps li { counter-increment: dp-step; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: start; }
	#dp-front .dp-f-steps li + li { margin-top: 18px; }
	#dp-front .dp-f-steps li::before { content: counter(dp-step); grid-row: span 2; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #2F7D32; color: #fff; font-weight: 700; }
	#dp-front .dp-f-steps h3 { text-align: left; }

	#dp-front .dp-f-swipe { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; margin: 18px -20px 0; padding: 6px 20px 22px; scrollbar-width: none; }
	#dp-front .dp-f-trainer { flex: 0 0 72%; scroll-snap-align: start; }
	#dp-front .dp-f-trainer img { aspect-ratio: 4 / 5; }
	#dp-front .dp-f-trainer div { padding: 14px 14px 18px; }
	#dp-front .dp-f-trainer .dp-f-fact { margin-top: 4px; font-size: 14px; }
	#dp-front .dp-f-trainer b { padding-top: 8px; }

	#dp-front .dp-f-why { margin-top: 22px; }
	#dp-front .dp-f-why li { padding: 24px 20px; }
	#dp-front .dp-f-why li + li { margin-top: 14px; }

	#dp-front .dp-f-help > img { aspect-ratio: 4 / 3; margin-bottom: 22px; border-radius: 20px; }
}

/* ---------- From 768px ---------- */
@media (min-width: 768px) {
	#dp-front .dp-f-m { display: none; }

	/* One spacing for every section. */
	#dp-front .dp-f-inner { width: 100%; max-width: 1180px; margin: 0 auto; padding: 80px 20px; }
	#dp-front h2 { font-size: 34px; line-height: 1.3; }
	#dp-front h3 { font-size: 20px; line-height: 1.35; }
	#dp-front .dp-f-btn { margin-top: 32px; }

	/* Order on wide screens: services, trainers, become a provider, why, help. */
	#dp-front .dp-f-how { display: none; }
	#dp-front .dp-f-hero { order: 1; }
	#dp-f-tjenester { order: 2; }
	#dp-front .dp-f-trainers { order: 3; background: #F3F8F4; }
	#dp-front .dp-f-provider { order: 4; background: #fff; }
	#dp-front .dp-f-reasons { order: 5; }
	#dp-front .dp-f-help { order: 6; }

	#dp-front .dp-f-hero { min-height: 640px; padding: 80px 24px; }
	#dp-front .dp-f-hero::after { background: rgba(31, 95, 46, .5); }
	#dp-front .dp-f-hero > div { max-width: 820px; }
	#dp-front .dp-f-hero .dp-f-title { font-size: 52px; }
	#dp-front .dp-f-hero p { margin-top: 20px; font-size: 20px; }
	#dp-front .dp-f-hero .dp-f-small { margin-top: 28px; font-size: 16px; }
	#dp-front .dp-f-hero .dp-f-small .dp-f-mark { display: inline-block; fill: #fff; }

	#dp-front .dp-f-tiles { grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; }
	#dp-front .dp-f-tiles img { aspect-ratio: 16 / 10; }
	#dp-front .dp-f-tiles a { transition: box-shadow .2s, transform .2s; }
	#dp-front .dp-f-tiles a:hover { box-shadow: 0 16px 36px rgba(0, 0, 0, .16); transform: translateY(-4px); }
	#dp-front .dp-f-tile { gap: 10px; padding: 24px 28px 28px; }
	#dp-front .dp-f-tile-text { color: #555; }
	#dp-front .dp-f-tile .dp-f-btn { margin: auto auto 0; }

	#dp-front .dp-f-swipe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
	#dp-front .dp-f-trainer { transition: box-shadow .2s, transform .2s; }
	#dp-front .dp-f-trainer:hover { box-shadow: 0 16px 36px rgba(0, 0, 0, .18); transform: translateY(-4px); }
	#dp-front .dp-f-trainer img { aspect-ratio: 5 / 6; }
	#dp-front .dp-f-trainer div { align-items: center; gap: 8px; padding: 22px 22px 26px; }
	#dp-front .dp-f-trainer .dp-f-about { margin-top: 6px; margin-bottom: 12px; }

	#dp-front .dp-f-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
	#dp-front .dp-f-why li { padding: 32px 28px; }
	#dp-front .dp-f-why p { color: #555; }

	#dp-front .dp-f-help > img { height: 520px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
	#dp-front .dp-f-swipe { grid-template-columns: repeat(2, 1fr); }
	#dp-front .dp-f-why { grid-template-columns: 1fr; max-width: 520px; margin-right: auto; margin-left: auto; }
	#dp-front .dp-f-hero .dp-f-title { font-size: 44px; }
}
