/* Hero Section */
.hero {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: auto;
  height: auto;
  position: relative;
  overflow: hidden;
  background-color: var(--background-dark);
  text-align: center;
  padding: 0;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 80vh;
  margin: 0 auto;
  height: auto;
  background-image: url("../assets/images/hero-background.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.99;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 1; /* Keep the gradient under the content */
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2; /* Ensure the container is above ::after */
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.title-block {
  display: flex;
  flex-direction: row;
  align-items: center; /* or center if you prefer */
  gap: 5.5rem; /* optional spacing between h1 and tagline */
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ensures the paragraph stays at the bottom */
  align-items: center;
  flex-grow: 1;
  padding: 4rem 2rem;
  z-index: 2; /* Ensure it's above the gradient overlay */
  height: 100%;
  position: relative; /* Added for absolute positioning of paragraph */
}

.hero h1 {
  font-size: 6rem;
  margin-bottom: 10px;
  color: var(--primary-color);
  line-height: 1.1;
}

.caveat-text {
  font-family: "Caveat", cursive;
  font-weight: 700;
}

.tagline {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 30px;
  color: var(--text-color);
}

.hero-content > p {
  color: #000; /* black text for contrast */
  position: absolute; /* Position absolutely within hero-content */

  left: 0;
  right: 0;
  margin: 0 auto; /* Center horizontally */
  font-weight: 450;
  font-size: 1.4rem;
  margin-top: 470px;
  line-height: 1.1; /* Tighter line height for fewer lines */
  padding: 0 20px; /* Add padding for mobile */
}

.hero .btn-primary {
  font-size: 1.1rem;
  padding: 12px 30px;
}

.tour-btn {
  margin-top: 20px;
  margin-bottom: 30px;
  font-size: 1.2rem;
  padding: 15px 30px;
  z-index: 2;
  margin-left: 80px;
}

/* About Section */
.about-section {
  padding: 60px 0;
  background-color: var(--background-color);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../assets/images/about-background.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: 0;
}

.about-section,
h1 {
  text-align: center;
  font-size: 3.8rem;
  position: relative;
  z-index: 1;
  opacity: 9rem;
}

.about-description {
  margin: 0 auto;
  text-align: center;
  font-size: 1.6rem;
  line-height: 1.8;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.red-text {
  font-family: "Caveat", cursive;
  font-weight: 700; /* optional if you want it bold */
  color: red; /* Red color */
}

/* Locations Section */
.locations-section {
  padding: 80px 0;
  padding-left: 20px;
  padding-right: 20px;
  background-color: var(--background-dark);
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 100px;
}

.location-card {
  background-color: var(--background-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.location-card h3 {
  color: var(--primary-color);
  margin: 20px;
  font-size: 1.5rem;
  text-align: center;
}

.location-image {
  height: 250px;
  overflow: hidden;
}

.location-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.location-content p {
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.location-content .btn-secondary {
  align-self: flex-start;
}

.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Toys and Equipment Section */
.toys-equipment {
  padding: 80px 0;
  background-color: var(--background-color);
}

.toys-equipment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.toys-equipment-text h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.toys-equipment-text p {
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 1.8rem;
}

.toys-equipment-right {
  display: flex;
  flex-direction: column;
}

.facility-images {
  margin-bottom: 20px;
}

.facility-image-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.facility-image-row img {
  width: calc(50% - 7.5px);
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: 150px;
  object-fit: cover;
}

.facility-note-container p {
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 1.3rem;
  color: white;
}

.facility-note-container .note {
  font-size: 1.3rem;
  color: var(--text-light);
  font-style: italic;
  color: red;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form-container {
  background-color: var(--background-light);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background-color: var(--background-dark);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-color);
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form-container .btn-primary {
  width: 100%;
  padding: 12px;
  font-size: 1.1rem;
}

.legal-notice {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  line-height: 1.4;
}

/* Footer */
.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 10px;
}

/* Thank You Section */
.thank-you-section {
  padding: 40px 0;
  background-color: var(--background-color);
  text-align: center;
}

.thank-you-message {
  font-size: 1.2rem;
  color: yellow;
  font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .locations-grid {
    grid-template-columns: 1fr 1fr;
  }

  .toys-equipment-grid {
    grid-template-columns: 1fr;
  }

  .toys-equipment-left {
    order: 1;
  }

  .toys-equipment-text {
    order: 2;
  }

  .location-card {
    flex-direction: column;
  }

  .location-image {
    min-height: 200px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    display: none;
  }
}

@media (max-width: 768px) {
  .locations-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .tagline {
    font-size: 2.5rem;
  }

  .title-block {
    flex-direction: column;
    gap: 1rem;
  }

  .hero {
    background-size: 0%; /* Ensure the background image scales to fit */
    background-position: top; /* Keeps the image aligned at the top */
    width: 100%;
    min-height: auto; /* Adjust this value as needed */
    height: auto;  
  }

  .about-description {
    font-size: 1.2rem;
    text-align: center;
  }
  .about-section h1 {
    font-size: 2rem;
    text-align: center;
  }

  .facility-note-container p {
    font-size: 1.2rem;
    text-align: center;
    color: white;
  }

  .facility-note-container .note {
    font-size: 1.2rem;
  }

  .toys-equipment-text h1 {
    font-size: 2rem;
    text-align: center;
  }

  .toys-equipment-text p {
    font-size: 1.2rem;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Push content to the bottom */
    padding: 4rem 2rem;
    height: 100%;
  }

  .hero-content > p {
    display: none;
  }

  .tour-btn {
    font-size: 1rem;
    padding: 12px 20px;
    margin-left: 100px;
  }
}

.facility-image-row {
  flex-direction: column;
}

.facility-image-row img {
  width: 100%;
  margin-bottom: 15px;
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
 .hero {
    background-size: 0%; /* Ensure the background image scales to fit */
    background-position: top; /* Keeps the image aligned at the top */
    width: 100%;
    min-height: auto; /* Adjust this value as needed */
    height: auto;  
  }

  .tagline {
    font-size: 2rem;
  }

  .hero::before {
    background-position: center; /* Further adjust for very small screens */
  }

  .hero-content > p {
    bottom: 30px; /* Adjust for even smaller screens */
    font-size: 1.2rem;
  }
}
