/* Dropdown Menu Styling */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background-color: #fafafa;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: #406343;
  color: white;
  text-align: center;
  padding: 1.5rem 0;
}

header h1 {
  margin: 0;
  font-family: 'Imperial Script', cursive;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(2.5rem, 8vw, 80px); /* scales between mobile and desktop */
}

header p {
  font-style: italic;
  margin-top: 0.25rem;
}

h2 {
  color: #2e482f;
}

footer {
  background-color: #2e482f;
  color: white;
  text-align: center;
  padding: 1rem 0;
  margin-top: auto;
  width: 100%;
}

/* NAVIGATION BAR */
nav {
  background-color: #2e482f;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

nav a,
.dropbtn {
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  display: inline-block;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
  font-family: inherit;
}

nav a:hover,
.dropbtn:hover {
  background-color: #355837;
}

/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 100;
  border-radius: 8px;
  overflow: hidden;
}

/* Dropdown links */
.dropdown-content a {
  color: #2e482f;
  padding: 0.75rem 1rem;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s;
}

.dropdown-content a:hover {
  background-color: #e7eee7;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

main {
  max-width: 1050px;
  margin: 2rem auto;
  padding: 0 1rem;
  flex-grow: 1;
}

/* PHOTO GALLERY */
.photo-gallery {
  margin-top: 3rem;
  text-align: center;
}

.photo-gallery h2 {
  color: #2e482f;
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeIn 0.75s forwards;
  animation-delay: 0.1s;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.gallery-grid figure {
  margin: 0;
}

figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
}

.brochure_grid img {
  margin-right: 10px;
  width: 100%;
  max-width: 500px;
  height: auto;
}

input[type="text"],
textarea {
  margin-right: 10px;
  width: 100%;
  max-width: 350px;
  box-sizing: border-box;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================= */
/* RESPONSIVE STYLING FOR MOBILE */
/* ============================= */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: stretch;
  }

  nav a,
  .dropbtn {
    padding: 0.75rem 1rem;
    text-align: center;
    width: 100%;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    background-color: #2e482f;
    border-radius: 0;
  }

  .dropdown-content a {
    color: white;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }

  header h1 {
    font-size: clamp(2rem, 6vw, 60px);
  }

  .gallery-grid img {
    height: 120px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: clamp(1.8rem, 8vw, 48px);
  }

  main {
    margin: 1rem auto;
    padding: 0 0.5rem;
  }

  .gallery-grid img {
    height: 100px;
  }
}
