/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Typography & Layout */
body {
  font-family: system-ui, sans-serif;
  color: #222;
  line-height: 1.6;
}

header {
  background: #f4f4f4;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-img {
  width: 33vw;
  max-width: 100%;
  aspect-ratio: auto; /* Adjust to your desired ratio */
  height: auto;
  display: block;
  object-fit: cover;
  /* Center the image */
  margin-left: 30.5%;
  margin-right: auto;
}
nav {
  display: flex;
  justify-content: center; /* or space-between / space-around / space-evenly */
  gap: 40px; /* this controls spacing between links */
  padding: 20px;
  background: #f5f5f5;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.hero {
  text-align: center;
  padding: 5rem 1rem;
}

button {
  background-color: #0078d7;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
}

button:hover {
  background-color: #005fa3;
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  background: #f9f9f9;
}

/* --- Navigation Grid --- */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  max-width: 1100px;
  margin: 3rem auto;
  padding: 1 1rem;
}

.nav-item {
  display: block;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-item img {
  width: 100%;
  height: 90%;
  object-fit: cover;
  display: block;
}

.nav-caption {
  padding: 1rem;
  font-weight: 500;
  font-size: 1.1rem;
}

@media (max-width: 700px) {
  .nav-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Gallery Headings --- */
/* --- Gallery Container --- */
.gallery {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem;
}

/* --- Responsive Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* --- Image Styling --- */
.gallery-grid img {
  width: 100%;
  height: 200px;              /* keep consistent height */
  object-fit: cover;          /* crop instead of stretch */
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* --- Video Styling --- */
.video-thumb {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-thumb video {
  width: 100%;
  height: 200px;              /* same height as images */
  object-fit: cover;
  display: block;
}

.video-thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* --- Headings --- */
.gallery-heading {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  color: #333;
  font-weight: 600;
}

/* --- Mobile Adjustment --- */
@media (max-width: 600px) {
  .gallery-grid img,
  .video-thumb video {
    height: 160px;
  }
}


/* --- Video Thumbnails --- */
.video-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Dynamic Video Styling --- */
.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-thumb video:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}


.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  padding: 0.5rem 1rem;
  pointer-events: none;
}

.video-thumb a {
  display: block;
  position: relative;
}

.video-thumb:hover .play-overlay {
  background: rgba(0, 0, 0, 0.6);
}

/* --- Lightbox Fullscreen Viewer --- */
.lightbox {
  display: none;                /* hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 0.5rem;
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.lightbox .close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lightbox .close:hover {
  color: #ccc;
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


/* --- Contact Page --- */
.contact-section {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-heading {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-form label {
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0078d7;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 120, 215, 0.2);
}

.contact-form button {
  align-self: flex-start;
}

.contact-info {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
}

.contact-info h3 {
  margin-bottom: 1rem;
  color: #333;
}

.contact-info a {
  color: #0078d7;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* --- Responsive Contact Layout --- */
@media (min-width: 800px) {
  .contact-section {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .contact-container,
  .contact-info {
    flex: 1;
  }

  .contact-info {
    margin-left: 2rem;
  }
}
/* --- Contact Form Functional Enhancements --- */

/* Popup Styling */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: #fff;
  padding: 2rem 3rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 400px;
}

.popup-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: #333;
}

#popup-close {
  background-color: #0078d7;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
}

#popup-close:hover {
  background-color: #005fa3;
}
.hero-bg {
  background-image: url('assets/img/contact.png'); /* your background image */
  background-size: cover;      /* fill the section completely */
  background-position: center; /* center the image */
  background-repeat: no-repeat;
  position: relative;
  min-height: 400px;           /* adjust height as needed */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5rem 1rem;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  /* HunterGreen: 2C5F34 */
  background: rgba(44, 95, 52, 1); /* dark overlay for readability */
  z-index: 1;
}

.hero-bg .hero-content {
  position: relative;
  z-index: 2; /* ensures text is above overlay */
  color: #fff; /* text color contrasting the background */
}
