@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@100..900&display=swap");
*,
*:before,
*:after {
  box-sizing: border-box;
}
html {
  font-size: 18px;
}
body {
  font-family: "Roboto Condensed", sans-serif;
}
body,
h1,
h2,
h3,
h4 {
  margin: 0;
}
p {
  line-height: 1.7;
}
img {
  max-width: 100%;
  height: auto;
}
.header-main {
  background-color: #3b6143;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  background-image: url("img/header-bg.png");
  background-size: cover;
}
header img:first-child {
  width: 50px;
  height: 50px;
  margin: 1rem;
}
header h1 {
  color: #fff;
  text-transform: uppercase;
  font-size: 1.75rem;
  margin-right: auto;
}
#menu-open,
#menu-close {
  cursor: pointer;
  margin-right: 1rem;
}
#menu-close {
  display: none;
}
header nav {
  flex-basis: 100%;
  background-color: #e7d4ad;
  font-family: "Roboto Condensed", sans-serif;
  display: none;
  padding: 1rem;
  text-transform: uppercase;
}
header nav:first-of-type {
  padding-bottom: 0;
}
header nav ul {
  margin: 0;
  list-style: none;
  padding: 0;
}
header nav h2 {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #2d4a33;
  border-bottom: 1px solid #a9905f;
}
header nav h2:first-of-type {
  margin-top: 0;
}
header nav ul a {
  display: block;
  padding: 0.5rem 0;
  text-decoration: none;
  color: #000;
  position: relative;
}
header nav ul a:hover::after {
  content: "";
  width: 100%;
  height: 2px;
  background-color: #000;
  position: absolute;
  bottom: 0;
  left: 0;
}

.button {
  border-radius: 28px;
  display: inline-block;
  cursor: pointer;
  font-size: 17px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  margin-right: 0.5rem;
}
.button.primary {
  background-color: #5f9f6e;
  border: 1px solid #6ac57f;
  text-shadow: 0px 1px 0px #2f6627;
  color: #ffffff;
}
.button.primary:hover,
.card:hover .card-cta {
  background-color: #488656;
  border: 1px solid #56ad6a;
}
.button.secondary {
  background-color: #eecb86;
  border: 1px solid #ffe6b4;
  text-shadow: 0px 1px 0px #c4a568;
  color: #312a1c;
}
.button.secondary:hover {
  background-color: #d7b063;
  border: 1px solid #e8cf9c;
  color: #201b12;
}
.button.tertiary {
  background-color: #e6e6e6;
  border: 1px solid #ffffff;
  text-shadow: 0px 1px 0px #bababa;
  color: #312a1c;
}
.button.tertiary:hover {
  background-color: #cbcbcb;
  border: 1px solid #eaeaea;
  color: #201b12;
}
.button:active {
  position: relative;
  top: 1px;
}
.button:last-of-type {
  margin-right: 0;
}

.hero {
  background-image: url("img/hero-trees.png");
  background-size: cover;
}
.hero-text {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 2rem 1rem;
  color: #fff;
}
.hero h2 {
  color: #b8734a;
  text-align: center;
  font-size: 2rem;
}
.hero-buttons {
  text-align: center;
}

.emergency {
  background: #2d4a33;
  color: #f4dcae;
  text-align: center;
  padding: 2rem;
}
.emergency address {
  font-style: normal;
  font-weight: bold;
  font-size: 2rem;
  margin: 1rem 0;
}
.emergency p {
  margin: 0;
}

.locations {
  background: #d59874;
  text-align: center;
  padding: 2rem;
}
.locations ul {
  list-style: none;
  padding: 0;
}
.locations li {
  margin-bottom: 1rem;
}
.locations li:last-of-type {
  margin-bottom: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  place-items: center;
  gap: 1rem;
  padding: 1rem;
}
.card {
  position: relative;
  border: 1px solid black;
  border-radius: 25px;
  overflow: hidden;
  color: #fff;
  max-width: 400px;
}
.card a {
  color: #fff;
}
.card h3 {
  transform: translateY(-50%);
  position: absolute;
  right: 0;
  top: 50%;
  z-index: 1;
  font-size: 4rem;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  line-height: 0.7;
}
.card p,
.card ul {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  font-weight: bold;
  font-size: 1rem;
  padding: 1rem;
  max-width: 75%;
}
.card ul {
  margin: 1rem;
}
.card:first-of-type {
  background-color: #404343;
}
.card-cta {
  position: absolute;
  bottom: 0;
  margin: 1rem;
}
.card:nth-child(2) {
  background-color: #553522;
}
.card:nth-child(3) {
  background-color: #4c7e57;
}
header nav ul li:last-of-type {
  padding-bottom: 1rem;
}
header h1 a {
  color: #fff;
  text-decoration: none;
}
.testimonials {
  background-image: url("img/testimonial.png");
  background-color: rgba(122, 145, 75, 0.75);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.testimonials h2 {
  font-family: "Roboto Condensed";
  text-transform: uppercase;
  text-align: center;
  color: #2d4a33;
  font-size: 2.5rem;
  padding: 2rem;
  z-index: 2;
}
.testimonials h2::after {
  content: "Testimonials";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  color: #f0f7f2;
  opacity: 0.1;
  font-size: 8rem;
  line-height: 75%;
  z-index: -1;
}
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  place-items: center;
  gap: 1rem;
  color: #2d4a33;
  font-size: 0.8rem;
  padding: 1rem;
}
.quotes blockquote {
  margin: 0;
}
.quotes blockquote + p {
  font-weight: bold;
}
.books h2 {
  text-align: center;
  color: #2d4a33;
  text-transform: uppercase;
  font-size: 2.5rem;
  padding: 2rem;
}
.books_all {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  place-items: center;
  gap: 1rem;
  color: #2d4a33;
  font-size: 0.8rem;
  padding: 1rem;
}
.book p {
  text-align: left;
  max-width: 353px;
}
footer {
  background-color: #b8734a;
  padding: 3rem 1rem 1rem;
  overflow: hidden;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
}
.footer-bottom {
  border-top: 2px solid #a86843;
  margin-top: 1rem;
  padding-top: 3rem;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}
.footer-bottom::after {
  content: "Faith Forward";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  text-transform: uppercase;
  color: #9e603d;
  font-weight: bold;
  font-size: clamp(1rem, 10vw, 6rem);
  width: 100%;
  text-align: center;
  line-height: 0.35;
  letter-spacing: 15%;
  z-index: -1;
}
.social-links img {
  width: 24px;
}
.cta-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cta-links a {
  display: flex;
  align-items: center;
}
.cta-links a img {
  height: 20px;
  margin-right: 0.3rem;
}
footer {
  margin-top: 2rem;
}
footer .contact-info {
  color: #f7e7c7;
}
footer .contact-info p {
  margin: 0;
}
footer .contact-info a {
  color: #f7e7c7;
  text-decoration: none;
}
footer address {
  font-style: normal;
}

main > h2 {
  text-align: center;
  margin: 1rem 0;
}
.media_story {
  padding: 0 1rem;
}
.media_story h3 {
  margin-bottom: 1rem;
}
.story,
.services,
.donate,
.volunteer {
  max-width: 60ch;
  margin: auto;
  line-height: 1.5;
}
.services_alert {
  padding: 1rem;
  border: 1px solid rgb(190, 98, 98);
  background-color: rgb(250, 221, 221);
}
.services_alert p {
  margin-bottom: 0;
}
.donate h3 {
  color: #488656;
  margin-top: 1rem;
}
.donate a.button,
.volunteer a.button {
  margin-top: 1rem;
}
@media screen and (min-width: 700px) {
  #menu-open,
  #menu-close {
    display: none;
  }
  .header-main {
    flex-wrap: nowrap;
  }
  header nav {
    display: block;
    padding: 0.5rem;
  }
  header nav:first-of-type {
    padding-bottom: 0.5rem;
  }
  header nav ul {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
  }
  header nav ul li:last-of-type {
    padding-bottom: 0;
  }
  header h2 {
    display: none;
  }
  #sister-sites {
    flex-basis: auto;
    background-color: transparent;
  }
  #sister-sites a {
    color: #fff;
  }
  #sister-sites a:hover::after {
    background-color: #fff;
  }
  .hero-text {
    max-width: 500px;
    margin-left: 1rem;
    padding: 2rem;
  }
  .cards {
    flex-direction: row;
    justify-content: center;
  }
  .footer-top {
    flex-direction: row;
  }
  .cta-links {
    flex-direction: row;
    align-items: center;
  }
}
