html {
  scroll-behavior: smooth;
  background-color: #5a504f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "lora", georgia, serif;
}

body {
  background-color: #fefefe;
  color: #5a504f;
  line-height: 1.6;
}

header {
  background-color: #5a504f;
  color: #fefefe;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
}

header>img {
  max-height: 30vh;
}

h2 {
  font-weight: 700;
}

section>* {
  width: 50vw;
  padding: 2rem 2rem 0 2rem;
}

section>ul {
  padding-left: 3rem;
}

section>ul>li {
  margin-bottom: 1rem;
}

section>a {
  margin-bottom: 2rem;
}

section>p {
  margin-bottom: 2rem;
}

section h2 {
  text-align: center;
}

section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 1rem;
}

p {
  text-align: left;
  font-weight: 400;
}

#tagline {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cut-sheet-menu-control {
  display: none;
}

.menu-control {
  background: none;
  border: none;
  font-size: 25px;
  display: flex;
  align-items: center;
}

body.js-enabled .cut-sheet-menu-control {
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 1rem;
  font-size: 2rem;
}

.cut-sheet-links {
  padding: 1rem;
  background: #eee;
}

.hero {
  background:
    linear-gradient(rgba(90, 80, 79, 0.8), rgba(90, 80, 79, 0.8)),
    url("./assets/cattle.jpg");
  background-size: cover;
  background-position: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: #fefefe;
}

.hero>h2 {
  font-size: 35px;
}

.hero>p {
  font-size: 25px;
  width: 100% !important;
  text-align: center;
}

.btn,
.btn-sky {
  color: #5a504f;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
  transition: background-color 0.3s;
  display: inline-block;
  touch-action: manipulation;
  width: auto;
}

.btn:hover,
.btn-sky:hover {
  cursor: pointer;
}

.btn {
  background-color: #daa520;
}

.btn-sky {
  background-color: #bed6ee;
}

.btn:hover {
  outline: none;
  color: #fefefe;
}

.about,
.contact {
  background-color: #e7c265;
}

#contact-info {
  margin-bottom: 2rem;
}

.cta {
  text-align: center !important;
}

.cta,
.our-story {
  background-color: #bed6ee;
}

footer {
  background-color: #5a504f;
  color: #fefefe;
  text-align: center;
  padding: 1rem;
}

footer p {
  font-weight: 400;
}

.input-group {
  display: flex;
  gap: 1rem;
}

.input-group>label {
  min-width: 65px;
}

.input-group>input,
.input-group>textarea {
  width: 100%;
  padding: 0.5rem;
}

.input-group>textarea {
  height: 200px;
  resize: none;
}

input[type="submit"] {
  border: none;
  cursor: pointer;
}

input[type="submit"]:active {
  background: #daad9a;
  -webkit-box-shadow: inset 0px 0px 5px #5a504f;
  -moz-box-shadow: inset 0px 0px 5px #5a504f;
  box-shadow: inset 0px 0px 5px #5a504f;
  outline: none;
}

#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background-color: #f5f5f5;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  padding: 1rem;
  box-sizing: border-box;
  overflow-y: auto;
  transform: translatex(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 999;
  display: none;
  gap: 0.5rem;
}

#sidebar a {
  display: block;
  font-size: 1.5rem;
  color: #333;
  margin-top: 1rem;
}

body.js-enabled #sidebar {
  display: block;
}

body.js-enabled #sidebar.open {
  transform: translatex(0);
}

body.js-enabled .cut-sheet-links {
  display: none;
}

.flex {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.error-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  height: 100vh;
}

.error-body img {
  max-width: 70vw;
}

.error-body p {
  font-size: 1.5em;
  margin: 20px 0;
  text-align: center;
}

.error-body a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4a90e2;
  color: white !important;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2em;
  transition: background-color 0.3s;
}

@media (max-width: 750px) {
  section>* {
    width: 90vw;
  }

  section {
    padding-bottom: 2rem;
  }

  section>p,
  div#contact-info {
    margin-bottom: 0rem;
  }

  .header-tagline {
    display: none;
  }

  a[href="#contact"] {
    margin-top: 2rem;
  }

  header {
    align-items: center;
    gap: 1rem;
  }

  header>img {
    max-height: unset;
    width: 100%;
    height: auto;
  }

  .cut-sheet-menu-control {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .input-group {
    display: flex;
    flex-direction: column;
    gap: 0rem;
  }

  input[type="submit"] {
    margin-top: 1rem;
  }

  #sidebar {
    width: 100%;
  }
}

@media (max-width: 650px) {
  header {
    flex-direction: column;
  }
}

a {
  color: #800020;
  /* unvisited link */
  text-decoration: underline;
  /* optional: for better visibility */
}

a:visited {
  color: #a52a2a;
  /* visited link */
}

a:hover,
a:focus {
  color: #c8102e;
  /* hover/active for interactivity - a brighter red */
}

@media (min-width: 751px) {
  body {
    font-size: 18px;
  }

  h1,
  h2,
  h3 {
    font-size: 1.5em;
  }

  .hero>h2 {
    font-size: 45px;
  }

  .hero>p {
    font-size: 30px;
  }
}
