/* Reset default spacing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#stickyHeader {
  position: sticky;
  top: 0;
  z-index: 1000; /* Make sure it stays above other content */
  background-color: white; /* Prevent transparency issue */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: subtle shadow */
}

/* Body */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: rgba(150, 140, 132, 0.75);
}

/* Header */
header {
  background: white;
  color: black;
  text-align: center;
  padding: 2rem 1rem;
  margin: 0;
  font-size: 1.5rem;
}

/* Navigation */
nav {
  background: #333;
  text-align: center;
  margin: 0;
  padding: 15px;
}

/* Menu links */
nav a {
  color: white;
  margin: 0 1rem;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

/* Sections */
main {
  padding: 0;
  margin: 0;
}

section {
  font-size: 1rem;
  padding: 2rem 1 rem;
}

/* Footer */
footer {
  background: #f4f4f4;
  text-align: center;
  padding: 1rem;
}

/* Hamburger menu */
.menu-toggle {
  display: none; /* hidden on desktop */
  background: #333;
  color: white;
  padding: 0.75rem;
  cursor: pointer;
  text-align: center;
  user-select: none;
}

.menu {
  display: flex;
  justify-content: center;
}

.barn-image-container {
  height: auto;
}

img.clickable-image {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

img.clickable-image {
  max-width: 380px;
  width: 100%;
}

#intro img {
  margin: 20px auto;
  display: block;
  border: 10px solid #333;
  border-radius: 4px;
}

.intro {
  text-align: center;
  font-weight: 700;
  white-space: pre-wrap;
  font-size: 23px;
}

#full-width-banner-contact {
  padding-bottom: 1rem;
  margin: 100px auto 50px 30px;
  text-align: center;
  font-weight: bold;
}

#farm-name {
  font-size: 1.25rem;
}

#farm-name-h1 {
  font-family: "Indie Flower", cursive;
}

.fa-facebook {
  padding: 20px;
  font-size: 30px;
  width: 50px;
  text-align: center;
  text-decoration: none;
  border-radius: 50%;
  background: #3b5998; /* Facebook blue */
  color: white;
}

.fa-facebook:hover {
  opacity: 0.7;
}

.fa-instagram {
  padding: 20px;
  font-size: 30px;
  width: 50px;
  text-align: center;
  text-decoration: none;
  border-radius: 50%;
  background: #e1306c; /* Instagram pink */
  color: white;
}

.fa-instagram:hover {
  opacity: 0.7;
}

/*image styling*/

.clickable-image {
  cursor: pointer;
}

.responsive-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  object-fit: cover;
}

.barn-image-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/*buttons*/
#image-buttons {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  cursor: pointer;
}

#image-buttons img {
  width: 100px; /* Adjust size as needed */
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

#image-buttons img:hover {
  transform: scale(1.1);
}

.image-stack {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px; /* space between images */
  align-items: center;
  margin-top: 25px;
}

.image-stack img {
  width: 80px;
  height: auto;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.image-stack img:hover {
  transform: scale(1.1);
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  pointer-events: none; /* Allows clicks to pass through to image */
}

.image-container {
  position: relative;
  width: 100px;
}

.image-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  
}

.image-paragraph-row {
  display: flex;
  justify-content: center; /*centers the image-paragraph-row horizontally*/
  margin-bottom: 20px; /* space between rows */
  flex-wrap: wrap;
  align-items: center;
}

.image-paragraph-row img {
  display: block;
  margin: 0 auto;
  border: 10px solid #333;
  border-radius: 50%; /*50% would be completely rounded like an avatar*/
  
}

.image-paragraph-row p {
  display: flex;
  font-size: 16px;
  padding: 50px;
  max-width: 800px; /* Controls line length*/
  word-wrap: break-word;
  text-align: center;
  
}

.image-paragraph-row:nth-child(even) {
  flex-direction: row-reverse;
}

.product-scroll-container {
  position: relative;
  max-width: 1000px;
  overflow: hidden;
  margin: 0 auto;
  padding-top: 100px;
  padding-bottom: 100px;
  
}

.product-row {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1rem;
  padding: 1rem;
  
}

.product {
  min-width: 200px;
  flex-shrink: 0;
  background: #f2f2f2;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1;
}

.scroll-btn.left {
  left: 0;
}

.scroll-btn.right {
  right: 0;
}

/* Mobile view */
@media (max-width: 600px) {
  .menu-toggle {
    display: block;
  }

  .menu {
    flex-direction: column;
    background: #333;
    text-align: center;
    max-height: 0; /* hidden by default */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }

  .menu a {
    padding: 0.75rem;
    border-top: 1px solid #444;
  }

  .menu.show {
    max-height: 500px; /* show all links */
    transition: max-height 0.3s ease-in;
  }

  .barn-image-container {
    height: auto;
  }
  .image-paragraph-row {
    flex-direction: column; /*stack vertically*/
    align-items: flex-start;
  }

  .image-paragraph-row img,
  .image-paragraph-row p {
    width: 100%; /* full width on mobile*/
    margin: 5px 0;
  }
}
