/* |--↓-↓-↓ Start Header ↓-↓-↓--| */
header {
  padding: 20px;
  background-color: var(--color-light-teal);
  border-bottom: 3px solid var(--color-mid-green);
  width: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  width: 100%;
  gap: 20px; /* Adds space between columns */
}

/* Left column - Logo */
.header-left {
  flex: 0 0 150px; /* Fixed width for logo */
  position: relative;
  z-index: 1;
}

/* Center column - Business name and navigation */
.header-center {
  flex: 1;
  min-width: 0; /* Prevents flex item from overflowing */
  max-width: 800px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Right column - Shopping cart */
.header-right {
  flex: 0 0 150px; /* Fixed width for shopping cart */
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

/* Logo styles */
header .logo {
  width: 100%;
  max-width: 180px;
  height: auto;
}

header .logo img {
  display: block;
  width: 100%;
  height: auto;
  margin-left: 50px;
  filter: drop-shadow(0 0 2px var(--color-soft-golden)) drop-shadow(0 0 0px var(--color-dark-green));
}

/* Business name and navigation container */
.business-name-container {
  width: 100%;
  text-align: center;
  margin-bottom: 15px;
}

.nav-container {
  width: 100%;
}

/* Shopping cart button */
#shopping-cart {
  position: static;
  padding: 15px;
  border-radius: 10px;
  background-color: var(--color-destin-sand);
  color: var(--color-dark-green);
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-strong);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.business-name {
  font-family: 'Georgia', serif;
  display: block;
  font-size: 3.6rem;
  color: var(--color-dark-green); /* Dark green for the title */
  margin: 10px 0;
  text-align: center;
  text-shadow: var(--text-outline-heading);
}

header p.tagline {
  font-family: 'Arial', sans-serif;
  font-size: 1.4rem;
  color: var(--color-mid-green); /* Pale green for the tagline */
  margin: 0;
  text-align: center;
}

.menu-toggle {
  display: none;
}

@media (max-width: 780px) {
  /* --- Main Header Container --- */
  header {
    flex-direction: column;
    padding: 10px;
  }

  .header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .logo-and-title {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  /* --- Logo --- */
  header .logo {
    position: static;
    width: 100px; /* Smaller logo for compact header */
  }

  header .logo img {
    width: 100%;
  }

  /* --- Business Name --- */
  .business-name {
    font-size: 1.8rem; /* Smaller name for mobile */
    margin: 0;
  }

  /* --- Header Icons --- */
  .header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  #shopping-cart {
    position: static;
    padding: 0;
    background: none;
    box-shadow: none;
    font-size: 1.5rem;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--color-dark-green);
    cursor: pointer;
  }
  
  /* --- Compact Navigation Menu --- */
  nav {
    display: none;
    width: 100%;
    margin-top: 10px;
    background-color: var(--color-destin-sand);
    border-radius: 5px;
    box-shadow: var(--shadow-subtle);
  }

  nav.is-open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    padding: 5px 0; /* Reduced vertical padding */
  }

  nav ul li a {
    padding: 10px 0; /* Reduced padding for each link */
    font-size: 1rem;  /* Smaller font size for links */
    text-align: center;
    border: none;
  }

  nav ul li a.current-page {
    background: none;
    text-decoration: underline;
  }
}

nav, #footer-nav {
  margin-top: 20px;
  background-color: var(--color-destin-sand); /* White for navigation background */
  padding: 10px 20px;
  border-radius: 5px;
  width: 100%; /* Ensures the nav spans the width of the header */
  box-shadow: var(--shadow-subtle);
}

#shopping-cart {
  position: absolute;
  top: 100px;
  right: 100px;
  padding: 20px;
  border-radius: 10px;
  background-color: var(--color-destin-sand);
  color: var(--color-dark-green); 
  cursor: pointer;
  z-index: 5;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: var(--shadow-strong);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

#shopping-cart:hover {
  background-color: var(--color-dark-green);
  color: var(--color-mid-green);
  border: solid var(--color-destin-sand); 
  box-shadow: var(--shadow-medium);
}

nav ul, #footer-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul {
  gap: 40px;
}

nav ul li, #footer-nav ul li {
  margin: 0 20px;
  border-radius: 5px;
}

.current-page {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--color-dark-green);
  background-color: var(--color-mid-green);
  border: none;
  text-decoration: underline;
  white-space: wrap;
  text-align: center;
  box-shadow: var(--shadow-strong);
}

.community-link {
  font-size: 0.9em;
}

nav ul li a, #footer-nav ul li a {
  font-family: 'Arial', sans-serif;
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-dark-green); 
  text-decoration: underline;
  padding: 8px 15px;
  border-radius: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover, #footer-nav ul li a:hover {
  background-color: var(--color-destin-sand);
  color: var(--color-dark-green);
  border: solid .5px var(--color-dark-green);
  padding: 7px 14px;
  box-shadow: var(--shadow-medium);
}

/* |--↓-↓-↓ Start Footer ↓-↓-↓--| */
#footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#newsletter-container {
  display: inline-block;
  margin-bottom: 10px;
  text-align: center;
}

#email-input {
  display: inline-block;
  width: 55%;
  padding: 5px 10px;
  text-align: center;
  border-radius: 10px;
  box-shadow: var(--shadow-subtle);
}

button#submit-btn {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  z-index: 5;
}

footer div label {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-dark-green);
}

#newsletter-form {
  display: inline-block;
  background-color: var(--color-soft-golden);
  border: solid var(--color-destin-sand);
  border-radius: 10px;
  width: 60%;
  padding: 5px;
  text-align: center;
  box-shadow: var(--shadow-medium);
}

/* #footer-nav {
  background-color: transparent;
}

#footer-nav ul {
  position: relative;
  list-style-type: none;
  flex-direction: row;
  margin-top: 20px;
  background-color: var(--color-destin-sand);
  border-radius: 5px;
  width: fit-content; 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#footer-nav ul li {
  display: inline-block;
  align-items: center;
  padding: 5px 10px; 
  margin: 0 20px;
}

#footer-nav ul li .current-page {
  font-size: 1.2em;
  font-weight: bold;
  color: var(--color-dark-green);
  background-color: var(--color-mid-green);
  text-decoration: underline;
}

#footer-nav ul li a {
  font-family: 'Arial', sans-serif;
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-dark-green); 
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#footer-nav ul li a:hover {
  background-color: var(--color-destin-sand);
  color: var(--color-dark-green);
  border: solid var(--color-dark-green);
  border-radius: 10px;
} */

#social-media {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

#social-media h3 {
text-align: center;
}

#social-media ul {
  position: relative;
  display: inline-block;
  list-style-type: none;
  text-align: center;
}

#social-media ul li {
  display: inline-block;
  margin: 0 10px;
  padding: 0 10px;
  color: var(--color-dark-green);
}

#social-media ul li a {
  font-family: 'Arial', sans-serif;
  font-size: 1rem;
  color: var(--color-dark-green); /* Dark green for the links */
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#social-media ul li a:hover {
  background-color: var(--color-soft-golden);
  color: var(--color-destin-sand);
  box-shadow: var(--shadow-strong);
}

#copyright {
  text-align: center;
  margin-bottom: 20px;
}


/* Styles for the modal */
.modal {
  display: none; /* Initially hidden */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  text-align: center;
}

.modal-buttons button {
  margin: 10px;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
}

.visible {
  display: block;
}