/* general */
main {
  margin: 0 auto;
  padding-top: 9rem;
}

.us,
.features {
  height: 30rem;
}

.services,
.features {
  background-color: #5c80bc40;
}

.features,
.services,
.form-background {
  padding: 2rem;
}

.features-header,
.services-header {
  gap: var(--fs-xl);
}

h2 {
  margin-bottom: 2rem;
}

.us-about button,
.form-submit button,
.landing-header button {
  padding: var(--btn-height) var(--btn-width);
}

/* landing section*/
.landing-background {
  background: url(../assets/vector_01.svg) no-repeat;
  background-size: cover;
  height: 68rem;
  width: 100%;

  position: absolute;
  top: 0;
  left: 0;

  transform: rotateX(180deg);
  z-index: 1;
}

.landing-content {
  padding: var(--content-padding) 0;

  display: flex;
  gap: var(--fs-xxxl);

  position: relative;

  z-index: 2;
}

.landing-header {
  flex: 5;
}

.landing-header h1 {
  color: var(--primary-light);
  font-size: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  font-weight: var(--fw-semi);
}

.landing-header h1 strong {
}

.landing-header button {
  margin: 2rem 0;
}

.landing-info {
  color: var(--dark);
  font-style: italic;
  font-size: clamp(0.7rem, 0.9rem, 1rem);
  line-height: 1.6;
  padding: 1rem 0 2rem 0;
  text-align: end;

  align-items: end;
  justify-content: space-between;
  flex: 3;
}

.hero {
  background: url(../assets/landing.png) no-repeat center center;
  background-size: cover;
  border: solid 2px var(--light);
  border-radius: var(--box-radius);
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px,
    rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
  height: 40rem;
  width: 100%;

  position: relative;

  z-index: 2;
}

/* us section */
.us {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: space-between;
  align-items: center;
  gap: 0 4rem;
}

.us-grid,
.us-about {
  height: 100%;

  flex: 1;
}

.us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: var(--fs-base);
}

.us-grid span {
  border-radius: var(--box-radius);
  box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

.us-grid span:nth-child(1) {
  background: url(../assets/6.jpg) no-repeat center center;
  background-size: cover;
  grid-row: 1 / 5;
  grid-column: 1 / 3;
}

.us-grid span:nth-child(2) {
  background: url(../assets/7.jpg) no-repeat center center;
  background-size: cover;
  grid-row: 1 / 3;
  grid-column: 3 / 5;
}

.us-grid span:nth-child(3) {
  background: url(../assets/4.jpg) no-repeat center center;
  background-size: cover;
  grid-row: 3 / 4;
  grid-column: 3 / 5;
}

.us-about {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* features section */
.features {
  border-radius: var(--box-radius);

  position: relative;
}

.features-header {
  height: 100%;
  width: 40%;
}

.features-header h2 {
  margin-bottom: 2rem;
}

.features-carousel {
  max-width: calc(350px * 2 + 1rem);
  width: 100%;

  position: absolute;
  top: 50%;
  left: 50%;

  overflow: hidden;
  transform: translateY(-50%);
  touch-action: pan-x;
}

.features-carousel-inner {
  display: flex;
  gap: 1rem;

  transform: translateX(0);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.features-carousel-inner.grabbing {
  cursor: grabbing;
}

.off-square {
  background-color: var(--light);
  border-radius: var(--box-radius);
  box-shadow: rgba(0, 0, 0, 0.16) 0px 2px 2px 0px inset;
  height: 170px;
  min-width: 350px;
  padding: var(--content-padding);

  display: flex;
  justify-content: space-between;
  align-items: center;

  transition: opacity 0.3s ease;
}

.off-square p {
  font-size: var(--fs-large);
  font-weight: var(--fw-bold);
}

.off-square i {
  color: var(--primary-light);
  font-size: var(--fs-xl);
}

.off-square:not(.visible) {
  opacity: 0;
  pointer-events: none;
}

.navigation-dots {
  display: flex;
  gap: 1rem;

  position: absolute;
  bottom: 7rem;
  left: 76.5%;
}

.dot {
  background-color: var(--primary-light);
  border-radius: 50%;
  height: 8px;
  width: 8px;

  opacity: 0.3;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.dot.active {
  opacity: 1;
}

/* references section */
.slide {
  height: 15rem;
  width: 100%;

  display: flex;
  justify-content: space-evenly;
  align-items: center;

  position: relative;
}

.references-item {
  font-size: var(--fs-small);
  text-align: center;
  height: 100%;

  justify-content: center;
  align-items: center;
  flex: 1;
}

.references-item strong {
  font-size: clamp(0.7rem, 1rem, 1rem);
}

.references-item i {
  color: var(--primary-light);
  font-size: var(--fs-xxxl);
}

.references-item p {
  padding-top: var(--content-padding);
}

/* services section */
.services {
  height: auto;
}

.services-header {
  height: auto;
  margin-bottom: 2rem;
}

.services-header p {
  font-size: var(--fs-small);
}

.services-header p:nth-child(3) {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
}

.services-content {
  height: auto;

  justify-content: space-around;
}

.services-menu {
  background-color: var(--light);
  border: solid 2px var(--light);
  border-radius: var(--box-radius);
  box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;
  font-size: var(--fs-extra-small);
  max-width: 50rem;
  width: 100%;
  margin: 1.5rem auto;
  padding: 0.5rem;

  display: flex;
  justify-content: space-evenly;
  gap: 0.5rem;
  flex-wrap: nowrap;

  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.services-menu::-webkit-scrollbar {
  display: none;
}

.services-menu::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 10px;
}

.service-box-content h3 {
  color: var(--dark);
  padding: var(--content-padding) 0;
}

.menu-button {
  background-color: transparent;
  border: none;
  border-radius: var(--box-radius);
  color: var(--dark);
  font-size: var(--fs-extra-small);
  font-weight: var(--fw-semi);
  min-width: max-content;
  padding: 0.5rem 1rem;

  flex: 0 0 auto;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.menu-button:hover {
  color: var(--primary-light);
  cursor: pointer;
}

.menu-button.active {
  background-color: var(--primary-light);
  box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;
  color: var(--light);
  font-weight: var(--fw-bold);
}

.service-boxes {
  min-height: 25rem;
  height: auto;

  position: relative;
  overflow: hidden;
}

.service-box {
  background-color: var(--light);
  border-radius: var(--box-radius);
  box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
  padding: 2rem;

  gap: 2rem;

  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.service-box button {
  background-color: var(--secondary);
  border: none;
  border-radius: var(--box-radius);
  color: var(--light);
  cursor: pointer;
  font-size: clamp(0.9rem, 0.7rem + 1vw, 1.1rem);
  font-weight: var(--fw-bold);
  padding: 0.8rem 1.5rem;

  transition: background-color 0.2s ease;
}

.service-box .book-now:hover {
  background-color: var(--dark);
  color: var(--light);
}

.service-box.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 1;
}

.service-box-image {
  height: 100%;
  width: 40%;
}

.service-box-image img {
  border-radius: var(--box-radius);
  height: 100%;
  width: 100%;

  object-fit: cover;
}

.service-box-content {
  height: 100%;
  width: 60%;

  justify-content: space-between;
}

.service-box-content p {
  line-height: 1.6;
  text-align: justify;
}

.service-box-content p:nth-child(3) {
  text-align: left;
}

.service-disclaimer {
  color: var(--primary-dark);
  font-size: var(--fs-extra-small);
  font-style: italic;
  text-align: initial;
}

.service-box-footer {
  justify-content: space-between;
}

.service-price {
  font-size: var(--fs-large);
  margin: 0;
}

.service-price strong {
  color: var(--primary-light);
  font-size: var(--fs-xl);
}

/* Bullet section*/
.bullet ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 2.5rem;
}

.bullet li {
  font-size: var(--fs-small);
  text-indent: -1.3em;
  padding: 0.3rem 0 0.3rem 1em;
}

.bullet li::before {
  content: "+";
  color: var(--secondary);
  padding-right: 10px;
}

/* Contact form section */
.contact-form {
  height: 55rem;

  position: relative;
}

.form-background {
  background: url(../assets/Rectangle_02.svg) no-repeat;
  background-size: cover;
  border-radius: var(--box-radius);
  height: 90%;

  justify-content: center;
  gap: 2rem;

  position: relative;
  top: 10%;
  left: 0;
}

.form-background h2,
.form-background p {
  width: 25rem;
}

.form-background h2 span {
  color: var(--primary-dark);
  text-decoration: underline;
}

.form-background p {
  font-size: var(--fs-small);
}

.form-content {
  background-color: var(--light);
  border-radius: var(--box-radius);
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px,
    rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
  height: 90%;
  width: 50%;
  padding: var(--content-padding);

  position: absolute;
  top: 0;
  right: 2rem;
}

form {
  font-size: var(--fs-small);
  height: 100%;

  justify-content: space-between;
}

.form-item,
form p {
  padding: 0.5rem 0;
}

.form-item:first-child {
  padding-top: 0;
}

.form-item:not(.checkbox) input,
.form-content form textarea {
  border: solid 1px #cfcfcf;
  border-radius: var(--box-radius);
  text-indent: 1rem;
  width: 100%;

  outline: none;
}

.form-item:not(.checkbox) input {
  height: 4rem;
}

.form-content form textarea {
  height: 10rem;
  padding: 1rem 0 1rem 0;
}

.privacy-policy-checkbox {
  text-decoration: underline;
}

.form-submit {
  margin-top: 1rem;
}

/* contact form selectors */
.contactFormSelectors {
  padding: 1rem 0;

  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contactFormSelectors .selector {
  background-color: var(--light);
  border: none;
  border-radius: var(--box-radius);
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  font-size: var(--fs-extra-small);
  font-weight: var(--fw-bold);
  text-align: center;
  height: 5rem;
  min-width: 5rem;

  flex-basis: 15%;

  outline: none;
  transition: 0.15s ease-in-out;
}

.contactFormSelectors .selector:nth-last-child(2) {
  flex-basis: 10%;
}

.contactFormSelectors .selector:hover,
.contactFormSelectors .selectorActive {
  background: var(--secondary);
  color: var(--light);

  cursor: pointer;
  transform: scale(1.05);
}

/* media queries */
@media screen and (max-width: 1550px) {
  .features {
    overflow: hidden;
  }
  .features-carousel {
    max-width: calc(300px * 2 + 1rem);
  }

  .off-square {
    height: 150px;
    width: 300px;
  }
}

@media screen and (max-width: 1200px) {
  main > *:not(.contact-form),
  footer {
    padding-left: var(--content-padding);
    padding-right: var(--content-padding);
  }

  .features {
    overflow: hidden;
  }

  .features-header {
    padding-left: 0;
  }
  .navigation-dots {
    bottom: 2rem;
    left: 42%;
  }

  .form-background {
    padding-left: 2rem;
  }
}

@media (max-width: 830px) {
  .us,
  .features {
    height: auto;
  }
  .us-about {
    gap: 2rem;
  }
  .features-header {
    width: 100%;
  }

  .features-carousel {
    position: relative;
    top: auto;
    left: auto;

    margin: 2rem 0;
    transform: translateY(0);
  }
  .navigation-dots {
    bottom: 1rem;
    left: 42%;
  }
}

@media (max-width: 768px) {
  .features {
    padding: 1rem;
  }
  .features-carousel {
    max-width: calc(280px * 2 + 1rem);
  }
  .off-square {
    min-width: 280px;
    height: 140px;
  }

  .off-square p {
    font-size: var(--fs-medium);
  }

  .off-square i {
    font-size: var(--fs-large);
  }

  .services-menu {
    justify-content: flex-start;
  }
  .services {
    padding: var(--content-padding) 1rem;
  }

  .service-boxes {
    min-height: 40rem;
  }

  .service-box {
    flex-direction: column;
    padding: var(--content-padding);
    gap: var(--content-padding);
    height: auto;
  }

  .service-box button {
    width: 100%;
  }

  .service-box.active {
    position: relative;
    height: auto;
  }

  .service-box-image,
  .service-box-content {
    width: 100%;
  }

  .service-box-image {
    height: 12rem;
  }

  .service-box.active .service-box-content {
    gap: 2rem;
  }

  .service-box-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .menu-button {
    padding: 6px 10px;
  }
}

@media screen and (max-width: 576px) {
  .services {
    padding: 1rem 0.8rem;
  }

  .services-header {
    gap: 1rem;
  }

  .services-menu {
    margin: 1rem auto;
  }

  .menu-button {
    font-size: 0.7rem;
    padding: 6px 10px;
  }

  .service-boxes {
    min-height: 45rem;
  }

  .service-box {
    padding: 1rem;
  }

  .service-box-image {
    height: 10rem;
  }

  .contact-form {
    background: url(../assets/Rectangle.svg) no-repeat;
    background-size: cover;
    height: auto;
    padding: 2rem;
  }
  .form-background {
    background: none;
    border-radius: 0.6rem 0.6rem 0 0;
    padding: 5rem 0 2rem 0;
    justify-content: left;
    top: auto;
  }

  .form-background h2,
  .form-background p {
    width: 100%;
  }
  .form-content {
    position: relative;
    width: auto;
    right: auto;
  }

  .contactFormSelectors {
    justify-content: space-evenly;
  }
}

@media (max-width: 480px) {
  .landing-background {
    height: 47rem;
  }

  .landing-content {
    gap: 0;
    padding: 0;
  }

  .landing-info {
    padding: 0 0 2rem 0;
    justify-content: flex-end;
    flex: 2;
  }

  .landing-info p:nth-child(2) {
    display: none;
  }

  .hero {
    height: 25rem;
  }

  .us {
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
  }

  .us,
  .features {
    height: 100%;
  }

  .us-grid {
    grid-template-rows: repeat(2, 1fr);
  }

  .us-grid span:nth-child(1) {
    grid-row: 1 / 3;
  }

  .us-grid span:nth-child(2) {
    grid-row: 1 / 2;
  }

  .us-grid span:nth-child(3) {
    grid-row: 2 / 2;
  }

  .us-about {
    gap: 1rem;
  }

  .navigation-dots {
    left: 41%;
  }

  .slide.references {
    height: 100%;
    padding: 2rem 0;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 3rem 0;
  }

  .slide.bullet {
    height: 100%;
    padding: 2rem 1rem;
  }

  .slide.bullet ul li:nth-last-child(-n + 5) {
    display: none;
  }

  .services {
    height: 100%;
    padding: 1rem;
  }

  .services-header p:nth-child(2) {
    font-size: var(--fs-small);
  }

  .service-box {
    padding: 1rem;
  }

  .service-box p {
    font-size: var(--fs-small);
  }

  .service-box.active {
    align-items: initial;
  }

  .service-box-image {
    height: 15rem;
    width: 100%;
  }

  .service-box-content {
    height: 100%;
    width: 100%;
  }

  .menu-button {
    font-size: 0.7rem;
  }

  .bullet ul {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1rem;
  }
}
