/* Reset & base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f5f6f7; 
  color: #1f2228; 
  margin: 0;
  overflow-x: hidden;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.logo a {
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  color: #1f2228;
  text-align: center;
  flex: 1; /* center logo */
}

.hamburger {
  display: none;
}

/* Fixed Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px; /* fixed nav height */
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 0 1rem;
  position: relative;
}

/* Navigation links */
nav a {
  margin: 0 2rem;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: #000;
}

nav a:hover {
  opacity: 0.55;
}

nav a.active {
  font-weight: 600;
}

.nav-spacer {
  height: 80px; /* equal to nav height */
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #1f2228;
  font-weight: 500;
}

/* Content wrapper */
.content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  padding-top: 140px; /* NAV HEIGHT + 20px buffer */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-align: left;
}

.content h1 {
  font-size: clamp(28px, 4vw, 48px);
}

.content h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.content h4 {
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.content h4 + p {
  margin-bottom: 0.3rem;
}

.content p + p {
  margin-bottom: 0.8rem;
}

.content p {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .content {
    padding: 140px 15px 40px;
  }

  .content {
    padding: 120px 10px 30px; /* smaller padding */
  }

  .content h1 {
    font-size: clamp(24px, 5vw, 32px);
  }

  .content p {
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.4;
  }

  .logo {
    position: relative;   /* remove absolute to avoid covering hamburger */
    text-align: center;
    flex: 1;
    z-index: 1001;
  }

  nav a {
    margin: 0 1rem;         /* smaller spacing between links */
    font-size: 14px;        /* shrink text */
    letter-spacing: 0.05em;  /* tighten letters */
  }

  nav {
    height: 60px;            /* shorter navbar */
    padding: 0 10px;         /* add a little side padding */
  }

  .nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* ensures dropdown can be below */
  }

  .nav-spacer {
    height: 60px;            /* match new navbar height */
  }

  .hero-image-container {
    width: 100%;  /* full screen width */
    margin: 1rem auto;
  }

  .hero-image {
    width: 100%;
    height: auto;
  }

  .hero p {
    font-size: 14px;
    padding: 0.5rem;
  }
  .nav-links {
    display: none !important; /* hidden on load */
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1000;
  }

  .nav-links.open {
    display: flex !important; /* ⚠️ ensure it overrides anything else */
  }

  .nav-links a {
    margin: 0.5rem 0;
    font-size: 16px;
    text-align: center;
  }

  .hamburger {
    display: block !important;
    font-size: 28px;
    color: #1f2228;  /* dark color so visible */
    position: relative; 
    z-index: 1002;   /* above logo & navbar links */
    cursor: pointer;
  }
}

/* Base navbar styles (keep your desktop styles as is) */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* Hamburger menu - hidden on desktop */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #1f2228;
  position:relative;
}


/* Headings */
h1, h2{
  scroll-margin-top: 100px;
  margin-bottom: 1rem;
  color: #1f2228; /* solid text color, no background */
  letter-spacing: 0.08em;
  font-size: clamp(28px, 4vw, 48px);
}


/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero p {
  padding: 1rem;
  border-radius: 5px;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-image {
  width: 100%;
  height: auto;             /* maintains aspect ratio */
  display: block;
  object-fit: cover;        /* crops if needed, keeps responsive */
}

.hero-image-container {
  width: 90%;               /* scales with screen width */
  max-width: 1200px;        /* optional max width */
  margin: 2rem auto;        /* spacing above and below */
  overflow: hidden;
  border-radius: 8px;       /* optional rounded corners */
}

/* About Text Overlay */
.about-text {
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  max-width: 700px;
  background: rgba(0,0,0,0.5);
  padding: 2rem;
  border-radius: 10px;
  transition: transform 0.2s ease-out;
  will-change: transform;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
h3{
  margin-top: 1rem;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  gap: 20px;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Gallery Item */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3; /* keeps uniform height */
  cursor: pointer;
}

.gallery-heading {
  text-align: center;
  margin-bottom: 2rem;
  color: #1f2228;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* crops images to fit container */
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Overlay text for hover on specific image */
.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 0.5rem;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* Responsive Gallery Columns */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 901px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Modal Background */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.85);
  display: none;                /* Only this one */
  justify-content: center;
  align-items: flex-start;
  padding: 120px 2rem 3rem;
  z-index: 10000;               /* Higher than nav */
  overflow-y: auto;               
}

.modal-content {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 900px;
  overflow-y: auto;
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
}

.modal-text {
  text-align: left;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
  color: #1f2228;
}

.modal-text p {
  margin-bottom: 1rem;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

.close-modal:hover {
  opacity: 0.6;
}

.modal-title {
  text-align: left;
  font-size: clamp(20px, 2.5vw, 28px);
  margin-bottom: 1rem;
  font-weight: 500;
}

/* Carousel */
.carousel {
  position: relative;
  width: 90%;
  max-width: 720px;
  aspect-ratio: 16/10;
  margin: 4rem auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.carousel-image.active {
  opacity: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(245,246,247,0.9);
  border: none;
  font-size: 1.5rem;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  z-index: 10;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-btn:hover { background: rgba(255,255,255,1); }

/*Contact*/

.contact-page {
  text-align: left;
  align-items: center; /* centers flex children horizontally */
  padding: 140px;
}