/* Basic reset and typography */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f7f7f7;
}

/* Hero section */
/*
 * Hero section
 *
 * Update the hero background to feature an iconic photo from Hutto, Texas.
 * The image shows the town water tower with "HUTTO" painted on it, which
 * conveys a strong local identity. The picture is licensed under
 * Creative Commons Attribution‑ShareAlike 3.0. See the site for details.
 */
.hero {
  position: relative;
  height: 60vh;
  /* Use the Hutto water tower image as the background */
  background: url('assets/hutto_tower.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

/* Semi-transparent overlay for legibility */
.overlay {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px 40px;
  border-radius: 10px;
}

.hero h1 {
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: 1px;
}

.hero p {
  margin: 5px 0;
  font-size: 1.1rem;
}

/* Buttons and links */
.cta-button {
  display: inline-block;
  background-color: #f57c00;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover,
.cta-button:focus {
  background-color: #ef6c00;
}

.cta-link {
  color: #ffecb3;
  text-decoration: underline;
  font-weight: bold;
}

.cta-link:hover,
.cta-link:focus {
  color: #fff3e0;
}

/* Sections */
section {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: -40px;
  z-index: 10;
  position: relative;
}

section + section {
  margin-top: 20px;
}

h2 {
  margin-top: 0;
  color: #2e7d32;
}

ul {
  list-style-type: disc;
  padding-left: 20px;
}

/* Footer */
footer {
  margin-top: 40px;
  background-color: #2e7d32;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* =====================
 * Gallery styles
 *
 * This section defines styles for the gallery that displays photos
 * downloaded from the Nextdoor profile. A responsive grid layout
 * ensures images scale nicely on different screen sizes.
 */
.gallery {
  padding: 40px 20px;
  max-width: 800px;
  margin: 20px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery h2 {
  color: #2e7d32;
  margin-top: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}