/* control */

.hide_desktop {
	display: none !important;
}

.noscroll {
	overflow: auto;
}


/* header */

#header {
	height: 4.5rem;
	position: sticky;
	top: 0;
	background-color: #031a34;
	color: #ffffff;
	box-shadow: rgba(255, 255, 255, 0.4) 0px 1px 24px;
	z-index: 9999;
}

#header > div {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	height: 4.5rem;
}

#header img {
	height: 2.25rem;
	display: block;
}

#header nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
	align-items: center;
	justify-content: flex-end;
	font-family: "Gelasio", serif;
}

#header nav a {
	color: #ffffff;
	text-decoration: none;
	cursor: pointer;
	height: 2.25em;
	line-height: 2.25em;
	font-size: 1em;
	border-radius: 0.5em;
	box-sizing: border-box;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	padding-left: 0.75em;
	padding-right: 0.75em;
	margin-bottom: 0.25em;
}

#header nav a:hover {
	color: #cccccc;
}

#header nav .nav_active {
	background-color: #053162;
	background: linear-gradient(#073d7b, #04254a);
	color: #ffffff;
}

#header nav .nav_active:hover {
	color: #cccccc;
}


/* footer */

#footer {
	background-color: #999999;
	color: #ffffff;
	padding: 1em;
	margin-top: 2em;
}

#footer_cols {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.5em;
	padding-bottom: 1em;
}

#footer_col1 {
	flex: 1;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	font-size: 1.125em;
	padding-top: 0.125em;
}

#footer_col2 {
	flex-shrink: 0;
	text-align: right;
	display: flex;
	flex-direction: row;
	gap: 0.5em;
}

#footer_copyright {
	font-size: 0.9em;
	color: #cccccc;
	padding-top: 0.5em;
	margin-top: 0.5em;
	border-top: 1px dotted #cccccc;
}

#footer_copyright a {
	color: #ffffff;
}

#footer_copyright a:hover {
	color: #eeeeee;
}



/* contents */

.width-full {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.width-standard {
	width: min(92vw, 1200px);
	margin-left: auto;
	margin-right: auto;
}

.width-mid {
	width: min(92vw, 54rem);
	margin-left: auto;
	margin-right: auto;
}

.width-narrow {
	width: min(92vw, 24rem);
	margin-left: auto;
	margin-right: auto;
}

.section-main {
	padding-top: 4em;
	padding-bottom: 4.5em;
	min-height: 60vh;
}

.section-main p {
	line-height: 1.5em;
}

.section-standard {
	padding-top: 4em;
	padding-bottom: 4.5em;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2em;
}

.section-standard h1 {
	text-align: center;
	margin-top: 0;
	margin-bottom: 0.5em;
}

.section-standard p {
	line-height: 1.5em;
}

.cards {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 2em;
	flex-wrap: wrap;
}

.cards > * {
	flex: 1 1 12em;
	min-width: 0;
}

.cards > div {
	box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
	border-radius: 0.5em;
	box-sizing: border-box;
	background-color: #ffffff;
	padding: 2em;
	text-align: center;
}

.cards > div b {
	display: block;
	font-size: 1.5em;
	margin-top: 0.25em;
}

.cards_rows {
	display: flex;
	flex-direction: column;
	gap: 1em;
}

.cards_rows > *:first-child {
	flex: 1;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.cards_rows > *:last-child {
	flex: 1;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.cards_rows h2 {
	margin-top: 0;
	margin-bottom: 0;
}

.cards_rows p {
	margin-top: 0;
	margin-bottom: 0;
}

#hero {
	border: 0;
	border-bottom: 2px dotted #dddddd;
	background: radial-gradient(circle, #ffffff 70%, #eeeeee);
	padding: 0;
	margin: 0;
	text-align: center;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2em;
	padding-top: 2em;
	padding-bottom: 2em;
	min-height: calc(100vh - 4.5rem);   /* fallback for old browsers */
	min-height: calc(100svh - 4.5rem);
}

#hero_text {
	display: block;
	margin-top: 1em;
	margin-left: auto;
	margin-right: auto;
	border: 1px solid #aaaaaa;
	padding: clamp(1.5em, 4vw, 4em) clamp(1.5em, 5vw, 4em);
	font-size: 1.25em;
	font-family: "Gelasio", serif;
	color: #031a34 !important;
	font-weight: 200;
	font-optical-sizing: auto;
	position: relative;
	box-sizing: border-box;
	border-radius: 0.5em;
}

#hero_text span {
	font-size: 1.25em;
}

#hero_caption {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translate(-50%, 50%);
	background-color: #ffffff;
	height: 1em;
	font-size: 1em;
	padding-left: 1.5em;
	padding-right: 1.5em;
}

#hero_caption > img {
	height: 1em;
}

#hero h1 {
	font-size: clamp(2.5em, 7vw, 4.75em);
	max-width: 20ch;
	margin: 0;
	color: #000000 !important;
}

#hero p {
	text-align: center;
	max-width: 50ch;
	margin-bottom: 1em;
	line-height: 1.75em;
}

#hero .smallbutton {
	margin-top: 3em;
}

.diagram {
	aspect-ratio: 4/3;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #031a34;
	background: radial-gradient(#073d7b, #04254a);
	color: #cccccc;
	position: relative;
	border-radius: 0.5em;
	overflow: hidden;
}

.diagram > span {
	font-size: 1.5em;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	height: 4em;
	border-radius: 50%;
	background-color: #ffffff;
	flex-shrink: 0;
}

.diagram > span > img {
	height: 2em;
	max-width: 70%;
	object-fit: contain;
}

.circle {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.circle > div {
	width: 100%;
	height: 100%;
	position: relative;
	padding: 2em;
	box-sizing: border-box;
}

.circle > div > *:nth-child(1) { --pos: 0%; }
.circle > div > *:nth-child(2) { --pos: 16.667%; }
.circle > div > *:nth-child(3) { --pos: 33.333%; }
.circle > div > *:nth-child(4) { --pos: 50%; }
.circle > div > *:nth-child(5) { --pos: 66.667%; }
.circle > div > *:nth-child(6) { --pos: 83.333%; }

.circle > div > * {
	position: absolute;
	offset-path: circle(35% at 50% 50%);
	offset-distance: var(--pos);   /* 0% – 100% around the ring */
	offset-rotate: 0deg;           /* omit to have items face along the path */
	font-size: 1.25em;
}

@keyframes spin { to { transform: rotate(1turn); } }
@keyframes counterspin { to { transform: rotate(-1turn); } }

.circle > div { animation: spin 240s linear infinite; }
.circle > div > * { animation: counterspin 240s linear infinite; }

@media (prefers-reduced-motion: reduce) {
	.circle > div,
	.circle > div > * { animation: none; }
}

.quote {
	display: block;
	margin-left: auto;
	margin-right: auto;
	border: 1px solid #aaaaaa;
	padding: clamp(1.5em, 5vw, 4em);
	padding-bottom: 4em;
	position: relative;
	box-sizing: border-box;
	text-align: center;
	border-radius: 0.5em;
	margin-bottom: 2em;
}

.quote span {
	font-size: 1.5em;
	line-height: 1.5em;
	font-weight: bold;
	font-family: "Gelasio", serif;
	color: #031a34 !important;
	font-weight: 200;
	font-optical-sizing: auto;
}

.quote_caption {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translate(-50%, 50%);
	background-color: #fafafa;
	height: 3em;
	font-size: 1em;
	padding-left: 1.5em;
	padding-right: 1.5em;
}

.logo_cols {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 3em;
	box-sizing: border-box;
}

.logo_cols > div {
	flex: 1;
	min-width: 0;
	box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
	border-radius: 0.5em;
	box-sizing: border-box;
	padding: 0.5em;
	background-color: #ffffff;
}

.logo_cols > div > h2 {
	margin-top: 0;
	text-align: center;
	border-bottom: 1px dotted #aaaaaa;
}

.logo_textcell {
	text-align: center;
	min-height: 4em;
	padding-top: 1em;
	padding-bottom: 1em;
	box-sizing: border-box;
}

.logo_textcell > .smallbutton {
	margin-top: 1em;
}

.logo_grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1em;
}

.logo_placeholder {
	width: 100%;
	aspect-ratio: 1/1;
	background-color: #eeeeee;
	color: #cccccc;
	display: flex;
	align-items: center;
	justify-content: center;
}

#contact {
	padding-top: 4em;
	padding-bottom: 4.5em;
}

#contact h1 {
	text-align: center;
	margin-bottom: 1em;
}

#contact h2 {
	text-align: center;
}

#contact p {
	max-width: 60ch;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	line-height: 1.5em;
}

#contact-buttonholder {
	padding-top: 2em;
}

#c_form {
	margin-left: auto;
	margin-right: auto;
	display: flex;
	flex-direction: column;
	gap: 2em;
}

#c_form > div {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

#c_form > div > span {
	font-weight: bold;
}

#c_form input[type="text"] {
	width: 100%;
}

#c_form textarea {
	width: 100%;
	height: 20em;
}

#c_form .button {
	margin-left: auto;
	margin-right: auto;
	margin-top: 1em;
	margin-bottom: 1em;
}

#c_form .note {
	text-align: center;
}