/* SARA custom styles - kept separate so the template's main.css stays untouched */

/* Small badge next to the name in the top bar */
#header h1 a { display: inline-flex; align-items: center; }
#header h1 .logo-mark {
	height: 2.4em;
	width: 2.4em;
	margin-right: 0.7em;
	border-radius: 50%;
	flex: none;
}

/* Large badge in the home page banner */
#banner .banner-logo {
	display: block;
	width: 15em;
	max-width: 62vw;
	height: auto;
	margin: 0 auto 1.5em auto;
	filter: drop-shadow(0 0.4em 1.2em rgba(0,0,0,0.45));
}

/* Keeps the page heading for search engines and screen readers without repeating the logo's text */
.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

@media screen and (max-width: 736px) {
	#header h1 .logo-mark { height: 2.1em; width: 2.1em; }
}

/* ---- Home page banner video ---- */

/* Still photo shows first (and stays if the video can't play, e.g. low-power mode or reduced motion) */
#banner .banner-media {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: 0;
	background-color: #2e3842;
	background-image: url("../../images/banner-desktop-poster.jpg");
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

#banner .banner-media video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.2s ease;
}

#banner .banner-media video.is-playing {
	opacity: 1;
}

/* Dark tint over the video so the white text stays easy to read against a bright sky */
#banner .banner-media:after {
	content: '';
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	background: linear-gradient(to bottom, rgba(14,24,34,0.55) 0%, rgba(14,24,34,0.35) 45%, rgba(14,24,34,0.65) 100%);
	pointer-events: none;
}

/* Keep the logo, text and button above the video */
#banner .inner { position: relative; z-index: 2; }
#banner .more { z-index: 2; }

@media screen and (max-width: 736px) {
	#banner .banner-media {
		background-image: url("../../images/banner-phone-poster.jpg");
	}
}

/* ---- Keep the helicopter visible: text sits beside/below it instead of on top ---- */

#banner p { margin: 0 0 0.7em 0; }

/* Desktop and tablet: logo and text on the left, helicopter flies through the rest of the frame */
@media screen and (min-width: 737px) {
	#banner .inner {
		width: 100%;
		max-width: 25em;
		margin: 0 0 0 7vw;
		text-align: left;
	}
	#banner .banner-logo {
		width: 12em;
		margin: 0 0 1.5em 0;
	}
	#banner ul.actions.special {
		text-align: left;
		justify-content: flex-start;
	}
	#banner .banner-media:after {
		background:
			linear-gradient(to right, rgba(14,24,34,0.65) 0%, rgba(14,24,34,0.30) 35%, rgba(14,24,34,0) 55%),
			linear-gradient(to bottom, rgba(14,24,34,0) 0%, rgba(14,24,34,0) 75%, rgba(14,24,34,0.35) 100%);
	}
}

/* Phones: helicopter flies in the upper part, logo and text sit below it */
@media screen and (max-width: 736px) {
	#banner { padding-top: 21em; }
	#banner .banner-logo {
		width: 10em;
		margin-bottom: 1.2em;
	}
	#banner .banner-media:after {
		background: linear-gradient(to bottom, rgba(14,24,34,0.10) 0%, rgba(14,24,34,0.15) 30%, rgba(14,24,34,0.72) 55%, rgba(14,24,34,0.82) 100%);
	}
}

/* ---- Photo sizing on inner pages ---- */
.image.portrait { max-width: 18em; }
.image.photo-medium { max-width: 46em; }
@media screen and (max-width: 736px) {
	.image.portrait { max-width: 9.5em; }
}

/* ---- SARA motto ---- */
#banner p.motto {
	font-size: 1.35em;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.4;
	text-transform: none;
	color: #ffffff;
	margin-bottom: 0.9em;
	text-shadow: 0 0.1em 0.6em rgba(0,0,0,0.55);
}
#footer .footer-motto {
	font-size: 1.05em;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #ffffff;
	margin: 0 0 1.5em 0;
}
@media screen and (max-width: 736px) {
	#banner p.motto { font-size: 1.1em; }
}
@media screen and (min-width: 737px) {
	#banner p.motto { font-size: 1.25em; white-space: nowrap; }
}
