/*
font sizes: .9, 1 (base), 1.1 (#mainNav) 1.16 (p) | 1.3, 1.6, 2.3
*/

/* start init */

:root {
  /* variables for base colors in rgb format. */
  --blue: 101, 125, 225;

  --red: 230, 43, 30;
  --blackish: 47, 47, 47;
  --textColor: rgba(0, 0, 0, 0.6);
  --lightTextColor: rgba(255, 255, 255, 0.8);
  --headerLight: rgba(255, 255, 255, 1);
  --greyAccent: #dadee0;

  --paddingX: 20px;
  /* box shadow variables */
  --boxShadowOne: 0 2px 8px rgba(0,0,0,0.3);
  --boxShadowTwo: 6px 6px 28px 0px rgba(0, 0, 0, 0.6);
}

* {
   margin: 0;
  padding: 0;
  border: 0;
  line-height: 1.6;
  font-size: 1em;
  font-family: "Open Sans", sans-serif;
  color: var(--textColor);
  overflow-wrap: break-word;
  box-sizing: border-box;
}

*.light {
  color: var(--lightTextColor);
}

img {
  width: 100%;
}

ul {
  margin: 0 0 25px 30px;
}


h1 { /* for splash header only */
	font-size: 2.3em;
	font-weight: 800;
  line-height: 1.2;
  color: rgb(var(--blackish));
  margin-bottom: 20px;
  font-family: "Work Sans", sans-serif;
}

h2 { /* Main header */
	font-size: 1.6em;
	font-weight: 800;
  line-height: 1;
  color: rgb(var(--blackish));
  margin-bottom: 20px;
  font-family: "Work Sans", sans-serif;
}

h2:after {
  content: "";
  display: block;
  background-color: rgb(var(--red));
  height: 4px;
  width: 100px;
  max-width: 100%;
  top: 0;
  margin-top: 10px;
}

h3 { /* inside section */
	font-size: 1.1em;
	font-weight: 800;
  line-height: 1;
  color: rgb(var(--blackish));
  margin-bottom: 20px;
  font-family: "Work Sans", sans-serif;
}

h3:after {
  content: "";
  display: block;
  background-color: rgb(var(--red));
  height: 2px;
  width: 100px;
  max-width: 100%;
  top: 0;
  margin-top: 6px;
}

h4 {
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .8em;
}

h1.light, h2.light, h3.light, h4.light {
  color: var(--headerLight);
}

p { /* for paragraphs */
  font-size: 1.16em;
  line-height: 1.8;
  margin-bottom: 25px;
}

p.light {
  color: var(--headerLight);
}

p:last-child { /* sections should have margin-bottom */
  margin: 0;
}

b, i {
  font-family: inherit;
  color: inherit;
}

sup {
  font-size: .8em;
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  color: rgb(var(--blue));
  font-weight: 700;
}

hr {
  margin: 10px 0;
  height: 2px;
  background-color: rgb(var(--red));
  max-width: 100px;
}

.btn {
  display: inline-grid;
  grid-template-columns: 1fr auto;
  grid-gap: 25px;
  padding: 8px 25px;
  background-color: rgb(var(--red));
  color: #fff;
  align-items: center;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.btn .material-icons {
  transition: transform 0.2s ease;
}


.btn:hover > .material-icons {
  transform: translate(5px, 0);
}

.btn span {
  color: inherit;
}

/* start the page */

body {
  background-color: #000;
}

header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 20px var(--paddingX);
  position: relative;
  grid-gap: 25px; /* adds up to be 50px */
  overflow-x: hidden;
}

.logo {
  display: block;
}

.logo img {
  max-width: 280px;
}

#mainNav {
  grid-template-columns: auto auto 1fr;
  grid-gap: 20px;
  align-items: center;
  display: grid;
  top: 0;
  bottom: 0;
  left: 100vw;
  width: 100vw;
  background-color: #fff;
  z-index: 2;
  position: absolute;
  background-color: rgb(var(--red));
  transition: left 0.2s ease;
  padding: 0 20px;
}

#openNavLabel {
  grid-column: 3;
  padding: 8px;
  border-radius: 8px;
  background-color: rgb(var(--red));
  display: grid;
  align-items: center;
  position: relative;
  z-index: 3;
  box-shadow: var(--boxShadowOne);
  transition: box-shadow 0.2s ease;

}

#openNavLabel:hover {
  cursor: pointer;
}

#openNavLabel i {
  color: #fff;
  line-height: 1;
}

#closeNavIcon {
  display: none;
}

#openNav:checked ~ #openNavLabel {
  box-shadow: var(--boxShadowTwo);
}

#openNav:checked ~ #openNavLabel #closeNavIcon {
  display: block;
}

#openNav:checked ~ #openNavLabel #openNavIcon {
  display: none;
}

#openNav:checked ~ #mainNav {
  left: 0;
}

#mainNav a {
  color: var(--textColor);
  font-size: 1.1em;
  font-family: "Work Sans", sans-serif;
  font-weight: 800;
  border-bottom: 2px solid transparent;
}

#mainNav .navItem--current {
  color: #fff;
  border-bottom-color: #fff;
}

main {
  max-width: 700px;
  margin: 50px auto;
  padding: 0 var(--paddingX);
}

main.wide {
  max-width: 1000px;
}

.card {
  border-radius: 8px;
  box-shadow: var(--boxShadowOne);
  padding: 20px;
  font-weight: 400;
  display: block;
  background-color: #fff;
  overflow: hidden;
}

/* clickable card */
.card--clickable .material-icons {
  transition: all 0.2s ease;
}

.card--clickable:hover > .clickableCardHeader .material-icons {
  transform: translate(5px, 0);
  color: rgb(var(--red));
}
.card--clickable p {
  font-size: 1em;
}

.clickableCardHeader {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  /* background-color: #e5f1fc;
  margin: -20px -20px 20px;
  padding: 20px; */
  margin-bottom: 20px;
}

.clickableCardHeader h3 {
  margin: 0;
}

.clickableCardHeader h3:after {
  display: none;
}

.clickableCardHeader .material-icons {
  color: rgb(var(--blackish));
}

/* like main, but not */
.innerWide {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--paddingX);
}


/* contact card */
.contactCardHeader {
  display: grid;
  grid-template-columns: auto 1fr;
  margin-bottom: 20px;
  grid-gap: 20px;
  align-items: center;
}

.contactCardImage {
  border-radius: 50%;
  max-width: 60px;
}

.contactCardHeaderText {
  display: inline-grid;
  grid-template-columns: 1fr;
  align-items: center;
  grid-gap: 3px;
}

.contactCardHeaderText h3 {
  margin: 0;
}

.contactMethod {
  color: rgb(var(--textColor));
  font-size: .9em;
  display: inline-grid;
  grid-template-columns: auto auto;
  grid-gap: 6px;
  align-items: center;
}

.contactMethod .material-icons {
  font-size: 1.3em;
}

/* specific home sections */
#splash {
  /* background-color: #e5f1fc; */
  padding: 50px 0;
}

#splash h3 {
  margin-bottom: 2px;
}

#getInvolvedCardWrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 50px;
  margin-bottom: 50px;
}

#contactCardWrap {
  display: grid;
  grid-gap: 50px;
  margin-bottom: 50px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* about page */
.aboutWrap {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 50px;
}

footer {
  background-color: #fff;
  margin: 0;
  padding: 50px var(--paddingX);
  color: rgb(var(--blackish));
}

@media (min-width: 500px) {
  h3 {
    font-size: 1.3em;
  }
  h3:after {
    margin-top: 10px;
    height: 4px;
  }
  #splash h3 {
    margin-bottom: 5px;
  }
  h4 {
    font-size: .9em;
  }

  hr {
    height: 4px;
  }
  #openNavLabel {
    display: none;
  }

  #mainNav {
    position: static;
    width: auto;
    padding: 0;
    display: inline-grid;
    grid-template-columns: auto auto;
    background-color: transparent;
    grid-column: 3;
  }
  #mainNav a {
    color: var(--headerLight);
  }
  #mainNav .navItem--current {
    color: rgb(var(--red));
    border-color: rgb(var(--red));
  }

  #splash {
    padding: 100px 0;
  }
  .contactCardImage {
    max-width: 90px;
  }
  .contactCardHeaderText {
    grid-gap: 10px;
  }
}

@media (min-width: 700px) {
  :root {
    --paddingX: 50px;
  }
  h1 {
    font-size: 3.2em;
  }

  .contactCardImage {
    max-width: 110px;
  }
}
