/* Global Reset */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  /* outline: 1px solid red; */
}

html {
  scroll-behavior: smooth;
}

:root {
  --brand-green: #4a7c44;
  --bg-color: rgb(247, 240, 230);
  --shadow: 0.3rem 0.3rem 0.6rem rgba(0, 0, 0, 0.1);
}

/* Body */

body {
  width: 100%;
  background-color: rgb(247, 240, 230);
}

.wrapper {
  width: 100%;
  margin: 0 auto;
}

/* Header */

#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 7vh;
  position: fixed;
  top: 0;

  background-color: rgb(247, 240, 230);
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgb(221, 220, 220);
  z-index: 100;
}

/* Logo */

.logo {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 2.8rem;
  border-radius: 50%;
  box-shadow: 0.3rem 0.3rem 0.6rem rgba(0, 0, 0, 0.1);
  margin-left: 1.5rem;
}

.brand {
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -1px;
  color: #345830;
}

/* Navbar */

nav {
  display: flex;
  flex-direction: column;
  margin-right: 20px;
}

#nav-bar>ul {
  display: flex;
  justify-content: space-around;
  list-style-type: none;
}

#nav-bar a {
  color: black;
  cursor: pointer;
  text-decoration: none;
}

#nav-bar a:hover {
  background-color: #4dbdfe;
  color: #1d1d1d;
  transition-duration: 0.2s;
}

.nav-link {
  display: inline-block;
  width: 85px;
  height: 50px;
  line-height: 50px;
  font-size: 1rem;
  font-weight: 400;
  border-radius: 3px;
  text-align: center;
}

/* Menu Toggle */

#menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: black;
  border-radius: 2px;
}

/* Hero */

#hero-container {
  text-align: center;
  margin-top: 1.9rem;
  scroll-margin-top: 7vh;
}

#hero {
  background: linear-gradient(180deg, #3a90c2 0%, #F7F0E6 95%, #F7F0E6 80%);
  text-align: center;
  margin-top: 7vh;
  padding: 4.7rem;
}

#hero h1 {
  font-size: 3rem;
  font-weight: 400;
  color: whitesmoke;
  text-shadow: 2px 2px 3px #000000;
}

#hero h2 {
  font-weight: 600;
  background: linear-gradient(120deg, #1b541b 50%, #ff931f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 10px;
}

/* Form */

#form {
  margin-top: 2.5rem;
}

input {
  outline: none;
}

#email {
  width: 100%;
  max-width: 25rem;
  height: 2.5rem;
  padding: 0.4rem;
  font-size: 1rem;
  border-radius: 0.2rem;
  border: 0.03rem solid gray;
  text-align: center;
  margin-top: -1.2rem;
}

.button {
  width: 10rem;
  height: 2.5rem;
  background-color: gold;
  font-size: 0.8rem;
  font-weight: 600;
  color: #000000;
  text-transform: uppercase;
  border-radius: 0.2rem;
  border: 0.03rem solid gray;
  padding: 0 20px;
  margin: 1.9rem;
}

.button:hover {
  background-color: rgb(255, 189, 67);
  transition-duration: 0.5s;
  cursor: pointer;
}

.hero-picture-one,
.hero-picture-two {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
}

.hero-picture-four {
  width: clamp(20%, 30vw, 40rem);
  border-radius: 5px;
  margin-top: 5px;
}

/* Quote */

.quote-container {
  height: 20rem;
}

.organic-pull-quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  background-color: #f9fbf9;
  border-left: 5px solid #4a7c44;
  font-style: italic;
  text-align: center;
  margin: 0 auto;
  z-index: -1;
}

.organic-pull-quote p {
  max-width: 75%;
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 2px;
  color: #2d4a27;
}

.organic-pull-quote cite {
  font-size: 1.1rem;
  text-transform: uppercase;
  color: #777;
  font-weight: bold;
  font-style: normal;
  letter-spacing: 1px;
}

.organic-pull-quote::before {
  content: "“";
  position: absolute;
  top: 5px;
  left: 20px;
  font-size: 100px;
  color: rgba(74, 124, 68, 0.1);
  font-family: serif;
}

.organic-pull-quote::after {
  content: "”";
  position: absolute;
  bottom: -30px;
  right: 50px;
  font-size: 100px;
  color: rgba(74, 124, 68, 0.1);
  font-family: serif;
}


/* Features (About) */

#goodies {
  height: 100%;
  width: 100%;
  padding-top: 6.2rem;
}

.container {
  background: linear-gradient(180deg, #1b541b 0%, #F7F0E6 95%, #F7F0E6 80%);
  max-width: 100%;
}

#features {
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 5rem;
}

.title {
  font-weight: 400;
  font-size: 3rem;
  text-align: center;
  color: whitesmoke;
  text-shadow: 2px 2px 1px #000000;
  margin-bottom: 100px;
}

.grid {
  display: flex;
  flex-direction: row;
  background-color: white;
  border-radius: 0.3rem;
  box-shadow: 0.3rem 0.3rem 0.6rem rgba(0, 0, 0, 0.1);
  margin-bottom: 5rem;
}

#features .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: green;
  font-size: 1.8rem;
  padding: 1.5rem;
  margin-left: 10px;
}

#features h3 {
  font-size: 1.7rem;
  font-weight: 400;
  color: green;
  padding: 15px;
}

#description {
  font-size: 1.2rem;
  font-weight: 300;
  padding: 1.2rem;
}

.description {
  max-width: 800px;
  padding: 15px;
  margin: 10px 0 20px 0;
}

.grid p {
  font-size: 1.1rem;
  font-weight: 300;
  margin-top: -25px;
  padding: 15px;
}

/* Farms */

#farms {
  scroll-margin-top: 14vh;
}

.farm-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 80px 70px 60px 70px;
  font-size: 2.5rem;
  font-weight: 400;
}

.farms-profile h4 {
  background-color: white;
  color: darkgreen;
  width: 100%;
  max-width: 300px;
  height: auto;
  font-size: 1.8rem;
  font-weight: 500;
  text-align: center;
  border-radius: 0.3rem;
  margin: 0 auto;
  padding: 0.9rem;
  box-shadow: 0.3rem 0.3rem 0.6rem rgba(0, 0, 0, 0.1);
}

.farms-pictures {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}

.farm-txt {
  width: 75%;
  max-width: 800px;
  text-align: left;
  font-size: 1.2rem;
  font-weight: 300;
  margin: 35px auto;
}

.farms-caption {
  text-align: center;
  font-style: italic;
  color: #555;
  margin: 30px 0 80px 0;
}

/* La Warde - Video */

#video {
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
}

iframe {
  width: 70%;
  max-width: 800px;
  aspect-ratio: 16/9;
  margin-top: 20px;
  box-shadow: 0.3rem 0.3rem 0.6rem rgba(0, 0, 0, 0.1);
}

/* Logo Farms */

.farms-logo {
  margin: 100px 0 80px 0;
  text-align: center;
}

.logo-farms {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  max-width: 800px;
  gap: 60px;
  margin: 0 auto;
}

.logo-mish-mash,
.logo-falize,
.logo-warde,
.logo-biovrac {
  width: 15%;
  border-radius: 50%;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.logo-mish-mash:hover,
.logo-falize:hover,
.logo-warde:hover,
.logo-biovrac:hover {
  transform: scale(1.05);
}

/* Pre-Footer */

.pre-footer {
  width: 100%;
  max-width: 800px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
  grid-auto-rows: 21.9rem;
  gap: 0.6rem;
  margin: 0 auto;
  padding: 0.6rem;
}

.image-paragraph {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 80px auto 60px auto;
}

.image-paragraph h2 {
  font-weight: 500;
  margin-bottom: 25px;
}

.image-paragraph p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

#semi1 {
  background-image: url(images/mishMash4.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
  border-radius: 0.3rem;
}

#semi2 {
  background-image: url(images/laFalizeTomatoes.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 0.3rem;
}

/* Contact Form */

#contact {
  scroll-margin-top: 14vh
}

.contact-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 40%;
  margin: 5rem auto;
  padding: 20px;
  background-color: #32562e;
  border-radius: 5px;
}

.contact-container select {
  display: block;
  width: 25%;
  outline: none;
  margin-top: 5px;
  margin-bottom: 20px;
  padding: 5px;
  color: #000;
  border: 1px solid #ccc;
}

.contact-container label {
  text-align: left;
  font-weight: 300;
  color: white;
}

.contact-container input {
  width: 100%;
  border-radius: 5px;
  margin-top: 5px;
  margin-bottom: 20px;
  padding: 12px;
}

textarea {
  width: 100%;
  height: 200px;
  resize: vertical;
  border-radius: 5px;
  outline: none;
  margin-top: 5px;
  padding: 12px;
}

.contact-container .submit {
  width: 25%;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
  background-color: antiquewhite;
  color: #32562e;
  font-weight: 600;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-container .submit:hover {
  background-color: #f5ca8a;
  color: #32562e;
}

/* Footer */

footer {
  background-color: #32562e;
  color: antiquewhite;
  height: 20rem;
  padding: 1.9rem;
  text-align: center;
  margin-top: 4rem;
}

.nav-footer {
  display: inline-block;
  list-style-type: none;
  margin-top: 25px;
}

.nav-footer a {
  color: antiquewhite;
  text-decoration: none;
}

.nav-footer li {
  display: inline-block;
  padding: 7px;
}

.link {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  padding: 0.3rem;
}

.link:hover {
  color: #f5ca8a;
  transition-duration: 0.1s;
}

footer p {
  font-weight: 300;
  text-align: center;
  margin-top: 35px;
}

.copyright {
  text-decoration: none;
  color: white;
}

.copyright:hover {
  color: #f5ca8a;
  border-bottom: none;
  font-weight: 300;
}

/* Social Icons */

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
}

.social-icons a {
  color: antiquewhite;
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #f5ca8a;
  transform: scale(1.2);
}

/* RESPONSIVE DESIGN - MOBILE FIRST */

/* Mobile Phones (up to 767px) */
@media only screen and (max-width: 767px) {

  #header {
    height: auto;
    flex-direction: row;
    padding: 10px 0;
  }

  /* Menu Toggle */
  .hamburger {
    display: flex;
    position: absolute;
    right: 20px;
    top: 20px;
  }

  #menu-toggle:checked~#nav-bar {
    display: block;
    margin-top: -15px;
  }

  #menu-toggle:checked~.logo {
    display: none;
  }

  #nav-bar {
    display: none;
    width: 100%;
  }

  /* Navigation becomes vertical and centered */
  #nav-bar ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: none;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
  }

  li {
    margin-right: 0;
    font-size: 1rem;
  }

  button {
    color: black;
  }

  /* Hero section adjustments */
  #hero {
    margin-top: 20px;
    padding: 0 20px;
    padding-top: 75px;
  }

  #hero h1 {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  #hero h2 {
    font-size: 0.8rem;
  }

  #email {
    width: 90%;
    max-width: 300px;
    font-size: 16px;
    margin-top: auto;
  }

  .button {
    width: 130px;
    font-size: 0.8rem;
    margin: 25px;
    color: #000000;
  }

  .hero-picture-one,
  .hero-picture-two {
    width: 100%;
    height: auto;
  }

  .hero-picture-four {
    width: 100%;
    margin: 5px;
  }

  /* Quote */

  .organic-pull-quote p {
    font-size: 1rem;
  }

  .organic-pull-quote cite {
    font-size: 0.7rem;
  }

  /* Features section becomes single column */

  .title {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 400;
    margin-top: -25px;
  }

  .grid {
    flex-direction: column;
    text-align: left;
    padding: 15px;
    font-size: 1rem;
    width: 100%;
  }


  #features {
    width: 100%;
    padding: 0 10px;
  }

  #features .icon {
    display: none;
  }

  #features h3 {
    font-size: 1.3rem;
  }

  .description {
    width: 100%;
    margin-top: 0;
  }

  .description p {
    width: 100%;
    font-size: 1rem;
    text-align: left;
  }


  .farm-title {
    font-size: 1.6rem;
    font-weight: 400;
  }

  /* Farms Headings */
  .image h4 {
    font-size: 1.5rem;
  }

  .farms-pictures {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }

  .farms-caption {
    width: 310px;
    margin: 20px auto;
  }

  .image p {
    font-size: 1rem;
  }

  /* Video becomes smaller */
  iframe {
    width: 95%;
  }

  .logo-farms {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px;
  }

  .logo-farms img {
    width: 30%;
  }

  .logo-mish-mash,
  .logo-falize,
  .logo-warde,
  .logo-biovrac {
    width: 15%;
  }

  /* Contact Form */

  .contact-container {
    max-width: 90%;
  }

  /* Footer becomes more compact */
  footer {
    height: auto;
    padding: 20px 15px;
  }

  .nav-footer {
    flex-direction: column;
    gap: 10px;
  }

  footer p {
    margin-right: 0;
    margin-top: 20px;
    font-size: 0.9rem;
  }

  .copyright {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

/* Tablets (768px to 1024px) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {

  #header {
    height: 10vh;
    padding: 0 20px;
  }

  .logo img {
    width: 80px;
  }

  li {
    margin-right: 40px;
    font-size: 1rem;
  }

  /* Hero adjustments */
  h1 {
    font-size: 2.2rem;
  }

  #email {
    width: 350px;
  }

  #features {
    width: 90%;
  }

  /* Video size for tablets */
  iframe {
    width: 80%;
  }

  /* Contact Form */

  .contact-container {
    max-width: 80%;
  }
}

/* Large Desktops (1440px and up) */
@media only screen and (min-width: 1440px) {

  .container {
    margin: 0 auto;
  }

  #features {
    max-width: 1000px;
  }

  h1 {
    font-size: 3rem;
  }
}

/* Mobile Landscape Mode (Special case) */
@media only screen and (max-width: 767px) and (orientation: landscape) and (max-height: 500px) {
  #header {
    height: 50px;
    flex-direction: row;
    padding: 5px 20px;
  }

  .logo img {
    width: 50px;
  }

  #nav-bar ul {
    flex-direction: row;
    gap: 10px;
  }

  li {
    font-size: 0.9rem;
    margin-right: 15px;
  }

  /* Hero section */
  #hero {
    margin-top: 60px;
    padding: 10px 20px;
  }

  h1 {
    font-size: 1.3rem;
  }

  /* Images in landscape */
  .hero-picture-four {
    width: 30%;
  }

  /* Image paragraph section in landscape */
  .image-paragraph {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 20px;
  }

  #description {
    width: 50%;
    margin: 0;
  }

  .pre-footer {
    width: 50%;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 150px;
  }

  /* Farm logos in landscape - horizontal row */
  .logo-farms {
    flex-direction: row;
    gap: 15px;
    margin: 20px;
  }

  .logo-farms img {
    width: 20%;
    max-width: 80px;
  }

  /* Farm pictures in landscape - stay horizontal */
  .farms-pictures {
    flex-direction: row;
  }

  /* Contact Form */

  .contact-container {
    max-width: 90%;
  }
}


/* High DPI/Retina Displays */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (min-resolution: 192dpi) {

  .logo img {
    image-rendering: -webkit-optimize-contrast;
  }

  .grid {
    border-width: 1px;
  }
}