/* Reset absolutely everything above the header */
html, body {
  margin: 0;
  padding: 0;
}

body {
  background-color: #c2f6ff;
}

section h1,
nav h1,
article h1,
aside h1 {
  font-size: 2.5rem; /* Added to improve Best Practices score */
}

/* Header */
  header {
    position: relative;
    margin: 0;
    padding: 0;
    line-height: 0;
    background-color: #96db5a;
    border-bottom: 6px solid #3a6367;
  }

  .header-image {
    display: block;
    width: 100%;
    height: auto;
  }
  
  /* Desktop vertical menu */
  .nav-vertical {
    position: absolute;
    bottom: calc(6px + 1rem);
    left: 2rem;
    transform: none;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-vertical li {
    margin-bottom: 1rem;
  }

  .nav-vertical li:last-child { 
    margin-bottom: 0;
  }

  .nav-vertical a {
    text-decoration: none;
    color: #3a6367;
    font-size: 1.2rem;
    transition: color 0.3s ease;
  }

  .nav-vertical a:hover {
    color: #c2f6ff;
  }
  
  
  /* Hide vertical menu on small screens */
  @media (max-width: 991.98px) {
    .nav-vertical {
      display: none;
    }
  }

 /* Large screens (≥992px and <1200px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .nav-vertical {
    bottom: calc(6px + 0.75rem);
    left: 1rem;
  }
  .nav-vertical .nav-link { font-size: 1rem; }
}

/* XL screens (≥1200px and <1400px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .nav-vertical { bottom: calc(6px + 1.25rem); }
}

/* XXL screens (≥1400px) */
@media (min-width: 1400px) {
  .nav-vertical { bottom: calc(6px + 2rem); }
}


/* Mission section */
.mission-values-section {
  background-image: url('images/peachesBG.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding-bottom: 2rem;
  min-height: 525px;
}

/* Mission section cards */
.card-inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 100%;
}

/* Image Box */
.label-box {
  padding: 0;
  margin: 0;
  display: flex;
  align-items: top;
  justify-content: left;
}

.card-label {
  display: block; /* Removes inline spacing */
  width: auto; /* Keeps original aspect ratio */
  max-height: 300px; /* Prevents overflow */
  margin: 0;
  padding: 0;
  object-fit: contain; /* Keep scaled */
}

.card-text-box {
  background-color: rgba(201, 253, 6, 0.75);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-left: 2rem;
  align-items: center;
  display: flex;
  flex: 1;
}

@media (max-width: 768px) {
  .card-inner {
    flex-wrap: wrap;  /* Let contents wrap instead of switching to column */
    justify-content: center;
    align-items: flex-start;
  }

  .label-box {
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
  }

  .card-label {
    max-height: 120px;
    width: auto;
  }

  .card-text-box {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    flex: 1;
  }
}

  /* About section */

  /* About section wrapper: no background here */
.about-section {
    margin-top: 0;
    position: relative;
  }
  
  /* Image area holds the photo + overlay only */
  .about-image {
    position: relative;
    height: 420px;
    background: url('images/FoodForest.jpeg') center/cover no-repeat;
    isolation: isolate;  
  }
  
  /* Overlay the image area */
  .about-image .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
  }
  
  /* Text centered on top of overlay */
  .about-content {
    position: absolute;
    top: 25%;
    left: 0;
    right: 0;
    z-index: 2;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,.6);
    padding: 1rem;
  }
  
  .about-section .btn-primary {
    background-color: #ff994e;
    border-color: #ff994e;
  }
  .about-section .btn-primary:hover {
    background-color: #e67f33;
    border-color: #e67f33;
  }

  @media (max-width: 768px) {
    .about-image {
      height: auto;
      padding: 3rem 1rem;
    }
  
    .about-content {
      position: static;
      padding: 0;
      transform: none;
    }
  }

  /* FOOTER */
/* Outer footer container */
footer {
  background-color: transparent;
  color: white;
  padding: 0;
  text-align: center;
}

.footer-bg {
  background-color: #7a4f2a;
  padding: 0;
  margin: 0;
}

/* Main inner layout */
.footer-inner {
  background: url('images/footer.png') center top/contain no-repeat;
  background-size: 100% auto;
  aspect-ratio: 1920 / 200;
  padding: 2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  position: relative;
}

/* Section containers */
.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Alignment on larger screens */
.footer-left {
  justify-content: flex-start;
}
.footer-center {
  justify-content: center;
  text-align: center;
}
.footer-right {
  justify-content: flex-end;
}

/* Social icon */
.social-toggle-icon {
  width: 75px;
  height: auto;
  cursor: pointer;
  margin-top: 1.5rem;
}

/* Contact link */
.footer-contact {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-contact:hover {
  text-decoration: underline;
}

/* Copyright */
.footer-copy {
  font-size: 0.9rem;
  color: #fff;
}

/* Responsive: stack vertically */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    aspect-ratio: auto;
    padding: 1.5rem 1rem;
    gap: 0.5rem;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    justify-content: center;
    margin-bottom: 0.5rem;
  }

  .footer-copy,
  .footer-contact {
    font-size: 0.85rem;
  }

  .social-toggle-icon {
    width: 65px;
  }
}