* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  background: #ffcc00;
  color: #000;
}

/* ✅ Gallery page background override */
body.gallery-page {
  background: #000;
  color: #000;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #ffcc00;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header a {
  text-decoration: none;
  color: black;
}

.logo {
  font-family: 'Helvetica Neue Condensed light', sans-serif;
  font-size: 1rem;
}

.logo2 {
  font-family: 'Helvetica Neue Condensed Bold', sans-serif;
  font-size: 6rem;
  text-align: center;
  width: 90%;
  margin: 0 auto;
}

.navbar {
  display: flex;
  gap: 1.5rem;
}

.navbar a {
  text-decoration: none;
  color: black;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: black;
}

.intro {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  gap: 20px;
}

.hero-img {
  flex: 1;
  max-width: 100%;
  height: auto;
}

.intro-text {
  flex: 1;
  min-width: 300px;
  padding: 0 15px; /* ✅ Prevents text from touching edges */
}

.intro-text h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.intro-text p {
  font-weight: lighter;
}

.button {
  display: inline-block;
  background: #ffcc00;
  color: black;
  border: 1px solid black;
  border-radius: 6px;
  padding: 10px 20px;
  text-decoration: none;
  margin-top: 10px;
  max-width: 160px;
}

.services {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  gap: 20px;
  align-items: center;
}

.text-left {
  flex: 1;
  padding: 0 15px; /* ✅ Add horizontal padding */
}

.text-left h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.text-left p {
  font-weight: lighter;
}

.block-img {
  flex: 1;
  max-width: 100%;
  height: auto;
}

.track {
  padding: 20px;
}

.track-text {
  margin-bottom: 20px;
  padding: 0 15px; /* ✅ Add spacing on mobile */
}

.track-text h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.track-text p {
  font-weight: lighter;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.gallery-grid img {
  width: 100%;
  height: auto;
}

.footer {
  background: #222;
  color: #ffcc00;
  text-align: center;
  padding: 30px 10px;
}

.footer-logo {
  font-family: 'Helvetica Neue Condensed Bold', sans-serif;
  font-size: 6rem;
  margin-top: 20px;
}

/* Hamburger icon animation */
#nav-icon3 {
  width: 30px;
  height: 25px;
  position: relative;
  cursor: pointer;
  display: none;
  z-index: 1001;
}

#nav-icon3 span {
  display: block;
  position: absolute;
  height: 4px;
  width: 100%;
  background: #000;
  opacity: 1;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
  border-radius: 2px;
}

#nav-icon3 span:nth-child(1) { top: 0px; }
#nav-icon3 span:nth-child(2), #nav-icon3 span:nth-child(3) { top: 10px; }
#nav-icon3 span:nth-child(4) { top: 20px; }

#nav-icon3.open span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}

#nav-icon3.open span:nth-child(2) {
  opacity: 0;
}

#nav-icon3.open span:nth-child(3) {
  opacity: 0;
}

#nav-icon3.open span:nth-child(4) {
  top: 10px;
  transform: rotate(-45deg);
}

/* Fullscreen Mobile Menu */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: white;
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: all 0.3s ease;
}

#mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

#mobile-menu ul li {
  margin: 20px 0;
}

#mobile-menu ul li a {
  font-size: 24px;
  color: black;
  text-decoration: none;
  font-weight: bold;
}

#mobile-menu.show {
  display: flex;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .navbar {
    display: none !important;
  }

  #nav-icon3 {
    display: block;
  }

  .intro, .services {
    flex-direction: column;
  }

  /* ✅ Ensure all text blocks have spacing */
  .intro-text,
  .text-left,
  .track-text,
  .package .text {
    padding: 0 15px;
  }

  .button {
    margin-left: 15px; /* Align button with text */
  }
}

#close-menu {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  font-size: 3rem;
  font-weight: bold;
  color: black;
  cursor: pointer;
}

/* Desktop layout: intro text on right of smaller hero image */
@media (min-width: 769px) {
  .intro {
    flex-direction: row;
    align-items: center;
  }

  .footer-logo {
    font-size: 13rem;
  }

  .hero-img {
    flex: 0 0 50%;
    max-width: 50%;
    height: auto;
  }

  .intro-text {
    flex: 1;
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .intro-text h2 {
    padding-bottom: 70%;
    font-size: 2.5rem;
    font-weight: bold;
    padding-right: 20px;
  }

  .intro-text p {
    padding-bottom: 13%;
    font-size: 2.5rem;
    font-weight: lighter;
    padding-right: 20px;
  }
}

@media (min-width: 769px) {
  .track {
    flex-direction: row;
    align-items: center;
  }

  .block-img {
    flex: 0 0 50%;
    max-width: 50%;
    height: auto;
  }

  .text-left {
    flex: 1;
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .text-left h2 {
    padding-bottom: 80%;
    font-size: 3rem;
    font-weight: bold;
    padding-right: 20px;
  }

  .text-left p {
    padding-bottom: 13%;
    font-size: 1.8rem;
    font-weight: lighter;
    padding-right: 20px;
  }
}

@media (min-width: 769px) {
  .track-text {
    max-width: 600px;
  }
  .track-info h3 {
    font-size: 3rem;
    font-weight: bold;
    padding-right: 20px;
  }

  .track-text p {
    padding-bottom: 13%;
    font-size: 1.8rem;
    font-weight: lighter;
    padding-right: 20px;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.gallery-grid img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ✅ Ensure large images don’t shrink */
@media (max-width: 768px) {
  .hero-img,
  .block-img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
  }
}

.package {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0;
  align-items: center;
}

.package .text {
  width: 100%;
  max-width: 700px;
  text-align: left;
  padding: 0 15px; /* ✅ Add spacing */
}
.package .text h2 {
  font-weight: bold;
  font-size: 2.5rem;
}
.package .text li {
  font-weight: lighter;
  padding-top: 20px;
  font-size: 1.5rem;
}
.package .image img {
  width: 100%;
  max-width: 700px;
  height: auto;
  object-fit: cover;
}

.package .button {
  margin-top: 10px;
}

@media (min-width: 769px) {
  .package {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin-left: 10px;
  }

  .package .text {
    flex: 1;
    padding-right: 20px;
  }

  .package .text h2 {
    font-size: 3.5rem;
  }

  .package .text li {
    font-size: 1.5rem;
  }

  .package .image {
    flex: 1;
    text-align: right;
  }

  .package .image img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .package .button {
    margin-top: 20px;
  }
}

.thin-line {
  border: none;
  border-top: 1px solid black;
  margin: 30px 0;
  width: 100%;
}

/* About Page Specific Styling */
body.about-page {
  background-color: #222;
  color: white;
}

body.about-page a {
  color: white;
}
body.about-page p {
  color: white;
  font-size: 1rem;
}

body.about-page .header {
  background-color: #222;
}

body.about-page .navbar a {
  color: white;
}

body.about-page .button {
  background-color: white;
  color: #222;
  border: 1px solid white;
}

body.about-page .footer {
  background-color: #222;
  color: #ffcc00;
}

body.about-page .footer p {
  background-color: #222;
  color: #ffcc00;
}

/* Prevent horizontal overflow on gallery page */
body.gallery-page {
  overflow-x: hidden;
}

/* Ensure grid never exceeds viewport width */
.gallery-grid {
  max-width: 100%;
  overflow-x: hidden;
}

/* Force images to stay inside grid cells */
.gallery-grid img {
  max-width: 100%;
  height: auto;
  display: block;
}
