@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;400;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500;600;700;900&display=swap');

:root {
  --mobile-break: 600px;
  --header-height: 50px;
  --header-outer-margin: 10px;
  --header-font: 'Montserrat';
  --body-font: 'Inter';
  --main-bg-one: rgb(229, 237, 247);
  --main-bg-two: rgb(188, 207, 226);
  --color-primary: rgb(9, 21, 82);
  --form-focus: rgb(62, 141, 210);
  --footer-color: rgb(10, 22, 46);
  scroll-behavior: smooth;
}

::selection {
  background: var(--form-focus);
}

::-moz-selection {
  background: var(--form-focus);
}

body {
  margin: 0;
  font-family: var(--body-font), 'Helvetica', 'Arial', sans-serif;
  font-size: 14pt;
  background: var(--footer-color);
}

.i {
  font-style: italic;
}

.b {
  font-weight: 700;
}

header.hero {
  width: 100%;
  height: 100vh;
  background-image: linear-gradient(rgba(77, 15, 177, 0.2), rgba(32, 20, 143, 0.1)), url("../img/hero-a.jpg");
  background-position: center;
  background-repeat: no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  text-align: center;
  color: white;
}

div.hero {
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(rgba(24, 24, 28, 0.789),rgba(17, 24, 72, 0.5));
  max-width: var(--mobile-break);
  width: 65%;
}

img.hero {
  display: block;
  margin: auto;
}

.hero a {
  color: inherit;
  cursor: default;
}

.hero p {
  font-family: var(--header-font) !important;
  font-size: 14pt;
  font-weight: 300;
  margin-top: 0;
  margin-bottom: 24px;
  padding: 0 10%;
}

div.bumper {
  width: 100%;
  height: 45vh;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-attachment: fixed;
  box-shadow: 0 0 50px 0 rgba(125, 159, 196, 0.748) inset;
}

nav {
  position: fixed;
  width: 100%;
  height: var(--header-height);
  background: linear-gradient(2deg, rgba(21, 30, 60, 0.85),rgba(23, 41, 103, 0.95));
  z-index: 4;
}

nav a.ico {
  float: left;
  width: var(--header-height);
  padding: 0 12px;
  margin-left: var(--header-outer-margin);
  border-radius: calc(50px / 4);
}

nav a.ico:hover {
  opacity: 0.9;
  background-color: rgba(30, 87, 148, 0.2);
}

nav button.theme {
  float: right;
  width: var(--header-height);
  height: var(--header-height);
  background: rgba(1,1,1,0);
  padding: 0 12px;
  margin-right: var(--header-outer-margin);
  border: 0;
  border-radius: calc(50px / 4);
  box-sizing: content-box;
  /* need to change image to sun and enable theme-switching */
  visibility: hidden;
}

nav button.theme:hover {
  opacity: 0.9;
  background-color: rgba(30, 87, 148, 0.2);
}

div.links {
  display: flex;
  position: fixed;
  justify-content: center;
  height: var(--header-height);
  width: 80%;
  z-index: 5;
  right: 10%;
}

/* ADD 992+ MQ for links */
div.links a {
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  flex-basis: 20%;
  margin: 0 6px;
  padding: 0 3vw;
  color: white;
  text-decoration: none;
  border-radius: calc(50px / 4);
  white-space: nowrap;
}

div.links a:before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

div.links a:hover {
  opacity: 0.9;
  background-color: rgba(30, 87, 148, 0.2);
}

main {
  display: block;
  padding: 0;
}

main section {
  background-color: var(--main-bg-one);
  padding: 72px 0;
}

main section:nth-child(even) {
  background-color: var(--main-bg-two);
}

main section:first-child {
  box-shadow: 0 -15px 75px -15px rgba(125, 159, 196, 0.5);
  position: relative;
  z-index: 1;
}

main section p {
  display: block;
  margin: auto;
  padding: 12px 5%;
  max-width: 800px;
}

main section h2 {
  margin: 0 0 12px 0;
  font-family: var(--header-font);
  font-size: 32pt;
  font-weight: 500;
  letter-spacing: 0.05rem;
  text-align: center;
}

div.sv-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 12px;
}

article.sv-flex {
  background: white;
  width: 360px;
  padding: 0 0 18px 0;
  margin: 24px 24px 0px 24px;
  border: 2px solid grey;
  border-radius: 14px;
  box-shadow: darkgrey 0px 20px 15px -15px;
}

article h3 {
  text-align: center;
  font-family: var(--header-font);
  font-weight: 600;
  color: white;
  background: var(--color-primary);
  padding: 24px 0;
  margin: 0;
  border-radius: 12px 12px 0 0;
}

div.icon {
  text-align: center;
}

article i {
  font-size: 90pt;
  color: var(--color-primary);
  margin: 36px 0;
}

article p {
  width: 90%;
  margin: 24px auto;
}

p.tag {
  font-weight: 300;
  text-align: center;
  font-style: italic;
  color: #2b5880;
}

form {
  background: rgb(250, 252, 255);
  display: block;
  margin: 24px auto;
  border: 2px solid grey;
  border-radius: 12px;
  box-shadow: darkgrey 0px 20px 15px -15px;
  padding: 15px 0;
  width: 90%;
  max-width: 750px;
}

p.short label {
  display: inline-block;
  line-height: 1;
  width: 60px;
  height: 24pt;
  font-size: inherit;
  margin-top: 5pt;
}

p.short input {
  height: 24pt;
  border: 2px solid lightgrey;
  border-radius: 6px;
  width: calc(100% - 80px);
  font-size: inherit;
  padding-left: 6px;
  float: right;
  transition: 0.5s ease;
}

P.short input:focus {
  border: 2px solid var(--form-focus);
  transition: 0.5s ease;
}

p.txa {
  margin-top: -6px;
}

div.form-alert {
  background-color: lightcoral;
  margin: 12px 5%;
  border-radius: 6px;
  padding: 12px;
}

textarea {
  font-family: inherit;
  font-size: 12pt;
  margin-top: 6px;
  border: 2px solid lightgrey;
  border-radius: 6px;
  width: 100%;
  padding: 9px;
  resize: none;
  transition: 0.5s ease;
}

textarea:focus {
  border: 2px solid var(--form-focus);
  transition: 0.5s ease;
}

p.buttons {
  padding-top: 9px;
  text-align: center;
  margin: auto;
}

form button {
  margin: 0 6px;
  width: 40%;
  max-width: 128px;
  height: 40px;
  border-radius: 6px;
  font-size: 10pt;
  font-family: inherit;
  color: white;
  background-color: rgb(88, 161, 225);
  border: 0;
  transition: 0.2s ease;
}

form button:hover {
  background-color: var(--form-focus);
  transition: 0.2s ease;
}

form button:active {
  background-color: rgb(35, 74, 108);
  transition: none;
}

form.final {
  padding: 90px 0;
  text-align: center;
  background-color: rgb(198, 254, 220);
  box-shadow: darkgrey 0px 20px 15px -15px;
}

form.error {
  padding: 90px 0;
  text-align: center;
  background-color: rgb(254, 250, 197);
  box-shadow: darkgrey 0px 20px 15px -15px;
}

form .error {
  /* FIXME remove this style after re-entry */
  border-color: lightcoral !important;
}

footer {
  padding: 12px 48px 64px 48px;
  display: flex;
  flex-wrap: wrap;
}

footer section {
  color: #ddd;
}

footer h4 {
  font-family: var(--header-font);
  font-weight: 700;
}

footer ul {
  list-style-type: none;
  padding-left: 0px;
}

footer li {
  margin-top: 12px;
}

footer a {
  text-decoration: none;
  display: block;
  color: white;
}

div.final {
  display: block;
  text-align: center;
  color: white;
  font-size: 10pt;
  font-weight: 200;
}

div.final p {
  padding: 18px 0;
  margin: 0;
}

/* Need to break above 1080px for iPad support. */
@media only screen and (max-width: 1100px) {
  nav {
    display: none;
  }

  div.hero p {
    font-size: 10pt;
  }

  main section p {
    font-size: 12pt;
  }

  header.hero {
    background-attachment: scroll;
  }

  div.bumper {
    background-attachment: scroll;
  }
}
