/*! 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;
  }
  
  /*
  Start: Site CSS
  */

html {
  box-sizing: border-box;
	scroll-behavior: smooth;
  font-family: Arial, Helvetica, sans-serif;
}

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

body {
  margin: 0;
  font-family: sans-serif;
  background: var(--color-body-bg);
}

:root {
--color-body-bg: #fffdf3;
--color-wrapper-bg: #fffdf3;
--color-grid-bg: #d2e2e7;
--color-img-bg: hsla(var(--hsla-hue),40%,76%,1.00);
--color-link: #f8beb2;
--color-img-border: hsla(var(--hsla-hue),40%,46%,1.00);
--color-cards-bg: #fff4b9;
--color-button-ol: black;
--color-nav-bg: #fffdf3;
--color-nav-hover-bg: #909C5D;
--color-nav-hover-txt: white;
--header-hero: url(images/showcase-home-header.png);
}

/* SKIP CONTENT LINK */
[href="#main-content"] {
    position: absolute;
    z-index: 99999;
    left: 1rem;
    top: 1rem;
    transform: translate(calc(-100% - 1rem), calc(-100% - 1rem));
    font-size: 1.25rem;
    line-height: 2;
    padding: 0 2rem;
    color: var(--color-button-ol);
    background: var(--color-link);
    transition: all .5s ease-in-out;
}

[href="#main-content"]:focus {
    outline: 2px solid var(--color-button-ol);
    transform: translate(0, 0);
    transition: all .25s ease-in-out;
}

/* END - SKIP CONTENT LINK */

.wrapper {
  width: min(100%, 1024px);
  margin: 0 auto;
  overflow: hidden;
  padding: 68px 20px;
  background: var(--color-wrapper-bg);
}

header {
  margin-left: 28px;
  justify-content: center;
  z-index: 9998;
  left: 48px;
  text-align: center;
}

.header-main {
  position: fixed;
  right: 0;
  top: 0;
  left: 0;
}

header h1 {
  font-family: 'Grandstander', cursive;
  margin: 0;
  line-height: 48px;
  font-size: clamp(1rem, 4.6vw, 2.25rem);
  background-color: #fffdf4;
  border-bottom: solid;
  border-color: #cd8586;
  border-width: thick;
  z-index: 9999;
}

/* Navigation - Headroom JS Move Navigation on Scroll */
.headroom {
  will-change: transform;
  transition: all .5s linear;

}

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

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

h1, h2 {
  font-family: 'Grandstander', cursive;
}

a {
  text-decoration: none;
  color: black;
}

/* START - .nav-main */


.nav-main {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  line-height: 0;
  background: var(--color-nav-bg);
  border-bottom: solid;
  border-color: #cd8586;
  border-width: thick;
}

.nav-main>ul {
  justify-content: space-around;
  }

.nav-main-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 0;
}

/* SET SVG TRANSFORMS - based on individual elements not SVG box */
.nav-main-menu-toggle svg * {
  transform-box: fill-box;
}

/* HAMBURGER MENU ICON */
.nav-main-menu-toggle rect:nth-child(1) {
  transition: all 2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  transform-origin: center;
}

.nav-main-menu-toggle rect:nth-child(2) {
  transition: all 2.25s linear;
  transform-origin: center;
}

.nav-main-menu-toggle rect:nth-child(3) {
  transition: all 2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  transform-origin: center;
}

/* JAVASCRIPT WILL ADD - aria-expanded="true" - to .nav-main-menu-toggle */
.nav-main-menu-toggle[aria-expanded="true"] rect:nth-child(1) {
  rotate: 1.125turn;
  translate: 0 10px;
}

.nav-main-menu-toggle[aria-expanded="true"] rect:nth-child(2) {
  scale: 0;
}

.nav-main-menu-toggle[aria-expanded="true"] rect:nth-child(3) {
  rotate: -1.125turn;
  translate: 0 -10px;
}

/* END - .nav-main-menu-toggle */

#nav-main-menu {
  transform: translateX(-100%);
  transition: all 1s ease-in-out;
  position: absolute;
  font-weight: bold;
  text-transform: uppercase;
  background: var(--color-nav-hover-bg);
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  visibility: hidden;
  flex-direction: column;
}

#nav-main-menu:not([hidden]) {
  visibility: visible;
  transform: translateX(0);
  transition: all 1.8s ease-in-out;
}

#nav-main-menu li a {
  color: inherit;
  display: flex;
  line-height: 3;
  padding: 0 2em;
  transition: all .25s ease-in-out;
  background: var(--color-link);
  border-style: ridge;
  text-decoration: none;
  box-shadow: -1px 2px 6px 1px rgba(0,0,0,8);
}

#nav-main-menu li a:hover,
#nav-main-menu li a:focus {
  background: var(--color-nav-hover-bg);
  color: var(--color-nav-hover-txt)
}

/* END - .nav-main */

.main-main,
.aside-main,
.footer-main {
    padding: 0 10px;
}

.aside-main h2 {
  padding: 0px 20px;
}

main {
  padding: 1rem;
}

/* Cards */

p {
  padding: 15px;
  line-height: 2;
}

img {
  width: 100%;
}

.cards {
  display: grid;
  gap: 30px;
}

.cards-buttons .card {
  background: transparent;
}

.cards-buttons .card .card-link {
  align-self: auto;
  display: flex;
  justify-content: center;
  margin: 0;
}

.cards-buttons-small .card .card-link {
  min-height: 60px;
}

.cards-buttons .card .card-link span {
  flex: 1 1 auto;
  align-self: center;
  text-align: center;
}

.card {
  background: var(--color-cards-bg);
  display: flex;
  flex-direction: column;
  box-shadow: -1px 2px 6px 1px rgba(0,0,0,8);
}

.card .card-hero {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.card .card-hero-programs {
  max-height: 500px;
}

.card .card-heading {
  margin: 0 10px;
  line-height: 2;
}

.card .card-body {
  margin: 10px;
  flex: 1;
}

.card .card-link {
  color: white;
  background: #86a114;
  margin: 10px;
  padding: 0 1em;
  line-height: 3;
  text-decoration: none;
  align-self: flex-end;
  box-shadow: -1px 2px 6px 1px rgba(0,0,0,8);
  border-style: ridge;
  border-color:white;
}

.card-link-programs {
  color: white;
  background: #86a114;
  padding: 0 1em;
  line-height: 2.5;
  text-decoration: none;
  text-align: center;
}

.cards .card a:hover,
.cards .card a:focus {
  background: #f8beb2;
  color: black;
  border-color: black;
}

.card-heading {
  text-align: center;
}

.cards .card figure img {
  width: 100%;
  object-fit: cover;
}

.card-image {
  margin: 0px;
}

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

/* END - Cards */

/* Contact - Map and Form */
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;
}

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: 1px solid gray;
  position: relative;
  z-index: 2;
  transition: all 0.2s ease-in;
}

form textarea:focus,
form input:not([type="checkbox"]):not([type="radio"]):focus {
  outline: none;
  border-color: black;
  background-color: #f8beb2;
}

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);
  background: rgb(106, 255, 0);
}

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: lightcoral;
  padding: 0 100px 0px 00px;
}

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

#gmap {
  margin: 20px 0;
  height: 420px;
  overflow: hidden;
  background: url(images/gmap.webp) no-repeat center / cover;
}

#gmap h4 {
  font-size: 1.4em;
  margin: 0;
}

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

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

/* END - Contact */

.details {
  background: #87a114;
  padding: 20px;
  margin: 10px;
  text-align: center;
}

ul {
  list-style-type: none;
  padding: unset;
}

.documentation {
  width: 500px;
  margin: auto;
}

.footer-main {
    display: flex;
    padding: 20px;
}

.footer-main a {
    line-height: 2;
    text-decoration: none;
    color: inherit;
}

.footer-main a {
    margin-left: 1rem;
}

.footer-main a:first-child {
    margin-right: auto;
    margin-left: 0;
}

@media screen and (min-width: 768px) {
  
  .grid-12,
  .grid-8 {
      display: grid;
      gap: 20px;
  }

  .grid-12,
  .wrapper {
      grid-template-columns: repeat(12, 1fr);
  }

  .grid-8 {
      grid-template-columns: repeat(8, 1fr);
  }

  .grid-12-span-2-6 {
      grid-column: 2 / 6;
  }

  .grid-12-span-7-12 {
      grid-column: 7 / 12;
  }

  .grid-12-span-1-9 {
      grid-column: 1 / 9;
  }

  .grid-12-span-9-13 {
      grid-column: 9 / 13;
  }

  .grid-8-span-1-8 {
      grid-column: 1 / 9;
  }

  .grid-8-span-1-4 {
      grid-column: 1 / 5;
  }

  .grid-8-span-1-6 {
      grid-column: 1 / 7;
  }

  .grid-8-span-4-8 {
      grid-column: 5 / 9;
  }

  .grid-8-span-6-8 {
      grid-column: 7 / 9;
  }

  .grid-8-span-8 {
      grid-column: span 8;
  }

  .header-main,
  .nav-main,
  .footer-main {
      grid-column: span 12;
  }

  .header-main {
    margin: 0px 0px 20px;
    box-shadow: -1px 2px 6px 1px rgba(0,0,0,8);
    position: static;
  }

  .wrapper {
    padding: 0px 20px;
  }

  header {
    height: 200px;
    background-image: var(--header-hero);
    margin-left: 0;
    background-size: cover;
    position: fixed;
    display: flex;
  }

  header h1 {
    margin: auto;
    color: black;
    margin-top: 60px;
    background-color: #ffffffcf;
    padding: 10px 50px;
    box-shadow: inset 0px 0px 6px 1px rgba(0,0,0,8);
    text-align: center;
    border-color: #dadfaf;
  }

  .main-main {
    margin: 0px 0px 20px;
    grid-column: span 12;
    /* display: grid; */
  }

  .aside-main {
    grid-column: span 12;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(12, 1fr);
  }

  [data-aos=custom-example] {
    transform: rotateX(360deg);
    opacity: 0;
    transition-property: transform, opacity;
}

  [data-aos=custom-example].aos-animate {
    transform: rotateX(0);
    opacity: 1;
}

  .aside-main>section {
    grid-column: span 4;
    background: #d2e2e7;
    padding: 0 10px;
    box-shadow: -1px 2px 6px 1px rgba(0,0,0,8);
  }

  .cards {
    grid-template-columns: repeat(12, 1fr);
  }

  .cards-buttons .card {
    /*grid-column: span 4;*/
    background: transparent;
  }

  /*.cards-buttons .card:nth-child(odd) {
    grid-column: 3 / span 4;
  }*/

  .card {
    grid-column: span 6;
  }

  .card .card-hero {
    grid-column: span 12;
  }

  .nav-main {
    margin: 0px 0px 20px;
    position: sticky;
    top: auto;
    left: auto;
    z-index: auto;
    border: none;
  }

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

  #nav-main-menu {
    position: relative;
    visibility: visible;
    transform: translateX(0);
    transition: none;
    background: transparent;
    display: flex;
    flex-direction: row;
  }

 
}