@charset "UTF-8";

@import url('https://fonts.googleapis.com/css?family=Montserrat:700|Work+Sans:400,700&display=swap');

@font-face {
    font-family: 'FontAwesome';
    src: 
        url('../fonts/fontawesome/light/fa-light-300.woff2') format('woff2'),
        url('../fonts/fontawesome/light/fa-light-300.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

:root {
  --primary-colour: #287cb3;
  --primary-colour-dark: #143e59;
  --secondary-colour: #2d862d;
  --secondary-colour-dark: #164316;
  --footer-colour: #333;
  --footer-background-colour: #EEE;
  --transition: all 0.2s ease-in-out;
  --border-radius: 0.313em;
  --black: #333;
  --white: #FFF;
  --grey-light: #808080;
  --grey: #333;
  --red: #CC0000;
  --active-background-colour: #FC0;
}

* {
  box-sizing: border-box;
  outline: 0;
}

::before,
::after {
  vertical-align: baseline;
}

*::selection,
*::-moz-selection {
    color: var(--primary-colour);
    background-color: #FFF;
    text-shadow: none;
}

html,
body {
  padding: 0;
  margin: 0;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  margin: 0;
}

body {
  padding: 0;
  margin: 0;
  color: var(--black);
  display: block;
  border: 0;
  height: auto;
  font-size: 62.5%;
  font-family:'Work Sans', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
}

body.menu-open::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0, 0.2);
  z-index: 9;
}

h1,
h2, 
h3,
h4,
h5, 
h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2em;
  margin: 0.5em 0;
}

h1 {
  font-size: 3.6em;
}

h2 {
  font-size: 3em;
}

h3 {
  font-size: 2.4em;
}

h4 {
  font-size: 2em;
}

h5, h6 {
  font-size: 1.8em;
}

p {
  font-size: 1.6em;
  line-height: 1.5em;
}

ol,
ul {
  font-size: 1.6em;
}

@media screen and (max-width:767px) {
  h1 {
    font-size: 3em;
  }

  h2 {
    font-size: 2.6em;
  }
}

a {
  color: inherit;
  text-decoration: underline;
  transition: var(--transition);
}

footer a:active,
a.link:active,
p a:active {
  color: var(--black);
  background-color: var(--active-background-colour);
}

p a:hover,
p a:focus {
  color: var(--white);
  cursor: pointer;
  background-color: var(--black);
}

header,
main,
section,
footer {
  display: block;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

header > div,
section > div,
footer > div {
  max-width: 960px;
  margin: 0 auto;
  padding: 4em 0;
}

@media only screen and (max-width: 1023px) {
  header > div,
  section > div,
  footer > div {
    padding: 4em 2em;
  }
} 

section > div > *:first-child {
  margin-top: 0;
}

section > div > *:last-child {
  margin-bottom: 0;
}

.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* HEADER */
.logo-box {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: visible;
}

.logo-box > span,
.logo-box a {
  position: relative;
  overflow: visible;

}

.logo-box a::after {
  content: '\f138';
  font-family: 'FontAwesome';
  font-weight: var(--fontawesome-weight);
  color: var(--white);
  font-size: 2em;
  position: absolute;
  right: -1.5em;
  opacity: 0;
  transition: opacity 0.25s ease-out;

  top: 40%;
  transform: translateY(-40%);
}

.logo-box a:hover::after,
.logo-box a:focus::after {
    opacity: 1;
}

.logo {
  display: block;
  overflow: hidden;
  width: 200px;
}

header {
  background-color: var(--primary-colour);
}

/* CONTENT */
.alert {
  background: var(--red);
  color: var(--white);
  font-size: large;
  padding: 1em;
  text-align: center;
}

.hero {
  background-color: var(--primary-colour);
  color: var(--white);
}

.hero h1,
.hero p {
  max-width: 600px;
}

.read-more-state {
  display: none;
}

.read-more-target {
  opacity: 0;
  max-height: 0;
  font-size: 0;
  transition: .25s ease;
}

.read-more-state:checked ~ .hero-content {
  max-height: 1000px;
}

.read-more-state ~ .read-more-trigger:before {
  content: 'Show more';
}

.read-more-state:checked ~ .read-more-trigger:before {
  content: 'Show less';
}

.read-more-trigger.btn {
  cursor: pointer;
  display: inline-block;
  color: var(--primary-colour);
  background: var(--white);
  margin-top: 2em;
}

.hero-content.minimized {
  max-height: 72px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.25s ease-in-out;
}

.hero-content.minimized:before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 30%, var(--primary-colour));
}

.read-more-state:checked ~ .hero-content:before {
  display: none;
}

.hero-content p {
  margin: 0;
}

br {
  display: block;
  content: "";
  margin-top: 1em;
}

@media screen and (min-width: 920px) {
  .hero-content p {
    font-size: 1.8em;
  }
}
  
.main {
  font-family:'Montserrat', sans-serif;
  color: var(--black);
  float: left;
  width: 60%;
  padding: 0 20px;
}

/* MAP */
#map {
  width: 100%;
  height: 70vh;
  z-index: 1;
} 

#map:focus {
  outline: 5px solid var(--primary-colour-dark) !important;
}

/* FOOTER */
footer {
  background: var(--footer-background-colour);
  color: var(--footer-colour);
  position: relative;
}

footer::after {
  padding-bottom: calc((200/1920) * 100%);
  background-position: right bottom;
  content: '';
  display: block;
  overflow: hidden;
  width: 100%;
  background-image: url('../images/collage-skyline.svg');
  background-size: cover;
  background-repeat: no-repeat; 
  background-color: transparent;
}

footer .logos ul {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  width: 100%;
}

footer .logos img {
  max-width: 275px;
  height: auto;
  width: 100%;
}

@media screen and (min-width:768px) {
  footer .logos ul li {
    margin: 1.5em;
  }
}

footer .logos a {
  transition: var(--transition);
}

footer .logos a:hover {
  opacity: 0.75;
}

footer .legal {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}

footer .legal p {
  margin: 1em 0;
}

footer .lower-menu {
  margin: 4em 0;
}

footer ul,
footer ul li {
  list-style: none;
  margin: -1em;
  padding: 0;
}

footer ul li {
  line-height: 1.5em;
  margin: 1em;
}

@media screen and (min-width: 768px) {
  footer ul,
  footer ul li {
    display: inline-block;
    margin: 0;
  }
}

@media screen and (min-width:768px) {
  footer ul li:first-child {
    margin-left: 0;
  }
  
  footer ul li:last-child {
    margin-right: 0;
  }
}

footer ul li a {
  text-decoration: underline;
}

footer .lower-menu ul li:not(:first-of-type) {
  margin-left: 1em;
}

footer .lower-menu ul li a:hover,
footer .lower-menu ul li a:focus {
  color: var(--footer-background-colour);
  background-color: var(--footer-colour);
}

.utilitymenu {
  display: flex;
  justify-content: center;
  font-size: 1em;
  flex-wrap: wrap;
  padding: 0;
}

.utilitymenu__item {
  display: inline-block;
  font-size: 1em;
  margin: 1em;
  max-width: none;
  width: auto;
}

.utilitymenu__link {
  color: var(--white);
  text-decoration: underline;
}

.utilitymenu__link:hover,
.utilitymenu__link:focus {
  color: var(--black);
  text-decoration: none;
}

.utilitymenu__item .btn {
  max-width: unset;
  margin: 0;
}

/* TILE LIST */
.map-list {
  font-size: 1em;
  list-style: none;
  margin: -1em;
  padding: 0;
  width: 100%;
}
  
.map-list li {
  width: 100%;
}

.map-list li a {
  background: var(--secondary-colour);
  border-radius: 0.5em;
  box-shadow: rgba(0, 0, 0, 0.1) 2px 2px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 2em;
  margin: 1em;
  transition: var(--transition);
  text-decoration: none;
}

.map-list li a:hover,
.map-list li a:focus {
  background: var(--secondary-colour-dark);
}

.map-list li h3 {
  margin-top: 0;
  padding-right: 2em;
  position: relative;
}

.map-list li h3::after {
  content: '\f138';
    font-family: 'FontAwesome';
    position: absolute;
    top: 0;
    right: 0;
}

.map-list p {
  margin: 0;
}

@media only screen and (min-width: 768px) {
  .map-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .map-list li {
    display: flex;
    flex-basis: 50%;
  }
}

@media only screen and (min-width: 960px) {
  .map-list li {
    flex-basis: 33.3%;
  }
}

/* NAVIGATION */
.main-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--secondary-colour);
  padding: 4em;
  z-index: 10;
  transition: all 0.5s ease-in-out;
  right: -100%;
  opacity: 0;
  width: 0;
  visibility: hidden;
  overflow: hidden;
  max-width: 600px;
  display: none;
}

.main-nav.open {
  right: 0;
  width: auto;
  opacity: 1;
  visibility: visible;
  display: block;
}

.navi ul,
.navi ul li {
  clear: both;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navi a {
  text-decoration: none;
}

.main-nav ul {
  display: block;
  float: left;
  margin-top: 2em;
  width: 100%;
}

.main-nav ul li {
  border-bottom: 5px solid var(--white);
  color: var(--white)
}

.main-nav ul li a {
  display: block;
  font-family: 'Montserrat', sans-serif;
  position: relative;
  width: 100%;
  padding: 1.25em 4em 1.25em 0;
}

.main-nav ul li a:focus,
.main-nav ul li a:hover {
  background-color: transparent;
  color: var(--white);
  text-decoration: underline;
}

.main-nav .submaps {
  font-size: 1em;
  margin: 0;
  visibility: hidden;
}

.main-nav .submaps li {
  border: none;
  font-size: 1em;
  padding: 0 2em;
}

.main-nav .submaps li:last-of-type {
  padding-bottom: 2em;
}

.main-nav .submaps li a {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
}

.main-nav .submaps li a:hover,
.main-nav .submaps li a:focus {
  text-decoration: underline;
}

li.subnav > a {
  padding-bottom: 0;
}

.subnav {
  display: inline-block;
  position: relative;
  width: 100%;
}

.submaps {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.subnav-toggle {
  position: absolute;
  top: 0;
  right: 0;
}

.subnav-toggle:focus {
  outline: 2px solid;
}

.subnav-toggle::before {
  content: '\f13a';
  font-family: 'FontAwesome';
  display: block;

  font-size: 2.4em;
  line-height: 2.4em;
}

.subnav-checkbox {
  display: none;
}

.subnav-checkbox:checked ~ label::before {
  transform: rotate(180deg);
}

.subnav-checkbox:checked+.submaps,
.submaps.open {
  max-height: 1000px;
  opacity: 1;
  transform: translate3d(0,0,0);
  visibility: visible;
}

.drop {
  position: absolute;
  top: 15px;
  right: 0;
  font-size: 1em;
  padding: 0;
  background: transparent;
  margin: 0;
  border: 0;
  color: inherit;
  transition: var(--transition);
}

.drop:focus {
  border: 2px solid;
}

.drop::before {
  content: '\f138';
  font-family: 'FontAwesome';
  display: block;
  font-size: 1.6em;
}

.drop.open::before {
  transform: rotate(90deg);
}

.nav-open,
.nav-close {
  border: 5px solid var(--white);
  border-radius: var(--border-radius);
  color: var(--white);
  display: block;
  text-transform: uppercase;
  text-align: center;
  height: 55px;
  width: 55px;
  padding: 0.5em;
  position: relative;
  transition: var(--transition);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.nav-close {
  float: right;
}

.nav-open:hover,
.nav-open:focus,
.nav-close:hover,
.nav-close:focus {
  background-color: var(--white);
  color: var(--black);
  cursor: pointer;
}

.nav-open::before,
.nav-close::before {
  font-family: 'FontAwesome';
  font-size: 2.4em;
}

.nav-open::before {
  content: '\f0c9';
  display: block;
}

.nav-close::before {
  content: '\f00d';
  display: block;
}

.nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

/* BUTTONS */
.btn {
  border-radius: var(--border-radius);
  display: block;
  overflow: hidden;
  font-size: 1.6em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.25em;
  padding: .5em 1.25em;
  background-color: var(--primary-colour);
  color: var(--white);
  border: 1px solid var(--primary-colour);
  transition: color 0.25s ease-out, background-color 0.25s ease-out;
  line-height: 1.25em;
  text-align: center;
  text-decoration: none;
}

.btn:hover,
.btn:active,
.btn:focus {
  background-color: var(--primary-colour-dark);
  border-color: var(--primary-colour-dark);
  color: var(--white);
}

.banner > div {
  border-top: 5px solid var(--footer-background-colour);
}

.banner .text-col {
  max-width: 600px;
}

.banner .text-col h2 {
  margin-top: 0;
}


/* ACCESSIBILITY */
.hidden,
.screenreader,
.id-skipheader a:not(:focus):not(:active) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.id-skipheader {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.id-skipheader a {
  display: block;
  padding: 1.25em;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.6em;
  line-height: 1.25em;
  float: left;
  background-color: var(--black);
}

.id-skipheader a:hover,
.id-skipheader a:active,
.id-skipheader a:focus {
  color: var(--white);
  position: static;
}
