@import url('https://fonts.googleapis.com/css2?family=Raleway&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@700&display=swap');

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}

/* Sections
     ========================================================================== */

/**
   * Remove the margin in all browsers.
   */

body {
  margin: 0;
}

/**
   * Render the `main` element consistently in IE.
   */

main {
  display: block;
}

/**
   * Correct the font size and margin on `h1` elements within `section` and
   * `article` contexts in Chrome, Firefox, and Safari.
   */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
     ========================================================================== */

/**
   * 1. Add the correct box sizing in Firefox.
   * 2. Show the overflow in Edge and IE.
   */

hr {
  box-sizing: content-box;
  /* 1 */
  height: 0;
  /* 1 */
  overflow: visible;
  /* 2 */
}

/**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */

pre {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/* Text-level semantics
     ========================================================================== */

/**
   * Remove the gray background on active links in IE 10.
   */

a {
  background-color: transparent;
}

/**
   * 1. Remove the bottom border in Chrome 57-
   * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
   */

abbr[title] {
  border-bottom: none;
  /* 1 */
  text-decoration: underline;
  /* 2 */
  text-decoration: underline dotted;
  /* 2 */
}

/**
   * Add the correct font weight in Chrome, Edge, and Safari.
   */

b,
strong {
  font-weight: bolder;
}

/**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */

code,
kbd,
samp {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/**
   * Add the correct font size in all browsers.
   */

small {
  font-size: 80%;
}

/**
   * Prevent `sub` and `sup` elements from affecting the line height in
   * all browsers.
   */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
     ========================================================================== */

/**
   * Remove the border on images inside links in IE 10.
   */

img {
  border-style: none;
}

/* Forms
     ========================================================================== */

/**
   * 1. Change the font styles in all browsers.
   * 2. Remove the margin in Firefox and Safari.
   */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */
}

/**
   * Show the overflow in IE.
   * 1. Show the overflow in Edge.
   */

button,
input {
  /* 1 */
  overflow: visible;
}

/**
   * Remove the inheritance of text transform in Edge, Firefox, and IE.
   * 1. Remove the inheritance of text transform in Firefox.
   */

button,
select {
  /* 1 */
  text-transform: none;
}

/**
   * Correct the inability to style clickable types in iOS and Safari.
   */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
   * Remove the inner border and padding in Firefox.
   */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
   * Restore the focus styles unset by the previous rule.
   */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
   * Correct the padding in Firefox.
   */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
   * 1. Correct the text wrapping in Edge and IE.
   * 2. Correct the color inheritance from `fieldset` elements in IE.
   * 3. Remove the padding so developers are not caught out when they zero out
   *    `fieldset` elements in all browsers.
   */

legend {
  box-sizing: border-box;
  /* 1 */
  color: inherit;
  /* 2 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  white-space: normal;
  /* 1 */
}

/**
   * Add the correct vertical alignment in Chrome, Firefox, and Opera.
   */

progress {
  vertical-align: baseline;
}

/**
   * Remove the default vertical scrollbar in IE 10+.
   */

textarea {
  overflow: auto;
}

/**
   * 1. Add the correct box sizing in IE 10.
   * 2. Remove the padding in IE 10.
   */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */
}

/**
   * Correct the cursor style of increment and decrement buttons in Chrome.
   */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
   * 1. Correct the odd appearance in Chrome and Safari.
   * 2. Correct the outline style in Safari.
   */

[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/**
   * Remove the inner padding in Chrome and Safari on macOS.
   */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
   * 1. Correct the inability to style clickable types in iOS and Safari.
   * 2. Change font properties to `inherit` in Safari.
   */

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/* Interactive
     ========================================================================== */

/*
   * Add the correct display in Edge, IE 10+, and Firefox.
   */

details {
  display: block;
}

/*
   * Add the correct display in all browsers.
   */

summary {
  display: list-item;
}

/* Misc
     ========================================================================== */

/**
   * Add the correct display in IE 10+.
   */

template {
  display: none;
}

/**
   * Add the correct display in IE 10.
   */

[hidden] {
  display: none;
}

/* Animation*/
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  20% {
    opacity: .2;
  }

  40% {
    opacity: .4;
  }

  60% {
    opacity: .6;
  }

  80% {
    opacity: .8;
  }

  to {
    opacity: 1;
  }
}

/* Apply border-box, and list adjustments */
html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

ul,
ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

:root {
  /* 291F1E Licorice */
  --color-body-background: hsla(5, 15%, 14%, 1);
  /* 470600 Black Bean */
  --color-body-background-secondary: hsla(5, 100%, 14%, 1);
  /*  */
  --color-body-background-image: url("");
  /* 477998 Cerulean */
  --color-wrapper-background: hsla(203, 36%, 44%, 1);
  /* F64740 Vermilion */
  --color-header-background: hsla(2, 91%, 61%, 1);
  /* 291F1E Licorice*/
  --color-header-text: hsla(5, 15%, 14%, 1);
  /* 291F1E Licorice*/
  --color-header-link: hsla(5, 15%, 14%, 1);
  /* A3333D Auburn */
  --color-nav-background: hsla(355, 52%, 42%, 1);
  /* A3333D Auburn */
  --color-nav-background-transparent: hsla(355, 52%, 42%, .95);
  /* C4D6B0 Tea Green */
  --color-nav-text: hsla(88, 32%, 76%, 1.0);
  /* FFFFFF White */
  --color-body-text: hsla(0, 100%, 100%, 1);
  /* F64740 Vermilion */
  --color-card-background: hsla(2, 91%, 61%, 1);
  /* F64740 Vermilion */
  --color-image-background: hsla(2, 91%, 61%, 1);
  /* A3333D Auburn */
  --color-image-border: hsla(355, 52%, 42%, 1);
  /* 291F1E Licorice */
  --color-link: hsla(5, 15%, 14%, 1);
  /* Grid Gap */
  --gap: 20px;
}

html {
  font-family: "Helvetica Neue", Arial, sans-serif;
  min-height: 100%;
}

body {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 1fr auto 1fr auto auto;
  column-gap: var(--gap);
  height: 100vh;
  height: 100dvh;
  min-width: 360px;
  margin: 0;
  background: var(--color-body-background);
}

.wrapper {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  grid-column: 1 / -1;
  gap: var(--gap);
  margin-top: 96px;
  padding: var(--gap);
  background: linear-gradient(180deg, rgba(71,121,152,1) 0%, rgba(48,75,92,1) 100%),
              var(--color-wrapper-background);
  border-radius: 5px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.8);
}

header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 6em;
  z-index: 100;
  background: var(--color-header-background);
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.8);
}

header h1 {
  margin: 0;
  padding-top: 32px;
  padding-left: 10px;
  color: var(--color-header-text);
  font-size: 2em;
  font-family: 'Raleway', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  animation-name: fadeIn;
  animation-duration: 1000ms;
}

.logo {
  display: none;
}

/*
.headroom {
  will-change: transform;
  transition: all .5s linear;

}

.headroom--pinned {
  transform: translateY(0%);
  opacity: 1;
}

.headroom--unpinned {
  transform: translateY(-100%);
  opacity: 0;
}
*/

nav {
  position: fixed;
  top: 96px;
  right: 0px;
  left: 0px;
  display: flex;
  z-index: 200;
  background-color: var(--color-nav-background-transparent);
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.8);
}

nav ul li a {
  display: inline-block;
  width: 100vw;
  line-height: 2em;
  text-decoration: none;
  color: var(--color-nav-text);
  margin: 10px;
  font-family: 'Raleway', sans-serif;
  text-transform: uppercase;
  letter-spacing: .75em;
  font-weight: 400;
}

.nav-main-menu {
  display: none;
}

.nav-main-menu-toggle {
  display: none;
}

.nav-main-menu-toggle-icon {
  position: fixed;
  top: 0;
  right: 0;
  width: 64px;
  height: 64px;
  cursor: pointer;
  border: 2px solid var(--color-nav-background);
  border-radius: 5px;
  margin: 16px;
}

.nav-main-menu-toggle-icon span {
  width: 80%;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
}

.nav-main-menu-toggle-icon span::before,
.nav-main-menu-toggle-icon span,
.nav-main-menu-toggle-icon span::after {
  background-color: var(--color-nav-background);
  height: 6px;
  position: absolute;
  content: '';
  transition: all .25s ease-in;
}

.nav-main-menu-toggle-icon span::before {
  width: 100%;
  top: -10px;
}

.nav-main-menu-toggle-icon span::after {
  width: 100%;
  top: 10px;
}

.nav-main-menu-toggle:checked~.nav-main-menu-toggle-icon span {
  background-color: transparent;
}

.nav-main-menu-toggle:checked~.nav-main-menu-toggle-icon span::before,
.nav-main-menu-toggle:checked~.nav-main-menu-toggle-icon span::after {
  top: 0;
}

.nav-main-menu-toggle:checked~.nav-main-menu-toggle-icon span::before {
  transform: rotate(-135deg);
}

.nav-main-menu-toggle:checked~.nav-main-menu-toggle-icon span::after {
  transform: rotate(135deg);
}

.nav-main-menu-toggle:checked~.nav-main-menu {
  display: block;
}

main {
  grid-column: 1 / -1;
}

h2 {
  grid-column: 1 / -1;
  font-family: 'Raleway', sans-serif;
  font-size: 2em;
  text-align: center;
  color: var(--color-body-text);
  text-shadow: var(--color-body-background) 1px 0 10px;
}

h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.5em;
  color: var(--color-body-text);
  text-shadow: var(--color-body-background) 1px 0 10px;
}

a {
  text-decoration: none;
  color: var(--color-body-text);
}

p {
  grid-column: 2 / -2;
  line-height: 1.4;
  color: hsla(0, 100%, 100%, 1);
}

.span-small {
  grid-column: span 3;
}

.span-medium {
  grid-column: span 6;
}

.span-large {
  grid-column: 1 / -1;
}

aside {
  grid-column: 1 / -1;
  position: relative;
  padding: 6em 1em;
  font-family: 'Raleway', sans-serif;
  font-size: 1.25em;
  text-align: center;
  text-shadow: var(--color-body-background-secondary) 1px 0 10px;
}

aside h2 {
  color: var(--color-nav-text);
}

aside p {
  color: var(--color-nav-text);
}

aside::before {
  grid-column: 1 / -1;
  content: '';
  position: absolute;
  background: linear-gradient(45deg, hsla(5, 15%, 14%, 1), hsla(2, 91%, 61%, 1));
  inset: 0;
  transform: skewY(-2deg);
  z-index: -100;
}

aside::after {
  grid-column: 1 / -1;
  content: '';
  position: absolute;
  background: linear-gradient(45deg, hsla(2, 91%, 61%, 1), hsla(5, 15%, 14%, 1));
  inset: 0;
  transform: skewY(2deg);
  z-index: -100;
}

.card {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 200px 100px 100px 50px;
  column-gap: var(--gap);
  grid-column: 1 / -1;
  background: var(--color-card-background);
  border-radius: 5px;
}

.card .card-hero-image {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.card .card-heading {
  grid-column: 1 / -1;
  grid-row: 2 / 3;
  margin: 0px;
  padding: 0px .5em;
  align-self: end;
  overflow: hidden;
  border-bottom: 2px solid var(--color-nav-background);
  background: linear-gradient(180deg, rgba(246, 71, 64, 0) 0%, rgba(246, 71, 64, 1) 90%);
  font-family: 'system-ui', sans-serif;
  font-size: 1.5em;
  text-transform: uppercase;
  text-align: left;
  font-weight: 700;
  color: hsla(0, 100%, 100%, 1);
  text-shadow: var(--color-body-background) 1px 0 10px;
}

.card .card-content {
  grid-column: 1 / -1;
  grid-row: 3 / 4;
  margin: 0px;
  padding: 0px 1em;
  background: rgba(246, 71, 64, 1);
}

.card .card-footer {
  grid-column: 1 / -1;
  grid-row: 4 / 5;
  background-color: var(--color-card-background);
  border-radius: 0px 0px 5px 5px;
}

.card .card-button {
  grid-column: 8 / -1;
  grid-row: 4 / 5;
  border-radius: 5px;
  border: 1px var(--color-nav-text) solid;
  background: var(--color-nav-background);
  line-height: 2em;
  text-align: center;
  color: var(--color-nav-text);
  font-weight: 600;
  margin: 0px 20px;
}

.card:hover {
  transform: translateY(-5px);
  grid-template-rows: 200px 50px 150px 50px;
  transition: transform 1s;
}

.card:hover .card-button {
  color: var(--color-nav-background);
  background-color: var(--color-nav-text);
  transition: background-color 1s;
}

.icon {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
  vertical-align: middle;
  margin-right: .5em;
}

.gallery {
  text-align: center;
}

.gallery img {
  max-width: 256px;
  border-radius: 5px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.8);
}

footer {
  grid-column: 1 / -1;
  clear: both;
  padding: 5px;
  font-size: .8em;
  line-height: 2em;
  background-color: var(--color-image-background);
  border-radius: 5px;
}

footer a {
  color: hsla(0, 100%, 100%, 1);
  text-decoration: none;
  float: left;
}

footer a[href^=javascript],
footer a[href^=support] {
  color: #000;
  font-size: 0.625em;
  background-color: hsla(0, 100%, 100%, 1);
  margin: 0px 10px 0px 0px;
  padding: 0 20px;
  float: right;
  text-decoration: none;
  border-radius: 5px;
}

#gmap {
  clear: both;
  margin: 0 auto;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: url(images/gmap.png) no-repeat center / cover;
  border-radius: 5px;
}

#gmap h4 {
  font-size: 1em;
}

#gmap span {
  display: block;
  font-size: .8em;
}

#gmap ul {
  list-style: none;
  padding: 0px 5px;
  font-size: 1.2em;
}

fieldset {
  border: 0;
}

fieldset ol {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
}

form ol {
  list-style: none;
  padding-left: 0;
}

form ol li {
  transition: all 0.2s ease-in;
  position: relative;
}

form label {
  display: block;
  line-height: 1.5;
  color: var(--color-body-text);
}

form textarea,
form input:not([type="checkbox"]):not([type="radio"]) {
  display: block;
  width: 100%;
  line-height: 2;
  font-family: inherit;
  /* Need min 16px to prevent zooming on field in iOS */
  font-size: 1em;
  padding: 0 0.5em;
  border: 2px solid hsla(5, 10%, 50%, 1);
  position: relative;
  z-index: 2;
  transition: all 0.2s ease-in;
  resize: none;
}

form textarea:focus,
form input:not([type="checkbox"]):not([type="radio"]):focus {
  outline: none;
  border-color: var(--color-nav-text);
}

form textarea {
  min-height: 180px;
}

form input + label,
form textarea + label {
  transform: translateY(-100%);
  transition: all 0.2s ease-in;
  z-index: 1;
  position: relative;
}

form input:valid + label,
form textarea:valid + label {
  transform: translateY(0);
  padding-left: 10px;
  color: var(--color-body-background);
  background: lightgreen;
}

form:valid input[type="submit"] {
  border: 2px solid lightgreen;
}

form li:last-child::before {
  content: "✅";
  position: absolute;
  left: 40px;
  line-height: 2;
}

form li:last-child::after {
  content: "❌";
  position: absolute;
  top: 0;
  right: 40px;
  line-height: 2;
}

form:invalid li:last-child {
  background: var(--color-nav-background);
  padding: 0 100px 0px 00px;
}

form:valid li:last-child {
  background: lightgreen;
  padding: 0 0px 0px 100px;
}

/*
Start Media Query
*/

@media (min-width: 768px) {

  body {
    grid-template-rows: auto auto 1fr auto auto;
  }

  .wrapper {
    grid-column: 2 / -2;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: 1fr;
    margin-top: 0px;
  }

  header {
    position: static;
    height: auto;
    grid-column: 1 / -1;
    background: url(images/nwtc-icon.png) no-repeat top 30px left 100px / 100px 100px,
                linear-gradient(135deg, var(--color-card-background) 45%, var(--color-nav-background) 90%),
                var(--color-header-background);
  }

  header h1 {
    margin: 0.67em 0;
    padding-top: 0em;
    text-align: center;
    font-size: 4em;
  }

  nav {
    position: static;
    grid-column: 1 / -1;
    justify-content: center;
  }

  nav ul li {
    display: inline;
    padding: 1.8em;
  }

  nav ul li a {
    width: auto;
    line-height: 2em;
    letter-spacing: .25em;
    padding: .25em;
  }

  nav ul li a:hover {
    color: hsla(0, 100%, 100%, 1);
  }

  .nav-main-menu {
    display: block;
  }

  .nav-main-menu-toggle-icon {
    display: none;
  }

  .card {
    grid-template-columns: repeat(5, 1fr);
    grid-column: span 5;
  }

  .card .card-hero-image {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
  }

  .card .card-heading {
    grid-column: 1 / -1;
    grid-row: 2 / 3;
  }

  .card .card-content {
    grid-column: 1 / -1;
    grid-row: 3 / 4;
  }

  .card .card-button {
    grid-column: 3 / -1;
    grid-row: 4 / 5;
  }

}

@media (min-width: 1200px) {

  .wrapper {
    grid-column: 3 / -3;
    grid-template-columns: repeat(9, 1fr);
  }

  .card {
    grid-template-columns: repeat(2, 1fr);
    grid-column: span 3;
  }

  .card .card-hero-image {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
  }

  .card .card-heading {
    grid-column: 1 / -1;
    grid-row: 2 / 3;
  }

  .card .card-content {
    grid-column: 1 / -1;
    grid-row: 3 / 4;
  }

  .card .card-button {
    grid-column: 2 / -1;
    grid-row: 4 / 5;
  }

}