@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Satisfy&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap");

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

body,
html {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevent horizontal scroll on smaller screens */
}

/*------------------------Scroll Bar-----------------------*/
::-webkit-scrollbar {
  width: 20px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #fde65e;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #fde02f;
}

/*========================Nav Bar=========================*/
.nav-bar {
  display: flex;
  flex-flow: row wrap;
  width: 100%;
  height: 90px;
  background-color: #fff;
  box-shadow: 3px 3px 10px lightslategray;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 1;
}

.logo {
  flex: 1;
  font-size: 40px;
  padding: 20px;
  margin-left: 50px;
  font-family: Satisfy;
}

ul.menu {
  flex: 1;
  display: flex;
  flex-flow: row wrap;
}

.menu li {
  flex: 1;
  list-style-type: none;
  font-size: 16px;
  font-family: "Barlow Condensed";
  text-align: center;
}

.menu li a {
  text-decoration: none;
  color: #000;
  text-transform: uppercase;
}

.menu li a:hover {
  color: midnightblue;
  text-decoration: underline;
}

/*=============================Banner=============================*/
.banner {
  background-image: url("images/banner_img.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 100vh;
  text-align: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner::before {
  content: "";
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.2);
}

.banner-text-item {
  position: absolute;
  width: 100%;
  text-align: center;
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
  align-items: center;
}

.banner-heading {
  flex: 1;
}

.banner-heading h1 {
  font-size: 100px;
  font-weight: normal;
  color: #fde02f;
  font-family: Satisfy;
}

.banner-text-item .form {
  flex: 1;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  width: 70%;
  padding: 1% 2%;
}

.banner-text-item input,
.banner-text-item .date,
.banner-text-item .book {
  padding: 15px;
  margin-right: 10px;
  font-size: 18px;
  font-family: Roboto;
  border-radius: 5px;
  outline: 0;
  border: none;
}

.banner-text-item input {
  width: 50%;
  flex: 2;
}

.banner-text-item .date {
  width: 20%;
  flex: 1;
}

.banner-text-item .book {
  width: 20%;
  flex: 1;
  text-decoration: none;
  color: #000;
  text-transform: uppercase;
  padding: 15px;
  cursor: pointer;
  background-color: #fde02f;
  font-size: 16px;
  font-weight: normal;
  font-family: "Barlow Condensed";
}

/*===========================Services===========================*/
.services {
  display: flex;
  flex-flow: row;
  align-items: center;
  justify-content: center;
}

.service-item {
  flex: 1;
  padding: 50px 10px;
  border: lightcyan solid 1px;
  text-align: center;
  margin: 180px 50px;
  transition: all 1s;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
}

.service-item:hover {
  box-shadow: 3px 3px 20px lightsteelblue;
}

.service-item h2 {
  font-family: Barlow Condensed;
  font-size: 18px;
  width: 120px;
  color: #001f38;
  flex: 1;
}

.service-item img {
  width: 60px;
  height: 60px;
  flex: 1;
}

/*=============================Places===============================*/
.places-text {
  text-align: center;
  margin-bottom: 50px;
}

.places-text small {
  font-family: Roboto;
  color: #ffc342;
  font-size: 15px;
  font-weight: bolder;
}

.places-text h2 {
  font-family: Barlow Condensed;
  font-size: 55px;
  color: #191d34;
  letter-spacing: 1px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-gap: 30px;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: 0 20px; /* Add padding to prevent cards from touching edges */
}

.card {
  border: 1px solid lightgray;
  box-shadow: 2px 2px 6px 0 rgba(0, 0, 0, 0.3);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  width: 100%; /* Make cards take full width of their grid column */
  max-width: 350px; /* Limit max width for larger screens */
  height: auto;
}

.card img {
  max-width: 100%;
  height: 300px;
  border-radius: 8px;
  cursor: pointer;
  object-fit: cover; /* Ensure images cover the area without distortion */
}

.cards .text {
  padding: 20px;
  font-family: Barlow Condensed;
  line-height: 50px;
}

.cards .card-box {
  display: flex;
  flex-flow: row;
  background-color: #fde02f;
  font-size: 18px;
  font-family: Roboto;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cards .time {
  flex: 1;
}

.cards .location {
  flex: 2;
}

.cards .cost {
  color: #4cafad;
  font-size: 20px;
}

/*------------Zoom in Photos--------------*/
.zoom-img {
  float: left;
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.zoom-img .img-card {
  position: absolute;
  overflow: hidden;
  top: 13px;
  left: 16px;
  width: calc(100% - 32px); /* Adjust to fit within card padding */
  height: calc(100% - 26px); /* Adjust to fit within card padding */
}

.img-card img {
  -webkit-transition: 0.8s ease;
  transition: 0.8s ease;
}

.card:hover .zoom-img img {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

/*=========================About Us=========================*/
.about {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  padding: 150px;
}

.about-img {
  flex: 1;
  text-align: center; /* Center image on smaller screens */
}

.about-img img {
  width: 500px;
  height: 700px;
  box-shadow: 2px 2px 6px 0 rgba(0, 0, 0, 0.3);
  max-width: 100%; /* Ensure image doesn't overflow */
  height: auto; /* Maintain aspect ratio */
}

.about-text {
  flex: 1;
  display: flex;
  flex-flow: column wrap;
  padding: 0 20px; /* Add padding for text on smaller screens */
}

.about-text small,
.about-text p,
.about-text input,
.about-text a {
  flex: 1;
  font-family: Roboto;
}

.about-text small {
  color: #ffc342;
  font-size: 18px;
}

.about-text h2 {
  flex: 1;
  font-family: Barlow Condensed;
  font-size: 60px;
  color: #191d34;
  width: 450px;
  max-width: 100%; /* Ensure heading doesn't overflow */
}

.about-text label {
  padding-bottom: 10px;
  color: #506172;
  font-weight: bolder;
  font-family: Roboto;
  letter-spacing: 1px;
}

.about-text p {
  width: 500px;
  max-width: 100%; /* Ensure paragraph doesn't overflow */
  line-height: 30px;
  color: #506172;
  font-weight: bolder;
  padding: 50px 0;
}

.about-text a {
  background-color: #fff;
  border: 2px solid #014b85;
  text-decoration: none;
  border-radius: 5px;
  width: 180px;
  padding: 20px;
  text-align: center;
  margin-top: 50px;
  color: #014b85;
  font-weight: bolder;
  font-size: 14px;
  display: inline-block; /* Allow width to be applied */
}

.about-text a:hover {
  background-color: #014b85;
  color: #fff;
}

/*===============Footer===================*/
.footer {
  background-image: url("https://res.cloudinary.com/dxssqb6l8/image/upload/v1605293781/pine-tree_mq2sgp.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 670px;
  position: relative;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
}

.footer::before {
  position: absolute;
  content: "";
  display: block;
  background-color: rgba(0, 0, 36, 0.8);
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.footer .links {
  position: relative;
  color: #fff;
  flex: 1;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  padding: 20px; /* Add padding for spacing */
}

.links ul {
  list-style-type: none;
  padding: 0; /* Remove default padding */
}

.links h3 {
  font-family: Barlow Condensed;
  font-weight: normal;
  font-size: 23px;
  margin-bottom: 15px;
}

.links li {
  font-family: Roboto;
  cursor: pointer;
  padding: 15px 0;
}

.links li:hover {
  color: #ffa801;
}

/*==========================Responsive=============================*/

/* Large Laptops/Desktops (1414px and above) - Base styles are mostly for this */
@media all and (min-width: 1414px) {
  .banner-text-item .form input {
    width: 40%;
  }

  .banner-text-item .form .date {
    width: 30%;
  }

  .banner-text-item .form .book {
    width: 20%;
    font-size: 14px;
  }
}

/* Laptops/Tablets (max-width: 1172px) */
@media all and (max-width: 1172px) {
  .banner-text-item .form {
    flex-flow: column;
    width: 80%;
    background-color: transparent; /* Make form background transparent */
  }

  .banner-text-item .form input,
  .banner-text-item .form .date,
  .banner-text-item .form .book {
    width: 80%; /* Make inputs wider */
    margin-right: 0;
    margin-bottom: 10px; /* Add space between stacked inputs */
    font-size: 16px;
  }

  .banner-heading h1 {
    font-size: 60px;
  }

  .services .service-item {
    margin: 15px 20px; /* Adjust margin for better spacing */
  }

  .about {
    padding: 80px 20px; /* Adjust padding */
  }

  .about-img img {
    width: 400px; /* Adjust image size */
    height: 400px;
  }

  .about-text h2 {
    font-size: 45px; /* Adjust heading size */
    width: auto; /* Allow width to adjust */
  }

  .about-text p {
    width: auto; /* Allow paragraph width to adjust */
    padding: 30px 0;
  }
}

/* Tablets (max-width: 942px) */
@media all and (max-width: 942px) {
  .nav-bar {
    flex-flow: column;
    height: auto; /* Allow height to adjust */
    position: static; /* Remove sticky position */
    padding-bottom: 10px;
  }

  .logo {
    margin: 10px auto;
    font-size: 30px;
    margin-left: 0; /* Center logo */
  }

  .nav-bar ul {
    display: none; /* Hide menu for smaller screens, can be toggled with JS */
  }

  .services {
    flex-flow: column;
    flex-flow: wrap;
    margin-top: 50px; /* Adjust top margin */
  }

  .service-item {
    margin: 20px auto; /* Center service items and add vertical space */
    width: 80%; /* Make service items wider */
    max-width: 400px; /* Limit max width */
    padding: 30px 10px;
  }

  .places-text {
    margin-top: 50px; /* Adjust margin */
  }

  .cards {
    grid-template-columns: repeat(2, 1fr); /* Two cards per row */
    grid-gap: 20px;
  }

  .card {
    max-width: 100%; /* Allow cards to take full column width */
  }

  .about {
    flex-flow: column; /* Stack about content vertically */
    padding: 50px 20px;
  }

  .about-img {
    margin-bottom: 30px; /* Space between image and text */
  }

  .about-text {
    text-align: center; /* Center text content */
    align-items: center; /* Center items within flex column */
  }

  .about-text h2 {
    font-size: 35px; /* Smaller heading */
  }

  .footer {
    flex-flow: column; /* Stack footer links vertically */
    height: auto; /* Allow height to adjust */
    padding: 50px 20px;
  }

  .footer .links {
    margin-bottom: 30px; /* Space between link columns */
  }
}

/* Smaller Tablets / Large Mobiles (max-width: 768px) */
@media all and (max-width: 768px) {
  .banner-heading h1 {
    font-size: 40px; /* Even smaller heading for mobile */
  }

  .banner-text-item .form input,
  .banner-text-item .form .date,
  .banner-text-item .form .book {
    width: 90%; /* Make inputs almost full width */
    font-size: 14px;
  }

  .places-text h2 {
    font-size: 40px;
  }

  .cards {
    grid-template-columns: 1fr; /* One card per row */
  }

  .card img {
    height: 250px; /* Adjust image height */
  }

  .zoom-img {
    height: 280px; /* Adjust zoom container height */
  }

  .about-img img {
    width: 300px; /* Smaller image */
    height: 300px;
  }

  .about-text h2 {
    font-size: 30px; /* Smaller heading */
  }

  .about-text p {
    padding: 20px 0;
  }

  .about-text a {
    margin-top: 30px;
  }
}

/* Mobile Devices (max-width: 480px) */
@media all and (max-width: 480px) {
  .banner-heading h1 {
    font-size: 30px; /* Smallest heading for very small screens */
  }

  .banner-text-item .form {
    width: 95%; /* Almost full width for form */
    padding: 3% 2%;
  }

  .banner-text-item input,
  .banner-text-item .date,
  .banner-text-item .book {
    font-size: 12px; /* Smaller input fields */
    padding: 12px;
  }

  .service-item {
    width: 90%; /* Wider service items */
    margin: 15px auto;
  }

  .places-text h2 {
    font-size: 30px;
  }

  .cards .text {
    padding: 15px;
    line-height: 40px;
  }

  .cards .card-box {
    font-size: 16px;
  }

  .cards .cost {
    font-size: 18px;
  }

  .about {
    padding: 30px 15px;
  }

  .about-text small {
    font-size: 16px;
  }

  .about-text h2 {
    font-size: 25px;
  }

  .about-text p {
    font-size: 14px;
    line-height: 25px;
    padding: 15px 0;
  }

  .about-text a {
    width: 150px;
    padding: 15px;
    font-size: 12px;
  }

  .footer .links h3 {
    font-size: 20px;
  }

  .footer .links li {
    font-size: 14px;
    padding: 10px 0;
  }
}
