/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
}

header {
  background: #0d3b24;
  color: #fff;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  height: 60px; /* Standard navbar height */
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  height: 100%;
}

.navbar h1 {
  font-size: 24px;
  letter-spacing: 2px;
  color: #27ae60;
}

.navbar ul {
  list-style-type: none;
  display: flex;
  gap: 20px; /* Space between nav items */
}

.navbar ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: color 0.3s;
}

.navbar ul li a:hover {
  color: #27ae60;
}

/* Main Layout */
main {
  display: flex;
  height: calc(100vh - 60px); /* Adjust to avoid clipping with the navbar */
  padding-top: 60px;
  overflow: hidden;
}

.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: left;
  padding: 20px;
  overflow: hidden;
}

.background-images {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
}

.background-image {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.hero-content h2 {
  font-size: 36px;
  margin-bottom: 15px;
  color: #27ae60;
}

.hero-content p {
  font-size: 18px;
  color: #f4f4f4;
}

/* Right Side: Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background-color: #fff;
}

.section-info {
  padding: 40px;
  text-align: center;
  border-bottom: 5px solid #27ae60;
}

.section-info h2 {
  font-size: 28px;
  color: #0d3b24;
}

.section-info p {
  font-size: 0.75vw;
  color: #555;
  margin-top: 15px;
}

/* Products Section Images */
.product-images {
  display: flex;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  padding: 0 10px; /* Add horizontal padding */
}

.product-images img {
  width: 25vw; /* Use a percentage width for scaling */
  max-width: 100px;
  height: auto; /* Maintain aspect ratio */
  aspect-ratio: 1/1; /* Ensures circular shape */
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #27ae60;
}

/* Opening Hours Section */
.section-info#hours ul {
  list-style-type: none;
  padding: 0;
  margin-top: 15px;
}

.section-info#hours li {
  font-size: 16px; /* Font size for opening hours */
  color: #555; /* Color for text */
}

/* Repairs Section */
.section-info#repairs {
  background-color: #e9f5e9; /* Light green background for repairs */
}

/* Contact Section */
.section-info#contact {
  background-color: #f9f9f9; /* Light grey background for contact */
}

/* Footer */
footer {
  background: #0d3b24;
  color: #fff;
  text-align: center;
  padding: 20px;
  border-top: 5px solid #27ae60;
  position: fixed; /* Fix the footer to the bottom */
  left: 0;
  bottom: 0;
  width: 100%; /* Make the footer span the entire width */
  z-index: 10; /* Ensure the footer appears above other content */
}
footer p {
  margin: 0;
}

.contact-button {
  display: inline-block;
  background-color: #004d00; /* Green background */
  color: #ffffff; /* White text */
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-button:hover {
  background-color: #006600; /* Darker green on hover */
  transform: scale(1.05); /* Slight zoom effect */
}

.contact-button:active {
  background-color: #003300; /* Even darker green when clicked */
  transform: scale(0.95); /* Slight compression effect */
}

/* ----- Media Queries for Responsive Design ----- */
@media (max-width: 768px) {
  /* Hide the hero section on mobile */
  .hero {
    display: none;
  }

  /* Navbar adjustments for mobile */
  .navbar {
    padding: 0 15px; /* Smaller padding */
  }

  .navbar ul {
    flex-direction: column; /* Stack the nav items */
    align-items: flex-start; /* Align items to the left */
  }

  .pc-li {
    display: none; /* Hide all items on mobile */
  }

  /* Show only the desired items, assuming the first item is the home link */
  .navbar ul li:first-child {
    display: none; /* Show only the first item (e.g., Home) */
  }

  .navbar ul li a {
    padding: 10px 0; /* Add padding between the nav items */
    font-size: 100%; /* Adjust font size to 100% of the parent's font size */
  }

  main {
    flex-direction: column;
    height: auto;
  }

  .main-content {
    width: 100%;
    height: auto;
  }

  .section-info {
    padding: 30px 20px;
  }

  .section-info h2 {
    font-size: 120%; /* Increased size to 120% for smaller screens */
  }

  .section-info p {
    font-size: 100%; /* Adjust to 100% for responsiveness */
  }
  .menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #fff; /* Matches navbar text color */
  }

  /* Navbar and submenu */
  #navbar-placeholder nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
  }

  #navbar-placeholder nav ul li {
    position: relative;
  }

  #navbar-placeholder nav ul li a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 5px;
    display: block;
  }

  #navbar-placeholder nav ul li a:hover {
    color: #27ae60;
  }

  #navbar-placeholder nav ul li .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #0d3b24;
    border: 1px solid #27ae60;
    min-width: 160px;
    display: none;
    flex-direction: column;
    z-index: 10000;
  }

  #navbar-placeholder nav ul li .submenu li a {
    padding: 10px;
    font-weight: normal;
  }

  #navbar-placeholder nav ul li .submenu li a:hover {
    color: #27ae60;
  }

  /* Show submenu on hover for desktop */
  @media (min-width: 769px) {
    #navbar-placeholder nav ul li:hover > .submenu {
      display: flex;
    }
  }

  /* Mobile styles */
  .menu-toggle {
    display: none;
    font-size: 28px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 30px;
    z-index: 10001;
  }

  @media (max-width: 768px) {
    #navbar-placeholder nav ul {
      display: none;
      position: absolute;
      top: 60px;
      left: 0;
      flex-direction: column;
      width: 100%;
      background: #0d3b24;
      z-index: 9999;
    }
    #navbar-placeholder nav ul.show {
      display: flex;
    }
    #navbar-placeholder nav ul li {
      border-top: 1px solid #27ae60;
    }
    #navbar-placeholder nav ul li a {
      padding: 15px 20px;
    }
    #navbar-placeholder nav ul li .submenu {
      position: relative;
      border: none;
      background: none;
      top: auto;
      left: auto;
      min-width: auto;
      display: none;
      padding-left: 20px;
    }
    #navbar-placeholder nav ul li.active > .submenu {
      display: flex;
      flex-direction: column;
    }
    #navbar-placeholder nav ul li .submenu li a {
      padding-left: 40px;
    }
    .menu-toggle {
      display: block;
    }
  }
}
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #0d3b24;
  color: #fff;
  padding: 15px 20px;
  text-align: center;
  z-index: 9999;
  display: none;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
  border-top: 5px solid #27ae60;
}

#cookie-banner p {
  margin: 0 0 10px 0;
  font-size: 16px;
}

.cookie-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.cookie-buttons button {
  background-color: #27ae60;
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cookie-buttons button:hover {
  background-color: #2ecc71;
  transform: scale(1.05);
}

.cookie-buttons button:active {
  background-color: #1e8449;
  transform: scale(0.95);
}
