@font-face {
    font-family: 'cormorant_garamondregular';
    src: url('../f/cormorantgaramond-regular-webfont.woff2') format('woff2'),
         url('../f/cormorantgaramond-regular-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'cormorant_garamonditalic';
    src: url('../f/cormorantgaramond-italic-webfont.woff2') format('woff2'),
         url('../f/cormorantgaramond-italic-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'cormorant_garamondmedium';
    src: url('../f/cormorantgaramond-medium-webfont.woff2') format('woff2'),
         url('../f/cormorantgaramond-medium-webfont.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

:root {
--base:#fff;
--accent:#003151; /* blue */
--accent-2:#555; /* dark grey  */
--accent-3:#ddd; /*  light grey */
--width: 1040px;
}

body {
background: var(--base);
background-size: 35vw auto;
font-family:'cormorant_garamondregular',sans-serif;
font-size: 150%;
margin: 0;
padding: 0;
border-bottom: 100px solid var(--accent);
line-height: 1.4;
}

:focus-visible {
outline: 4px solid black;
box-shadow: 0 0 0 6px white;
}

a { 
text-decoration: underline;
color: var(--accent);
}

a:hover, a:focus { 
color: var(--accent-2);
text-decoration: underline;
}

a:active { 
color: #000;
text-decoration: underline;
}

/* header and footer */

.content, .fullwidthinner, footer {
max-width: var(--width);
margin-left: auto;
margin-right: auto;
padding: 0 1em;
}

body.page .bannerx {
height: 1em;
}

body.headerbanner .banner, body.topbanner .banner {
min-height: 6em;
}

.banner {
background-color: var(--accent);
}

header {
background: var(--accent);
color: var(--base);
text-align: center;
margin: 0 0 2em 0;
padding: 1.5em 6em;

display: flex;
justify-content: space-between;
}

#logo img {
vertical-align: middle;
height: 3em;
width: auto;
margin-right: .3em;
}

#headercontacts {
text-align: right;
font-size: 90%;
}

header .phone, header .email {
display: block;
}

header a, header a:hover, header a:focus {
color: var(--base);
}

footer {
margin-top: 6em;
margin-bottom: 0;
padding: 2em;
font-size: 70%;
display: flex;
justify-content: space-between;
}

footer p {
margin: 0 0 .25em 0;
}

footer p, footer a, footer a:hover, footer a:focus {
color: var(--accent);
}



/* navigation */

nav {
margin: auto 0;
text-align: center;
}

nav ul {
margin: 0;
}

nav li {
text-align: left;
display: inline;
background: none;
vertical-align: super; /* middle on full image logo */
margin: 0; /* margin: 0 0 .5em 1em;*/
padding: 0;
}

nav li a {
font-family: 'texgyreadventor_regular', sans-serif;
font-weight: normal;
text-transform: uppercase;
color: var(--base);
font-size: 70%; /* 85% */
text-decoration: none;
padding: 0 .7em;
line-height: 3.5em;
display: inline-block;
}

nav li a:hover, nav li a:focus {
color: var(--accent-3);
text-decoration: underline;
}

nav a.active {
color: var(--base);
}

nav li a img {
vertical-align: middle;
}

nav.navbar {
background: var(--accent-2);
padding: 0 1em;
}

nav.navbar a {
color: #fff;
}

nav.navbar a:hover, nav.navbar a:focus {
text-decoration: underline;
color: #fff;
}

nav.navbar li a.active {
background: var(--accent);
}

/* general */

h1, h2, h3 {
text-align: left;
font-weight: 400;
}

h1 {
font-family: 'cormorant_garamonditalic', serif;
text-align: center;
font-weight: 400;
font-size: 200%;
color: var(--accent);
}

h2 {
text-transform: uppercase;
margin-top: 1em;
font-size: 175%;
color: var(--accent);
}

h3 {
margin-top: 1em;
font-size: 120%;
color: var(--accent-2);
}

.center {
text-align: center;    
}

.noupper {
text-transform: none;
}

.cta {
font-size: 120%;
text-transform: uppercase;
}

p {
margin: 1.2em 0;
}

p.lead {
font-size: 120%;
}

.small {
font-size: 80%;
}

#back-to-top {
z-index: 1000;
background: rgba(0,0,0,.6);
transition: all 200ms linear;
}

#back-to-top:hover, #back-to-top:focus {
background: rgba(0,0,0,9);
}



/* fullwidth background and panels */

.fullwidth {
margin-top: 3em;
margin-bottom: 3em;
margin-left: calc(-100vw / 2 + 100% / 2);
margin-right: calc(-100vw / 2 + 100% / 2);
max-width: 100vw;
width: auto;
padding-top: 1em;
padding-bottom: 3em;

background: var(--accent);
color: #fff;
}

.xfullwidth::after {
content: '';
background: url(../images/downarrow.svg) no-repeat top center;
background-size: 100% auto;
width: 80px;
height: 50px;
display: block;
margin: 0 auto;
}


.fullwidth h2 {
text-align: center;
color: #fff;
}

.fullwidth ul {
column-width: 15em;
column-gap: 5em;
}


.widewidth {
margin-top: -1em;
margin-bottom: 2em;
margin-left: -1.5em;
width: calc(90% + 8em);
}

#fullwidthback {
background:var(--accent);
background-size: cover;
box-shadow: 0 0 20px rgb(0 0 0 / 80%) inset;
}

.blackpanel {
background: rgba(0,0,0,.7);
margin: 2em 0;
padding: 1em 2em;
color: #fff;
width: 50%;
border-radius: 0;
}

.blackpanel h2, .blackpanel h3, .blackpanel strong, .blackpanel a {
color: #fff;
margin-top: .5em;
}


/* misc */

ul {
padding-left: 1em;
}

li {
margin-bottom: .5em; 
list-style: square;
}

p strong, li strong {
color: var(--accent-2);
}

main img, #map {
display: block;
margin: 0 auto;
max-width: 100%;
height: auto;
border-radius: 0;
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

main img.noshadow {
box-shadow: none;
}

main img.imgc {
display: block;
margin: auto;
}

blockquote {
background: #eee;
margin: 0;
padding: 0.1em 1em 1em 1em;
font-style: italic;
font-size: 120%;
}

blockquote cite {
font-size: 80%;
}

hr {
border: 0;
border-top: .1em solid var(--accent-3);
margin: 2em;
}



/* infobox */

.infobox {
display: flex;
flex-flow: row wrap;
align-items: center;
margin-top: 2em;
margin-bottom: 3em;
}

.imgarea {
flex: 3;
}

.imgarea.imgsml {
flex: 2;
}

.imgarea.imgxsml {
flex: 1;
}

.infoarea {
flex: 4;
margin: auto auto auto 2em;
}

.infoarea.infowide {
flex: 5;
}

.infoarea h2 {
text-align: left;
margin-top: 0;
font-size: 130%;
line-height: 1.1;
}

.infoarea h3 {
text-align: left;
margin-top: 0;
}

.infoarea.sml p {
font-size: 90%;
}



/* tables */

table {
width: 100%;
border-collapse: collapse;
border-width: 0px;
border-color: var(--accent-2);
border-style: solid;
}

table thead {
background-color: var(--accent-2);
color: var(--base);
text-align: left;
font-family: 'texgyreadventor_regular', sans-serif;
font-weight: normal;
text-transform: uppercase;
}

table td, table th {
border-width: 0px;
border-color: var(--accent);
border-style: solid;
padding: .8rem;
}

table th {
font-weight: normal;
padding-top: .8rem;
font-size: 90%;
}

tr:nth-child(even) {
background-color: #efefef;
}


/* form */

button, input, select, textarea {
font-family: inherit;
}

label {
margin:0 0 3px 0;
padding:0px;
display:block;
color: var(--accent-2)!important;
font-family: 'cormorant_garamondregular', serif!important;
font-weight: normal;
text-transform: uppercase;
}
input[type=text], 
input[type=date],
input[type=datetime],
input[type=number],
input[type=search],
input[type=time],
input[type=url],
input[type=email],
input[type=tel],
textarea, select{
box-sizing: border-box;
border: 0;
background: var(--base);
color: #111;
padding: 10px 15px;
margin:0px;
border: 1px solid var(--accent);
outline: none;	
font-size: inherit;
}
input[type=text]:focus, 
input[type=date]:focus,
input[type=datetime]:focus,
input[type=number]:focus,
input[type=search]:focus,
input[type=time]:focus,
input[type=url]:focus,
input[type=email]:focus,
input[type=tel]:focus,
textarea:focus, 
select:focus{
border: 1px solid var(--accent-2);
}
input[type="checkbox"],input[type='radio'] {
width: 1.5em;
height: 1.5em;
margin-right: 0.5em;
vertical-align: text-top;
}
select{
width: 100%;
}
textarea{
min-height: 150px!important;
}
button, input[type=submit], input[type=button], .button{
font-family: 'cormorant_garamondregular', serif!important;
font-weight: normal;
text-transform: uppercase;
background: var(--accent-2);
color: #fff;
padding: 10px 18px 12px 18px;
border: none;
font-size: inherit;
text-decoration: none;
border-radius: 0;
}
button:hover, input[type=submit]:hover, input[type=button]:hover, .button:hover, button:focus, input[type=submit]:focus, input[type=button]:focus, .button:focus {
background: var(--accent);
color: #fff;
text-decoration: none;
}

a.button {
display: inline-block;
}

.cog-abuse {display: none;}
.cog-abuse li {
background: none;
padding: auto;
}



/* media queries */

@media only screen and (max-width: 1080px) {

.widewidth {
margin-left: 0;
margin-right: 0;
width: 100%;
}

h1 {
text-align: center;
margin-bottom: .5em;
font-size: 180%;
}

}


@media only screen and (max-width: 900px) {

body.page header {
display: block;
margin-bottom: 1em;
padding-bottom: 1em;
padding-left: 1em;
padding-right: 1em;
}

#headercontacts {
margin-top: 1em;
text-align: center;
font-size: 80%;
}

footer, .content, .fullwidthinner {
max-width: 85%;
}

}

@media only screen and (max-width: 800px) {


.banner, body.topbanner .banner {
min-height: 3em;
}

header {
margin-bottom: 1.5em;
}

.banner header {
margin-top: 0;
padding-top: 2.5em;
padding-bottom: 2.5em;
}

body.page #logo img {
height: 3em;
}

nav li a {
line-height: 3em;
}

footer {
margin-top: 4em;
margin-bottom: 4em;
}

h1 {
font-size: 200%;
}

h2 {
font-size: 150%;
}

h3 {
font-size: 120%;
}

.features {
width: 100%;
margin: 0 0 2em 0;
}

.features li {
width: 100%;
margin-left: 0;
margin-top: 2em;
}

.features li:nth-child(2), .features li:nth-child(3) {
margin-top: 2em;
}

.gallery {
margin-top: -1em;
}

.gallery img {
display: block;
margin: 1em 0 0 0;
width: 100%;
}

.imgarea, .imgarea.imgsml, .imgarea.imgxsml {
flex: 1 100%;
}

.infoarea, .infoarea.infowide {
flex: 1 100%;
margin-top: 1.5em;
margin-left: 0;
}

.infoarea h3 {
text-align: center;
margin-top: 1em;
}

.blackpanel {
width: auto;
}

}


@media only screen and (max-width: 450px) {

.banner, body.topbanner .banner {
min-height: 2.5em;
}

header {
margin-bottom: 1.25em;
}

footer {
display: block;
margin-bottom: 0;
}

nav.navbar {
padding: 0;
}

body.page nav {
margin-left: calc(-100vw / 2 + 100% / 2);
margin-right: calc(-100vw / 2 + 100% / 2);
max-width: 100vw;
width: auto;
}

body.page #logo img {
height: 2em;
}

h1 {
font-size: 105%;
}

h2 {
text-align: left;
font-size: 110%;
}

h3 {
text-align: left;
font-size: 90%;
}

p.lead {
font-size: 110%;
}

.blackpanel {
margin: 1em 0;
padding: 1em 1.5em;
}

blockquote {
font-size: 100%;
}

.widewidth {
max-width: auto;
}

.infobox {
margin-top: 1em;
}

.infoarea {
margin-top: 0;
}

}


html {
scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
}