/*
 * Devotion – site stylesheet
 *
 * Recreates the look of the old Joomla template (yoo_streamline, profile
 * "black header / orange / dots") and makes it responsive.
 * Desktop: fixed 947px wrapper, sidebar A 150px left, sidebar B 350px right.
 * Below 960px the wrapper becomes fluid; below 760px everything stacks.
 */

/* ---------- Fonts ---------- */

@font-face {
	font-family: "UbuntuRegular";
	src: url(../fonts/Ubuntu-Regular-webfont.woff) format("woff");
	font-display: swap;
}
@font-face {
	font-family: "MetrophobicRegular";
	src: url(../fonts/Metrophobic-webfont.woff) format("woff");
	font-display: swap;
}
@font-face {
	font-family: "BebasNeueRegular";
	src: url(../fonts/BebasNeue-webfont.woff) format("woff");
	font-display: swap;
}

/* ---------- Base ---------- */

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

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

body {
	margin: 0;
	font: normal 13px/18px "UbuntuRegular", Arial, Helvetica, sans-serif;
	color: #333;
	background: #282828 url(../img/tpl/page.png) 0 0 repeat;
}

#page-bg {
	min-height: 100vh;
	padding: 0 0 20px;
	background: url(../img/tpl/gradient.svg) 50% 50% no-repeat fixed;
	background-size: 100% 1500px;
}

img { border: 0; max-width: 100%; height: auto; }

a { color: #ea9500; text-decoration: none; }
a:hover { color: #111; }

p, ul, ol, table, hr { margin: 0 0 18px; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 18px;
	font-family: "MetrophobicRegular", Arial, Helvetica, sans-serif;
	font-weight: normal;
}
h1 { font-size: 20px; line-height: 24px; font-weight: bold; color: #555; }
h2 { font-size: 26px; line-height: 26px; color: #ea9500; }
h3 { font-size: 20px; line-height: 22px; }
h4 { font-size: 18px; line-height: 20px; color: #ea9500; }
h5 { font-size: 16px; line-height: 18px; color: #666; }
h6 { font-size: 14px; line-height: 16px; color: #ea9500; }
h1, h2, h3, h4 { text-transform: uppercase; }

strong { color: #111; }
em { color: #666; }

hr {
	height: 0;
	border: 0;
	border-top: 1px solid rgba(0,0,0,0.1);
}

::selection { background: rgba(0,0,0,0.25); color: #fff; }

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

/* ---------- Wrapper ---------- */

.wrapper {
	width: 947px;
	margin: 0 auto;
	background: url(../img/tpl/wrapper.png) 0 0 repeat;
	box-shadow: 0 0 15px rgba(0,0,0,1);
}

#toolbar { height: 45px; }

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

#headerbar { background: url(../img/tpl/headerbar.png) 0 0 repeat; }

#headerbar > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 20px 26px;
	background: url(../img/tpl/headerbar_t.png) 0 0 repeat-x;
}

#logo { display: block; flex: 0 1 425px; }
#logo img { display: block; width: 425px; }

#statement { display: block; flex: 0 1 395px; }
#statement img { display: block; width: 395px; }

/* ---------- Main menu ---------- */

#menubar {
	position: relative;
	height: 75px;
	margin-top: -6px;
	padding: 0 10px;
	background: url(../img/tpl/menubar_orange.png) 0 0 repeat-x;
}

#menu-toggle { display: none; }

#menu ul {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

#menu li { background: url(../img/tpl/menu_dropline_level1.png) 0 0 repeat-y; }
#menu li:first-child { background: none; }

#menu a {
	display: block;
	height: 76px;
	padding: 26px 10px 0;
	font: normal 24px/30px "BebasNeueRegular", Arial, Helvetica, sans-serif;
	color: #878787;
	text-transform: uppercase;
	text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

#menu a:hover,
#menu a:focus-visible { color: #ea9500; }

#menu li.active a {
	color: #333;
	background: url(../img/tpl/menu_dropline_level1_current.png) 50% 0 no-repeat;
	background-size: 100% 12px;
}

#menu li.facebook a { padding-top: 22px; }
#menu li.facebook img { display: block; width: 30px; height: 30px; }
#menu .fb-label { display: none; }

/* ---------- Main area ---------- */

#main {
	padding-top: 5px;
	background:
		url(../img/tpl/main_t_fx.png) 50% 0 no-repeat,
		url(../img/tpl/main_t.png) 0 0 repeat-x;
}

#main > div {
	padding-bottom: 17px;
	background:
		url(../img/tpl/main_b_fx.png) 50% 100% no-repeat,
		url(../img/tpl/main_b.png) 0 100% repeat-x;
}

.layout {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-areas: "content";
	background: url(../img/tpl/main.png) 0 0 repeat;
}

.layout.has-a { grid-template-columns: 150px 1fr; grid-template-areas: "a content"; }
.layout.has-b { grid-template-columns: 1fr 350px; grid-template-areas: "content b"; }
.layout.has-a.has-b { grid-template-columns: 150px 1fr 350px; grid-template-areas: "a content b"; }

#content { grid-area: content; min-width: 0; padding: 20px; }
#sidebar-a { grid-area: a; }
#sidebar-b { grid-area: b; }

#sidebar-a { background: rgba(0,0,0,0.04) url(../img/tpl/border.png) 100% 0 repeat-y; }
#sidebar-b { background: #000 url(../img/tpl/border.png) 0 0 repeat-y; }

#sidebar-b img { display: block; width: 350px; }

#content > :last-child { margin-bottom: 0; }

/* Sidebar menu (Profil) */

.menu-sidebar {
	margin: 0;
	padding: 20px 0;
	list-style: none;
}

.menu-sidebar a {
	display: block;
	padding: 5px 20px;
	background: url(../img/tpl/menu_sidebar_level1.png) 0 0 repeat-x;
	font-size: 14px;
	font-weight: bold;
	line-height: 20px;
	color: #7f704d;
	text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.menu-sidebar a:hover { background-position: 0 -90px; color: #ea9500; }
.menu-sidebar a.current { color: #333; }

.menu-sidebar li:last-child {
	padding-bottom: 3px;
	background: url(../img/tpl/menu_sidebar_ul_level2.png) 0 100% repeat-x;
}

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

#footer {
	padding: 0 20px 20px;
	font-size: 12px;
	text-align: center;
	color: #c1c1c1;
}

#footer p { margin: 0; font-size: 11pt; line-height: 1.6; }
#footer a { color: #999; }
#footer a:hover { color: #ff9e05; }

/* ---------- Page content ---------- */

/* Forside */
.front {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}
.front-text { flex: 0 0 350px; }
.front-image { flex: 1 1 auto; }
.front-image img { display: block; }
.front h3 { color: #333; }

/* Demo */
.demo {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}
.demo-video { flex: 0 0 400px; }
.demo-text { flex: 1 1 auto; }
.demo-text .singer { font-size: 12pt; }

.video {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	margin-bottom: 18px;
	background: #000;
}
.video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

audio { display: block; width: 100%; max-width: 300px; margin-top: 4px; }

/* Referencer */
.quote strong em, .quote em strong { color: #111; }
.smiley { vertical-align: middle; }

/* Facebook link on the front page (replaces the old Like box) */
.facebook-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: bold;
}
.facebook-link img { width: 30px; height: 30px; }

/* ---------- Galleri ---------- */

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gallery a {
	display: block;
	padding: 4px;
	background: #fff;
	border: 1px solid #d3d3d3;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gallery a:hover,
.gallery a:focus-visible { border-color: #ea9500; }

.gallery img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* Lightbox */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,0.92);
	touch-action: pan-y;
}

.lightbox[hidden] { display: none; }

.lightbox img {
	max-width: calc(100vw - 120px);
	max-height: calc(100vh - 80px);
	width: auto;
	box-shadow: 0 0 20px #000;
	user-select: none;
}

.lightbox button {
	position: absolute;
	padding: 0;
	border: 0;
	background: none;
	color: #ccc;
	font: 40px/1 Arial, Helvetica, sans-serif;
	cursor: pointer;
}

.lightbox button:hover,
.lightbox button:focus-visible { color: #ff9e05; }

.lightbox .lb-close { top: 12px; right: 18px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); width: 50px; height: 80px; }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); width: 50px; height: 80px; }

.lightbox .lb-count {
	position: absolute;
	bottom: 12px;
	left: 0;
	right: 0;
	text-align: center;
	color: #999;
}

body.lightbox-open { overflow: hidden; }

/* ---------- Booking form ---------- */

.booking-form { max-width: 493px; }

.booking-form h4 { margin-top: 18px; }

.form-row {
	display: grid;
	grid-template-columns: 135px 1fr;
	gap: 6px 10px;
	align-items: center;
	margin-bottom: 8px;
}

.form-row.top { align-items: start; }
.form-row label { line-height: 16px; }

.req { color: #6383b1; }

.booking-form input[type=text],
.booking-form input[type=email],
.booking-form input[type=tel],
.booking-form input[type=date],
.booking-form select,
.booking-form textarea {
	width: 100%;
	padding: 5px 6px;
	border: 1px solid #bbb;
	border-radius: 2px;
	background: #fff;
	font: inherit;
	color: #333;
}

.booking-form textarea { min-height: 100px; resize: vertical; }

/* The whole date field opens the calendar (see site.js) */
.booking-form input[type=date] { cursor: pointer; }
.booking-form input[type=date]::-webkit-calendar-picker-indicator { cursor: pointer; }

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
	outline: none;
	border-color: #ea9500;
	box-shadow: 0 0 0 2px rgba(234,149,0,0.25);
}

.booking-form .invalid { border-color: #c00 !important; }

.field-error {
	grid-column: 2;
	color: #c00;
	font-size: 12px;
	line-height: 14px;
}

.form-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 14px;
}

.form-actions .note { margin-right: auto; }

.booking-form button {
	padding: 6px 14px;
	border: 1px solid #a85300;
	border-radius: 2px;
	background: #ea9500;
	color: #fff;
	font: inherit;
	font-weight: bold;
	text-shadow: 0 1px 0 rgba(0,0,0,0.2);
	cursor: pointer;
}

.booking-form button:hover { background: #ff9e05; }
.booking-form button.secondary { border-color: #bbb; background: #eee; color: #333; text-shadow: none; }
.booking-form button.secondary:hover { background: #ddd; }

.message-error {
	margin-bottom: 18px;
	padding: 10px 14px;
	border: 1px solid #e3a3a3;
	background: #fff0f0;
	color: #900;
}

/* Honeypot: hidden from people, visible to naive bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

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

@media (max-width: 960px) {
	.wrapper { width: auto; margin: 0 10px; }
	#toolbar { height: 20px; }
	#menu a { padding-left: 8px; padding-right: 8px; font-size: 21px; }
	.layout.has-a { grid-template-columns: 130px 1fr; }
	.layout.has-b { grid-template-columns: 1fr 280px; }
	.layout.has-a.has-b { grid-template-columns: 130px 1fr 280px; }
	#sidebar-b img { width: 100%; }
	.front-text { flex-basis: 300px; }
	.demo { gap: 20px; }
	.demo-video { flex-basis: 50%; }
}

@media (max-width: 760px) {
	#page-bg { padding-bottom: 0; }
	.wrapper { margin: 0; box-shadow: none; }
	#toolbar { display: none; }

	/* Header: logo and statement stacked and centered */
	#headerbar > div {
		flex-direction: column;
		padding: 14px 15px 20px;
		gap: 10px;
	}
	#logo, #statement { flex: none; max-width: 100%; }
	#logo img { width: 300px; max-width: 100%; margin: 0 auto; }
	#statement img { width: 320px; max-width: 100%; margin: 0 auto; }

	/* Menu folds into a button */
	#menubar { height: auto; min-height: 60px; padding: 0; }
	#menu-toggle {
		display: flex;
		align-items: center;
		gap: 10px;
		width: 100%;
		height: 60px;
		padding: 12px 15px 0;
		border: 0;
		background: none;
		font: normal 24px/1 "BebasNeueRegular", Arial, Helvetica, sans-serif;
		color: #555;
		text-shadow: 0 1px 0 rgba(255,255,255,0.4);
		cursor: pointer;
	}
	#menu-toggle .bars,
	#menu-toggle .bars::before,
	#menu-toggle .bars::after {
		display: block;
		width: 22px;
		height: 3px;
		background: #555;
		border-radius: 1px;
	}
	#menu-toggle .bars { position: relative; }
	#menu-toggle .bars::before,
	#menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
	#menu-toggle .bars::before { top: -7px; }
	#menu-toggle .bars::after { top: 7px; }

	#menu { display: none; }
	#menubar.open #menu { display: block; }

	#menu ul {
		flex-direction: column;
		padding: 0 0 10px;
		background: #1b1b1b;
	}
	#menu li,
	#menu li:first-child { background: none; border-top: 1px solid rgba(255,255,255,0.06); }
	#menu a {
		height: auto;
		padding: 10px 15px 8px;
		font-size: 22px;
		color: #aaa;
		text-shadow: none;
	}
	#menu li.active a { color: #ff9e05; background: none; }
	#menu li.facebook a { display: flex; align-items: center; gap: 10px; padding-top: 10px; }
	#menu li.facebook img { width: 24px; height: 24px; }
	#menu .fb-label { display: inline; }

	/* Content first, sidebars below */
	.layout,
	.layout.has-a,
	.layout.has-b,
	.layout.has-a.has-b {
		grid-template-columns: 1fr;
		grid-template-areas: "a" "content" "b";
	}
	#content { padding: 15px; }

	/* Pages with 'image_first': the sidebar photo comes before the text */
	.layout.has-b.image-first,
	.layout.has-a.has-b.image-first { grid-template-areas: "a" "b" "content"; }

	/* Profil submenu becomes a row of links above the text */
	#sidebar-a { background: rgba(0,0,0,0.04); border-bottom: 1px solid rgba(0,0,0,0.1); }
	#sidebar-a.empty { display: none; }
	.menu-sidebar { display: flex; flex-wrap: wrap; padding: 8px 10px; }
	.menu-sidebar li,
	.menu-sidebar li:last-child { padding: 0; background: none; }
	.menu-sidebar a { padding: 6px 10px; background: none; }

	#sidebar-b { background: #000; }
	#sidebar-b img { width: 100%; max-width: 350px; margin: 0 auto; }

	#footer { padding: 15px; }
	#footer p { font-size: 13px; }

	.front, .demo { flex-direction: column; gap: 0; }
	.front-text, .front-image, .demo-video, .demo-text { flex-basis: auto; width: 100%; }
	.front-image { order: -1; margin-bottom: 15px; }
	.demo + hr { margin-top: 0; }
	audio { max-width: none; }

	.form-row { grid-template-columns: 1fr; gap: 4px; }
	.field-error { grid-column: 1; }
	.booking-form { max-width: none; }

	.gallery { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
	.gallery a { padding: 2px; }

	.lightbox img { max-width: 100vw; max-height: calc(100vh - 60px); }
	.lightbox .lb-prev, .lightbox .lb-next { display: none; }
}

@media print {
	body, #page-bg, .wrapper, #main, #main > div, .layout { background: none !important; box-shadow: none; }
	#menubar, #sidebar-b, #statement { display: none; }
	.wrapper { width: auto; }
}

/* Quotes on Referencer */
blockquote.quote { margin: 0; }

/* Text that differs between wide and narrow screens */
.only-narrow { display: none; }
@media (max-width: 760px) {
	.only-wide { display: none; }
	.only-narrow { display: inline; }
}
