html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  color: #333;
  display: flex;
  flex-direction: column;
  background: url('cutting-hair.jpg') no-repeat center center fixed;
  background-size: cover;
  position: relative;
  min-height: 100%;
}

body::before {
  content: "";
  position: absolute; /* Change from 'fixed' */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

body {
  flex: 1;
}

main {
  flex: 1;
}

.header {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

.header h1 {
  margin: 0;
  font-size: 1.8rem;
}

nav {
  position: relative;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  background: #fff;
  height: 3px;
  width: 25px;
  margin: 4px 0;
  border-radius: 2px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.hero {
  background: url('barber-hero.jpg') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 5rem 2rem;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.75);
  margin: 1rem auto;
  max-width: 1000px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.gallery {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-item {
  position: relative;
  width: 300px;
  height: 300px; /* or whatever height you prefer */
}



.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: fill; /* ✅ This will stretch the image to fill the space, even if distorted */
  border-radius: 8px;
  display: block;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  text-align: center;
  padding: 0.5rem;
  border-radius: 0 0 8px 8px;
  font-size: 1rem;
}

.contact p {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

footer {
  text-align: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  margin-top: auto;
}

.booksy-link {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.booksy-link img {
  max-width: 120px;
  height: auto;
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
}

.booksy-link img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
    background: #000;
    margin-top: 1rem;
    padding: 1rem 0;
  }

  nav ul.active {
    display: flex;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .gallery-item {
    width: 90%;
  }

  .section {
    padding: 1rem;
  }

  .contact p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h2 {
    font-size: 1.5rem;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  .booksy-link img {
    max-width: 100px;
  }
}


.gallery-item {
  position: relative;
  width: 300px;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
  text-align: center;
  padding: 1rem;
  font-size: 1.2rem;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}


.social-icons {
  margin-top: 1rem;
}

.social-icons a {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #ccc;
}


.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.social-icons a svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  transition: transform 0.3s ease, fill 0.3s ease;
}

.social-icons a:hover svg {
  transform: scale(1.1);
  fill: #1da1f2; /* blue tint on hover */
}


.save-the-date {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.75);
  margin: 1rem auto;
  max-width: 1000px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.save-the-date h2 {
  font-size: 2.5rem;
  margin: 0;
  color: #333;
  font-weight: bold;
}

@media (max-width: 768px) {
  .save-the-date h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .save-the-date h2 {
    font-size: 1.5rem;
  }
}

.calendar {
  max-width: 100%;
  margin: 0 auto;
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 1rem;
  background-color: #fff;
  box-sizing: border-box;
}

.calendar .month {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #444;
}

.calendar .days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  font-size: 1rem;
  word-break: break-word;
}

.calendar .days span {
  padding: 10px 5px;
  border-radius: 5px;
  background-color: #eee;
  font-size: clamp(0.75rem, 2.5vw, 1rem);
}

.calendar .days .highlight {
  background-color: #ff6b6b;
  color: white;
  font-weight: bold;
}

.calendar .days .blank {
  background: none;
}

@media (max-width: 500px) {
  .calendar .days {
    gap: 3px;
  }

  .calendar .month {
    font-size: 1.2rem;
  }
}