body {
  font-family: Open Sans, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #efefff;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/*Navigation bar*/
.wrapper,
.top-wrapper,
.nav-wrapper {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-section {
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #d9e4fd;
  color: #000000;
  font-size: 0.98em;
}

.top-wrapper {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.empty-div {
  flex-grow: 1;
}

.contact-info {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px; /* Add some space between the buttons */
}

.contact-button {
  background-color: #aebbd8;
  color: #2c2a4e;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px; /* Optional: adds rounded corners */
  text-decoration: none; /* Remove underline from links */
}

.contact-button:hover {
  background-color: #5a7fbe;
}

.space {
  padding: 0px 20px;
}

nav {
  background-color: #efefff;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allow the nav items to wrap to the next line if needed */
  padding: 0 20px; /* Add padding to ensure spacing */
}

.logo {
  padding-left: 40px;
}

.logo img {
  height: 90px;
  margin-left: 30px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li {
  margin-right: 20px;
}

nav ul li:last-child {
  margin-right: 5px;
}

nav a {
  font-weight: bolder;
  color: #4c5457;
  text-decoration: none;
}

/* Hero section */
.hero {
  position: relative;
  width: 100vw; /* Full viewport width */
  left: 50%;
  right: 50%;
  margin-left: -50vw; /* Shift to the left by half the viewport width */
  margin-right: -50vw; /* Shift to the right by half the viewport width */
  margin-bottom: -40px;
  height: 740px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertically center the content */
  align-items: center;
  color: #e6e6e6;
  background-image: url("images/HeroWide.jpg"); /* Use your own image path */
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 0 20px; /* Add padding to ensure text doesn't touch the edges */
  box-sizing: border-box; /* Ensure padding is included in width calculations */
  overflow-x: hidden; /* Ensure no horizontal scrolling */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(
    0,
    0,
    0,
    0.336
  ); /* Adjust the color and opacity to darken the image */
  z-index: 0; /* Ensure the overlay is behind the content */
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0px;
  width: 100%;
  height: 100px;
  background: #efefff; /* Background color of the section below the hero image */
  border-top-left-radius: 700% 800px;
  border-top-right-radius: 700% 800px;
}

.hero h1,
.hero h2,
.hero p,
.hero button {
  position: relative;
  z-index: 1; /* Ensure the content is above the overlay */
  color: #efefff;
}

.hero h1 {
  font-family: "coming soon";
  font-size: 1.4rem;
  z-index: 1;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.75);
  margin-bottom: 10px;
}

.hero h2 {
  font-family: lexend;
  margin: 5px 0;
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.hero p {
  font-family: lexend;
  font-weight: 600;
  margin: 20px 0;
  font-size: 1.2rem;
}

.hero button {
  background-color: #328ea3;
  font-family: lexend;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 1.5rem;
  cursor: pointer;
  margin: 20px 0;
  border-radius: 5px; /* Optional: adds rounded corners */
  box-shadow: #3ba9c2 0px 0px 12px 2px; /* Optional: adds a shadow */
}

.hero button:hover {
  background-color: #567ebc;
  box-shadow: #567ebc 0px 0px 12px 2px; /* Optional: adds a shadow */
}

/* About us section */
#about {
  padding-top: 230px; /* Adjust the value as needed */
  margin-top: -230px; /* Same value as padding-top */
}

section {
  background-color: #efefff;
  padding: 40px;
  margin-bottom: 20px;
}

h1,
h2,
h3 {
  color: #5f5f70;
  margin-bottom: 10px;
}

button {
  background-color: #5a7fbe;
  font-family: lexend;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1.1rem;
  cursor: pointer;
  margin: 20px 0;
  border-radius: 5px; /* Optional: adds rounded corners */
}

button:hover {
  background-color: #8f8fd1;
}

h2 {
  color: #26262c;
  font-family: "coming soon";
  font-size: 1.2em;
}

p {
  font-family: lexend;
  font-size: 1em;
  color: #5f5f70;
}

.about-us-text h1 {
  margin-top: -10px;
  margin-bottom: 20px;
  padding-right: 90px;
}

.about-us-text h2 {
  padding-right: 100px;
}

.about-us-text p {
  text-align: left;
}

.about-us {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.about-us-text {
  flex: 1;
  margin-right: 20px;
  text-align: right;
}

.about-us-images {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px; /* Minimal gap between images */
  position: relative;
  margin-top: 100px;
}

.about-us-images img {
  width: 100%;
  max-width: 400px; /* Adjust the sizes as needed */
  height: auto;
  opacity: 0;
  border-radius: 20px; /* Optional: adds rounded corners */
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  position: absolute;
  left: 30px;
}

.about-us-images img:nth-child(1) {
  top: 0px;
  max-width: 400px; /* Size of the first image */
}

.about-us-images img:nth-child(2) {
  top: 220px; /* Adjust as needed to overlap with the first image */
  left: 400px;
  max-width: 325px; /* Size of the second image */
}

.about-us-images img:nth-child(3) {
  top: 360px; /* Adjust as needed to overlap with the second image */
  max-width: 270px; /* Size of the third image */
  left: 140px; /* Adjust to create staggered effect */
}

.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 1s ease-out, transform 1s ease-out !important;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  will-change: opacity, transform;
}

.about-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-bottom img {
  width: 100px;
  height: 100px;
  margin-top: 10px;
  border-radius: 50px; /* Optional: adds rounded corners */
}

.about-bottom a img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-bottom a:hover img {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.about-bottom button {
  margin-top: -10px;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 5px; /* Optional: adds rounded corners */
}

.tracy-rachel {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 30px;
  gap: 20px; /* Adjust the gap between the photos as needed */
}

.owner {
  flex: 1;
  max-width: 45%; /* Ensure the elements take up less than half the available width */
  text-align: center; /* Center-align the content within each owner div */
  background-color: #f8f8f8; /* Add a subtle background color */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.owner img {
  width: 100%;
  max-width: 150px; /* Adjust the size of the photos */
  height: auto;
  border-radius: 50%; /* Make the photos circular */
  margin-bottom: 15px;
}

.owner h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}

.owner p {
  margin: 0;
  font-size: 0.8rem;
  color: #666;
}

/* Location section */

.manager {
  margin-bottom: -15px;
}

.deputy {
  color: #1a1a1a;
}

.locations-container {
  width: 100vw;
  background-color: #d9e4fd;
  margin-left: calc(50% - 50vw);
  position: relative;
  box-shadow: 0px 0px 8px 12px #d9e4fd;
}

.locations {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  background-color: #d9e4fd;
}

.locations h2 {
  text-align: right;
  margin-left: 20px;
  color: #000000;
}

.location-info {
  text-align: left;
  padding: 20px;
}

.locations {
  text-align: center;
}

.locations h2 {
  text-align: left;
}

.location-container {
  display: flex;
  justify-content: space-between;
}

.location {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: calc(50% - 20px);
  margin: 10px;
  border: 1px solid #d9e4fd;
  padding: 20px;
  box-shadow: 0px 0px 20px #bac3db94;
  border-radius: 10px;
}

.location img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 10px auto; /* Center image horizontally within its container */
  display: block; /* Ensure it's treated as a block-level element */
}

.location p img {
  margin: 0;
  width: 20px;
  height: 20px;
}

.location-map {
  margin-top: 10px;
}

.location-map iframe {
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0px 0px 10px #ffffffbe;
}

.location-image {
  box-shadow: 0px 0px 10px #88888863;
}

.info-with-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.location-info p {
  display: flex;
  align-items: center; /* Ensure the icon and text are aligned vertically */
}

.info-with-button .contact-button {
  background-color: #84abee;
  font-family: lexend;
  color: #313131;
  border: none;
  padding: 10px 20px;
  font-size: 1.1rem;
  cursor: pointer;
  margin: 20px 0;
  border-radius: 5px;
}

.info-with-button .contact-button:hover {
  background-color: #4171c4;
  color: aliceblue;
}

footer {
  background-color: #333;
  color: #fff;
  padding: 10px 0;
  text-align: center;
  clear: both;
}

/* Ensure the map is responsive and fits within the container */
.location-map iframe {
  width: 100%; /* Set the width to 100% of the container */
  height: 300px; /* Adjust the height as needed */
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0px 0px 10px #ffffffbe;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
  .about-us-images {
    display: none; /* Hide the images on mobile view */
  }

  .about-us-text h1 {
    margin-top: 0;
    text-align: left;
  }

  .about-us-text h2 {
    text-align: left;
    margin-top: 40px;
  }

  .about-us-text {
    margin: 0;
  }

  .nav-wrapper {
    flex-direction: row; /* Ensure logo and burger menu are in a row */
    justify-content: space-between; /* Space the logo and burger menu apart */
    align-items: center; /* Align the items vertically */
    height: 49px;
    width: 100vw;
    padding: 0;
  }

  .logo {
    order: 1; /* Ensure the logo stays on the left */
  }

  .logo img {
    height: 50px; /* Shrink the logo for smaller screens */
    margin-left: -10px; /* Remove the margin */
    max-width: 100%; /* Ensure the logo doesn't exceed the container width */
  }

  nav ul {
    display: none; /* Hide the navigation links on small screens */
  }

  .top-section {
    height: 40px; /* Adjust the height for smaller screens */
    font-size: 0.9em; /* Adjust the font size */
  }

  .hero {
    height: 400px; /* Adjust the height of the hero section */
    background-position: center; /* Center the background image */
    display: flex; /* Flex layout for centering */
    flex-direction: column; /* Align items in a column */
    justify-content: center; /* Center items vertically */
    align-items: center; /* Center items horizontally */
    text-align: center; /* Center text */
    padding: 0 20px; /* Add some padding to avoid edge touch on small screens */
    box-sizing: border-box; /* Ensure padding is included in width calculations */
    overflow-x: hidden; /* Ensure no horizontal scrolling */
  }

  .hero h1 {
    font-size: 1rem; /* Adjust the font size */
  }

  .hero h2 {
    font-size: 1.8rem; /* Adjust the font size */
  }

  .hero p {
    font-size: 1rem; /* Adjust the font size */
  }

  .hero button {
    font-size: 1.2rem; /* Adjust the font size */
    padding: 8px 16px; /* Adjust the padding */
  }

  /* Ensure the map container doesn't cause horizontal scrolling */
  .location-container {
    flex-direction: column; /* Stack locations vertically on small screens */
    align-items: stretch; /* Ensure the containers stretch to fit the screen */
    overflow-x: hidden; /* Ensure no horizontal scrolling */
  }

  .location {
    width: 100vw; /* Make the location div take full width on small screens */
    margin: 10px 0; /* Adjust the margin for vertical stacking */
    box-sizing: border-box; /* Ensure padding is included in width calculations */
    padding: 0; /* Remove padding to prevent overflow */
  }

  .location-info {
    padding: 0; /* Remove padding to avoid overflow */
  }

  .location-map iframe {
    width: 100%; /* Ensure the map iframe is responsive */
    height: 300px; /* Adjust the height as needed */
    max-width: 100%; /* Ensure the iframe doesn't exceed the container width */
  }

  .location .contact-button {
    font-size: 0.9rem; /* Make the 'Book a Visit' buttons smaller */
    padding: 6px 12px; /* Adjust the padding to match the new size */
    margin: 0 auto; /* Center the button horizontally */
    display: block; /* Ensure it's treated as a block-level element */
  }

  /* Ensure Tracy and Rachel sections are side-by-side */
  .tracy-rachel {
    width: 100%;
    display: flex; /* Ensure the items are in a row */
    flex-direction: row; /* Align the items in a row */
    justify-content: space-between; /* Space them apart */
    gap: 10px; /* Add some gap between the sections */
  }

  .owner {
    flex: 1; /* Make each owner section take equal space */
    max-width: 48%; /* Make sure they fit side by side */
  }

  #about {
    padding: 0;
    padding-bottom: 20px;
    margin: 0;
  }
}

