@import "responsive.css";
@import "fonts.css";

html
{
	font-family: Text;
	font-size: 16px; 
	height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
}

*, *:before, *:after
{
	box-sizing: border-box;
}

[hidden]	{ display: none ! important; }

.icon
{
	background-origin: padding-box;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	background-size: cover;
	object-fit: cover;
}

body
{
	background-color: #ffffff;
	color: #111111;
	font-size: 1rem;
	height: auto;
	margin: 0;
	min-height: 100%;
	position: relative;
	--effect-scale: 1.1;
	--theme-sheet-width-xxl:1340px;
	--theme-sheet-width-xl: 1140px;
	--theme-sheet-width-lg: 940px;
	--theme-sheet-width-md: 720px;
	--theme-sheet-width-sm: 540px;
	--theme-sheet-width-xs: 340px;
}

header
{
	background-color: white;
	border-bottom: 1px solid silver;
	display: block;
	padding-top: 0.1px;
	top: 0;
	z-index: 20;	
}

header > div
{
	background-image: url(images/main-logo.svg);
	background-repeat: no-repeat;
	background-position: 0 50%;
	background-size: contain;
}	

header > div > nav
{
	margin: auto 0 auto auto;
	width: fit-content;
}

footer
{
	background-image: none;
	background-color: white;
	border-top: 1px solid silver;
	display: block;
	padding-bottom: 0.1px;
	bottom: 0;
	z-index: 20;	
}

footer > div
{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
}

footer > div > *
{
	flex: 300px;
}

header > div
{
	min-height: 3em;
}


header > *, footer > *
{
	position: relative;
}

header > div, footer > div, section > *
{
	position: relative;
	margin: 0 auto;
	width: var(--theme-sheet-width-xl);
}

header > div > *, footer > div > *, section > div > *
{
	position: relative;
}

div.a-button
{
	text-align: right;
	margin-top: 20px;
}

a
{
	text-decoration: none;
}

input[type='submit']:hover, div.a-button > a:hover
{
	text-decoration: underline;
	cursor: pointer;
}

input[type='submit']
{
	margin: 0 0 0 auto;
	display: block;
	width: auto;	
}

input[type='submit'], div.a-button > *
{
	padding: 10px 30px;
	border-radius: 25px; 
	border: none;
	background-color: rgb(111, 102, 238);
	color: white;
	font-weight: var(--semi-bold);
}

a
{
	background-color: transparent;
	border-top-width: 0;
	border-left-width: 0;
	border-right-width: 0;
	color: #6f66ee;
	-webkit-text-decoration-skip: objects;
}

:not(.a-button) > a:hover
{
	color: #5247eb;
}

a:focus
{
	outline: thin dotted;
	outline: 5px auto -webkit-focus-ring-color;
	outline-offset: -2px;
}

img
{
	border-style: none;
}

section
{
	display: block;
	position: relative;
	margin-top: 78px;
}

section:first-of-type
{
	margin-top: 36px;
}

section:last-of-type
{
	margin-bottom: 36px;
}

section > *
{
	position: relative;
}

input[type='text'], input[type='email'], textarea
{
	border: 2px silver outset;
}

button, input
{
	color: inherit;
	font: inherit;
	margin: 0;
	overflow: visible;
}

[type="submit"]
{
	-webkit-appearance: button;
}

body > h1
{
	display: none;
	font-size: calc(var(--header-scale) * 4rem);
	font-weight: var(--heavy);
	margin: 20px auto 20px auto;
	width: width: var(--theme-sheet-width-xl);
}

h2
{
	font-size: calc(var(--header-scale) * 3rem);
	font-weight: var(--bold);
	margin-bottom: 20px;
	margin-top: 20px;
}

svg:not(:root)
{
	overflow: hidden;
}

h5
{
	padding: 0;
	color: inherit;
	font-size: calc(var(--header-scale) * 2rem);
	font-weight: var(--semi-bold);
	margin-bottom: 0.5rem;
	margin-top: 0;
}

p
{
	margin-bottom: 0.5rem;
	margin-top: 0;
	padding: 0;
}

textarea
{
	color: inherit;
	font: inherit;
	margin: 0;
	outline: none;
	overflow: auto;
}

footer a										{ display: block; }
a[href^='callto:']:before						{ display:inline-block; width: 24px; content: '✆\A0'; }
a[href^='mailto:']:before						{ display:inline-block; width: 24px; content: '✉\A0'; }
a[href^='https://www.google.com/maps']:before	{ display:inline-block; width: 24px; content: url(images/location-point.svg); }

nav > li	{ display: block; }

h1	
{
	font-size: 3rem;
	text-align: left;
}

small
{
	display: block;
	font-size: 85%;
}

h1 > small
{
	font-weight: var(--bold);
	font-style: italic;
}

dl.D15EX > div > dt		{ display: inline-block; width: 15ex; margin: 0; }
dl.D15EX > div > dd		{ display: inline-block; width: calc(100% - 15ex); margin: 0; }